query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Deletes a Lesson from the data store.
void deleteLesson(int id) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void deleteLesson(Module module, Lesson target);", "private CommandResult deleteLesson() throws KolinuxException {\n timetable.executeDelete(parsedArguments);\n logger.log(Level.INFO, \"User has deleted\" + parsedArguments[0].toUpperCase()\n +\n \" from the timetable.\");\n return new CommandResult(parsedArguments[0].toUpperCase()\n +\n \" \" + parsedArguments[1].toUpperCase() + \" \" + parsedArguments[3] + \" \"\n +\n parsedArguments[2].toLowerCase()\n +\n \" has been deleted from timetable\");\n }", "@DeleteMapping(\"{id}\")\n public Lesson deleteLesson(@PathVariable long id) {\n //code\n return null;\n }", "int deleteByExample(TrainingCourseExample example);", "void delete(Exam exam);", "public void delete() {\r\n\t\tCampLeaseDAO leaseDao = (CampLeaseDAO) getApplicationContext().getBean(\"leaseDaoBean\", CampLeaseDAO.class);\r\n\t\tleaseDao.delete(this);\r\n\t}", "int deleteByExample(RepStuLearningExample example);", "public final void delete() {\n\t\tOllie.delete(this);\n\t\tOllie.removeEntity(this);\n\t\tnotifyChange();\n\t\tid = null;\n\t}", "int deleteByExample(UserCourseHistoryExample example);", "int deleteByPrimaryKey(String courseId);", "int deleteByExample(TLinkmanExample example);", "int deleteByExample(WordSchoolExample example);", "public void deleteStudent(String rollNo) {\n\t\t\r\n\t}", "int deleteByExample(CourseExample example);", "public void deleteArticle(Article article);", "public String deleteResearcher(int id);", "int deleteByExample(WstatTeachingClasshourTeacherExample example);", "void deleteExam(Module module, Exam target);", "public void delete() {\n \t\t try(Connection con = DB.sql2o.open()) {\n \t\t\t String sql = \"DELETE FROM sightings where id=:id\";\n\t\t\t con.createQuery(sql)\n\t\t\t.addParameter(\"id\", this.id)\n\t\t\t.executeUpdate();\n\n \t\t }\n \t }", "public void deleteTitle(Title title) {\n db.deleteTitle(title);\n }", "int deleteByExample(TourstExample example);", "public void deleteSurvey(int sid);", "public void deleteStudent(Student student) {\n\t\t\r\n\t}", "public void delete(EvaluationsDegreePk pk) throws EvaluationsDegreeDaoException;", "int deleteByExample(OnlineExample example);", "private void deleteCourse() {\n // Only perform the delete if this is an existing pet.\n if (mCurrentCourseUri != null) {\n // Call the ContentResolver to delete the pet at the given content URI.\n // Pass in null for the selection and selection args because the mCurrentPetUri\n // content URI already identifies the pet that we want.\n int rowsDeleted = getContentResolver().delete(mCurrentCourseUri, null, null);\n\n // Show a toast message depending on whether or not the delete was successful.\n if (rowsDeleted == 0) {\n // If no rows were deleted, then there was an error with the delete.\n Toast.makeText(this, getString(R.string.editor_delete_course_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the delete was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_delete_course_successful),\n Toast.LENGTH_SHORT).show();\n }\n }\n\n // Close the activity\n finish();\n }", "@Override\r\n\tpublic void delete(int idStrumento) {\n\t\tstrumentoRepository.delete(idStrumento);\r\n\t}", "public void deleteExempleDirect(ExempleDirect exempleDirect) throws DaoException;", "public void delete() throws SQLException {\n DatabaseConnector.updateQuery(\"DELETE FROM course \"\n + \"WHERE courseDept='\" + this.courseDept \n + \"' AND courseNum = '\" + this.courseNum + \"'\");\n }", "@DELETE\n public void delete() {\n PersistenceService persistenceSvc = PersistenceService.getInstance();\n try {\n persistenceSvc.beginTx();\n deleteEntity(getEntity());\n persistenceSvc.commitTx();\n } finally {\n persistenceSvc.close();\n }\n }", "int deleteByPrimaryKey(Long articleTagId);", "@Test\n public void deleteDoctor() {\n\t\tList<Doctor> doctors = drepository.findByName(\"Katri Halonen\");\n\t\tassertThat(doctors).hasSize(1);\n \tdrepository.deleteById((long) 3);\n \tdoctors = drepository.findByName(\"Katri Halonen\");\n \tassertThat(doctors).hasSize(0);\n }", "int deleteByExample(FinMonthlySnapModelExample example);", "int deleteByPrimaryKey(String studentId);", "int deleteByExample(DressExample example);", "int deleteByExample(ReEducationExample example);", "public boolean del() {\n return db.delete (TABLE, createWhere());\n }", "@Transactional\n public void deleteLecturer(int lecturerID) throws KronosException {\n lecturerRepository.findById(lecturerID).orElseThrow(() -> new KronosException(\"Lecturer not found\"));\n\n //If lecturer teaches any modules\n if(moduleRepository.findFirstByLecturer_LecturerID(lecturerID).isPresent()) throw new KronosException(\"Lecturer has associated modules\");\n\n lecturerRepository.deleteById(lecturerID);\n\n }", "int deleteByExample(NewsExample example);", "int deleteByPrimaryKey(RepStuLearningKey key);", "int deleteByPrimaryKey(Integer educationid);", "int deleteByExample(TResearchTeachExample example);", "int deleteByPrimaryKey(Integer studentId);", "int deleteByExample(TourExample example);", "public void deleteStudent(){\r\n\t\t\r\n\t}", "@Override\n\tpublic void delete(WorkSummary workSummary) {\n\n\t}", "int deleteByExample(StudentExample example);", "int deleteByExample(FactRoomLogExample example);", "public void deleteMission(Mission mission) throws IllegalArgumentException;", "@Override\r\n\tpublic void deleteSingle(Article article01) {\n\t\tarticleDao.deleteSingle(article01);\r\n\t}", "int deleteByTitle(String title);", "int deleteByExample(ProSchoolWareExample example);", "int deleteByExample(AdExample example);", "int deleteByExample(NewsInfoExample example);", "public void deleteById(String id);", "int deleteByExample(ArticleDoExample example);", "@Override\n public void delete(JavaStudyClub javaStudyClub) {\n entityManager.remove(javaStudyClub);\n }", "int deleteByPrimaryKey(Long researchid);", "int deleteByExample(CrawlExample example);", "int deleteByExample(LtsprojectpoExample example);", "private void deleteItem()\n {\n Category categoryToDelete = dataCategories.get(dataCategories.size()-1);\n AppDatabase db = Room.databaseBuilder(getApplicationContext(),\n AppDatabase.class, \"database-name\").allowMainThreadQueries().build();\n db.categoryDao().delete(categoryToDelete);\n testDatabase();\n }", "@Override\n public void delStudent(Student student)\n {\n sf.getCurrentSession().delete(student);\n }", "public void delete(LearningResultHasActivityPk pk) throws LearningResultHasActivityDaoException;", "int deleteByPrimaryKey(Integer crawlId);", "int deleteByPrimaryKey(Integer crawlId);", "public void delete();", "public void delete();", "public void delete();", "public void delete();", "public void delete();", "public void delete();", "public boolean delete();", "int deleteByExample(CptDataStoreExample example);", "int deleteByExample(Question11Example example);", "public void deleteQuestion(int sid);", "protected void deleteRecord() throws DAOException {\r\n\t\t// Elimina relaciones\r\n\t\tfor (Sedrelco relco : object.getRelcos()) {\r\n\t\t\tsedrelcoDao.delete(relco);\r\n\t\t}\r\n\t\t// Elimina objeto\r\n\t\tobjectDao.delete(object);\r\n\t}", "@Override\n\tpublic int deleteOne(StudentVO vo) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void deleteStudentById(long id) {\n\t\t\n\t}", "@Override\n\tpublic int delete(int student) {\n\n\t\treturn 0;\n\t}", "public void deleteRoom(Room room);", "@Override\n\tpublic boolean delete() {\n\t\tString sql=\"DELETE FROM tc_student where id=\"+id;\n\t\t//`\n\t\t\n\t\tSystem.out.println(sql);\n\t\treturn mysql.execute(sql);\n\t}", "@Override\n\tpublic void deleteExam(ExamBean exam) {\n\t\t\n\t}", "public void deleteArticleById(int i) {\n\t\tObjectSet result = db.queryByExample(new Article(i, null, null, null, 0));\n\n\t\tArticle aEsborrar = (Article) result.next();\n\t\tdb.delete(aEsborrar);\n\n\t\tSystem.out.println(\"\\nEsborrat l'article \" + aEsborrar);\n\t}", "int deleteByExample(DiscussExample example);", "@Delete\n void delete(Measurement measurement);", "int deleteByExample(CrawlTestExample example);", "int deleteByExample(TempletLinkExample example);", "public void deleteStudent(Student s) {\n\t\tstudents.remove(s);\n\t\tisStudentsListChanged = true;\n\t\tdataChangedNotify();\n\t}", "int deleteByExample(BnesBrowsingHisExample example) throws SQLException;", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "int deleteByExample(AutoAssessDetailExample example);" ]
[ "0.71462256", "0.6398769", "0.6342015", "0.6302202", "0.62542427", "0.6085031", "0.6067302", "0.6054821", "0.6045469", "0.60378194", "0.6018198", "0.6017859", "0.6013294", "0.60039157", "0.5980386", "0.5968739", "0.59580296", "0.59421104", "0.59412414", "0.59408104", "0.5932299", "0.5927496", "0.59239584", "0.59140253", "0.5910987", "0.5909077", "0.5908944", "0.58976746", "0.5869263", "0.5862875", "0.5857786", "0.5819404", "0.58186024", "0.5806653", "0.58014673", "0.57954127", "0.57931024", "0.57888347", "0.57872546", "0.57830846", "0.57803935", "0.57746524", "0.57690114", "0.5767181", "0.5765945", "0.5765741", "0.57576656", "0.57567257", "0.5755115", "0.57500136", "0.5748127", "0.573932", "0.57374406", "0.57345474", "0.5733435", "0.5732855", "0.57314986", "0.572945", "0.5728585", "0.57278043", "0.5710621", "0.570965", "0.5707795", "0.5701335", "0.5701335", "0.56982714", "0.56982714", "0.56982714", "0.56982714", "0.56982714", "0.56982714", "0.56918544", "0.56909853", "0.56756335", "0.56714815", "0.56683975", "0.5664901", "0.5661206", "0.56566846", "0.56459385", "0.56436", "0.56388223", "0.5638355", "0.5631453", "0.562804", "0.5619823", "0.5618082", "0.5614437", "0.5606149", "0.5604359", "0.5604359", "0.5604359", "0.5604359", "0.5604359", "0.5604359", "0.5604359", "0.5604359", "0.5604359", "0.5604359", "0.56033653" ]
0.6952918
1
/ access modifiers changed from: private / access modifiers changed from: public
private void refreshUsers(int i) { UserInfo userInfo; if (i != -10000) { this.mForcePictureLoadForUserId.put(i, true); } if (!this.mPauseRefreshUsers) { boolean z = this.mForcePictureLoadForUserId.get(-1); SparseArray sparseArray = new SparseArray(this.mUsers.size()); int size = this.mUsers.size(); for (int i2 = 0; i2 < size; i2++) { UserRecord userRecord = this.mUsers.get(i2); if (!(userRecord == null || userRecord.picture == null || (userInfo = userRecord.info) == null || z || this.mForcePictureLoadForUserId.get(userInfo.id))) { sparseArray.put(userRecord.info.id, userRecord.picture); } } this.mForcePictureLoadForUserId.clear(); final boolean z2 = this.mAddUsersWhenLocked; new AsyncTask<SparseArray<Bitmap>, Void, ArrayList<UserRecord>>() { /* class com.android.systemui.statusbar.policy.UserSwitcherController.AnonymousClass2 */ /* access modifiers changed from: protected */ public ArrayList<UserRecord> doInBackground(SparseArray<Bitmap>... sparseArrayArr) { boolean z = false; SparseArray<Bitmap> sparseArray = sparseArrayArr[0]; List<UserInfo> users = UserSwitcherController.this.mUserManager.getUsers(true); UserRecord userRecord = null; if (users == null) { return null; } ArrayList<UserRecord> arrayList = new ArrayList<>(users.size()); int currentUser = ActivityManager.getCurrentUser(); boolean z2 = UserSwitcherController.this.mUserManager.getUserSwitchability(UserHandle.of(ActivityManager.getCurrentUser())) == 0; UserInfo userInfo = null; for (UserInfo userInfo2 : users) { boolean z3 = currentUser == userInfo2.id; UserInfo userInfo3 = z3 ? userInfo2 : userInfo; boolean z4 = z2 || z3; if (userInfo2.isEnabled()) { if (userInfo2.isGuest()) { userRecord = new UserRecord(userInfo2, null, true, z3, false, false, z2); } else if (userInfo2.supportsSwitchToByUser()) { Bitmap bitmap = sparseArray.get(userInfo2.id); if (bitmap == null && (bitmap = UserSwitcherController.this.mUserManager.getUserIcon(userInfo2.id)) != null) { int dimensionPixelSize = UserSwitcherController.this.mContext.getResources().getDimensionPixelSize(C0012R$dimen.max_avatar_size); bitmap = Bitmap.createScaledBitmap(bitmap, dimensionPixelSize, dimensionPixelSize, true); } arrayList.add(new UserRecord(userInfo2, bitmap, false, z3, false, false, z4)); } } userInfo = userInfo3; } if (arrayList.size() > 1 || userRecord != null) { Prefs.putBoolean(UserSwitcherController.this.mContext, "HasSeenMultiUser", true); } boolean z5 = !UserSwitcherController.this.mUserManager.hasBaseUserRestriction("no_add_user", UserHandle.SYSTEM); boolean z6 = userInfo != null && (userInfo.isAdmin() || userInfo.id == 0) && z5; boolean z7 = z5 && z2; boolean z8 = (z6 || z7) && userRecord == null; if ((z6 || z7) && UserSwitcherController.this.mUserManager.canAddMoreUsers()) { z = true; } boolean z9 = !z2; if (userRecord != null) { arrayList.add(userRecord); } else if (z8) { UserRecord userRecord2 = new UserRecord(null, null, true, false, false, z9, z2); UserSwitcherController.this.checkIfAddUserDisallowedByAdminOnly(userRecord2); arrayList.add(userRecord2); } if (z) { UserRecord userRecord3 = new UserRecord(null, null, false, false, true, z9, z2); UserSwitcherController.this.checkIfAddUserDisallowedByAdminOnly(userRecord3); arrayList.add(userRecord3); } return arrayList; } /* access modifiers changed from: protected */ public void onPostExecute(ArrayList<UserRecord> arrayList) { if (arrayList != null) { UserSwitcherController.this.mUsers = arrayList; UserSwitcherController.this.notifyAdapters(); } } }.execute(sparseArray); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "@Override\n public void perish() {\n \n }", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n public boolean isPrivate() {\n return true;\n }", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "public void myPublicMethod() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void anular() {\n\n\t}", "private TMCourse() {\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private MApi() {}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private Get() {}", "private Get() {}", "private Infer() {\n\n }", "private CommonMethods() {\n }", "private ChainingMethods() {\n // private constructor\n\n }", "public void checkPublic() {\n }", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "public final void mo51373a() {\n }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void m23075a() {\n }", "private Validations() {\n\t\tthrow new IllegalAccessError(\"Shouldn't be instantiated.\");\n\t}", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.917 -0500\", hash_original_method = \"4F6254C867328A153FDD5BD23453E816\", hash_generated_method = \"627F9C594B5D3368AD9A21A5E43D2CB8\")\n \nprivate Extensions() {}", "public void smell() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "private Singletion3() {}", "private Public() {\n super(\"public\", null);\n }", "private void m50366E() {\n }", "public abstract Object mo26777y();", "public void method_4270() {}", "public void mo21825b() {\n }", "protected Doodler() {\n\t}", "public void mo21779D() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private URIs() {\r\n throw new IllegalAccessError();\r\n }", "public void mo38117a() {\n }", "private abstract void privateabstract();", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:02:04.534 -0500\", hash_original_method = \"E4DEB0C107DDB25A537EF0E89F1C04F8\", hash_generated_method = \"2E76AFD8C90588F5139C0C2D28CAEA05\")\n \nprivate static int translateCodingErrorAction(CodingErrorAction action) {\n if (action == CodingErrorAction.REPORT) {\n return 0;\n } else if (action == CodingErrorAction.IGNORE) {\n return 1;\n } else if (action == CodingErrorAction.REPLACE) {\n return 2;\n } else {\n throw new AssertionError(); // Someone changed the enum.\n }\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public OOP_207(){\n\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }", "private test5() {\r\n\t\r\n\t}", "@Override\n\tpublic boolean isPublic() {\n\t\treturn false;\n\t}", "private void __sep__Constructors__() {}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo97908d() {\n }", "private FlyWithWings(){\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.877 -0500\", hash_original_method = \"6B80070A6DD2FB0EB3D1E45B8D1F67CF\", hash_generated_method = \"2A1ECFC7445D74F90AF7029089D02160\")\n \nprivate Organizations() {}", "@Override\n public void memoria() {\n \n }", "@Override\n protected void init() {\n }", "@Override\n void init() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {\n\t}", "private Utils() {\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "private Mgr(){\r\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "public void mo21782G() {\n }", "@Override\n public void init() {\n }", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "public abstract void mo70713b();", "private Aliyun() {\n\t\tsuper();\n\t}", "public final void mo91715d() {\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.663 -0500\", hash_original_method = \"7BA2DC4B038FD72F399C633B1C4B5B34\", hash_generated_method = \"3D1B22AE31FE9AB2658DC3713C91A6C9\")\n \nprivate Groups() {}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "private void ss(){\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.504 -0500\", hash_original_method = \"F5E3085137E37D29F0F8CB3C296F1F57\", hash_generated_method = \"47D4A76F75042B03A266F16D90E98429\")\n \nprivate Contacts() {}", "private Utility() {\n throw new IllegalAccessError();\n }", "private Util() { }", "public void mo21877s() {\n }", "protected void mo6255a() {\n }", "void m1864a() {\r\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public Fun_yet_extremely_useless()\n {\n\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public boolean getAllowPrivateConstructors()\n {\n \treturn allowPrivateConstructors;\n }", "public void mo115188a() {\n }", "private Marinator() {\n }", "private Marinator() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "private void kk12() {\n\n\t}" ]
[ "0.7241168", "0.68845606", "0.68322766", "0.65265113", "0.64767146", "0.6446329", "0.63824195", "0.63644785", "0.6354255", "0.6348257", "0.6341761", "0.632682", "0.6302122", "0.6288175", "0.6282914", "0.62695324", "0.6257107", "0.62374574", "0.62374574", "0.6237087", "0.6225313", "0.62168074", "0.6208633", "0.6199083", "0.61926883", "0.61863506", "0.61863506", "0.61563", "0.6127417", "0.6121096", "0.61177164", "0.61069244", "0.6101914", "0.6099539", "0.60986406", "0.6088406", "0.6084343", "0.60762256", "0.6075294", "0.60752785", "0.60723644", "0.60723644", "0.60623664", "0.60518336", "0.6051247", "0.6046727", "0.604268", "0.604268", "0.6042152", "0.6041901", "0.6036393", "0.601905", "0.6017837", "0.6012634", "0.5999185", "0.59911543", "0.5974554", "0.5971437", "0.5968002", "0.59600544", "0.59556913", "0.5947526", "0.5946513", "0.5944072", "0.5943961", "0.5943961", "0.5936288", "0.5936288", "0.5936288", "0.5936288", "0.593368", "0.593368", "0.5930449", "0.59239346", "0.5921108", "0.59187365", "0.5917557", "0.59134316", "0.5906737", "0.59035766", "0.59024006", "0.59003526", "0.5899198", "0.58991855", "0.5895608", "0.58872414", "0.588058", "0.58763134", "0.5875556", "0.5872552", "0.5866095", "0.5857231", "0.58532053", "0.5851447", "0.5849608", "0.58483994", "0.5843968", "0.5843968", "0.5842728", "0.5842689", "0.58420867" ]
0.0
-1
/ class com.android.systemui.statusbar.policy.UserSwitcherController.AnonymousClass2 / access modifiers changed from: protected
public ArrayList<UserRecord> doInBackground(SparseArray<Bitmap>... sparseArrayArr) { boolean z = false; SparseArray<Bitmap> sparseArray = sparseArrayArr[0]; List<UserInfo> users = UserSwitcherController.this.mUserManager.getUsers(true); UserRecord userRecord = null; if (users == null) { return null; } ArrayList<UserRecord> arrayList = new ArrayList<>(users.size()); int currentUser = ActivityManager.getCurrentUser(); boolean z2 = UserSwitcherController.this.mUserManager.getUserSwitchability(UserHandle.of(ActivityManager.getCurrentUser())) == 0; UserInfo userInfo = null; for (UserInfo userInfo2 : users) { boolean z3 = currentUser == userInfo2.id; UserInfo userInfo3 = z3 ? userInfo2 : userInfo; boolean z4 = z2 || z3; if (userInfo2.isEnabled()) { if (userInfo2.isGuest()) { userRecord = new UserRecord(userInfo2, null, true, z3, false, false, z2); } else if (userInfo2.supportsSwitchToByUser()) { Bitmap bitmap = sparseArray.get(userInfo2.id); if (bitmap == null && (bitmap = UserSwitcherController.this.mUserManager.getUserIcon(userInfo2.id)) != null) { int dimensionPixelSize = UserSwitcherController.this.mContext.getResources().getDimensionPixelSize(C0012R$dimen.max_avatar_size); bitmap = Bitmap.createScaledBitmap(bitmap, dimensionPixelSize, dimensionPixelSize, true); } arrayList.add(new UserRecord(userInfo2, bitmap, false, z3, false, false, z4)); } } userInfo = userInfo3; } if (arrayList.size() > 1 || userRecord != null) { Prefs.putBoolean(UserSwitcherController.this.mContext, "HasSeenMultiUser", true); } boolean z5 = !UserSwitcherController.this.mUserManager.hasBaseUserRestriction("no_add_user", UserHandle.SYSTEM); boolean z6 = userInfo != null && (userInfo.isAdmin() || userInfo.id == 0) && z5; boolean z7 = z5 && z2; boolean z8 = (z6 || z7) && userRecord == null; if ((z6 || z7) && UserSwitcherController.this.mUserManager.canAddMoreUsers()) { z = true; } boolean z9 = !z2; if (userRecord != null) { arrayList.add(userRecord); } else if (z8) { UserRecord userRecord2 = new UserRecord(null, null, true, false, false, z9, z2); UserSwitcherController.this.checkIfAddUserDisallowedByAdminOnly(userRecord2); arrayList.add(userRecord2); } if (z) { UserRecord userRecord3 = new UserRecord(null, null, false, false, true, z9, z2); UserSwitcherController.this.checkIfAddUserDisallowedByAdminOnly(userRecord3); arrayList.add(userRecord3); } return arrayList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public final void switchUserMode() {\n }", "@Override // com.android.server.wm.WindowContainer\n public void switchUser() {\n super.switchUser();\n this.mWmService.mWindowsChanged = true;\n this.mDisplayPolicy.switchUser();\n }", "public /* synthetic */ Integer lambda$useFullscreenUserSwitcher$0$UserSwitcherController() {\n return Integer.valueOf(Settings.System.getInt(this.mContext.getContentResolver(), \"enable_fullscreen_user_switcher\", -1));\n }", "@Override // com.zhihu.android.profile.newprofile.p1859ui.card.ProfileBaseCard\n /* renamed from: a */\n public void mo106382a(View view) {\n }", "private FrameUIController(){\r\n\t\t\r\n\t}", "private AWTBridge() {\n\t}", "private final class <init>\n implements <init>, com.ebay.nautilus.domain.dcs.tionHelper\n{\n\n private SharedPreferences listingDraftPrefs;\n private SharedPreferences prefs;\n final MyApp this$0;\n\n public void disableDeveloperOptions()\n {\n MyApp.getPrefs().removeGlobalPref(\"developerOptions\");\n }", "static /* synthetic */ void m89675x(NewChattingTabUI newChattingTabUI) {\n AppMethodBeat.m2504i(29829);\n newChattingTabUI.tryResetChattingSwipeStatus();\n AppMethodBeat.m2505o(29829);\n }", "@Override\n\t/**\n\t * sets the visibility modifiers for the specific class\n\t * \n\t * @param s \n\t */\n\tpublic void setVisability(String s) {\n\t\tvisability = s;\n\n\t}", "public interface BluetoothView {\n void setActionBarTitle(String title);\n void setNavDrawerSelectedItem(int resID);\n void showUnlockLockLayout();\n void disableUnlockLockLayout();\n}", "public interface UiController {\n void showOrHideProgressBar(boolean show);\n void refreshWidgetUi(LocalWallpaperInfo info);\n void refreshMainUi(LocalWallpaperInfo info);\n void setSystemWallpaper(Bitmap bitmap);\n}", "public /* synthetic */ void mo17791xac558cd6() {\n NotificationPanelViewController notificationPanelViewController = NotificationPanelViewController.this;\n notificationPanelViewController.mHintAnimationRunning = false;\n notificationPanelViewController.mStatusBar.onHintFinished();\n }", "public String onGetAccessibilityClassName() {\n throw new IllegalStateException(\"Not implemented.\");\n }", "public boolean handlesRvGetAccessibilityClassName() {\n return false;\n }", "public boolean handlesGetAccessibilityClassName() {\n return false;\n }", "@Override\r\npublic void setOnScreen(boolean os) {\n}", "protected JBuilderRenameClassRefactoring()\n\t{\n\t\tsuper();\n\t}", "@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n mContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE\n | View.SYSTEM_UI_FLAG_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);\n }", "@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n mContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE\n | View.SYSTEM_UI_FLAG_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);\n }", "@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n mContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE\n | View.SYSTEM_UI_FLAG_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);\n }", "@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n mContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE\n | View.SYSTEM_UI_FLAG_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);\n }", "@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n mContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE\n | View.SYSTEM_UI_FLAG_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);\n }", "@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n mContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE\n | View.SYSTEM_UI_FLAG_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);\n }", "@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n mContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE\n | View.SYSTEM_UI_FLAG_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);\n }", "@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n mContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE\n | View.SYSTEM_UI_FLAG_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);\n }", "@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n mContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE\n | View.SYSTEM_UI_FLAG_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);\n }", "@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n mContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE\n | View.SYSTEM_UI_FLAG_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);\n }", "static /* synthetic */ void m56324d(HoneyPayMainUI honeyPayMainUI) {\n AppMethodBeat.m2504i(41907);\n honeyPayMainUI.nsw.setVisibility(8);\n AppMethodBeat.m2505o(41907);\n }", "protected abstract void switchOnCustom();", "private NativeSupport() {\n\t}", "public interface g {\n\n /* compiled from: AccessibilityViewCommand */\n public static abstract class a {\n\n /* renamed from: a reason: collision with root package name */\n private static final Bundle f2690a = new Bundle();\n\n /* renamed from: b reason: collision with root package name */\n Bundle f2691b;\n\n public void a(Bundle bundle) {\n this.f2691b = bundle;\n }\n }\n\n /* compiled from: AccessibilityViewCommand */\n public static final class b extends a {\n }\n\n /* compiled from: AccessibilityViewCommand */\n public static final class c extends a {\n }\n\n /* compiled from: AccessibilityViewCommand */\n public static final class d extends a {\n }\n\n /* compiled from: AccessibilityViewCommand */\n public static final class e extends a {\n }\n\n /* compiled from: AccessibilityViewCommand */\n public static final class f extends a {\n }\n\n /* renamed from: b.g.i.a.g$g reason: collision with other inner class name */\n /* compiled from: AccessibilityViewCommand */\n public static final class C0028g extends a {\n }\n\n /* compiled from: AccessibilityViewCommand */\n public static final class h extends a {\n }\n\n boolean a(View view, a aVar);\n}", "public interface C0201a0 {\n /* renamed from: a */\n C4135d0 mo1484a(int i, long j);\n\n /* renamed from: a */\n void mo1485a(int i);\n\n /* renamed from: a */\n void mo1486a(Menu menu, C0149a aVar);\n\n /* renamed from: a */\n void mo1487a(C0254m0 m0Var);\n\n /* renamed from: a */\n void mo1488a(boolean z);\n\n /* renamed from: a */\n boolean mo1489a();\n\n /* renamed from: b */\n Context mo1490b();\n\n /* renamed from: b */\n void mo1491b(int i);\n\n /* renamed from: b */\n void mo1492b(boolean z);\n\n /* renamed from: c */\n void mo1493c();\n\n /* renamed from: c */\n void mo1494c(int i);\n\n void collapseActionView();\n\n /* renamed from: d */\n boolean mo1496d();\n\n /* renamed from: e */\n boolean mo1497e();\n\n /* renamed from: f */\n boolean mo1498f();\n\n /* renamed from: g */\n boolean mo1499g();\n\n CharSequence getTitle();\n\n /* renamed from: h */\n void mo1501h();\n\n /* renamed from: i */\n boolean mo1502i();\n\n /* renamed from: j */\n int mo1503j();\n\n /* renamed from: k */\n ViewGroup mo1504k();\n\n /* renamed from: l */\n int mo1505l();\n\n /* renamed from: m */\n void mo1506m();\n\n /* renamed from: n */\n void mo1507n();\n\n void setIcon(int i);\n\n void setIcon(Drawable drawable);\n\n void setTitle(CharSequence charSequence);\n\n void setWindowCallback(Callback callback);\n\n void setWindowTitle(CharSequence charSequence);\n}", "@SuppressWarnings(\"unused\")\npublic interface GameFrillsSettingsView extends MvpView {\n}", "public StatusBar() {\n\t\tsuper();\n\t}", "public interface C4522b {\n /* renamed from: a */\n void mo12143a();\n\n /* renamed from: a */\n void mo12147a(View view);\n\n /* renamed from: b */\n android.view.View mo12148b();\n\n /* renamed from: c */\n Room mo12151c();\n\n /* renamed from: d */\n C0043i mo12153d();\n\n void dismiss();\n\n void setCancelable(boolean z);\n }", "public final void setStatusHints(java.lang.String r1, android.telecom.StatusHints r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: android.telecom.ConnectionServiceAdapterServant.2.setStatusHints(java.lang.String, android.telecom.StatusHints):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.2.setStatusHints(java.lang.String, android.telecom.StatusHints):void\");\n }", "@SuppressLint(\"InlinedApi\")\r\n @Override\r\n public void run() {\n mainContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE\r\n | View.SYSTEM_UI_FLAG_FULLSCREEN\r\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\r\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY\r\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\r\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);\r\n }", "@Override\n public void onScreenStatus(boolean isAs) {\n }", "@Override // com.zhihu.android.app.p1311ui.fragment.webview.WebViewFragment2\n /* renamed from: o_ */\n public void mo69099o_() {\n super.mo69099o_();\n m64979c();\n }", "public interface AccessControlled {\r\n\r\n}", "@Override\n public void noteUserActivity() {\n throw new UnsupportedOperationException(\"noteUserActivity\");\n }", "public interface OnBaseUIListener {\n}", "public CharSequence onRvGetAccessibilityClassName() {\n throw new IllegalStateException(\"Not implemented.\");\n }", "@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n myrlayout.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE\n | View.SYSTEM_UI_FLAG_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);\n }", "public interface IBaseView {\n\n void showToastMessage(String message);\n\n void setProgressBar(boolean show);\n\n void showNetworkFailureMessage(boolean show);\n\n Context getPermission();\n\n void startNewActivity();\n\n}", "private stendhal() {\n\t}", "@Override\n\tpublic void extends_(JDefinedClass cls) {\n\n\t}", "private InstructGui() {\n }", "public void setVisibleToUser(boolean visibleToUser) {\n/* 845 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public interface MvpView {\n\n void SnakBarId(int msg);\n\n void SnakBarString(String msg);\n void SnakBarStringSucc(String msg);\n void SnakBarStringFail(String msg);\n\n void progresShow(boolean load);\n void progresCancel(boolean cancel);\n\n\n}", "public /* bridge */ /* synthetic */ void mo55096c() {\n super.mo55096c();\n }", "@Override\n\tpublic void FacultyTopBar() {\n\t\t\n\t}", "private UIUtils() {\n }", "public interface C27129e {\n void onVisibilityChanged(boolean z);\n }", "protected void method_2665() {\r\n super.method_2427(awt.field_4171);\r\n this.method_2440(true);\r\n this.method_2521(class_872.field_4244);\r\n }", "d(com.miui.antivirus.whitelist.WhiteListActivity r2) {\n /*\n r1 = this;\n r1.<init>(r2)\n java.lang.ref.WeakReference r0 = new java.lang.ref.WeakReference\n r0.<init>(r2)\n r1.f3026b = r0\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.miui.antivirus.whitelist.WhiteListActivity.d.<init>(com.miui.antivirus.whitelist.WhiteListActivity):void\");\n }", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "public interface ILoginView extends IView {\n public void hideSoftInputWindow();\n\n public void gotoMainActivity();\n\n}", "@Override\n\tprotected void setController() {\n\t\t\n\t}", "@Override\n public void showAuthScreen() {\n }", "public interface AuthViewState<D, V extends AuthView<D>> extends LceViewState<D, V> {\n\n public static final int SHOWING_AUTHENTICATION_REQUIRED = 2;\n\n public void setShowingAuthenticationRequired();\n}", "private UIManager() {\n tableUI = new TableUI();\n snifferUI = new SnifferUI();\n }", "public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }", "public OOP_207(){\n\n }", "@Override // com.tapjoy.internal.gt\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final void a(android.app.Activity r6) {\n /*\n // Method dump skipped, instructions count: 106\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tapjoy.internal.fp.a(android.app.Activity):void\");\n }", "@Override\n\tpublic void handleLoadPackage(LoadPackageParam lpparam) throws Throwable {\n\t\tif (lpparam.packageName.equals(\"com.android.systemui\")) {\n\t\t\tXposedBridge.hookAllConstructors(XposedHelpers.findClass(\n\t\t\t\t\t\"com.android.systemui.statusbar.phone.PhoneStatusBar\",\n\t\t\t\t\tlpparam.classLoader), new XC_MethodHook() {\n\t\t\t\t@Override\n\t\t\t\tprotected void afterHookedMethod(MethodHookParam param)\n\t\t\t\t\t\tthrows Throwable {\n\t\t\t\t\tinstancePhoneStatusBar = param.thisObject;\n\t\t\t\t\thandler = new Handler();\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\tXposedHelpers.findAndHookMethod(XposedHelpers.findClass(\"com.android.systemui.statusbar.phone.PhoneStatusBar\", lpparam.classLoader), \n\t\t\t\t\t\"start\", new XC_MethodHook() {\n\t\t\t\t@Override\n\t\t\t\tprotected void afterHookedMethod(MethodHookParam param) throws Throwable{\n\t\t\t\t\tif (mContext == null) {\n\t\t\t\t\t\tmContext = (Context) XposedHelpers.getObjectField(instancePhoneStatusBar, \"mContext\");\n\t\t\t\t\t}\n\t\t\t\t\tIntentFilter intentFilter = new IntentFilter();\n\t\t\t\t\tintentFilter.addAction(Constant.INTENT_CHANGE_STATUSBAR_COLOR);\n\t\t\t\t\tintentFilter.addAction(Constant.INTENT_UPDATE_NOTIFICATION_ICONS);\n\t\t\t\t\tintentFilter.addAction(Constant.INTENT_UPDATE_TRANSANIMASCALE);\n\t\t\t\t\tintentFilter.addAction(Constant.INTENT_RESTART_SYSTEMUI);\n\t\t\t\t\tintentFilter.setPriority(IntentFilter.SYSTEM_HIGH_PRIORITY);\n\t\t\t\t\tmContext.registerReceiver(mActivityResumeReceiver, intentFilter);\n\t\t\t\t\t\n\t\t\t\t\tupdateIconsColor();\n\t\t\t\t\t\n\t\t\t\t\tRunnable darkModeRunnable = new Runnable() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\tXposedHelpers.setObjectField(instancePhoneStatusBar, \"mUpdateDarkModeRunnable\", darkModeRunnable);\t\n\t\t\t\t\t\n\t\t\t\t\tRunnable MyDarkModeRunnable = new Runnable() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tupdateDarkMode(mContext);\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\tXposedHelpers.setAdditionalInstanceField(instancePhoneStatusBar, \"mMyUpdateDarkModeRunnable\", MyDarkModeRunnable);\t\n\t\t\t\t\t\n\t\t\t\t\tClass<?> ServiceManager = XposedHelpers.findClass(\"android.os.ServiceManager\", null);\n\t\t\t\t\tObject WindowService = XposedHelpers.callStaticMethod(ServiceManager, \"getService\", \"window\");\n\t\t\t\t\tClass<?> IWindowManagerStub = XposedHelpers.findClass(\"android.view.IWindowManager.Stub\", null);\n\t\t\t\t\tObject WindowManager = XposedHelpers.callStaticMethod(IWindowManagerStub, \"asInterface\", WindowService);\n\t\t\t\t\tfloat transAnimScal = (Float) XposedHelpers.callMethod(WindowManager, \"getAnimationScale\", 1);\n\t\t\t\t\tmDelayTime = getDelayTime(transAnimScal);\n\t\t\t\t\t\n\t\t\t\t\tmAlphaFilter = (Settings.System.getInt(mContext.getContentResolver(), Constant.KEY_PREF_FILTER_ALPHA, 100) + 100) * 255 / 200;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t});\n\t\t\t\n\t\t\tXposedHelpers.findAndHookMethod(XposedHelpers.findClass(\"com.android.systemui.statusbar.phone.PhoneStatusBar\", lpparam.classLoader), \n\t\t\t\t\t\"bindViews\", new XC_MethodHook() {\n\t\t\t\t@Override\n\t\t\t\tprotected void beforeHookedMethod(MethodHookParam param) throws Throwable{\n\t\t\t\t\tupdateIconsColor();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tprotected void afterHookedMethod(MethodHookParam param) throws Throwable{\n\t\t\t\t\tif (mBackgroundBeforeUnbind != null && mDarkModeBeforeUndbind != null) {\n\t\t\t\t\t\tUtils.log(\"update statusbar background and darkmode>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\");\n\t\t\t\t\t\tupdateStatusBarBackground(mBackgroundBeforeUnbind, true);\n\t\t\t\t\t\tupdateStatusBarContent(mDarkModeBeforeUndbind, true);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\tXposedHelpers.findAndHookMethod(XposedHelpers.findClass(\"com.android.systemui.statusbar.phone.PhoneStatusBar\", lpparam.classLoader), \n\t\t\t\t\t\"unbindViews\", new XC_MethodHook() {\n\t\t\t\t@Override\n\t\t\t\tprotected void beforeHookedMethod(MethodHookParam param) throws Throwable{\n\t\t\t\t\tView statusBarView = (View) XposedHelpers.getObjectField(instancePhoneStatusBar, \"mStatusBarView\");\n\t\t\t\t\tmBackgroundBeforeUnbind = statusBarView.getBackground();\n\t\t\t\t\tmDarkModeBeforeUndbind = mPreDarkMode;\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\tXposedHelpers.findAndHookMethod(XposedHelpers.findClass(\"com.android.systemui.statusbar.phone.SimpleStatusBar\", lpparam.classLoader), \n\t\t\t\t\t\"updateNotificationIcons\", boolean.class, ArrayList.class, LinearLayout.LayoutParams.class, new XC_MethodHook(){\n\t\t\t\t@Override\n\t\t\t\tprotected void afterHookedMethod(MethodHookParam param) throws Throwable{\n\t\t\t\t\tupdateNotificationIcons();\n\t\t\t\t}\n\t\t\t});\t\n\t\t\t\n\t\t\tXposedHelpers.findAndHookMethod(XposedHelpers.findClass(\"com.android.systemui.statusbar.phone.SimpleStatusBar\", lpparam.classLoader), \n\t\t\t\t\t\"updateDarkMode\", new XC_MethodHook(){\n\t\t\t\t@Override\n\t\t\t\tprotected void afterHookedMethod(MethodHookParam param) throws Throwable{\n\t\t\t\t\tupdateNotificationIcons();\n\t\t\t\t}\n\t\t\t});\t\n\t\t\t\n\t\t\tClass<?> StatusBarIcon = XposedHelpers.findClass(\"com.android.internal.statusbar.StatusBarIcon\", null);\n\t\t\tXposedHelpers.findAndHookMethod(XposedHelpers.findClass(\"com.android.systemui.statusbar.StatusBarIconView\", lpparam.classLoader), \n\t\t\t\t\t\"setIcon\", StatusBarIcon, new XC_MethodHook(){\n\n\t\t\t\t@Override\n\t\t\t\tprotected void afterHookedMethod(MethodHookParam param)\n\t\t\t\t\t\tthrows Throwable {\n\t\t\t\t\tboolean supportDarkMode = XposedHelpers.getBooleanField(param.thisObject, \"mSupportDarkMode\");\n\t\t\t\t\tboolean enableDarkMode = XposedHelpers.getBooleanField(param.thisObject, \"mEnableDarkMode\");\n\t\t\t\t\tif (supportDarkMode && enableDarkMode)\n\t\t\t\t\t\treturn;\n\t\t\t\t\t\n\t\t\t\t\tif (mContext == null) {\n\t\t\t\t\t\tmContext = (Context) XposedHelpers.getObjectField(instancePhoneStatusBar, \"mContext\");\n\t\t\t\t\t}\n\t\t\t\t\tboolean tinticons = Settings.System.getInt(mContext.getContentResolver(), Constant.KEY_PREF_TINT_NOTIFICATION, 0) ==1 ? true:false;\n\t\t\t\t\tUtils.log(\"tint notification icons: \" + tinticons + \", hook getIcon>>>>>>>>\");\n\t\t\t\t\tif (tinticons) {\n\t\t\t\t\t\tDrawable drawable = getIcon(mContext, param.args[0]);\n\t\t\t\t\t\t((ImageView)param.thisObject).setImageDrawable(drawable);\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t});\t\n\t\t\t\n\t\t}\n\t\t \n\t}", "protected abstract void onHideRuntime();", "@Override\n public void runOnUiThread(Runnable r) {\n }", "private GuiUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "@Override\n @SuppressWarnings(\"all\")\n public void setStatus(int arg0, String arg1) {\n\n }", "public interface BaseView {\n void onError(String errCode);\n\n void checkPermission(String... permissions);\n\n void showProgressDialog();\n void dismissProgressDialog();\n\n void onAuthFailed();\n}", "@Override\n protected void checkSubclass() {\n }", "private GUIMain() {\n\t}", "public AccessibleContext getAccessibleContext()\n/* */ {\n/* 106 */ if (this.accessibleContext == null) {\n/* 107 */ this.accessibleContext = new AccessibleAWTPanel();\n/* */ }\n/* 109 */ return this.accessibleContext;\n/* */ }", "@Override\n\t/**\n\t * does nothing because a class cannot be static\n\t */\n\tpublic void setStatic(boolean b) {\n\n\t}", "public interface IdleView extends BaseMVPView {\n}", "private PullUISingleton() {\n\t\tsuper.setTitle(\"Welcome to Pulls\");\n\t\tsuper.setSize(320, 550);\n\t\tsuper.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE); // \n\t\tsuper.setLocationRelativeTo(null);\n\t\tsuper.setResizable(false);\n\t\t\n\t\tsuper.addWindowListener(new WindowAdapter() {\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tMyPullsUISingleton myPullsUISingleton = MyPullsUISingleton.getInstance();\n\t\t\t\tmyPullsUISingleton.setVisible(false);\n\t\t\t\t\n\t\t\t\tLoginUISingleton loginUI = LoginUISingleton.getInstance();\n\t\t\t\tloginUI.setVisible(true);\n\t\t\t\t\n\t\t\t\tsession.setSession(false);\n\t\t\t}\n\t\t});\n\t\t\n\t\tcontrollersUI();\n\t}", "public HotelworkerInfouiController() {\n\t\tuserbl = new UserController();\n\t}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "private UI_Layer() {\n System.out.println(\"UI_Layer Const\");\n renewGameThread(\"10\", \"140\");\n }", "public interface RemoteUnlockActivityView extends BaseView {\n void showUpdateDeviceNameResult(MdlBaseHttpResp resp);\n}", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "public void onCreate(android.os.Bundle r8) {\n /*\n r7 = this;\n android.view.Window r0 = r7.getWindow()\n r1 = 2\n r0.requestFeature(r1)\n android.view.Window r0 = r7.getWindow()\n r2 = -1\n r0.setFeatureInt(r1, r2)\n super.onCreate(r8)\n android.widget.LinearLayout r8 = new android.widget.LinearLayout // Catch:{ Exception -> 0x01e1 }\n r8.<init>(r7) // Catch:{ Exception -> 0x01e1 }\n r7.f15166b = r8 // Catch:{ Exception -> 0x01e1 }\n android.widget.LinearLayout$LayoutParams r8 = new android.widget.LinearLayout$LayoutParams // Catch:{ Exception -> 0x01e1 }\n r8.<init>(r2, r2) // Catch:{ Exception -> 0x01e1 }\n android.widget.LinearLayout r0 = r7.f15166b // Catch:{ Exception -> 0x01e1 }\n r0.setLayoutParams(r8) // Catch:{ Exception -> 0x01e1 }\n android.widget.LinearLayout r8 = r7.f15166b // Catch:{ Exception -> 0x01e1 }\n r0 = 1\n r8.setOrientation(r0) // Catch:{ Exception -> 0x01e1 }\n android.widget.LinearLayout r8 = r7.f15166b // Catch:{ Exception -> 0x01e1 }\n java.lang.String r3 = \"IAInternalBrowserView\"\n r8.setContentDescription(r3) // Catch:{ Exception -> 0x01e1 }\n android.widget.RelativeLayout r8 = new android.widget.RelativeLayout // Catch:{ Exception -> 0x01e1 }\n r8.<init>(r7) // Catch:{ Exception -> 0x01e1 }\n android.widget.LinearLayout$LayoutParams r3 = new android.widget.LinearLayout$LayoutParams // Catch:{ Exception -> 0x01e1 }\n r4 = -2\n r3.<init>(r2, r4) // Catch:{ Exception -> 0x01e1 }\n r8.setLayoutParams(r3) // Catch:{ Exception -> 0x01e1 }\n android.widget.LinearLayout r3 = r7.f15166b // Catch:{ Exception -> 0x01e1 }\n r3.addView(r8) // Catch:{ Exception -> 0x01e1 }\n android.widget.LinearLayout r3 = new android.widget.LinearLayout // Catch:{ Exception -> 0x01e1 }\n r3.<init>(r7) // Catch:{ Exception -> 0x01e1 }\n r3.setId(r0) // Catch:{ Exception -> 0x01e1 }\n android.widget.RelativeLayout$LayoutParams r4 = new android.widget.RelativeLayout$LayoutParams // Catch:{ Exception -> 0x01e1 }\n android.content.res.Resources r5 = r7.getResources() // Catch:{ Exception -> 0x01e1 }\n int r6 = com.fyber.inneractive.sdk.C7636R.integer.ia_ib_toolbar_height_dp // Catch:{ Exception -> 0x01e1 }\n int r5 = r5.getInteger(r6) // Catch:{ Exception -> 0x01e1 }\n int r5 = com.fyber.inneractive.sdk.util.C8006j.m18072b(r5) // Catch:{ Exception -> 0x01e1 }\n r4.<init>(r2, r5) // Catch:{ Exception -> 0x01e1 }\n r5 = 12\n r4.addRule(r5) // Catch:{ Exception -> 0x01e1 }\n r3.setLayoutParams(r4) // Catch:{ Exception -> 0x01e1 }\n int r4 = com.fyber.inneractive.sdk.C7636R.drawable.ia_ib_background // Catch:{ Exception -> 0x01e1 }\n android.graphics.drawable.Drawable r4 = com.fyber.inneractive.sdk.util.C8006j.m18074c(r4) // Catch:{ Exception -> 0x01e1 }\n com.fyber.inneractive.sdk.util.C8006j.m18071a(r3, r4) // Catch:{ Exception -> 0x01e1 }\n r8.addView(r3) // Catch:{ Exception -> 0x01e1 }\n int r4 = com.fyber.inneractive.sdk.C7636R.drawable.ia_ib_left_arrow // Catch:{ Exception -> 0x01e1 }\n android.graphics.drawable.Drawable r4 = com.fyber.inneractive.sdk.util.C8006j.m18074c(r4) // Catch:{ Exception -> 0x01e1 }\n android.widget.ImageButton r4 = r7.m16882a(r4) // Catch:{ Exception -> 0x01e1 }\n r7.f15168d = r4 // Catch:{ Exception -> 0x01e1 }\n int r4 = com.fyber.inneractive.sdk.C7636R.drawable.ia_ib_right_arrow // Catch:{ Exception -> 0x01e1 }\n android.graphics.drawable.Drawable r4 = com.fyber.inneractive.sdk.util.C8006j.m18074c(r4) // Catch:{ Exception -> 0x01e1 }\n android.widget.ImageButton r4 = r7.m16882a(r4) // Catch:{ Exception -> 0x01e1 }\n r7.f15169e = r4 // Catch:{ Exception -> 0x01e1 }\n int r4 = com.fyber.inneractive.sdk.C7636R.drawable.ia_ib_refresh // Catch:{ Exception -> 0x01e1 }\n android.graphics.drawable.Drawable r4 = com.fyber.inneractive.sdk.util.C8006j.m18074c(r4) // Catch:{ Exception -> 0x01e1 }\n android.widget.ImageButton r4 = r7.m16882a(r4) // Catch:{ Exception -> 0x01e1 }\n r7.f15170f = r4 // Catch:{ Exception -> 0x01e1 }\n int r4 = com.fyber.inneractive.sdk.C7636R.drawable.ia_ib_close // Catch:{ Exception -> 0x01e1 }\n android.graphics.drawable.Drawable r4 = com.fyber.inneractive.sdk.util.C8006j.m18074c(r4) // Catch:{ Exception -> 0x01e1 }\n android.widget.ImageButton r4 = r7.m16882a(r4) // Catch:{ Exception -> 0x01e1 }\n r7.f15171g = r4 // Catch:{ Exception -> 0x01e1 }\n android.widget.ImageButton r4 = r7.f15168d // Catch:{ Exception -> 0x01e1 }\n r3.addView(r4) // Catch:{ Exception -> 0x01e1 }\n android.widget.ImageButton r4 = r7.f15169e // Catch:{ Exception -> 0x01e1 }\n r3.addView(r4) // Catch:{ Exception -> 0x01e1 }\n android.widget.ImageButton r4 = r7.f15170f // Catch:{ Exception -> 0x01e1 }\n r3.addView(r4) // Catch:{ Exception -> 0x01e1 }\n android.widget.ImageButton r4 = r7.f15171g // Catch:{ Exception -> 0x01e1 }\n r3.addView(r4) // Catch:{ Exception -> 0x01e1 }\n android.webkit.WebView r3 = new android.webkit.WebView // Catch:{ Exception -> 0x01e1 }\n r3.<init>(r7) // Catch:{ Exception -> 0x01e1 }\n r7.f15167c = r3 // Catch:{ Exception -> 0x01e1 }\n android.webkit.WebView r3 = r7.f15167c // Catch:{ Exception -> 0x01e1 }\n int r4 = com.fyber.inneractive.sdk.C7636R.C7637id.inneractive_webview_internal_browser // Catch:{ Exception -> 0x01e1 }\n r3.setId(r4) // Catch:{ Exception -> 0x01e1 }\n android.widget.RelativeLayout$LayoutParams r3 = new android.widget.RelativeLayout$LayoutParams // Catch:{ Exception -> 0x01e1 }\n r3.<init>(r2, r2) // Catch:{ Exception -> 0x01e1 }\n r3.addRule(r1, r0) // Catch:{ Exception -> 0x01e1 }\n android.webkit.WebView r1 = r7.f15167c // Catch:{ Exception -> 0x01e1 }\n r1.setLayoutParams(r3) // Catch:{ Exception -> 0x01e1 }\n android.webkit.WebView r1 = r7.f15167c // Catch:{ Exception -> 0x01e1 }\n r8.addView(r1) // Catch:{ Exception -> 0x01e1 }\n android.widget.LinearLayout r8 = r7.f15166b // Catch:{ Exception -> 0x01e1 }\n r7.setContentView(r8) // Catch:{ Exception -> 0x01e1 }\n android.content.Intent r8 = r7.getIntent()\n android.webkit.WebView r1 = r7.f15167c\n android.webkit.WebSettings r1 = r1.getSettings()\n r1.setJavaScriptEnabled(r0)\n r1.setSupportZoom(r0)\n r1.setBuiltInZoomControls(r0)\n r1.setUseWideViewPort(r0)\n r1.setLoadWithOverviewMode(r0)\n android.webkit.WebView r0 = r7.f15167c\n disableWebviewZoomControls(r0)\n android.webkit.WebView r0 = r7.f15167c\n com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$1 r1 = new com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$1\n r1.<init>()\n r0.setWebViewClient(r1)\n android.webkit.WebView r0 = r7.f15167c\n com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$2 r1 = new com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$2\n r1.<init>()\n r0.setWebChromeClient(r1)\n java.lang.String r0 = \"extra_url\"\n java.lang.String r8 = r8.getStringExtra(r0)\n boolean r0 = m16888b(r8)\n if (r0 == 0) goto L_0x016a\n java.lang.String r0 = \"http%3A%2F%2F\"\n boolean r0 = r8.startsWith(r0)\n if (r0 != 0) goto L_0x013f\n java.lang.String r0 = \"https%3A%2F%2F\"\n boolean r0 = r8.startsWith(r0)\n if (r0 == 0) goto L_0x012e\n goto L_0x013f\n L_0x012e:\n boolean r8 = r7.m16890c(r8)\n if (r8 == 0) goto L_0x013b\n com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$InternalBrowserListener r8 = f15165a\n if (r8 == 0) goto L_0x013b\n r8.onApplicationInBackground()\n L_0x013b:\n r7.finish()\n goto L_0x016f\n L_0x013f:\n java.lang.String r0 = \"utf-8\"\n java.lang.String r0 = java.net.URLDecoder.decode(r8, r0) // Catch:{ Exception -> 0x0154 }\n java.net.URL r1 = new java.net.URL // Catch:{ Exception -> 0x0154 }\n r1.<init>(r0) // Catch:{ Exception -> 0x0154 }\n android.webkit.WebView r8 = r7.f15167c // Catch:{ Exception -> 0x0151 }\n r8.loadUrl(r0) // Catch:{ Exception -> 0x0151 }\n goto L_0x0169\n L_0x0151:\n r8 = move-exception\n r8 = r0\n goto L_0x0155\n L_0x0154:\n r0 = move-exception\n L_0x0155:\n java.lang.StringBuilder r0 = new java.lang.StringBuilder\n java.lang.String r1 = \"Failed to open Url: \"\n r0.<init>(r1)\n r0.append(r8)\n java.lang.String r8 = r0.toString()\n com.fyber.inneractive.sdk.util.IAlog.m18023d(r8)\n r7.finish()\n L_0x0169:\n goto L_0x016f\n L_0x016a:\n android.webkit.WebView r0 = r7.f15167c\n r0.loadUrl(r8)\n L_0x016f:\n android.widget.ImageButton r8 = r7.f15168d\n r0 = 0\n r8.setBackgroundColor(r0)\n android.widget.ImageButton r8 = r7.f15168d\n com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$3 r1 = new com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$3\n r1.<init>()\n r8.setOnClickListener(r1)\n android.widget.ImageButton r8 = r7.f15168d\n java.lang.String r1 = \"IABackButton\"\n r8.setContentDescription(r1)\n android.widget.ImageButton r8 = r7.f15169e\n r8.setBackgroundColor(r0)\n android.widget.ImageButton r8 = r7.f15169e\n com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$4 r1 = new com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$4\n r1.<init>()\n r8.setOnClickListener(r1)\n android.widget.ImageButton r8 = r7.f15169e\n java.lang.String r1 = \"IAForwardButton\"\n r8.setContentDescription(r1)\n android.widget.ImageButton r8 = r7.f15170f\n r8.setBackgroundColor(r0)\n android.widget.ImageButton r8 = r7.f15170f\n com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$5 r1 = new com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$5\n r1.<init>()\n r8.setOnClickListener(r1)\n android.widget.ImageButton r8 = r7.f15170f\n java.lang.String r1 = \"IARefreshButton\"\n r8.setContentDescription(r1)\n android.widget.ImageButton r8 = r7.f15171g\n r8.setBackgroundColor(r0)\n android.widget.ImageButton r8 = r7.f15171g\n com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$6 r0 = new com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity$6\n r0.<init>()\n r8.setOnClickListener(r0)\n android.widget.ImageButton r8 = r7.f15171g\n java.lang.String r0 = \"IACloseButton\"\n r8.setContentDescription(r0)\n int r8 = android.os.Build.VERSION.SDK_INT\n r0 = 21\n if (r8 >= r0) goto L_0x01dd\n android.content.Context r8 = com.fyber.inneractive.sdk.util.C8006j.m18075n()\n android.webkit.CookieSyncManager.createInstance(r8)\n android.webkit.CookieSyncManager r8 = android.webkit.CookieSyncManager.getInstance()\n r8.startSync()\n L_0x01dd:\n com.fyber.inneractive.sdk.util.C8006j.m18079r()\n return\n L_0x01e1:\n r8 = move-exception\n r7.finish()\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.fyber.inneractive.sdk.activities.InneractiveInternalBrowserActivity.onCreate(android.os.Bundle):void\");\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:58:16.469 -0500\", hash_original_method = \"AF8954095CE356BE495ED3F59D7027C3\", hash_generated_method = \"8A9F04088767B77C663624B119E15A53\")\n \n private int _eglGetCurrentDisplay(){\n \treturn getTaintInt();\n }", "public static /* synthetic */ void m87201a(boolean z, View view) {\n int systemUiVisibility = view.getSystemUiVisibility();\n view.setSystemUiVisibility(z ? systemUiVisibility | 16 : systemUiVisibility & -17);\n }", "@Override\r\n public void updateUI() {\r\n }", "protected ApiActivityBase() {\n super();\n }", "private Rekenhulp()\n\t{\n\t}", "private NKE_BrowserWindow() {}", "@Override\n protected View getUpperView() {\n return null;\n }", "public interface AppUi {\n\n /**\n * Initializes the UI.\n *\n * @param root The layout root of app UI.\n * @param isSecureCamera Whether the app is in secure camera mode.\n * @param isCaptureIntent Whether the app is in capture intent mode.\n */\n public void init(View root, boolean isSecureCamera, boolean isCaptureIntent);\n\n /**\n * Returns the module layout root.\n */\n public FrameLayout getModuleLayoutRoot();\n\n /**\n * Returns the filmstrip controller.\n */\n public FilmstripController getFilmstripController();\n}", "private PermissionHelper() {}", "@Override\n protected void onFirstUserVisible() {\n }", "public interface MainView extends BaseView {\n\n /**\n * 初始化权限\n */\n void initPermission();\n}", "public void hideSystemUI() {\r\n if (PhotoViewActivity.this != null)\r\n PhotoViewActivity.this.runOnUiThread(new Runnable() {\r\n public void run() {\r\n toolbar.animate().translationY(-toolbar.getHeight()).setInterpolator(new AccelerateInterpolator())\r\n .setDuration(240).start();\r\n photoViewActivity.setSystemUiVisibility(\r\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\r\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\r\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\r\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION // hide nav bar\r\n | View.SYSTEM_UI_FLAG_FULLSCREEN // hide status bar\r\n | View.SYSTEM_UI_FLAG_IMMERSIVE);\r\n fullScreenMode = true;\r\n }\r\n });\r\n }", "public void showSystemUI() {\r\n if (PhotoViewActivity.this != null)\r\n PhotoViewActivity.this.runOnUiThread(new Runnable() {\r\n public void run() {\r\n toolbar.animate().translationY(Measure.getStatusBarHeight(getResources())).setInterpolator(new DecelerateInterpolator())\r\n .setDuration(240).start();\r\n photoViewActivity.setSystemUiVisibility(\r\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\r\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\r\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);\r\n fullScreenMode = false;\r\n }\r\n });\r\n\r\n }", "public interface MainView extends MvpView {\n public void setAuthorized(boolean isAuthorized);\n}", "public final /* bridge */ /* synthetic */ void mo43566a() {\n super.mo43566a();\n }" ]
[ "0.5989306", "0.56741154", "0.566593", "0.5636276", "0.558315", "0.55476713", "0.5440659", "0.54051185", "0.539476", "0.5392601", "0.53842133", "0.5369116", "0.5367516", "0.53240085", "0.5282628", "0.5267136", "0.5264293", "0.52570724", "0.52570724", "0.52570724", "0.52570724", "0.52570724", "0.52570724", "0.52570724", "0.52570724", "0.52570724", "0.52570724", "0.5255209", "0.5250773", "0.5239586", "0.522421", "0.5223751", "0.5223672", "0.5223174", "0.5205721", "0.52006066", "0.5199303", "0.5189113", "0.5186551", "0.5186269", "0.51842004", "0.5178427", "0.51734215", "0.5172287", "0.51520324", "0.51173556", "0.51071846", "0.5093083", "0.5082174", "0.5081893", "0.5070042", "0.5066497", "0.50596404", "0.50406635", "0.5033847", "0.5031875", "0.50265807", "0.50265807", "0.50246346", "0.5008142", "0.5004862", "0.49969798", "0.49880326", "0.4987886", "0.49878672", "0.49852872", "0.49850324", "0.4982967", "0.49813724", "0.49804989", "0.49792874", "0.49742565", "0.49674952", "0.49635422", "0.4959491", "0.4955662", "0.49492028", "0.49472025", "0.49468532", "0.49422815", "0.4941841", "0.49381793", "0.49374652", "0.49374652", "0.49374652", "0.49317098", "0.49313268", "0.49298584", "0.49275628", "0.4926421", "0.49261853", "0.49260038", "0.49248776", "0.49239856", "0.49218002", "0.49188077", "0.49186006", "0.4909803", "0.49077365", "0.49031797", "0.49013323" ]
0.0
-1
/ access modifiers changed from: protected
public void onPostExecute(ArrayList<UserRecord> arrayList) { if (arrayList != null) { UserSwitcherController.this.mUsers = arrayList; UserSwitcherController.this.notifyAdapters(); } }
{ "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
/ access modifiers changed from: private / access modifiers changed from: public
public void notifyAdapters() { for (int size = this.mAdapters.size() - 1; size >= 0; size--) { BaseUserAdapter baseUserAdapter = this.mAdapters.get(size).get(); if (baseUserAdapter != null) { baseUserAdapter.notifyDataSetChanged(); } else { this.mAdapters.remove(size); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "@Override\n public void perish() {\n \n }", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n public boolean isPrivate() {\n return true;\n }", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "public void myPublicMethod() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void anular() {\n\n\t}", "private TMCourse() {\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private MApi() {}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private Get() {}", "private Get() {}", "private Infer() {\n\n }", "private CommonMethods() {\n }", "private ChainingMethods() {\n // private constructor\n\n }", "public void checkPublic() {\n }", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "public final void mo51373a() {\n }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void m23075a() {\n }", "private Validations() {\n\t\tthrow new IllegalAccessError(\"Shouldn't be instantiated.\");\n\t}", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.917 -0500\", hash_original_method = \"4F6254C867328A153FDD5BD23453E816\", hash_generated_method = \"627F9C594B5D3368AD9A21A5E43D2CB8\")\n \nprivate Extensions() {}", "public void smell() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "private Singletion3() {}", "private Public() {\n super(\"public\", null);\n }", "private void m50366E() {\n }", "public abstract Object mo26777y();", "public void method_4270() {}", "public void mo21825b() {\n }", "protected Doodler() {\n\t}", "public void mo21779D() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private URIs() {\r\n throw new IllegalAccessError();\r\n }", "public void mo38117a() {\n }", "private abstract void privateabstract();", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:02:04.534 -0500\", hash_original_method = \"E4DEB0C107DDB25A537EF0E89F1C04F8\", hash_generated_method = \"2E76AFD8C90588F5139C0C2D28CAEA05\")\n \nprivate static int translateCodingErrorAction(CodingErrorAction action) {\n if (action == CodingErrorAction.REPORT) {\n return 0;\n } else if (action == CodingErrorAction.IGNORE) {\n return 1;\n } else if (action == CodingErrorAction.REPLACE) {\n return 2;\n } else {\n throw new AssertionError(); // Someone changed the enum.\n }\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public OOP_207(){\n\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }", "private test5() {\r\n\t\r\n\t}", "@Override\n\tpublic boolean isPublic() {\n\t\treturn false;\n\t}", "private void __sep__Constructors__() {}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo97908d() {\n }", "private FlyWithWings(){\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.877 -0500\", hash_original_method = \"6B80070A6DD2FB0EB3D1E45B8D1F67CF\", hash_generated_method = \"2A1ECFC7445D74F90AF7029089D02160\")\n \nprivate Organizations() {}", "@Override\n public void memoria() {\n \n }", "@Override\n protected void init() {\n }", "@Override\n void init() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {\n\t}", "private Utils() {\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "private Mgr(){\r\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "public void mo21782G() {\n }", "@Override\n public void init() {\n }", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "public abstract void mo70713b();", "private Aliyun() {\n\t\tsuper();\n\t}", "public final void mo91715d() {\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.663 -0500\", hash_original_method = \"7BA2DC4B038FD72F399C633B1C4B5B34\", hash_generated_method = \"3D1B22AE31FE9AB2658DC3713C91A6C9\")\n \nprivate Groups() {}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "private void ss(){\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.504 -0500\", hash_original_method = \"F5E3085137E37D29F0F8CB3C296F1F57\", hash_generated_method = \"47D4A76F75042B03A266F16D90E98429\")\n \nprivate Contacts() {}", "private Utility() {\n throw new IllegalAccessError();\n }", "private Util() { }", "public void mo21877s() {\n }", "protected void mo6255a() {\n }", "void m1864a() {\r\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public Fun_yet_extremely_useless()\n {\n\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public boolean getAllowPrivateConstructors()\n {\n \treturn allowPrivateConstructors;\n }", "public void mo115188a() {\n }", "private Marinator() {\n }", "private Marinator() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "private void kk12() {\n\n\t}" ]
[ "0.7241168", "0.68845606", "0.68322766", "0.65265113", "0.64767146", "0.6446329", "0.63824195", "0.63644785", "0.6354255", "0.6348257", "0.6341761", "0.632682", "0.6302122", "0.6288175", "0.6282914", "0.62695324", "0.6257107", "0.62374574", "0.62374574", "0.6237087", "0.6225313", "0.62168074", "0.6208633", "0.6199083", "0.61926883", "0.61863506", "0.61863506", "0.61563", "0.6127417", "0.6121096", "0.61177164", "0.61069244", "0.6101914", "0.6099539", "0.60986406", "0.6088406", "0.6084343", "0.60762256", "0.6075294", "0.60752785", "0.60723644", "0.60723644", "0.60623664", "0.60518336", "0.6051247", "0.6046727", "0.604268", "0.604268", "0.6042152", "0.6041901", "0.6036393", "0.601905", "0.6017837", "0.6012634", "0.5999185", "0.59911543", "0.5974554", "0.5971437", "0.5968002", "0.59600544", "0.59556913", "0.5947526", "0.5946513", "0.5944072", "0.5943961", "0.5943961", "0.5936288", "0.5936288", "0.5936288", "0.5936288", "0.593368", "0.593368", "0.5930449", "0.59239346", "0.5921108", "0.59187365", "0.5917557", "0.59134316", "0.5906737", "0.59035766", "0.59024006", "0.59003526", "0.5899198", "0.58991855", "0.5895608", "0.58872414", "0.588058", "0.58763134", "0.5875556", "0.5872552", "0.5866095", "0.5857231", "0.58532053", "0.5851447", "0.5849608", "0.58483994", "0.5843968", "0.5843968", "0.5842728", "0.5842689", "0.58420867" ]
0.0
-1
/ access modifiers changed from: private / renamed from: lambda$useFullscreenUserSwitcher$0
public /* synthetic */ Integer lambda$useFullscreenUserSwitcher$0$UserSwitcherController() { return Integer.valueOf(Settings.System.getInt(this.mContext.getContentResolver(), "enable_fullscreen_user_switcher", -1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t public void toggledFullscreen(boolean fullscreen)\n\t\t {\n\t\t }", "@Override\n public void onFullscreen(boolean b) {\n if (!b) {\n finish();\n }\n }", "public void fullscreenChanged(FullscreenEvent e);", "@Override\n public boolean isFullScreen() {\n return false;\n }", "public void setFullscreen() {\n\n setFullscreen(true);\n }", "private static void setFullScreen() {\n\t\tif (Keyboard.isKeyDown(28) && Keyboard.isKeyDown(56)) {\n\t\t\tif (Display.isActive()) {\n\t\t\t\tif (!Display.isFullscreen()) {\n\t\t\t\t\tDisplayManager.setDisplayMode(DisplayManager.getMaxWidth(), DisplayManager.getMaxHeight(), true);\n\t\t\t\t Display.setVSyncEnabled(true);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tDisplayManager.setDisplayMode(DisplayManager.getMaxWidth(), DisplayManager.getMaxHeight(), false);\n\t\t\t\t Display.setVSyncEnabled(false);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void disableFullscreen() {\n mainContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION);\r\n isFullscreen = false;\r\n\r\n // Schedule a runnable to display UI elements after a delay\r\n fullscreenHandler.removeCallbacks(enableFullscreenRunnable);\r\n fullscreenHandler.postDelayed(disableFullscreenRunnable, UI_ANIMATION_DELAY);\r\n }", "public void makeFullScreen() {\n currentApiVersion = android.os.Build.VERSION.SDK_INT;\n final int flags = View.SYSTEM_UI_FLAG_LAYOUT_STABLE |\n View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION |\n View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION |\n View.SYSTEM_UI_FLAG_FULLSCREEN | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY;\n if (currentApiVersion >= Build.VERSION_CODES.KITKAT) {\n getWindow().getDecorView().setSystemUiVisibility(flags);\n final View decorView = getWindow().getDecorView();\n decorView.setOnSystemUiVisibilityChangeListener(new View.OnSystemUiVisibilityChangeListener() {\n @Override\n public void onSystemUiVisibilityChange(int visibility) {\n if ((visibility & View.SYSTEM_UI_FLAG_FULLSCREEN) == 0) {\n decorView.setSystemUiVisibility(flags);\n }\n }\n });\n }\n }", "public interface FullscreenListener extends EventListener {\n\t\n\t/**\n\t * Informa ao objeto que houve uma mudanca no modo de visualizacao do programa.\n\t * \n\t * @param e um objeto que retrata a natureza da mudanca\n\t */\n\tpublic void fullscreenChanged(FullscreenEvent e);\n}", "@SuppressLint(\"InlinedApi\")\r\n @Override\r\n public void run() {\n mainContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE\r\n | View.SYSTEM_UI_FLAG_FULLSCREEN\r\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\r\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY\r\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\r\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);\r\n }", "@Override\n public void onYouTubePlayerExitFullScreen() {\n }", "@Override // com.zhihu.android.app.p1311ui.fragment.BaseFragment\n public boolean isSystemUiFullscreen() {\n return true;\n }", "@Override // com.zhihu.android.app.p1311ui.fragment.BaseFragment\n public boolean isSystemUiFullscreen() {\n return true;\n }", "@Override\n\tpublic void onFullscreen(boolean _isFullscreen) {\n\t\tisFullScreen = _isFullscreen;\n\t\tdoLayout();\n\t}", "@Override\n\tpublic void onToggleFullScreen() {\n\t\t_isFullScreen = !_isFullScreen;\n\t\tFrameLayout.LayoutParams mNewParams;\n\t\tif(_isFullScreen)\n\t\t{\n\t\t\tmNewParams = new FrameLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT);\n\t\t\tmNewParams.gravity = Gravity.TOP | Gravity.LEFT;\n\t\t}else\n\t\t{\n\t\t\tmNewParams = new FrameLayout.LayoutParams(400, 400);\n\t\t\tmNewParams.gravity = Gravity.CENTER_VERTICAL | Gravity.CENTER_HORIZONTAL;\n\t\t}\n\t\t\n\t\t_playerViewConroller.setLayoutParams(mNewParams);\n\t}", "@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n mContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE\n | View.SYSTEM_UI_FLAG_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);\n }", "@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n mContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE\n | View.SYSTEM_UI_FLAG_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);\n }", "@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n mContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE\n | View.SYSTEM_UI_FLAG_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);\n }", "@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n mContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE\n | View.SYSTEM_UI_FLAG_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);\n }", "@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n mContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE\n | View.SYSTEM_UI_FLAG_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);\n }", "@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n mContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE\n | View.SYSTEM_UI_FLAG_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);\n }", "@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n mContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE\n | View.SYSTEM_UI_FLAG_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);\n }", "@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n mContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE\n | View.SYSTEM_UI_FLAG_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);\n }", "@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n mContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE\n | View.SYSTEM_UI_FLAG_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);\n }", "@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n mContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE\n | View.SYSTEM_UI_FLAG_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);\n }", "@Override\n public final void switchUserMode() {\n }", "private void makeFullScreen(){\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n // Make it full Screen\n getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);\n }", "@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n myrlayout.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE\n | View.SYSTEM_UI_FLAG_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);\n }", "@Override\n\tpublic void onClick(View arg0) {\n\t\tmPlayer.setFullscreen(!isFullScreen);\n\t}", "public void toggleFullscreen() {\n if (!isFullscreen) {\n setExtendedState(JFrame.MAXIMIZED_BOTH);\n } else {\n setExtendedState(JFrame.NORMAL);\n }\n isFullscreen = !isFullscreen;\n }", "@FXML\n private void handleFullScreen() {\n if (primaryStage.isFullScreen()) {\n primaryStage.setFullScreen(false);\n } else {\n primaryStage.setFullScreen(true);\n }\n }", "@Override // com.zhihu.android.app.p1311ui.fragment.BaseFragment, com.zhihu.android.app.p1311ui.fragment.webview.WebViewFragment2\n public boolean isSystemUiFullscreen() {\n return true;\n }", "private void applyFullscreenWorkaround(AlertDialog dialog) {\n\t\tdialog.getWindow().setFlags(WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE, WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE);\n\t\tdialog.setOnShowListener(x -> dialog.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE));\n\t\tint activitySystemUiVisibility = getActivity().getWindow().getDecorView().getSystemUiVisibility();\n\t\tdialog.getWindow().getDecorView().setSystemUiVisibility(activitySystemUiVisibility);\n\t}", "@Override // com.android.server.wm.WindowContainer\n public void switchUser() {\n super.switchUser();\n this.mWmService.mWindowsChanged = true;\n this.mDisplayPolicy.switchUser();\n }", "@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n gameBoard.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE\n | View.SYSTEM_UI_FLAG_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);\n\n calculateConstants();\n }", "public void setFullScreen(){\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\tgetWindow().setFlags(LayoutParams.FLAG_FULLSCREEN, LayoutParams.FLAG_FULLSCREEN);\n\t}", "@Override\n public void onScreenStatus(boolean isAs) {\n }", "@Override\n protected void onFirstUserVisible() {\n }", "private boolean shouldUseSimpleUserSwitcher() {\n return Settings.Global.getInt(this.mContext.getContentResolver(), \"lockscreenSimpleUserSwitcher\", this.mContext.getResources().getBoolean(17891459) ? 1 : 0) != 0;\n }", "public void toggleFullScreen()\n\t{\n\t\tfor (Iterator iterator = buttons.iterator(); iterator.hasNext();)\n\t\t{\n\t\t\tAbstractButton button = (AbstractButton) iterator.next();\n\t\t\tadaptButtonFacade(button);\n\t\t}\n\t\tfullScreenSupport.toggleFullScreen();\n\t}", "@Action\n public final void onJButtonFullscreen() {\n\n final FullscreenImageJFrame frame =\n new FullscreenImageJFrame(\n ImageMediaManagerLogic.getImageBy(this.getLomd()));\n\n SWTGUIApp.getApplication().show(frame);\n\n this.refresh();\n\n }", "public void FullScreencall() {\n View decorView = getWindow().getDecorView();\n int uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY;\n decorView.setSystemUiVisibility(uiOptions);\n }", "@Override\n public void onAdShowedFullScreenContent() {\n Log.d(TAG, \"Ad showed fullscreen content.\");\n if (hasListeners(AdmobModule.AD_SHOWED_FULLSCREEN_CONTENT)) {\n fireEvent(AdmobModule.AD_SHOWED_FULLSCREEN_CONTENT, new KrollDict());\n }\n }", "public boolean supportShowOnScreenLocked() {\n return false;\n }", "public interface InCallEventListener {\n public void onFullscreenModeChanged(boolean isFullscreenMode);\n }", "public void makeFullscreen(long monitor){\n //Fullscreen, keep the size and the resolution\n\n //Skip if already fullscreen\n if(type == Type.FULLSCREEN){\n return;\n }\n\n //Retrieve the monitor's video mode\n monitorID = monitor;\n GLFWVidMode mode = glfwGetVideoMode(monitorID);\n\n //Change the window\n glfwSetWindowMonitor(\n handle,\n monitorID,\n 0,\n 0,\n size.x,\n size.y,\n mode.refreshRate()\n );\n position.set(0f, 0f);\n type = Type.FULLSCREEN;\n\n //Fire the resize event\n sizeMultiplexer.handle(new WindowSizeEvent(handle, size.x, size.y));\n }", "@Override\n protected void screenMode(int mode) {\n\n }", "static void maximumWindow(View decorView) {\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_IMMERSIVE\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_FULLSCREEN);\n }", "public void setFullScreen() {\r\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\r\n Window window = getWindow();\r\n window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS\r\n | WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);\r\n window.getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\r\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\r\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE);\r\n window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);\r\n window.setStatusBarColor(Color.TRANSPARENT);\r\n window.setNavigationBarColor(Color.TRANSPARENT);\r\n }\r\n }", "public void showSystemUI() {\r\n if (PhotoViewActivity.this != null)\r\n PhotoViewActivity.this.runOnUiThread(new Runnable() {\r\n public void run() {\r\n toolbar.animate().translationY(Measure.getStatusBarHeight(getResources())).setInterpolator(new DecelerateInterpolator())\r\n .setDuration(240).start();\r\n photoViewActivity.setSystemUiVisibility(\r\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\r\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\r\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);\r\n fullScreenMode = false;\r\n }\r\n });\r\n\r\n }", "@Override\r\npublic void setOnScreen(boolean os) {\n}", "public abstract void onFirstUserVisible();", "@Override\n public void onSystemUiVisibilityChange(int visibility) {\n if ((visibility & View.SYSTEM_UI_FLAG_FULLSCREEN) == 0) {\n // TODO: The system bars are visible. Make any desired\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n decorView.setSystemUiVisibility(uiOptions);\n }\n }, 2000);\n } else {\n // TODO: The system bars are NOT visible. Make any desired\n // adjustments to your UI, such as hiding the action bar or\n // other navigational controls.\n }\n }", "@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n int flags = View.SYSTEM_UI_FLAG_LOW_PROFILE\n | View.SYSTEM_UI_FLAG_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION;\n\n Activity activity = getActivity();\n if (activity != null\n && activity.getWindow() != null) {\n activity.getWindow().getDecorView().setSystemUiVisibility(flags);\n }\n ActionBar actionBar = getSupportActionBar();\n if (actionBar != null) {\n actionBar.hide();\n }\n\n }", "private void changeToPhotoIdleView(boolean bl) {\n this.changeLayoutTo(DefaultLayoutPattern.PREVIEW);\n if (!this.isHeadUpDesplayReady()) {\n return;\n }\n super.changeScreenButtonImage(BaseFastViewFinder.HeadUpDisplaySetupState.PHOTO_STANDBY, false);\n if (bl) {\n this.mFocusRectangles.clearExceptTouchFocus();\n } else {\n this.mFocusRectangles.onUiComponentRemoved();\n }\n this.mFocusRectangles.onRecordingStop();\n if (this.mCameraDevice.getCameraId() == 0) {\n super.setSceneIndicatorVisibleAllNotificationIndicators(1);\n }\n this.getBaseLayout().showLeftIconContainer();\n this.setOrientation(this.getOrientation());\n }", "public void onShowCameraClicked(View view) {\n if (mUIState == UIState.CONNECTED_FULLSCREEN) {\n // Toggle to split screen while showing remote camera\n if (mRemoteCameraUid != 0)\n setupRemoteVideo(mRemoteCameraUid, mRemoteCameraContainer);\n removeRemoteShare();\n setupRemoteVideo(WINDOW_SHARE_UID, mRemoteShareContainerSplit);\n setUIState(UIState.CONNECTED_SPLITSCREEN);\n } else if (mUIState == UIState.CONNECTED_SPLITSCREEN) {\n // Toggle to full screen while hiding remote camera\n removeRemoteCamera();\n removeRemoteShare();\n setupRemoteVideo(WINDOW_SHARE_UID, mRemoteShareContainerFull);\n setUIState(UIState.CONNECTED_FULLSCREEN);\n }\n }", "@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n mapView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE\n | View.SYSTEM_UI_FLAG_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);\n }", "@Override\n public void mouseDoubleClick(MouseEvent event)\n {\n System.out.println(\"Full screen: \" + childShell.getFullScreen());\n \n childShell.setFullScreen(! childShell.getFullScreen());\n \n System.out.println(\"Full screen: \" + childShell.getFullScreen()); \n }", "@Override\n\tpublic void showUserPasswordNextScreen() {\n\t\tLog.d(TAG,\"showUserPasswordNextScreen\");\n\t\tif(ParentActivity.AnimationRunningFlag == true)\n\t\t\treturn;\n\t\telse\n\t\t\tParentActivity.StartAnimationRunningTimer();\n\t\t\n\t\tParentActivity._MenuBaseFragment.showBodyESL();\n\t\t\n\t\tParentActivity.OldScreenIndex = Home.SCREEN_STATE_MENU_MODE_ETC_AUTOSHUTDOWN_PW;\n\t}", "public static void goFullScreen(Activity activity) {\r\n activity.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,\r\n WindowManager.LayoutParams.FLAG_FULLSCREEN);\r\n }", "public Window getFullScreenWindow(){\n return vc.getFullScreenWindow();\n }", "@Override\r\n protected void onScreenActivate() {\n if (Forge.isLandscapeMode() && displaySidebarForLandscapeMode()) {\r\n menu.hide();\r\n menu.show(getLeft(), 0, getWidth(), getHeight());\r\n }\r\n }", "@Override\n public void handle(KeyEvent e) {\n if (e.getCode() == KeyCode.F11) {\n primaryStage.setFullScreen(!primaryStage.isFullScreen());\n }\n }", "public void actionPerformed(ActionEvent e)\n\t{\n\t\ttoggleFullScreen();\n\t}", "@Override\n public boolean onTouchEvent(MotionEvent event) {\n super.onTouchEvent(event);\n// if(event.getAction() == MotionEvent.ACTION_DOWN) {\n//\n// int x = (int) event.getX();\n// int y = (int) event.getY();\n//\n// Rect cameraRect = new Rect();\n// camera.getHitRect(cameraRect);\n//\n// Rect toolbarRect = new Rect();\n// myToolbar.getHitRect(toolbarRect);\n//\n// if (!cameraRect.contains(x, y) && !toolbarRect.contains(x, y) && !isFullscreen) {\n// doFullscreen(1);\n// isFullscreen = true;\n// } else {\n// doFullscreen(-1);\n// isFullscreen = false;\n// }\n// }\n return false;\n }", "private void handle_mode_display() {\n\t\t\t\n\t\t}", "public void toggleSystemUI() {\r\n if (fullScreenMode)\r\n showSystemUI();\r\n else hideSystemUI();\r\n }", "private void showSystemUI() {\n photoView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);\n isShowingSystemUI = true;\n }", "public void hideSystemUI() {\r\n if (PhotoViewActivity.this != null)\r\n PhotoViewActivity.this.runOnUiThread(new Runnable() {\r\n public void run() {\r\n toolbar.animate().translationY(-toolbar.getHeight()).setInterpolator(new AccelerateInterpolator())\r\n .setDuration(240).start();\r\n photoViewActivity.setSystemUiVisibility(\r\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\r\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\r\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\r\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION // hide nav bar\r\n | View.SYSTEM_UI_FLAG_FULLSCREEN // hide status bar\r\n | View.SYSTEM_UI_FLAG_IMMERSIVE);\r\n fullScreenMode = true;\r\n }\r\n });\r\n }", "public void setFullscreen(boolean actionBarDisabled) {\n\n if (Build.VERSION.SDK_INT < 16) {\n\n activity.getWindow().setFlags(\n WindowManager.LayoutParams.FLAG_FULLSCREEN,\n WindowManager.LayoutParams.FLAG_FULLSCREEN);\n\n } else {\n\n View decorView = activity.getWindow().getDecorView();\n\n // Hide the status bar.\n decorView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_FULLSCREEN);\n\n // Remember that you should never show the action bar if the\n // status bar is hidden, so hide that too if necessary.\n ActionBar actionBar = activity.getSupportActionBar();\n\n if (actionBar != null && actionBarDisabled) {\n actionBar.hide();\n }\n }\n }", "@Override\n public void onInitializationSuccess(YouTubePlayer.Provider provider, YouTubePlayer youTubePlayer, boolean b) {\n if (!b) {\n youTubePlayer.setFullscreen(true);\n youTubePlayer.loadVideo(movie.getVideoKey());\n }\n }", "@Override\n public void ChangeMode() {\n if (getRequestedOrientation() != ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) {\n\n\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);\n\n WindowManager.LayoutParams attrs = getWindow().getAttributes();\n attrs.flags |= WindowManager.LayoutParams.FLAG_FULLSCREEN;\n getWindow().setAttributes(attrs);\n getWindow().addFlags(\n WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);\n\n\n RelativeLayout.LayoutParams layoutParams =\n new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.FILL_PARENT, RelativeLayout.LayoutParams.FILL_PARENT);\n layoutParams.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);\n layoutParams.addRule(RelativeLayout.ALIGN_PARENT_TOP);\n layoutParams.addRule(RelativeLayout.ALIGN_PARENT_LEFT);\n layoutParams.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);\n\n videoView.setLayoutParams(layoutParams);\n otherview.setVisibility(View.GONE);\n\n ivSendGift.setVisibility(View.GONE);\n\n\n } else {\n\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n\n WindowManager.LayoutParams attrs = getWindow().getAttributes();\n attrs.flags &= (~WindowManager.LayoutParams.FLAG_FULLSCREEN);\n getWindow().setAttributes(attrs);\n getWindow().clearFlags(\n WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);\n\n\n RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.FILL_PARENT, 240);\n ivSendGift.setVisibility(View.VISIBLE);\n videoView.setLayoutParams(lp);\n otherview.setVisibility(View.VISIBLE);\n\n\n }\n }", "private /* varargs */ void onViewFinderStateChanged(StateMachine.CaptureState captureState, Object ... arrobject) {\n switch (.$SwitchMap$com$sonyericsson$android$camera$fastcapturing$StateMachine$CaptureState[captureState.ordinal()]) {\n default: {\n return;\n }\n case 3: {\n super.resumeView();\n this.mSurfaceView.setVisibility(0);\n return;\n }\n case 4: {\n this.mCurrentDisplayingUiComponent = null;\n super.changeToPhotoIdleView(false);\n if (arrobject != null && arrobject.length != 0) {\n if ((BaseFastViewFinder.UiComponentKind)arrobject[0] == BaseFastViewFinder.UiComponentKind.ZOOM_BAR) return;\n this.requestToDimSystemUi();\n return;\n }\n this.requestToDimSystemUi();\n return;\n }\n case 5: {\n super.changeToPhotoSelftimerView();\n return;\n }\n case 6: \n case 7: {\n super.changeToPhotoZoomingView();\n return;\n }\n case 8: {\n this.mCurrentDisplayingUiComponent = (BaseFastViewFinder.UiComponentKind)arrobject[0];\n super.changeToPhotoDialogView(this.mCurrentDisplayingUiComponent);\n this.requestToRecoverSystemUi();\n return;\n }\n case 9: \n case 10: {\n this.requestToRemoveSystemUi();\n super.changeToPhotoFocusSearchView();\n return;\n }\n case 11: {\n super.changeToPhotoFocusSearchView();\n return;\n }\n case 12: \n case 13: {\n super.changeToPhotoFocusDoneView((Boolean)arrobject[0]);\n return;\n }\n case 14: {\n super.changeToPhotoCaptureWaitForAfDoneView();\n return;\n }\n case 15: {\n super.changeToPhotoCaptureView();\n return;\n }\n case 16: \n case 17: {\n super.changeToPhotoBurstView((Boolean)arrobject[0]);\n return;\n }\n case 18: {\n if (this.mFocusRectangles != null) {\n this.mFocusRectangles.clearExceptTouchFocus();\n }\n this.getBaseLayout().showContentsViewController();\n return;\n }\n case 19: {\n super.changeToVideoRecordingView();\n this.requestToDimSystemUi();\n return;\n }\n case 20: {\n super.changeToVideoRecordingView();\n if (arrobject != null && arrobject.length != 0) {\n if ((BaseFastViewFinder.UiComponentKind)arrobject[0] == BaseFastViewFinder.UiComponentKind.ZOOM_BAR) return;\n this.requestToDimSystemUi();\n return;\n }\n this.requestToDimSystemUi();\n return;\n }\n case 24: \n case 25: {\n super.changeToVideoZoomingWhileRecordingView();\n return;\n }\n case 26: {\n super.hideTakePictureFeedbackView();\n this.mSurfaceView.setVisibility(8);\n super.pauseView();\n super.changeToPauseView();\n return;\n }\n case 27: {\n if (this.mFocusRectangles != null) {\n this.mFocusRectangles.clearAllFocus();\n }\n super.changeToPhotoIdleView(false);\n this.requestToDimSystemUi();\n return;\n }\n case 28: {\n this.mSurfaceView.getHolder().removeCallback((SurfaceHolder.Callback)this);\n this.mSurfaceView = null;\n super.hideTakePictureFeedbackView();\n this.mSurfaceBlinderView = null;\n this.mKeyEventTranslator = null;\n this.release();\n super.getDownHeadUpDisplay();\n return;\n }\n case 29: {\n super.changeToVideoRecordingPauseView();\n return;\n }\n case 30: {\n this.mVideoAutoReviewSetting = null;\n return;\n }\n case 31: \n }\n this.requestToRemoveSystemUi();\n super.changeToReadyForRecordView();\n }", "public void onSeamlessRotationTimeout() {\n this.mTmpWindow = null;\n forAllWindows((Consumer<WindowState>) new Consumer() {\n /* class com.android.server.wm.$$Lambda$DisplayContent$vn2WRFHoZv7DB3bbwsmraKDpl0I */\n\n @Override // java.util.function.Consumer\n public final void accept(Object obj) {\n DisplayContent.this.lambda$onSeamlessRotationTimeout$25$DisplayContent((WindowState) obj);\n }\n }, true);\n if (this.mTmpWindow != null) {\n this.mWmService.mWindowPlacerLocked.performSurfacePlacement();\n }\n this.mWmService.handleResumeDispModeChange();\n }", "private void showSystemUi()\n\t{\n\t\tif (android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.HONEYCOMB)\n\t\t\treturn;\n\n\t\tmUnityPlayer.setSystemUiVisibility(mUnityPlayer.getSystemUiVisibility() & ~getLowProfileFlag());\n\t}", "@Override\r\n \t public void onSystemUiVisibilityChange(int visibility) {\n \t if ((visibility & View.SYSTEM_UI_FLAG_FULLSCREEN) == 0) {\r\n \t // TODO: The system bars are visible.\r\n \t \thideSystemUI();\r\n \t } else {\r\n \t // TODO: The system bars are NOT visible. \r\n \t }\r\n \t }", "private void addUiVisibilityChangeListener()\n\t{\n\t\tif (android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.HONEYCOMB)\n\t\t\treturn;\n\n\t\tmUnityPlayer.setOnSystemUiVisibilityChangeListener(new View.OnSystemUiVisibilityChangeListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void onSystemUiVisibilityChange(final int visibility)\n\t\t\t{\n\t\t\t\t// Whatever changes - force status/nav bar to be visible\n\t\t\t\tshowSystemUi();\n\t\t\t}\n\t\t});\n\t}", "@Override\r\npublic boolean isOnScreen() {\nreturn false;\r\n}", "private void videoVisible() {\n }", "@Override\r\n public void onInitializationSuccess(YouTubePlayer.Provider provider, YouTubePlayer player, boolean wasRestored) {\n this.player = player;\r\n player.setFullscreenControlFlags(YouTubePlayer.FULLSCREEN_FLAG_CUSTOM_LAYOUT);\r\n YouTubePlayer.PlayerStyle style = YouTubePlayer.PlayerStyle.MINIMAL; // 全画面表示ボタンを削除\r\n player.setPlayerStyle(style); // https://codeday.me/jp/qa/20190314/402078.html\r\n\r\n //Tell the player how to control the change\r\n //player.setOnFullscreenListener(new YouTubePlayer.OnFullscreenListener(){\r\n // @Override\r\n // public void onFullscreen(boolean arg0) {\r\n // do full screen stuff here, or don't. I started a YouTubeStandalonePlayer\r\n // to go to full screen\r\n // }});\r\n\r\n // YouTubeの動画IDを設定\r\n if (!wasRestored) {\r\n player.cueVideo(watch_id);\r\n //player.loadVideo(watch_id);\r\n }\r\n }", "protected void onScreenActivate() {\r\n }", "public void usePreviewWindow(boolean yesno);", "public static void setFULLSCREEN(boolean FULLSCREEN) {\n Configuration.FULLSCREEN = FULLSCREEN;\n }", "private void updateUserInputMode(GameContainer gc) {\n if ( gc.getInput().isKeyDown(KeyEvent.VK_F1) ) {\n mode = 0;\n }\n if ( gc.getInput().isKeyDown(KeyEvent.VK_F2) ) {\n mode = 1;\n }\n if ( gc.getInput().isKeyDown(KeyEvent.VK_F3) ) {\n mode = 2;\n }\n if ( gc.getInput().isKeyDown(KeyEvent.VK_F4) ) {\n mode = 3;\n }\n }", "default void welcomeScreenDisplayed() {\n }", "void enableFlipMode();", "private void initVideo(String videoPath) {\n JCVideoPlayerStandard.startFullscreen(this, JCVideoPlayerStandard.class,\n videoPath,\"\");\n\n\n\n\n\n }", "public void swingMainHand ( ) {\n\t\texecute ( handle -> handle.swingMainHand ( ) );\n\t}", "public void onReturnMainScreen() {\r\n\t\tif (mVideoView != null) {\r\n\t\t\tmVideoView.stopPlayback();\r\n\t\t\tmVideoView.setVisibility(View.GONE);\r\n\t\t}\r\n\t}", "public void maximalizeIconClicked(MouseEvent event) {\n if (stage.isFullScreen())\n stage.setFullScreen(false);\n else\n stage.setFullScreen(true);\n }", "@Override\n protected int getCustomTheme()\n {\n return R.style.MwmTheme_DialogFragment_Fullscreen;\n }", "private void fullscreen() {\n Intent intent = DocumentImageFullScreenActivity.newIntent( getContext(), adapter.getItems(), index );\n startActivityForResult(intent, REQUEST_CODE_INDEX);\n }", "public void setFullscreenFeature(final android.view.Window androidWindow, final boolean fullscreen) {\r\n if(null == androidWindow) {\r\n throw new IllegalArgumentException(\"Android or Window null\");\r\n }\r\n\r\n if( fullscreen ) {\r\n androidWindow.requestFeature(android.view.Window.FEATURE_NO_TITLE);\r\n androidWindow.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);\r\n androidWindow.clearFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);\r\n } else {\r\n androidWindow.addFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);\r\n androidWindow.clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);\r\n }\r\n }", "@Override\n public void showAuthScreen() {\n }", "public void react()\r\n {\r\n backButton.setOnAction(e -> {\r\n //powrot do panelu uzytkownika\r\n Main.userPanel = new UserPanel();\r\n Main.userPanel.show();\r\n });\r\n }", "private void showSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);\n }", "private void showSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);\n }", "private void showSystemUI() {\n View decorView = getWindow().getDecorView();\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);\n }", "@TargetApi(Build.VERSION_CODES.KITKAT_WATCH)\n private void init() {\n setFitsSystemWindows(false);\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT_WATCH) {\n setOnApplyWindowInsetsListener((view, insets) -> {\n if (getHeaderCount() == 0) {\n return FullscreenNavigationView.this.onApplyWindowInsets(insets);\n }\n return getHeaderView(0).onApplyWindowInsets(insets);\n });\n }\n }", "@Override\n public void makeVisible(Player viewer) {\n \n }" ]
[ "0.7213686", "0.6548608", "0.65401727", "0.6491778", "0.6354118", "0.63097227", "0.6238327", "0.6100996", "0.60854197", "0.6075731", "0.60525334", "0.60476553", "0.60476553", "0.6039725", "0.6029027", "0.600691", "0.600691", "0.600691", "0.600691", "0.600691", "0.600691", "0.600691", "0.600691", "0.600691", "0.600691", "0.5996851", "0.59848005", "0.59498674", "0.59330463", "0.59293187", "0.58704627", "0.5826573", "0.5812071", "0.5778675", "0.5778222", "0.57665724", "0.5708472", "0.5706111", "0.56934714", "0.5628972", "0.5620417", "0.5612867", "0.558576", "0.5574285", "0.5564398", "0.5563735", "0.55579", "0.5539461", "0.5518921", "0.55161095", "0.5468168", "0.54671484", "0.5447406", "0.5434588", "0.5434167", "0.54334587", "0.54276955", "0.5420253", "0.5416949", "0.5415375", "0.53982353", "0.53861725", "0.5358658", "0.53544295", "0.53517854", "0.5342177", "0.53394747", "0.53241134", "0.5322211", "0.5320962", "0.5291563", "0.5290759", "0.52665037", "0.5253989", "0.5252821", "0.52446574", "0.5240668", "0.52370524", "0.52289736", "0.5215511", "0.5213938", "0.5206819", "0.5204709", "0.5194508", "0.5169005", "0.51657075", "0.51607996", "0.5160359", "0.5157498", "0.5155687", "0.5152982", "0.51479334", "0.5128059", "0.51257515", "0.5110652", "0.510863", "0.510863", "0.510863", "0.5103715", "0.5101296" ]
0.73872846
0
/ access modifiers changed from: protected
public void switchToUserId(int i) { try { pauseRefreshUsers(); ActivityManager.getService().switchUser(i); } catch (RemoteException e) { Log.e("UserSwitcherController", "Couldn't switch user.", e); } }
{ "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
/ access modifiers changed from: protected
public void showExitGuestDialog(int i, int i2) { Dialog dialog = this.mExitGuestDialog; if (dialog != null && dialog.isShowing()) { this.mExitGuestDialog.cancel(); } ExitGuestDialog exitGuestDialog = new ExitGuestDialog(this.mContext, i, i2); this.mExitGuestDialog = exitGuestDialog; exitGuestDialog.show(); }
{ "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
/ access modifiers changed from: protected
public void exitGuest(int i, int i2) { switchToUserId(i2); this.mUserManager.removeUser(i); }
{ "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
/ access modifiers changed from: private / access modifiers changed from: public
private void checkIfAddUserDisallowedByAdminOnly(UserRecord userRecord) { RestrictedLockUtils.EnforcedAdmin checkIfRestrictionEnforced = RestrictedLockUtilsInternal.checkIfRestrictionEnforced(this.mContext, "no_add_user", ActivityManager.getCurrentUser()); if (checkIfRestrictionEnforced == null || RestrictedLockUtilsInternal.hasBaseUserRestriction(this.mContext, "no_add_user", ActivityManager.getCurrentUser())) { userRecord.isDisabledByAdmin = false; userRecord.enforcedAdmin = null; return; } userRecord.isDisabledByAdmin = true; userRecord.enforcedAdmin = checkIfRestrictionEnforced; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "@Override\n public void perish() {\n \n }", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n public boolean isPrivate() {\n return true;\n }", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "public void myPublicMethod() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void anular() {\n\n\t}", "private TMCourse() {\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private MApi() {}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private Get() {}", "private Get() {}", "private Infer() {\n\n }", "private CommonMethods() {\n }", "private ChainingMethods() {\n // private constructor\n\n }", "public void checkPublic() {\n }", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "public final void mo51373a() {\n }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void m23075a() {\n }", "private Validations() {\n\t\tthrow new IllegalAccessError(\"Shouldn't be instantiated.\");\n\t}", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.917 -0500\", hash_original_method = \"4F6254C867328A153FDD5BD23453E816\", hash_generated_method = \"627F9C594B5D3368AD9A21A5E43D2CB8\")\n \nprivate Extensions() {}", "public void smell() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "private Singletion3() {}", "private Public() {\n super(\"public\", null);\n }", "private void m50366E() {\n }", "public abstract Object mo26777y();", "public void method_4270() {}", "public void mo21825b() {\n }", "protected Doodler() {\n\t}", "public void mo21779D() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private URIs() {\r\n throw new IllegalAccessError();\r\n }", "public void mo38117a() {\n }", "private abstract void privateabstract();", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:02:04.534 -0500\", hash_original_method = \"E4DEB0C107DDB25A537EF0E89F1C04F8\", hash_generated_method = \"2E76AFD8C90588F5139C0C2D28CAEA05\")\n \nprivate static int translateCodingErrorAction(CodingErrorAction action) {\n if (action == CodingErrorAction.REPORT) {\n return 0;\n } else if (action == CodingErrorAction.IGNORE) {\n return 1;\n } else if (action == CodingErrorAction.REPLACE) {\n return 2;\n } else {\n throw new AssertionError(); // Someone changed the enum.\n }\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public OOP_207(){\n\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }", "private test5() {\r\n\t\r\n\t}", "@Override\n\tpublic boolean isPublic() {\n\t\treturn false;\n\t}", "private void __sep__Constructors__() {}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo97908d() {\n }", "private FlyWithWings(){\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.877 -0500\", hash_original_method = \"6B80070A6DD2FB0EB3D1E45B8D1F67CF\", hash_generated_method = \"2A1ECFC7445D74F90AF7029089D02160\")\n \nprivate Organizations() {}", "@Override\n public void memoria() {\n \n }", "@Override\n protected void init() {\n }", "@Override\n void init() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {\n\t}", "private Utils() {\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "private Mgr(){\r\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "public void mo21782G() {\n }", "@Override\n public void init() {\n }", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "public abstract void mo70713b();", "private Aliyun() {\n\t\tsuper();\n\t}", "public final void mo91715d() {\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.663 -0500\", hash_original_method = \"7BA2DC4B038FD72F399C633B1C4B5B34\", hash_generated_method = \"3D1B22AE31FE9AB2658DC3713C91A6C9\")\n \nprivate Groups() {}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "private void ss(){\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.504 -0500\", hash_original_method = \"F5E3085137E37D29F0F8CB3C296F1F57\", hash_generated_method = \"47D4A76F75042B03A266F16D90E98429\")\n \nprivate Contacts() {}", "private Utility() {\n throw new IllegalAccessError();\n }", "private Util() { }", "public void mo21877s() {\n }", "protected void mo6255a() {\n }", "void m1864a() {\r\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public Fun_yet_extremely_useless()\n {\n\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public boolean getAllowPrivateConstructors()\n {\n \treturn allowPrivateConstructors;\n }", "public void mo115188a() {\n }", "private Marinator() {\n }", "private Marinator() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "private void kk12() {\n\n\t}" ]
[ "0.7241168", "0.68845606", "0.68322766", "0.65265113", "0.64767146", "0.6446329", "0.63824195", "0.63644785", "0.6354255", "0.6348257", "0.6341761", "0.632682", "0.6302122", "0.6288175", "0.6282914", "0.62695324", "0.6257107", "0.62374574", "0.62374574", "0.6237087", "0.6225313", "0.62168074", "0.6208633", "0.6199083", "0.61926883", "0.61863506", "0.61863506", "0.61563", "0.6127417", "0.6121096", "0.61177164", "0.61069244", "0.6101914", "0.6099539", "0.60986406", "0.6088406", "0.6084343", "0.60762256", "0.6075294", "0.60752785", "0.60723644", "0.60723644", "0.60623664", "0.60518336", "0.6051247", "0.6046727", "0.604268", "0.604268", "0.6042152", "0.6041901", "0.6036393", "0.601905", "0.6017837", "0.6012634", "0.5999185", "0.59911543", "0.5974554", "0.5971437", "0.5968002", "0.59600544", "0.59556913", "0.5947526", "0.5946513", "0.5944072", "0.5943961", "0.5943961", "0.5936288", "0.5936288", "0.5936288", "0.5936288", "0.593368", "0.593368", "0.5930449", "0.59239346", "0.5921108", "0.59187365", "0.5917557", "0.59134316", "0.5906737", "0.59035766", "0.59024006", "0.59003526", "0.5899198", "0.58991855", "0.5895608", "0.58872414", "0.588058", "0.58763134", "0.5875556", "0.5872552", "0.5866095", "0.5857231", "0.58532053", "0.5851447", "0.5849608", "0.58483994", "0.5843968", "0.5843968", "0.5842728", "0.5842689", "0.58420867" ]
0.0
-1
/ access modifiers changed from: private / access modifiers changed from: public
private boolean shouldUseSimpleUserSwitcher() { return Settings.Global.getInt(this.mContext.getContentResolver(), "lockscreenSimpleUserSwitcher", this.mContext.getResources().getBoolean(17891459) ? 1 : 0) != 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "@Override\n public void perish() {\n \n }", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n public boolean isPrivate() {\n return true;\n }", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "public void myPublicMethod() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void anular() {\n\n\t}", "private TMCourse() {\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private MApi() {}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private Get() {}", "private Get() {}", "private Infer() {\n\n }", "private CommonMethods() {\n }", "private ChainingMethods() {\n // private constructor\n\n }", "public void checkPublic() {\n }", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "public final void mo51373a() {\n }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void m23075a() {\n }", "private Validations() {\n\t\tthrow new IllegalAccessError(\"Shouldn't be instantiated.\");\n\t}", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.917 -0500\", hash_original_method = \"4F6254C867328A153FDD5BD23453E816\", hash_generated_method = \"627F9C594B5D3368AD9A21A5E43D2CB8\")\n \nprivate Extensions() {}", "public void smell() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "private Singletion3() {}", "private Public() {\n super(\"public\", null);\n }", "private void m50366E() {\n }", "public abstract Object mo26777y();", "public void method_4270() {}", "public void mo21825b() {\n }", "protected Doodler() {\n\t}", "public void mo21779D() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private URIs() {\r\n throw new IllegalAccessError();\r\n }", "public void mo38117a() {\n }", "private abstract void privateabstract();", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:02:04.534 -0500\", hash_original_method = \"E4DEB0C107DDB25A537EF0E89F1C04F8\", hash_generated_method = \"2E76AFD8C90588F5139C0C2D28CAEA05\")\n \nprivate static int translateCodingErrorAction(CodingErrorAction action) {\n if (action == CodingErrorAction.REPORT) {\n return 0;\n } else if (action == CodingErrorAction.IGNORE) {\n return 1;\n } else if (action == CodingErrorAction.REPLACE) {\n return 2;\n } else {\n throw new AssertionError(); // Someone changed the enum.\n }\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public OOP_207(){\n\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }", "private test5() {\r\n\t\r\n\t}", "@Override\n\tpublic boolean isPublic() {\n\t\treturn false;\n\t}", "private void __sep__Constructors__() {}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo97908d() {\n }", "private FlyWithWings(){\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.877 -0500\", hash_original_method = \"6B80070A6DD2FB0EB3D1E45B8D1F67CF\", hash_generated_method = \"2A1ECFC7445D74F90AF7029089D02160\")\n \nprivate Organizations() {}", "@Override\n public void memoria() {\n \n }", "@Override\n protected void init() {\n }", "@Override\n void init() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {\n\t}", "private Utils() {\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "private Mgr(){\r\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "public void mo21782G() {\n }", "@Override\n public void init() {\n }", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "public abstract void mo70713b();", "private Aliyun() {\n\t\tsuper();\n\t}", "public final void mo91715d() {\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.663 -0500\", hash_original_method = \"7BA2DC4B038FD72F399C633B1C4B5B34\", hash_generated_method = \"3D1B22AE31FE9AB2658DC3713C91A6C9\")\n \nprivate Groups() {}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "private void ss(){\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.504 -0500\", hash_original_method = \"F5E3085137E37D29F0F8CB3C296F1F57\", hash_generated_method = \"47D4A76F75042B03A266F16D90E98429\")\n \nprivate Contacts() {}", "private Utility() {\n throw new IllegalAccessError();\n }", "private Util() { }", "public void mo21877s() {\n }", "protected void mo6255a() {\n }", "void m1864a() {\r\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public Fun_yet_extremely_useless()\n {\n\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public boolean getAllowPrivateConstructors()\n {\n \treturn allowPrivateConstructors;\n }", "public void mo115188a() {\n }", "private Marinator() {\n }", "private Marinator() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "private void kk12() {\n\n\t}" ]
[ "0.7241168", "0.68845606", "0.68322766", "0.65265113", "0.64767146", "0.6446329", "0.63824195", "0.63644785", "0.6354255", "0.6348257", "0.6341761", "0.632682", "0.6302122", "0.6288175", "0.6282914", "0.62695324", "0.6257107", "0.62374574", "0.62374574", "0.6237087", "0.6225313", "0.62168074", "0.6208633", "0.6199083", "0.61926883", "0.61863506", "0.61863506", "0.61563", "0.6127417", "0.6121096", "0.61177164", "0.61069244", "0.6101914", "0.6099539", "0.60986406", "0.6088406", "0.6084343", "0.60762256", "0.6075294", "0.60752785", "0.60723644", "0.60723644", "0.60623664", "0.60518336", "0.6051247", "0.6046727", "0.604268", "0.604268", "0.6042152", "0.6041901", "0.6036393", "0.601905", "0.6017837", "0.6012634", "0.5999185", "0.59911543", "0.5974554", "0.5971437", "0.5968002", "0.59600544", "0.59556913", "0.5947526", "0.5946513", "0.5944072", "0.5943961", "0.5943961", "0.5936288", "0.5936288", "0.5936288", "0.5936288", "0.593368", "0.593368", "0.5930449", "0.59239346", "0.5921108", "0.59187365", "0.5917557", "0.59134316", "0.5906737", "0.59035766", "0.59024006", "0.59003526", "0.5899198", "0.58991855", "0.5895608", "0.58872414", "0.588058", "0.58763134", "0.5875556", "0.5872552", "0.5866095", "0.5857231", "0.58532053", "0.5851447", "0.5849608", "0.58483994", "0.5843968", "0.5843968", "0.5842728", "0.5842689", "0.58420867" ]
0.0
-1
instance de la classe maison
public static void main(String[] args) { Maison maison = new Maison(); // ajouts de différentes pièces à maison maison.ajouterPiece(new Chambre(12, 1)); maison.ajouterPiece(new Chambre(10, 1)); maison.ajouterPiece(new Salon(18, 0)); maison.ajouterPiece(new Cuisine(10, 0)); maison.ajouterPiece(new SalleDeBain(4, 1)); maison.ajouterPiece(new Wc(1, 0)); // affichage des résultats System.out.println("Superficie totale : " + maison.superficieTotale() + " m2"); System.out.println("Superficie rez de chaussée : " + maison.superficieEtage(0)+ " m2"); System.out.println("Superficie étage 1 : " + maison.superficieEtage(1)+ " m2"); System.out.println("La superficie totale des chambres est de : " + maison.superficieTypePiece("Chambre") + " m2"); System.out.println("Il y a " + maison.nbPieceType("Chambre") + " chambres."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Instance createInstance();", "Reproducible newInstance();", "private Instantiation(){}", "public Manusia() {}", "public Aritmetica(){ }", "public static LoCurso GetInstancia(){\n if (instancia==null)\n {\n instancia = new LoCurso();\n \n }\n\n return instancia;\n }", "Objet getObjetAlloue();", "public org.omg.uml.behavioralelements.commonbehavior.Instance getInstance();", "@Override\n public T getInstance() {\n return instance;\n }", "public static LoInscripcion GetInstancia(){\n if (instancia==null)\n {\n instancia = new LoInscripcion();\n }\n\n return instancia;\n }", "public void makeInstance() {\n\t\t// Create the attributes, class and text\n\t\tFastVector fvNominalVal = new FastVector(2);\n\t\tfvNominalVal.addElement(\"ad1\");\n\t\tfvNominalVal.addElement(\"ad2\");\n\t\tAttribute attribute1 = new Attribute(\"class\", fvNominalVal);\n\t\tAttribute attribute2 = new Attribute(\"text\",(FastVector) null);\n\t\t// Create list of instances with one element\n\t\tFastVector fvWekaAttributes = new FastVector(2);\n\t\tfvWekaAttributes.addElement(attribute1);\n\t\tfvWekaAttributes.addElement(attribute2);\n\t\tinstances = new Instances(\"Test relation\", fvWekaAttributes, 1); \n\t\t// Set class index\n\t\tinstances.setClassIndex(0);\n\t\t// Create and add the instance\n\t\tInstance instance = new Instance(2);\n\t\tinstance.setValue(attribute2, text);\n\t\t// Another way to do it:\n\t\t// instance.setValue((Attribute)fvWekaAttributes.elementAt(1), text);\n\t\tinstances.add(instance);\n \t\tSystem.out.println(\"===== Instance created with reference dataset =====\");\n\t\tSystem.out.println(instances);\n\t}", "public static TMemoria getInstance(){\r\n\t\tif (instancia==null)\r\n\t\t\tinstancia=new TMemoriaImp();\t\t\t\r\n\t\treturn instancia;\t\t\t\t\t\t\t\t\t\r\n\t}", "private MApi() {}", "public Clade() {}", "static public GUIAltaHabitacion obtenerInstancia(){\r\n\t\t if(altaHabitacion == null){\r\n\t\t\t altaHabitacion = new GUIAltaHabitacion();\r\n\t\t }\r\n\t\t \r\n\t\t return altaHabitacion;\r\n\t }", "public MorteSubita() {\n }", "public Instance() {\n }", "Klassenstufe createKlassenstufe();", "T getInstance();", "public static Animal getAnimal() {//object of type animal and calling this method in app.javsa\n return new Dog();\n}", "public Simulador(){\n }", "public Alojamiento() {\r\n\t}", "public CMObject newInstance();", "public AntrianPasien() {\r\n\r\n }", "Constructor() {\r\n\t\t \r\n\t }", "public static test5 getinstance(){\r\n\t\t return instance;\r\n\t }", "public static MySingleTon getInstance(){\n if(myObj == null){\n myObj = new MySingleTon();\n }\n return myObj;\n }", "public TCubico(){}", "public Climber(){\n\t\tinst = this;\n\t}", "public static Ambulancia get_instance() {\n if (instance == null)\n instance = new Ambulancia();\n return instance;\n }", "public nomina()\n {\n deducidoClase = new deducido();\n devengadoClase = new devengado();\n }", "private UsineJoueur() {}", "Oracion createOracion();", "public Classe() {\r\n }", "public static Feudalism getInstance(){\n\t\treturn f;\r\n\t}", "private Object createInstance() throws InstantiationException, IllegalAccessException {\n\t\treturn classType.newInstance();\n\t}", "public Valvula(){}", "public Cgg_jur_anticipo(){}", "public Musik(){}", "Petunia() {\r\n\t\t}", "InstanceModel createInstanceOfInstanceModel();", "public Kullanici() {}", "private synchronized static void createInstance(){\r\n\t\tif (instance == null){\r\n\t\t\tinstance = new Casino();\r\n\t\t}\r\n\t}", "private static Suma creaObjetoSuma (){\n Suma suma = new Suma(4,6);\n return suma; \n }", "@Override\n\t\tpublic Object getInstance() {\n\t\t\treturn null;\n\t\t}", "public TTau() {}", "@Override\r\n public void instantiate() {\r\n }", "public Persona(){\n \n }", "public Persona(){\n \n }", "public FiltroMicrorregiao() {\r\n }", "public contrustor(){\r\n\t}", "private ControleurAcceuil(){ }", "protected T getManusia(){\r\n return Manusia;\r\n }", "public static utilitys getInstance(){\n\r\n\t\treturn instance;\r\n\t}", "public Exercicio(){\n \n }", "public MPaciente() {\r\n\t}", "Object getClass_();", "Object getClass_();", "private TMCourse() {\n\t}", "static Football getFootBall(){\n return new Football();\n }", "public Pasien() {\r\n }", "public T newInstance();", "public Sistema(){\r\n\t\t\r\n\t}", "public OOP_207(){\n\n }", "private SingletonSigar(){}", "public EnsembleLettre() {\n\t\t\n\t}", "public static class_config getinstance(){\n\t\tif (instance==null){\n\t\t\tinstance = new class_config();\n\t\t\t\n singleton.mongo=new Mongo_DB();\n singleton.nom_bd=singleton.mongo.getNom_bd();\n singleton.nom_table=singleton.mongo.getNom_table();\n singleton.client = Mongo_DB.connect();\n if (singleton.client != null) {\n singleton.db = singleton.mongo.getDb();\n singleton.collection = singleton.mongo.getCollection();\n }\n \n\t\t\tsingleton_admin.admin= new ArrayList<admin_class>();\n\t\t\tsingleton_client.client= new ArrayList<client_class>();\n\t\t\tsingleton_reg.reg= new ArrayList<reg_user_class>();\n\t\t\t\n// A_auto_json.auto_openjson_admin();\n// C_auto_json.auto_openjson_client();\n R_auto_json.auto_openjson_reg();\n //funtions_files.auto_open();\n\t\t\tauto_config.auto_openconfig();\n //class_language.getinstance();\n\t\t\tsingleton_config.lang=new class_language();\n \n connectionDB.init_BasicDataSourceFactory();\n \n\t\t}\n\t\treturn instance;\n\t}", "private SingleObject(){}", "public Carrera(){\n }", "public Object aj() {\n try {\n return this.ad.newInstance();\n } catch (IllegalAccessException | InstantiationException e) {\n throw new RuntimeException();\n }\n }", "protected abstract void construct();", "private InstanceUtil() {\n }", "protected EmpleadoPlantilla(com.matisse.reflect.MtClass mtCls) {\n super(mtCls);\n }", "@Override\r\n\tpublic T createInstance() {\r\n\t\ttry {\r\n\t\t\treturn getClassType().newInstance();\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogger.getLogger(AbstractCRUDBean.class.getSimpleName()).log(Level.ALL, e.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public MijnKlasse()\r\n\t\t{\r\n\t\t\tmijnMethode();\r\n\t\t}", "public Lotto2(){\n\t\t\n\t}", "public Notifica(){}", "public AfiliadoVista() {\r\n }", "public static StructuraSemestru2 getInstance(){\n if (instance==null)\n {\n return instance =new StructuraSemestru2();\n }\n else\n return instance;\n }", "protected Asignatura()\r\n\t{}", "public SlanjePoruke() {\n }", "public a mo8520o() {\n return new a();\n }", "protected final MareaPesca createInstance() {\n MareaPesca mareaPesca = new MareaPesca();\n return mareaPesca;\n }", "private static Propiedades getInstance() {\n if (instance == null) {\n instance = new Propiedades();\n }\n return instance;\n }", "public TipoDocumentoMB() {\n tipoDoc = new TipoDocPersona();\n }", "public Banco(){}", "public Prova() {}", "Kerucut(){\r\n Tabung tab = new Tabung();\r\n tinggi=tab.getTinggi();\r\n }", "Simple createSimple();", "public Supercar() {\r\n\t\t\r\n\t}", "public AllOne() {\n \n }", "public void consulterClassement() {\n\t\t\n\t}", "public ValorVariavel() {\r\n }", "public Aktie() {\n }", "public Candidatura (){\n \n }", "public Visita() {\n initialize();\n }", "private Mgr(){\r\n\t}", "private Parser() {\n objetos = new ListaEnlazada();\n }", "@Override\r\n\tpublic CMObject newInstance()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\treturn this.getClass().getDeclaredConstructor().newInstance();\r\n\t\t}\r\n\t\tcatch(final Exception e)\r\n\t\t{\r\n\t\t\tLog.errOut(ID(),e);\r\n\t\t}\r\n\t\treturn new StdBehavior();\r\n\t}", "protected FanisamBato(){\n\t}", "public static void main(String[] args) {\n\r\n ContaEspecial contaEspecial1 = new ContaEspecial(\"\", \"\");\r\n // ContaEspecial contaEspecial2 = new ContaEspecial();\r\n }" ]
[ "0.69301754", "0.6839289", "0.64383054", "0.64237744", "0.63896596", "0.6382705", "0.637728", "0.6349217", "0.63395774", "0.6337198", "0.63310516", "0.63204145", "0.6302961", "0.6299252", "0.6267886", "0.62393004", "0.62333614", "0.62234163", "0.62073815", "0.6195964", "0.6194678", "0.61887246", "0.6187956", "0.6178784", "0.6164795", "0.61587983", "0.6158719", "0.6151039", "0.6145083", "0.6144421", "0.61195713", "0.61117595", "0.61114246", "0.6104921", "0.60954297", "0.6094962", "0.6090952", "0.608848", "0.608427", "0.60770595", "0.607553", "0.60650975", "0.6062149", "0.60588986", "0.60532427", "0.60434306", "0.6039704", "0.6036483", "0.6036483", "0.6021978", "0.60143167", "0.60129344", "0.6012206", "0.60042274", "0.60020775", "0.5996485", "0.5992534", "0.5992534", "0.5988892", "0.59792554", "0.597622", "0.59709996", "0.5970615", "0.5967835", "0.59627116", "0.595524", "0.59504706", "0.5949171", "0.5947263", "0.59455717", "0.59420794", "0.59324527", "0.59293985", "0.59275466", "0.5927546", "0.5926869", "0.592368", "0.5921497", "0.5920968", "0.5920668", "0.5918079", "0.5917386", "0.59151524", "0.5908239", "0.590794", "0.5907232", "0.5896466", "0.5895852", "0.58955514", "0.58947533", "0.5890785", "0.5887011", "0.5885805", "0.58789885", "0.58725816", "0.5871097", "0.58688015", "0.5863992", "0.5861022", "0.5858975", "0.5854479" ]
0.0
-1
Reads a number in the source, in the format: (9)+[.(9)+]
public String getNumberLiteral() { token = ""; skipSpaces(); char ch = getCurrentChar(); // Read the first sign, if exists if ( ch == '+' || ch == '-' ) { token += ch; this.advance(); ch = getCurrentChar(); } while( Character.isDigit( ch ) || ch == '.' ) { token += ch; this.advance(); ch = getCurrentChar(); } return token; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String readNumber() {\n StringBuilder sb = new StringBuilder();\n char currentChar = code.charAt(currentIndex);\n while (!isEndOfCode() && Character.isDigit(currentChar)) {\n sb.append(currentChar);\n currentIndex++;\n if (isEndOfCode()) break;\n currentChar = code.charAt(currentIndex);\n }\n return sb.toString();\n }", "protected java.lang.String readNum() throws java.io.IOException {\n char c = readCharWord();\n java.lang.StringBuilder result = new java.lang.StringBuilder();\n if (c!='-' && !java.lang.Character.isDigit(c))\n throw error();\n do {\n result.append(c);\n c = next();\n } while (java.lang.Character.isDigit(c));\n return result.toString();\n }", "private void readNumber() {\n // One entry, definitely a number.\n // Beware of '.' as a (non) decimal.\n /*\n maybeSign()\n digits()\n if dot ==> decimal, digits\n if e ==> double, maybeSign, digits\n else\n check not \".\" for decimal.\n */\n boolean isDouble = false;\n boolean isDecimal = false;\n stringBuilder.setLength(0);\n\n /*\n readPossibleSign(stringBuilder) ;\n readDigits may be hex\n readDot\n readDigits\n readExponent.\n */\n\n int x = 0; // Digits before a dot.\n int ch = reader.peekChar();\n if (ch == '0') {\n x++;\n reader.readChar();\n stringBuilder.append((char) ch);\n ch = reader.peekChar();\n if (ch == 'x' || ch == 'X') {\n reader.readChar();\n stringBuilder.append((char) ch);\n readHex(reader, stringBuilder);\n token.setImage(stringBuilder.toString());\n token.setType(TokenType.HEX);\n return;\n }\n } else if (ch == '-' || ch == '+') {\n readPossibleSign(stringBuilder);\n }\n\n x += readDigits(stringBuilder);\n // if ( x == 0 )\n // {\n //\n // }\n ch = reader.peekChar();\n if (ch == Chars.CH_DOT) {\n reader.readChar();\n stringBuilder.append(Chars.CH_DOT);\n isDecimal = true; // Includes things that will be doubles.\n readDigits(stringBuilder);\n }\n\n if (x == 0 && !isDecimal)\n // Possible a tokenizer error - should not have entered readNumber in the first place.\n exception(\"Unrecognized as number\");\n\n if (exponent(stringBuilder)) {\n isDouble = true;\n isDecimal = false;\n }\n\n token.setImage(stringBuilder.toString());\n if (isDouble) token.setType(TokenType.DOUBLE);\n else if (isDecimal) token.setType(TokenType.DECIMAL);\n else token.setType(TokenType.INTEGER);\n }", "private int queryNumberChar() throws IOException {\n\t\tbrin.mark(2);\n\t\treturn brin.read();\n\t}", "private String parseNumber () {\r\n \r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n \r\n fBuffer.delete(0, fBuffer.length());//empty string buffer\r\n \r\n char chr=next();//get next character\r\n assert \"-0123456789\".indexOf(chr)>=0;//assert valid start character\r\n while (\"0123456789.Ee+-\".indexOf(chr)>=0) {//until non number character\r\n fBuffer.append(chr);//append to string buffer\r\n chr=next();//get next character\r\n if (chr==NONE) throw new RuntimeException(\"Invalid syntax : \"+context());//gee, thanks...\r\n }//until non number character\r\n \r\n if (\"]},\".indexOf(chr)<0) throw new RuntimeException(\"Invalid syntax : \"+context());//no way jose\r\n\r\n back(); //rewind to the terminator character\r\n \r\n return fBuffer.toString();//return string in buffer\r\n \r\n }", "private void handleNumber() {\n while (isDigit(peek())) {\n advance();\n }\n\n // Look for decimals; Will be allowing extension calls like 140.abs() so make sure it's a numerical decimal\n if (peek() == '.' && isDigit(peekFurther(1))) {\n\n // Consume the decimal\n advance();\n\n // Consume the digits following the decimal\n while (isDigit(peek())) {\n advance();\n }\n }\n\n addToken(NUMBER, Double.parseDouble(source.substring(start, current)));\n }", "private void createNumber() {\n\t\tString value = \"\";\n\t\tvalue += data[currentIndex++];\n\t\t// minus is no longer allowed\n\t\twhile (currentIndex < data.length\n\t\t\t\t&& Character.isDigit(data[currentIndex])) {\n\t\t\tvalue += data[currentIndex++];\n\t\t}\n\n\t\tif (currentIndex + 1 < data.length && (data[currentIndex] == '.'\n\t\t\t\t&& Character.isDigit(data[currentIndex + 1]))) {\n\t\t\tvalue += data[currentIndex++]; // add .\n\t\t} else {\n\t\t\ttoken = new Token(TokenType.NUMBER, Integer.parseInt(value));\n\t\t\treturn;\n\t\t}\n\t\t// get decimals of number\n\t\twhile (currentIndex < data.length\n\t\t\t\t&& Character.isDigit(data[currentIndex])) {\n\t\t\tvalue += data[currentIndex++];\n\t\t}\n\t\ttoken = new Token(TokenType.NUMBER, Double.parseDouble(value));\n\t}", "private Token readNum(char firstchar) {\n StringBuilder numConstructCache = new StringBuilder();\n char c = firstchar;\n\n while (true) {\n if (isLegalNumChar(c)) {\n numConstructCache.append(c);\n } else {\n revokeCharRead();\n break;\n }\n c = getNextChar();\n }\n return new Token(TokenType.NUMBER, numConstructCache.toString()); //the value of 0 is null\n }", "private Token basicNextNumberToken() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\n\t\twhile(currentIndex < data.length) {\n\t\t\t\t\n\t\t\tchar c = data[currentIndex];\n\t\t\tif(c >= '1' && c <= '9') {\n\t\t\t\tsb.append(c);\n\t\t\t\tcurrentIndex++;\n\t\t\t\t\t\n\t\t\t} else break;\t\n\t\t}\n\t\t\n\t\treturn new Token(TokenType.NUMBER, Long.parseLong(sb.toString()));\n\t }", "java.lang.String getNumber();", "java.lang.String getNumber();", "java.lang.String getNumber();", "private void nextNumber() {\n\t\tint old=pos;\n\t\tmany(digits);\n\t\ttoken=new Token(\"num\",program.substring(old,pos));\n }", "java.lang.String getNum2();", "NumberVariable getSource();", "private Token getNextNumber() {\n StringBuilder sb = new StringBuilder();\n boolean isNegative = false;\n boolean isDouble = false;\n\n if (data[currentIndex] == '-') {\n isNegative = true;\n currentIndex++;\n }\n\n while (currentIndex < this.data.length) {\n char currChar = data[currentIndex];\n\n if (currChar == '.') {\n isDouble = true;\n sb.append(currChar);\n currentIndex++;\n continue;\n }\n\n if (Character.isDigit(currChar)) {\n sb.append(currChar);\n currentIndex++;\n } else {\n break;\n }\n }\n\n if (isDouble) {\n double number;\n\n try {\n number = Double.parseDouble(sb.toString());\n } catch (NumberFormatException ex) {\n throw new LexerException(\"Couldn't parse to double\");\n }\n number = isNegative ? -number : number;\n\n return new Token(TokenType.DOUBLE, number);\n } else {\n int number;\n\n try {\n number = Integer.parseInt(sb.toString());\n } catch (NumberFormatException ex) {\n throw new LexerException(\"Couldn't parse to integer\");\n }\n number = isNegative ? -number : number;\n\n return new Token(TokenType.INTEGER, number);\n }\n\n\n }", "private void processPossibleNumber(String data, int position) {\n\n Token t = tokens.get(currentTokenPointer);\n\n try {\n\n char possiblePlus = data.charAt(position);\n\n Integer value = null;\n\n if (possiblePlus == '+') {\n\n String number = data.substring(position + 1);\n\n if (number.length() > 0 && number.charAt(0) == '-') {\n\n raiseParseProblem(\n\n \"numeric modifier for macro should be +nnn or -nnn. This '\" + data + \" is not allowed, at position \" + t.start, t.start);\n\n }\n\n value = Integer.parseInt(data.substring(position + 1));\n\n } else {\n\n if (possiblePlus != '-') {\n\n raiseParseProblem(\n\n \"numeric modifier for macro should be +nnn or -nnn. This '\" + data + \" is not allowed, at position \" + t.start, t.start);\n\n }\n\n value = Integer.parseInt(data.substring(position));\n\n }\n\n pushIt(new SumTransformer(value));\n\n } catch (NumberFormatException nfe) {\n\n raiseParseProblem(\"unable to determine the numeric modifier for macro. Macro was '\" + data + \"' at position \" + t.start, t.start);\n\n }\n\n }", "private String subStringToInteger(String quantity) {\n String substring = null;\n\n if (quantity.contains(\".\")) {\n int indexEnd = quantity.indexOf(\".\");\n substring = quantity.substring(0, indexEnd);\n }\n\n return substring == null ? quantity : substring;\n }", "private static Symbol number(String text, int base)\r\n\t{\r\n\t\tint linepos = line_;\r\n\t\tint charpos = char_;\r\n\t\tint colpos = col_;\r\n\t\tscan(text);\r\n\t\tToken token = new Token(fname, text, linepos, charpos, colpos);\r\n\t\ttoken.number = convertNumber(text, base);\r\n\t\treturn new Symbol(sym.NUMBER, linepos, colpos, token);\r\n\t}", "private Number parseNumber(String part) {\n try {\n return this.numberFormat.parse(part);\n } catch (ParseException e) {\n throw new NumberFormatException(String.format(\"Could not parse: %s to number\", part));\n }\n }", "public static float readNumFromConsole(Scanner scan1) {\n \t String str = null;\r\n \t Pattern p = Pattern.compile(\"^\\\\d+(?:\\\\.\\\\d+)?$\");\r\n \t Matcher m = null;\r\n \t int counter = 0;\r\n \t \tdo {\r\n \t \t\tif (counter != 0) {\r\n \t \t\t\tSystem.out.println(\"Invalid numeric input\");\r\n \t \t\t}\r\n \t \t\tstr = scan1.nextLine();\r\n \t \t\tm = p.matcher(str);\r\n \t \t\tcounter++;\r\n\t \t} while(!m.matches());\r\n \t //scan1.close();\r\n \t return Float.parseFloat(str);\r\n\t }", "private static void printNumbers(String f1) throws IOException {\n DataInputStream in = readFile(f1,f1,true);\n System.out.println(\"\\nThe numbers in \" + f1 + \" are :\");\n int i=0;\n while(i<20 && in.available()>=4){ //print first 20 numbers\n int val = in.readInt();\n System.out.print(val + \" \");\n\n i++;\n\n }\n }", "public Number[] parse(ByteBuffer bb) {\r\n return formatter.parse(bb);\r\n }", "public BencodeValue decodeNumber() throws IOException {\n int c = this.getNextIndicator();\n if (c != 'i') {\n throw new BencodeFormatException(\"Number begins with an 'i', not '\" +\n (char)c + \"'\");\n }\n this.indicator = 0;\n\n c = this.read();\n if (c == '0') {\n c = this.read();\n if (c == 'e') {\n return new BencodeValue(BigInteger.ZERO);\n }\n else\n throw new BencodeFormatException(\"Number ends with an 'e', not '\" + (char)c + \"'\");\n }\n\n char[] chars = new char[256];\n int off = 0;\n\n if (c == '-') {\n c = this.read();\n if (c == '0')\n throw new BencodeFormatException(\"Negative zero not allowed\");\n chars[off] = '-';\n off++;\n }\n\n if (c < '1' || c > '9')\n throw new BencodeFormatException(\"Invalid Integer start '\"\n + (char)c + \"'\");\n chars[off] = (char)c;\n off++;\n\n c = this.read();\n int i = c - '0';\n while (i >= 0 && i <= 9) {\n chars[off] = (char)c;\n off++;\n c = read();\n i = c - '0';\n }\n\n if (c != 'e')\n throw new BencodeFormatException(\"Integer should end with 'e'\");\n String s = new String(chars, 0, off);\n return new BencodeValue(new BigInteger(s));\n }", "String floatRead();", "public TamilWord readNumber(String number) throws NotANumberException;", "private String extractNumber() {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\r\n\t\twhile (currentIndex < expression.length && Character.isDigit(expression[currentIndex])) {\r\n\t\t\tsb.append(expression[currentIndex]);\r\n\t\t\tcurrentIndex++;\r\n\t\t}\r\n\r\n\t\treturn sb.toString();\r\n\t}", "public TamilWord readNumber(double number);", "private Token scanNumber(LocatedChar firstChar) {\n\t\tStringBuffer buffer = new StringBuffer();\n\t\tbuffer.append(firstChar.getCharacter());\n\t\tappendSubsequentDigits(buffer);\n\t\tif(input.peek().getCharacter() == DECIMAL_POINT) {\n\t\t\tLocatedChar c = input.next();\n\t\t\tif(input.peek().getCharacter() == DECIMAL_POINT) {\n\t\t\t\tinput.pushback(c);\n\t\t\t\treturn IntToken.make(firstChar, buffer.toString());\n\t\t\t}\n\t\t\tbuffer.append(c.getCharacter());\n\t\t\tif(input.peek().isDigit()) {\n\t\t\t\tappendSubsequentDigits(buffer);\n\t\t\t\tif(input.peek().getCharacter() == CAPITAL_E) {\n\t\t\t\t\tLocatedChar expChar = input.next();\n\t\t\t\t\tbuffer.append(expChar.getCharacter());\n\t\t\t\t\tif(input.peek().getCharacter() == '+' || input.peek().getCharacter() == '-') {\n\t\t\t\t\t\tbuffer.append(input.next().getCharacter());\n\t\t\t\t\t}\n\t\t\t\t\tif(input.peek().isDigit()) {\n\t\t\t\t\t\tappendSubsequentDigits(buffer);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tlexicalError(expChar, \"malformed floating exponent literal\");\n\t\t\t\t\t\treturn findNextToken();\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t\treturn FloatToken.make(firstChar, buffer.toString());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tlexicalError(firstChar, \"malformed floating literal\");\n\t\t\t\treturn findNextToken();\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\treturn IntToken.make(firstChar, buffer.toString());\n\t\t}\n\t}", "public int getInputForNumber() {\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\treturn Integer.parseInt(bufferedReader.readLine());\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.err.println(e.getLocalizedMessage());\n\t\t\t}\n\t\t}\n\t}", "public String getNumber() throws Exception;", "java.lang.String getNum1();", "public java.lang.Number getComponent9AsNumber() {\n\t\treturn SwiftFormatUtils.getNumber(getComponent(9));\n\t}", "String translateNumberGroup(int index, String number) throws NumberReaderException;", "public int getLine_number_display_digits() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readInt(__io__address + 40);\n\t\t} else {\n\t\t\treturn __io__block.readInt(__io__address + 40);\n\t\t}\n\t}", "private int parseInt(char[] source, int start, int end) {\n int result = Character.digit(source[start++], 10);\n if (result == -1)\n throw new NumberFormatException(new String(source));\n\n for (int index = start; index < end; index++) {\n int nextVal = Character.digit(source[index], 10);\n if (nextVal == -1)\n throw new NumberFormatException(new String(source));\n result = 10*result + nextVal;\n }\n\n return result;\n }", "public Double[] getNumbers() throws IOException {\n List<String> numbersStrs= Files.readAllLines(Paths.get(\"C:\\\\Users\\\\user\\\\Desktop\\\\Software construction git repo\\\\calculator\\\\src\\\\java\\\\com\\\\kelaniya\\\\uni\\\\numbers.txt\"));\n double number1=Integer.parseInt(numbersStrs.get(0));\n double number2=Integer.parseInt(numbersStrs.get(1));\n return new Double[] {number1,number2};\n\n }", "public static Number readNumber(String message, String type){\n Scanner in = new Scanner(System.in);\n System.out.print(message);\n switch (type.toLowerCase().trim()){\n case \"byte\":\n return in.nextByte();\n case \"short\":\n return in.nextShort();\n case \"int\":\n return in.nextInt();\n case \"long\":\n return in.nextLong();\n case \"float\":\n return in.nextFloat();\n case \"double\":\n return in.nextDouble();\n default:\n return -1; \n }\n }", "protected IExpressionValue getNum() throws TableFunctionMalformedException {\r\n\t\tvalue = \"\";\r\n\r\n\t\tif (!((isNumeric(look)) || ((look == '.') && (value.indexOf('.') == -1))))\r\n\t\t\texpected(\"Number\");\r\n\r\n\t\twhile ((isNumeric(look))\r\n\t\t\t\t|| ((look == '.') && (value.indexOf('.') == -1))) {\r\n\t\t\tvalue += look;\r\n\t\t\tnextChar();\r\n\t\t}\r\n\r\n\t\ttoken = '#';\r\n\t\tskipWhite();\r\n\r\n\t\t// Debug.println(\"GetNum returned \" + Float.parseFloat(value));\r\n\t\treturn new SimpleProbabilityValue(Float.parseFloat(value));\r\n\t}", "private int digitOf(Stack<String> number)\n {\n\tif(number.isEmpty()) return 0;\n\treturn Integer.parseInt(number.pop());\n }", "abstract int readInt(int start);", "private static int coordinateInput() {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n int coordinate;\n while (true) {\n try {\n String coordinateString;\n coordinateString = reader.readLine();\n if (!coordinateString.matches(\"[-+]?\\\\d+\")) {\n System.out.println(Text.GAME_NUMBER_FORMAT);\n } else {\n coordinate = Integer.parseInt(coordinateString);\n if (coordinate < 0 || coordinate >= Settings.FIELD_SIZE) {\n System.out.println(String.format(Text.GAME_WRONG_NUMBER, Settings.FIELD_SIZE - 1));\n } else {\n break;\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return coordinate;\n }", "static void experiment1Day1Part1() {\n\n File file = new File(\"src/main/java/weekone/input01.txt\");\n FileReader fileReader = null;\n BufferedReader bufferedReader = null;\n int sum = 0;\n\n try {\n fileReader = new FileReader(file);\n bufferedReader = new BufferedReader(fileReader);\n\n while ((bufferedReader.read() != -1)) {\n String line = bufferedReader.readLine();\n System.out.println(\"\\nThe string is: \" + line);\n int number = Integer.valueOf(line);\n\n System.out.println(\"The number is: \" + number);\n\n }\n\n\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n if (fileReader != null)\n fileReader.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n System.out.println(\"The sum is: \" + sum);\n }", "public TamilWord readNumber(long number);", "String doubleRead();", "public void toStr()\r\n {\r\n numar = Integer.toString(read());\r\n while(numar.length() % 3 != 0){\r\n numar = \"0\" + numar; //Se completeaza cu zerouri pana numarul de cifre e multiplu de 3.\r\n }\r\n }", "private long getNumber(String num, int l, int r) {\n if (num.charAt(l) == '0' && r > l)\n return -1;\n int i = l;\n long sum = 0;\n while (i <= r) {\n sum = sum * 10 + num.charAt(i) - '0';\n i++;\n }\n return sum;\n }", "public static void main(String[] args) {\nString filename= \"C:\\\\Users\\\\aadm199\\\\Documents\\\\Personal\\\\javatraining\\\\phonebook.txt\";\nFile file = new File(filename);\nString phoneNumber=null;\ntry {\n\tBufferedReader br = new BufferedReader(new FileReader(file));\n phoneNumber = br.readLine();\nSystem.out.println(phoneNumber);\nbr.close();\n} catch (FileNotFoundException e) {\n\t// TODO Auto-generated catch block\n\te.printStackTrace();\n} catch (IOException e) {\n\t// TODO Auto-generated catch block\n\te.printStackTrace();\n}\ntry {\n\n\tif (phoneNumber.length()!=9) {\n\t\tthrow new NineDigitsException(phoneNumber);\n\t}\n\tif (phoneNumber.substring(0, 1).equals(\"4\")) {\n\t\tthrow new AreacodeException(phoneNumber);\n\t\t}\n\tif(phoneNumber.substring(0,2).equals(\"0\")){\n\t\tthrow new NumberzeroException(phoneNumber);\n\t\t}\n//\tSystem.out.println(phoneNumber.substring(2));\n//\tSystem.out.println(phoneNumber.substring(0, 1));\n//\tSystem.out.println(phoneNumber.subSequence(0, 3));\n//\tSystem.out.println(phoneNumber.length());\n//\tfor (int i=0;i<phoneNumber.length();i++) {\n//\t\tSystem.out.println(\"Printing Phonenumber loop\");\n//\t\tSystem.out.print(\"Phone number at position\"+ i + \"is \"+(phoneNumber.substring(i,i+1)));\n//\t}\n\tfor (int n=0;n<=phoneNumber.length()-2;n++) {\n\t\tif (phoneNumber.substring(n,n+1).equals(\"0\")){\n\t\t\tif ((phoneNumber.substring(n+1,n+2).equals(\"0\"))&&(phoneNumber.substring(n+2,n+3).equals(\"0\"))) {\n\t\t\t\tthrow new EmergencyNumberException(phoneNumber);\n\t\t\t}\n\t\t}\n\n\n\t}\n\n\n}catch (NineDigitsException e) {\n\tSystem.out.println(\"Error:Phone number is not 9 digits\");\n\tSystem.out.println(e.toString());\n}catch (AreacodeException e) {\n\tSystem.out.println(\"Error:Phone number is not having correct area code\");\n\tSystem.out.println(e.toString());\n}catch (EmergencyNumberException e) {\n\tSystem.out.println(\"Error:Phone number is 000 in it\");\n\tSystem.out.println(e.toString());\n}catch (NumberzeroException e){\n\tSystem.out.println(\"Second digit should not be 0\");\n\tSystem.out.println(e.toString());\n}\n\n\n\n\n\n\t}", "private static double getNumber() {\n double number;\n\n // Repeat reading until the user enters a valid number.\n while (true) {\n try {\n number = scanner.nextDouble();\n scanner.nextLine(); // Remove \\n from the scanner.\n break;\n } catch (java.util.InputMismatchException ex) {\n System.out.println(\"Enter double\");\n scanner.nextLine(); // Remove invalid data from the scanner.\n }\n }\n\n return number;\n }", "private Double parseNumber(String num) {\r\n\t\tDouble tempnum = (double) 0;\r\n\t\tint opos; //operator position\r\n\t\tif ((num == null) || (num.length() < 1) ) {\r\n\t\t\treturn tempnum;\r\n\t\t}\r\n\r\n\t\t//replace constants with their value\r\n\t\twhile (num.indexOf(\"P\") >= 0) { //PI constant\r\n\t\t\tString[] numparts = StringUtil.splitData(num, 'P', 2);\r\n\t\t\tnum = numparts[0]+String.valueOf(Math.PI)+numparts[1];\r\n\t\t}\r\n\t\twhile (num.indexOf(\"X\") >= 0) { //e constant\r\n\t\t\tString[] numparts = StringUtil.splitData(num, 'X', 2);\r\n\t\t\tnum = numparts[0]+String.valueOf(Math.E)+numparts[1];\r\n\t\t}\r\n\r\n\t\tif (num.indexOf(\"^\") >= 0) { //allows to specify powers (e.g.: 2^10)\r\n\t\t\tString[] numparts = StringUtil.splitData(num, '^', 2);\r\n\t\t\ttempnum = Math.pow(parseNumber(numparts[0]), parseNumber(numparts[1]));\r\n\t\t}\r\n\t\telse if ( ((opos = num.indexOf(\"-\")) > 0) && (num.charAt(opos-1) != 'E') && (num.charAt(opos-1) != '^')) {\r\n\t\t\tString[] numparts = StringUtil.splitData(num, '-', 2);\r\n\t\t\ttempnum = parseNumber(numparts[0]) - parseNumber(numparts[1]);\r\n\t\t}\r\n\t\telse if ( ((opos = num.indexOf(\"+\")) > 0) && (num.charAt(opos-1) != 'E') && (num.charAt(opos-1) != '^')) {\r\n\t\t\tString[] numparts = StringUtil.splitData(num, '+', 2);\r\n\t\t\ttempnum = parseNumber(numparts[0]) + parseNumber(numparts[1]);\r\n\t\t}\r\n\t\telse if (num.indexOf(\"/\") >= 0) {\r\n\t\t\tString[] numparts = StringUtil.splitData(num, '/', 2);\r\n\t\t\ttempnum = parseNumber(numparts[0]) / parseNumber(numparts[1]);\r\n\t\t}\r\n\t\telse if (num.indexOf(\"*\") >= 0) {\r\n\t\t\tString[] numparts = StringUtil.splitData(num, '*', 2);\r\n\t\t\ttempnum = parseNumber(numparts[0]) * parseNumber(numparts[1]);\r\n\t\t}\r\n\t\telse {\r\n\t\t\ttempnum = Double.valueOf(num);\r\n\t\t}\r\n\r\n\t\treturn tempnum;\r\n\t}", "public int getDigit(int index){\n\t\tif (index+1 > data.length){\n\t\t\tSystem.out.println(\"index out of bounds\");\n\t\t}\n\t\treturn index;\n\t\t\n\t}", "private Token scanRealOrIntegerLiteral() {\n Token tok;\n Pair<Integer, Integer> pos = new Pair<>(in.line(), in.pos());\n while (Character.isDigit(c) && c != '.' && c != -1) {\n buffer.add(c);\n c = in.read();\n }\n\n if (c == '.') {\n int nextChar = in.read();\n if (nextChar == '.') { // which means '..' operator was encountered\n tok = new Token(buffer.toString(),\n TokenType.INTEGER, pos);\n enqueuedToken = new Token(\"..\", TokenType.RANGE, pos);\n buffer.flush();\n c = in.read(); // reading in the next unprocessed character\n } else if (Character.isDigit(nextChar)) { // which means a real literal was encountered\n buffer.add(c);\n while (Character.isDigit(nextChar)) {\n buffer.add(nextChar);\n nextChar = in.read();\n }\n tok = new Token(buffer.toString(), TokenType.REAL_LITERAL, pos);\n buffer.flush();\n c = nextChar;\n\n } else { // which means a real literal without digits after dot (like 1. <=> 1.0)\n\n buffer.add(c);\n tok = new Token(buffer.toString(), TokenType.REAL_LITERAL, pos);\n buffer.flush();\n c = nextChar;\n\n }\n } else {\n tok = new Token(buffer.toString(), TokenType.INTEGER_LITERAL, pos);\n buffer.flush();\n }\n return tok;\n }", "private void read(String rpn) {\n\t\tStack<Object> stack = new Stack<Object>();\n\t\tObject val1, val2;\n\n\t\tfor(String token : rpn.split(\"\\\\s+\")) {\n\t\t\tif(isOperator(token)) {\n\t\t\t\tval2 = stack.pop();\n\t\t\t\tval1 = stack.pop();\n\t\t\t\tif(token.equals(\"+\")) {\n\t\t\t\t\tif(isMatrix(val1) && isMatrix(val2)) {\n\t\t\t\t\t\tstack.push(Matrix.add(toMatrix(val1), toMatrix(val2)));\n\t\t\t\t\t}\n\t\t\t\t\telse if(isNumber(val1) && isNumber(val2)) {\n\t\t\t\t\t\tstack.push(Double.parseDouble((String) val1) + Double.parseDouble((String) val2));\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tthrow new IllegalArgumentException(\"Invalid Argument: numbers may\\nnot be added to matrices\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(token.equals(\"-\")) {\n\t\t\t\t\tif(isMatrix(val1) && isMatrix(val2)) {\n\t\t\t\t\t\tstack.push(Matrix.subtract(toMatrix(val1), toMatrix(val2)));\n\t\t\t\t\t}\n\t\t\t\t\telse if(isNumber(val1) && isNumber(val2)) {\n\t\t\t\t\t\tstack.push(Double.parseDouble((String) val1) - Double.parseDouble((String) val2));\n\t\t\t\t\t}\n\t\t\t\t\telse throw new IllegalArgumentException(\"Invalid Argument: numbers may not be\\nsubtracted to or from matrices\");\n\t\t\t\t}\n\t\t\t\telse if(token.equals(\"*\")) {\n\t\t\t\t\tif(isMatrix(val1) && isMatrix(val2)) {\n\t\t\t\t\t\tif(Matrix.multiply(toMatrix(val1), toMatrix(val2)) == null) throw new IllegalArgumentException(\"The number of columns in A must be\\n\"\n\t\t\t\t\t\t\t\t+ \"equal to the number of rows in B\");\n\t\t\t\t\t\tstack.push(Matrix.multiply(toMatrix(val1), toMatrix(val2)));\n\t\t\t\t\t}\n\t\t\t\t\telse if(isMatrix(val1) && isNumber(val2)) {\n\t\t\t\t\t\tstack.push(Matrix.multiply(toMatrix(val1), Double.parseDouble((String) val2)));\n\t\t\t\t\t}\n\t\t\t\t\telse if(isNumber(val1) && isMatrix(val2)) {\n\t\t\t\t\t\tstack.push(Matrix.multiply(toMatrix(val2), Double.parseDouble((String) val1)));\n\t\t\t\t\t}\n\t\t\t\t\telse if(isNumber(val1) && isNumber(val2)) {\n\t\t\t\t\t\tstack.push(Double.parseDouble((String) val1) * Double.parseDouble((String) val2));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(token.equals(\"/\")) {\n\t\t\t\t\tif(isNumber(val1) && isNumber(val2)) {\n\t\t\t\t\t\tstack.push(Double.parseDouble((String) val1) / Double.parseDouble((String) val2));\n\t\t\t\t\t}\n\t\t\t\t\telse if(isMatrix(val1) && isNumber(val2)) {\n\t\t\t\t\t\tstack.push(Matrix.divide(toMatrix(val1), Double.parseDouble((String) val2)));\n\t\t\t\t\t}\n\t\t\t\t\telse throw new IllegalArgumentException(\"Invalid Argument: cannot\\ndivide by a matrix\");\n\t\t\t\t}\n\t\t\t\telse if(token.equals(\"^\")) {\n\t\t\t\t\tif(isMatrix(val1) && isNumber(val2)) {\n\t\t\t\t\t\tstack.push(Matrix.pow(toMatrix(val1), Integer.parseInt((String) val2)));\n\t\t\t\t\t}\n\t\t\t\t\telse if(isNumber(val1) && isNumber(val2)) {\n\t\t\t\t\t\tstack.push(Math.pow(Double.parseDouble((String) val1), Double.parseDouble((String) val2))); \n\t\t\t\t\t}\n\t\t\t\t\telse throw new IllegalArgumentException(\"Invalid Argument: exponents\\nmay not be matrices\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse stack.push(token);\n\t\t}\n\t\tsolution = stack.pop();\n\t}", "private void processNumeric() {\n\n Token token = tokens.get(currentTokenPointer);\n\n String tokenString = string(token);\n\n pushIt(new ReplacementTransformer(tokenString));\n\n }", "public static long inetAton(String add) {\n long result = 0;\n // number between a dot\n long section = 0;\n // which digit in a number\n int times = 1;\n // which section\n int dots = 0;\n for (int i = add.length() - 1; i >= 0; --i) {\n if (add.charAt(i) == '.') {\n times = 1;\n section <<= dots * 8;\n result += section;\n section = 0;\n ++dots;\n } else {\n section += (add.charAt(i) - '0') * times;\n times *= 10;\n }\n }\n section <<= dots * 8;\n result += section;\n return result;\n }", "java.lang.String getNumb();", "default ArrayList readIntNumbers(char symbol) {\n ArrayList<Double> numbers = new ArrayList<>();\n System.out.println(\"Dwse arithmo. Gia na stamathseis pata to enter\");\n Scanner input = new Scanner(System.in);\n double answer;\n String s = null;\n\n //an to symbolo einai h riza tote diavazei mono ena noumero\n if (symbol == '\\u221A') {\n try {\n s = input.nextLine();\n answer = Double.parseDouble(s);\n numbers.add(answer);\n } catch (NumberFormatException e) {\n if (s.equals(\"\")) {\n ;\n } else {\n System.out.println(\"Not a number. Please give a number\");\n }\n }\n //alliws diavazei osous thelei o xristis\n } else {\n do {\n try {\n s = input.nextLine();\n answer = Double.parseDouble(s);\n numbers.add(answer);\n } catch (NumberFormatException e) {\n if (s.equals(\"\")) {\n ;\n } else {\n System.out.println(\"Not a number. Please give a number\");\n }\n //if (s.equals(\"\") || numbers.size() <= 2) {\n // System.out.println(\"Not a number. Please give a number\");\n //}\n }\n } while (!s.equals(\"\") || numbers.size() < 2);\n }\n return numbers;\n\n }", "public static String extractDigits(String src) {\n\t\tStringBuilder builder = new StringBuilder();\n\t\tfor (int i = 0; i < src.length(); i++) {\n\t\t\tchar c = src.charAt(i);\n\t\t\tif (Character.isDigit(c)) {\n\t\t\t\tbuilder.append(c);\n\t\t\t}\n\t\t}\n\t\treturn builder.toString();\n\t}", "String shortRead();", "private Token number() {\n\t\tStringBuffer sb = new StringBuffer();\n\t\twhile(isDigit(this.currentChar) && this.pos != Integer.MIN_VALUE) {\n\t\t\tsb.append(this.currentChar);\n\t\t\tnext_char();\n\t\t}\n\t\t//处理小数\n\t\tif(this.currentChar == '.') {\n\t\t\tsb.append(this.currentChar);\n\t\t\tnext_char();\n\t\t\t\n\t\t\twhile(isDigit(this.currentChar) && this.pos != Integer.MIN_VALUE) {\n\t\t\t\tsb.append(this.currentChar);\n\t\t\t\tnext_char();\n\t\t\t}\n\t\t\treturn new Token(Type.REAL_CONST, sb.toString());\n\t\t}else {\n\t\t\treturn new Token(Type.INTEGER_CONST, sb.toString());\n\t\t}\n\t}", "public TamilWord readNumber(String number, ReaderFeature... features) throws NotANumberException;", "public int read(int i);", "public static Token number(char firstChar, Source source) {\r\n\t\tToken token = new Token(firstChar);\r\n\t\ttoken.lineNumber = source.lineNumber();\r\n\t\tint pointCount = 0;\r\n\r\n\t\t// Loop to get the rest of the characters of the number token.\r\n\t\t// Append digits to the token.\r\n\t\tfor (char ch = source.nextChar(); Character.isDigit(ch) || (ch == '.'); ch = source.nextChar()) {\r\n\t\t\tif (ch == '.')\r\n\t\t\t\tpointCount++;\r\n\t\t\ttoken.text += ch;\r\n\t\t}\r\n\r\n\t\tif (pointCount == 0) { // Integer constant.\r\n\t\t\ttoken.type = TokenType.INTEGER;\r\n\t\t\ttoken.value = Long.parseLong(token.text);\r\n\t\t} else if (pointCount == 1) { // Real constant.\r\n\t\t\ttoken.type = TokenType.REAL;\r\n\t\t\ttoken.value = Double.parseDouble(token.text);\r\n\t\t} else {\r\n\t\t\ttokenError(token, \"Invalid number\");\r\n\t\t\ttoken.type = TokenType.ERROR;\r\n\t\t}\r\n\r\n\t\treturn token;\r\n\t}", "public static int[] readMysteriousNumbers(String filename) throws Exception {\n File file = new File(filename);\n Scanner counter = new Scanner(file);\n int numLines = 0;\n while(counter.hasNextLine()){\n counter.nextLine();\n numLines++;\n }\n int[] arr = new int[numLines];\n\n\n\n Scanner reader = new Scanner(file);\n int index = 0;\n while(reader.hasNextLine()){\n arr[index] = Integer.parseInt(reader.nextLine());\n index++;\n }\n\n\n\n\n return arr;\n /*\n List<Integer> nums = new ArrayList<>();\n while (scanner.hasNextInt()) {\n nums.add(scanner.nextInt());\n }\n int[] ret = new int[nums.size()];\n for(int i = 0;i < ret.length;i++) {\n ret[i] = nums.get(i);\n }\n return ret*/\n }", "private static String toNumber(String in) {\n in = in.toLowerCase();\n for (int i = 0; i < MONTHS.length; i++)\n if (MONTHS[i].equals(in))\n return Integer.toString(i + 1);\n for (int i = 0; i < DAYS.length; i++)\n if (DAYS[i].equals(in))\n return Integer.toString(i);\n try {\n Integer.parseInt(in);\n } catch (NumberFormatException e) {\n throw new IllegalArgumentException(\"'\" + in + \"' is not a number!\");\n }\n return in;\n }", "@Test public void testParseManyDigits4() {\n String pows10 =\n \"3\\n\"+\n \"1e-18\\n\"+\n \"1e-34\\n\"+\n \"\";\n double[][] pows10_exp = new double[][] {\n ard(3),\n ard(1e-18),\n ard(1e-34),\n };\n Key k = FVecFactory.makeByteVec(pows10);\n Key r1 = Key.make(\"r1\");\n ParseDataset.parse(r1, k);\n testParsed(r1,pows10_exp);\n }", "@Test\n public void testDecodeObjectWithInvalidNumberLeadingDot() throws Exception {\n try {\n JSONDecoder.decode(\"{ \\\"myValue\\\": .123456 }\");\n fail(\"Expected NumberFormatException\");\n } catch (Exception e) {\n assertEquals(NumberFormatException.class, findRootCause(e).getClass());\n }\n }", "private void processNumericModifier() {\n\n Token token = tokens.get(currentTokenPointer);\n\n if (currentVersionComponent == 3) {\n\n raiseParseProblem(\"cannot specify a numerical +/- value for the qualifier, found '\" + string(token) + \"' at position \" + token.start,\n\n token.start);\n\n }\n\n String tokenString = string(token);\n\n try {\n\n Integer value = null;\n\n if (token.kind == TokenKind.PLUSNUMBER) {\n\n value = Integer.parseInt(tokenString.substring(1));\n\n } else {\n\n value = Integer.parseInt(tokenString);\n\n }\n\n pushIt(new SumTransformer(value));\n\n } catch (NumberFormatException nfe) {\n\n raiseParseProblem(\"cannot parse numerical value '\" + tokenString + \"' at position \" + token.start, token.start);\n\n }\n\n }", "public static int[] extractNum(String str){\n String nums=\"\";\n for(int i=0; i<str.length(); i++){\n if(str.charAt(i)>=0&&str.charAt(i)<=9){\n nums+=str.charAt(i)+\"\";\n }\n }\n// System.out.println((nums));\n String [] arr = nums.split(\"\");\n int[] numArr = new int [arr.length];\n for (int i=0; i<arr.length; i++){\n numArr[i]=Integer.parseInt(arr[i]);\n }\n return numArr;\n }", "private GDSLayers gdsGetNumbers(String str)\n \t{\n \t\tint openParen = str.indexOf('(');\n \t\tif (openParen < 0) return null;\n \t\tint closeParen = str.lastIndexOf(')');\n \t\tif (closeParen < 0) return null;\n \t\tString gdsNumbers = str.substring(openParen+1, closeParen);\n \t\tGDSLayers numbers = GDSLayers.parseLayerString(gdsNumbers);\n \t\treturn numbers;\n \t}", "private int read(int width) throws JSONException\n {\n try\n {\n int value=this.bitreader.read(width);\n if(probe)\n {\n log(value,width);\n }\n return value;\n }\n catch(Throwable e)\n {\n throw new JSONException(e);\n }\n }", "public abstract int parse(byte bc[], int index);", "public int convert(String src) throws NumberFormatException\n\t{\n\t\tboolean isNegative = false;\n\t\tint total = 0;\n\t\tint result = 0;\n\n\t\tchar[] charArray = src.toCharArray();\n\n\t\tfor (int i = 0; i < charArray.length; i++)\n\t\t{\n\t\t\tif (charArray[0] == '-' && i == 0) // if it is negative\n\t\t\t{\n\t\t\t\tisNegative = true;\n\t\t\t}\n\t\t\telse if (charArray[0] == '+' && i == 0) // if it is positive with '+' char\n\t\t\t{\n\t\t\t\tthrow new NumberFormatException(PLUS_CHAR_EXCEPTION_ERROR);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(charArray[i] - ZERO > 0 && charArray[i] < NINE)\n\t\t\t\t{\n\t\t\t\t\ttotal = total * 10 + charArray[i] - ZERO;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tresult = total;\n\n\t\tif (isNegative)\n\t\t{\n\t\t\tresult = -total; //inverse\n\t\t}\n\n\t\treturn result;\n\t}", "private double tranferStringToNum(String num){\r\n double number = 0;\r\n try{\r\n\tnumber = Double.parseDouble(num);\r\n }catch(Exception ex){\r\n\tnumber = 0;\r\n }\r\n return number;\r\n }", "@Test public void testParseManyDigits3() {\n String pows10 =\n \"0.00000000000001\\n\"+\n \"1000001\\n\"+\n \"2000001\\n\"+\n \"\";\n double[][] pows10_exp = new double[][] {\n ard(1e-14),\n ard(1000001L),\n ard(2000001L),\n };\n Key k = FVecFactory.makeByteVec(pows10);\n Key r1 = Key.make(\"r1\");\n ParseDataset.parse(r1, k);\n testParsed(r1,pows10_exp);\n }", "public int getDigit(int index) {\n\t\tif (index < 0 || index > data.length - 1) {\n\t\t\tSystem.out.println(\"cease this buffoonery.\");\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\treturn data[index];\n\t}", "public double readDouble() throws NumberFormatException {\r\n\t\treturn Double.parseDouble(scanner.nextLine());\r\n\t}", "static int getNumberFromString(String s) {\n if (s == null) {\n throw new NumberFormatException(\"null\");\n }\n int result = 0;\n int startIndex = 0;\n int length = s.length();\n boolean negative = false;\n char firstChar = s.charAt(0);\n if (firstChar == '-') {\n negative = true;\n startIndex = 1;\n }\n\n for (int i = startIndex; i < length; i++) {\n char num = s.charAt(i);\n result = result * 10 + num - '0';\n }\n\n return negative ? -result : result;\n }", "public void loadDataType() throws IOException, NumberFormatException {\r\n InputStream flux;\r\n flux = new FileInputStream(\"././ressources/datatype.txt\");\r\n BufferedReader buff;\r\n InputStreamReader inputStreamReader = new InputStreamReader(flux);\r\n buff = new BufferedReader(inputStreamReader);\r\n String line;\r\n line = buff.readLine();\r\n int type = Integer.parseInt(line);\r\n leftShoe.getSerialReader().setDataType(type);\r\n rightShoe.getSerialReader().setDataType(type);\r\n buff.close();\r\n inputStreamReader.close();\r\n flux.close();\r\n }", "private static int[] readData(int size, String filename) throws FileNotFoundException {\n\t\tint[] input = new int[size];\t\n\t\tScanner scanner = new Scanner(new File(filename));\n \n int i = 0;\n while (scanner.hasNext() && i < size)\n {\n \tinput[i] = Integer.parseInt(scanner.next());\n \ti++;\n }\n scanner.close();\n\t return input;\n\t}", "public void parse(final String s) throws NumberFormatException {\r\n\t}", "public static int digit(ByteReader r) {\n\t\treturn digit(r.readUbyte());\n\t}", "private int parseAccountOrNum(String name) {\n \tint rtn;\n if (name.charAt(0) >= '0' && name.charAt(0) <= '9') {\n rtn = new Integer(name).intValue();\n }\n else {\n \trtn = parseAccount(name).readCache();\n }\n return rtn;\n }", "float readFloat();", "double readDouble();", "public int read() throws IOException {\n try {\n int code;\n\n // Read in and ignore empty bytes (NOP's) as long as they\n // arrive. \n do {\n\t code = readCode();\n\t } while (code == NOP); \n \n if (code >= BASE) {\n // Retrieve index of character in codeTable if the\n // code is in the correct range.\n return codeTable.charAt(code - BASE);\n } else if (code == RAW) {\n // read in the lower 4 bits and the higher 4 bits,\n // and return the reconstructed character\n int high = readCode();\n int low = readCode();\n return (high << 4) | low;\n } else \n throw new IOException(\"unknown compression code: \" + code);\n } catch (EOFException e) {\n // Return the end of file code\n return -1;\n }\n }", "public BencodeValue decodeBytes() throws IOException {\n int c = this.getNextIndicator();\n int num = c - '0';\n if (num < 0 || num > 9)\n throw new BencodeFormatException(\"Next char should be a digit, instead it is: '\"\n + (char)c + \"'\");\n this.indicator = 0;\n\n c = this.read();\n int i = c - '0';\n while (i >= 0 && i <= 9) {\n num = num*10 + i; //reconstruct a number digit by digit\n c = this.read();\n i = c - '0';\n }\n\n if (c != ':') {\n throw new BencodeFormatException(\"Next char should be a colon, instead it is: '\" +\n (char)c + \"'\");\n }\n return new BencodeValue(read(num));\n }", "public void readIn(String file) {\r\n\r\n\t\ttry {\r\n\r\n\t\t\t/** Initialise loop variable **/\r\n\r\n\t\t\tusedSize = 0;\r\n\r\n\t\t\t/** Set up file for reading **/\r\n\r\n\t\t\tFileReader reader = new FileReader(file);\r\n\r\n\t\t\tScanner in = new Scanner(reader);\r\n\r\n\t\t\t/** Loop round reading in data while array not full **/\r\n\r\n\t\t\twhile (in.hasNextInt() && (usedSize < size)) {\r\n\r\n\t\t\t\tA[usedSize] = in.nextInt();\r\n\r\n\t\t\t\tusedSize++;\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (IOException e) {\r\n\r\n\t\t\tSystem.out.println(\"Error processing file \" + file);\r\n\r\n\t\t}\r\n\r\n\t}", "private int getNumberBase(String n1){\n return Integer.parseUnsignedInt(n1, base);\n }", "public static void readFile() {\n\t\tbufferedReader = null;\n\t\ttry {\n\t\t\tFileReader fileReader = new FileReader(\"/home/bridgeit/Desktop/number.txt\");\n\t\t\tbufferedReader = new BufferedReader(fileReader);\n\n\t\t\tString line;\n\t\t\twhile ((line = bufferedReader.readLine()) != null) {\n\t\t\t\tString[] strings = line.split(\" \");\n\t\t\t\tfor (String integers : strings) {\n\t\t\t\t\thl.add(Integer.parseInt(integers));\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"File Not Found...\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\tbufferedReader.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\t}", "static int numberFrom(String s) throws NumberFormatException {\n return Integer.parseInt(s.replaceAll(\"[,+\\\\s+]\", EMPTY));\n }", "private int[][] readPuzzle(File f) throws NumberFormatException, IOException {\n\t\tint[][] out = new int[N + 1][N + 1];\n\t\tBufferedReader br = new BufferedReader(new FileReader(f));\n\t\tString line = null;\n\t\tint row = 1;\n\t\ttry {\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\tif (line.isBlank() || row > N)\n\t\t\t\t\tcontinue;\n\t\t\t\tString[] vals = line.split(\" \");\n\t\t\t\tif (vals.length != N)\n\t\t\t\t\treturn null;\n\t\t\t\tfor (int j = 0; j < vals.length; j++) {\n\t\t\t\t\tout[row][j + 1] = Integer.parseInt(vals[j]);\n\t\t\t\t}\n\t\t\t\trow++;\n\t\t\t}\n\t\t} finally {\n\t\t\tbr.close();\n\t\t}\n\t\treturn out;\n\t}", "@Override\n\tpublic void readPolynomial() {\n\n\t}", "abstract int readShort(int start);", "public Integer readIntegerFromCmd() throws IOException {\r\n\t\tSystem.out.println(\"Enter your number:\");\r\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n\t\tString number = null;\r\n\t\tnumber = br.readLine();\r\n\t\treturn new Integer(number);\r\n\t}", "double readDouble() throws IOException;", "public static IPV4Address parseAddress(String source)\n {\n if(source == null || source.length() <= 0){\n return new IPV4Address();\n }\n\n source = source.trim();\n\n int[] octs = new int[4];\n\n Scanner parse = new Scanner(source);\n parse.useDelimiter(\".\");\n\n int counter = 0;\n\n try {\n for (int i = 0; i < 4; i++) {\n if (parse.hasNext()) {\n octs[i] = Integer.parseInt(parse.next());\n if(octs[i] > 255 || octs[i] < 0) continue;\n counter++;\n }\n }\n }catch (NumberFormatException e){\n return new IPV4Address();\n }\n\n if(counter < 4){\n return new IPV4Address();\n }\n\n return new IPV4Address(octs[0], octs[1], octs[2], octs[3]);\n }", "@Test(timeout = 4000)\n public void test164() throws Throwable {\n StringReader stringReader0 = new StringReader(\"4+i\\\"{\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 47, 47, 21);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(47, javaCharStream0.getColumn());\n }", "public int getDigit(int index) {\n\t\tif(index >= 0&&index < data.length) {\n\t\t\treturn data[index];\n\t\t}else {\n\t\t\tSystem.out.println(\" the index is out of bounds\");\n\t\t\treturn 0;\n\t\t}\n\t}", "public static int getNumber(){\r\n\t\tint number=0;\r\n\t\twhile(true){\r\n\t\t\tString value = \"\" + input.next().charAt(0);\r\n\t\t\tif(Character.isDigit(value.charAt(0))){\r\n\t\t\tnumber = Integer.parseInt(value);\r\n\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Incorrect input! try again.\");\r\n\t\t}\r\n\t\treturn number;\r\n\t}" ]
[ "0.6479019", "0.628506", "0.59727955", "0.58663297", "0.57971215", "0.5661635", "0.5660562", "0.5623159", "0.54861015", "0.53508073", "0.53508073", "0.53508073", "0.53393763", "0.5296871", "0.5267585", "0.52431595", "0.5221964", "0.5199795", "0.5174283", "0.5153885", "0.51366365", "0.5130647", "0.5126589", "0.5124052", "0.51148486", "0.5110294", "0.5099394", "0.50598234", "0.50471437", "0.5042205", "0.49990842", "0.4995103", "0.4981419", "0.49606836", "0.49348465", "0.4912498", "0.4909469", "0.48973018", "0.4896236", "0.48931846", "0.4888814", "0.48792294", "0.48522198", "0.48491585", "0.48311713", "0.482965", "0.48240376", "0.4812742", "0.47975045", "0.47820568", "0.47776577", "0.47746152", "0.47717044", "0.47698414", "0.47609007", "0.47606078", "0.47577357", "0.47397757", "0.47343746", "0.4721606", "0.47169787", "0.47169313", "0.4715932", "0.47041386", "0.4684263", "0.46763986", "0.46760452", "0.46722832", "0.46639627", "0.46556288", "0.46415347", "0.46394372", "0.46388763", "0.46272218", "0.46208167", "0.46182987", "0.46135068", "0.4612556", "0.46049204", "0.460271", "0.45965743", "0.45944", "0.45937994", "0.45925042", "0.45865178", "0.45856893", "0.45827594", "0.45817024", "0.4580205", "0.45795187", "0.45776257", "0.4574498", "0.45724434", "0.4571619", "0.45652747", "0.45644695", "0.45614266", "0.45552278", "0.4553829", "0.45488468" ]
0.4980595
33
Determines wether the token is a number or not
public static boolean isNumber(String token) { boolean toret = true; try { Double.parseDouble(token); } catch(Exception e) { toret = false; } return toret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean testForNumber() throws IOException {\n int token = fTokenizer.nextToken();\n\tfTokenizer.pushBack();\n return (token == StreamTokenizer.TT_NUMBER);\n }", "public static void checkNumber(List<Token> token) {\r\n\t\tfor (Token tk : token) {\r\n\t\t\tif (tk.getName().matches(\"^\\\\d+$\")) {\r\n\t\t\t\ttk.getFeatures().setLexicalType(String.valueOf(Lexical.NUMBER));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public boolean isNum() \n\t{ \n\t try \n\t { \n\t int d = Integer.parseInt(numeric); \n\t } \n\t catch(NumberFormatException nfe) \n\t { \n\t return false; \n\t } \n\t return true; \n\t}", "public abstract boolean isNumeric();", "private boolean checkForNumber(String field) {\n\n\t\tPattern p = Pattern.compile(\"[0-9].\");\n\t\tMatcher m = p.matcher(field);\n\n\t\treturn (m.find()) ? true : false;\n\t}", "private Token number() {\n\t\tStringBuffer sb = new StringBuffer();\n\t\twhile(isDigit(this.currentChar) && this.pos != Integer.MIN_VALUE) {\n\t\t\tsb.append(this.currentChar);\n\t\t\tnext_char();\n\t\t}\n\t\t//处理小数\n\t\tif(this.currentChar == '.') {\n\t\t\tsb.append(this.currentChar);\n\t\t\tnext_char();\n\t\t\t\n\t\t\twhile(isDigit(this.currentChar) && this.pos != Integer.MIN_VALUE) {\n\t\t\t\tsb.append(this.currentChar);\n\t\t\t\tnext_char();\n\t\t\t}\n\t\t\treturn new Token(Type.REAL_CONST, sb.toString());\n\t\t}else {\n\t\t\treturn new Token(Type.INTEGER_CONST, sb.toString());\n\t\t}\n\t}", "private void processNumber() {\r\n\t\tString number = extractNumber();\r\n\r\n\t\tif ((!number.equals(\"1\")) && (!number.equals(\"0\"))) {\r\n\t\t\tthrow new LexerException(String.format(\"Unexpected number: %s.\", number));\r\n\t\t}\r\n\r\n\t\ttoken = new Token(TokenType.CONSTANT, number.equals(\"1\"));\r\n\t}", "private boolean isNumeric(String s) {\n return java.util.regex.Pattern.matches(\"\\\\d+\", s);\n }", "public boolean isNum(String x) {\n\t\tfor (int i = 0; i < x.length(); i++) {\n\t\t\tchar c = x.charAt(i);\n\t\t\tif ((c == '-' || c == '+') && x.length() > 1)\n\t\t\t\tcontinue;\n\t\t\tif ((int) c > 47 && (int) c < 58)\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "boolean hasNumber();", "private boolean isNumberAhead() {\r\n\t\treturn Character.isDigit(expression[currentIndex]);\r\n\t}", "public boolean isNum(String cad){\n try{\n Integer.parseInt(cad);\n return true;\n }catch(NumberFormatException nfe){\n System.out.println(\"Solo se aceptan valores numericos\");\n return false;\n }\n }", "public static boolean IsNumber(int par_Numer) {\n return true;\n }", "private boolean isNumber( String test ) {\n\treturn test.matches(\"\\\\d+\");\n }", "private static boolean validNumber(String thing) {\n\t\treturn validDouble(thing);\n\t}", "private static boolean isNumeric(String cadena)\n\t {\n\t\t try \n\t\t {\n\t\t\t Integer.parseInt(cadena);\n\t\t\t return true;\n\t\t } catch (NumberFormatException nfe)\n\t\t {\n\t\t\t return false;\n\t\t }\n\t }", "public static boolean isINT(final String token) {\n\t\t// Check for empty or 1-size strings.\n\t\tif (token.length() < 2)\n\t\t\treturn false;\n\n\t\t// verify all chars are 0-9.\n\t\tfor (int i = 0; i < token.length(); i++) {\n\t\t\tif (!digits.contains(Character.toString(token.charAt(i)))) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t// Passes all tests!\n\t\treturn true;\n\t}", "public static boolean numbersCheck(String num)\r\n\t{\r\n\t\treturn num.matches(\"[0-9]+\");\r\n\t}", "private static boolean isNumeric(String str){\n return str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); //match a number with optional '-' and decimal.\n }", "private Token basicNextNumberToken() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\n\t\twhile(currentIndex < data.length) {\n\t\t\t\t\n\t\t\tchar c = data[currentIndex];\n\t\t\tif(c >= '1' && c <= '9') {\n\t\t\t\tsb.append(c);\n\t\t\t\tcurrentIndex++;\n\t\t\t\t\t\n\t\t\t} else break;\t\n\t\t}\n\t\t\n\t\treturn new Token(TokenType.NUMBER, Long.parseLong(sb.toString()));\n\t }", "public static boolean IsNumber(String par_Number) {\n\n java.util.regex.Pattern p = java.util.regex.Pattern.compile(\"^\\\\-?\\\\d*.?\\\\d+$\");\n java.util.regex.Matcher m = p.matcher(par_Number);\n\n return m.matches() || IsInteger(par_Number);\n }", "public static boolean isNumeric(char num) {\n\t\treturn isNumeric(String.valueOf(num));\n\t}", "public static boolean isnumber(char c) {\n\t\tif (c=='0'||c=='1'||c=='2'||c=='3'||c=='4'||c=='5'||c=='6'||c=='7'||c=='8'||c=='9') {\n\t\t\treturn true;// return true if that char is number\n\t\t}\n\t\telse { //else return false\n\t\t\treturn false;\n\t\t}\n\t}", "protected boolean isNumeric(final String id) {\n\t\tfinal NumberFormat formatter = NumberFormat.getInstance();\n\t\tfinal ParsePosition pos = new ParsePosition(0);\n\t\tformatter.parse(id, pos);\n\t\treturn id.length() == pos.getIndex();\n\t}", "private boolean isDigit(char toCheck) {\n return toCheck >= '0' && toCheck <= '9';\n }", "boolean hasNum();", "boolean hasNum();", "boolean hasNum();", "public boolean isNumberValue()\n {\n return getFieldType().equalsIgnoreCase(TYPE_NUMBER);\n }", "public static boolean isNumber(char n) {\r\n\t\treturn (n >= '0' && n <= '9');\r\n\t}", "public boolean checkNumber() {\n\t\treturn true;\n\t}", "public boolean isNumber(String num)\t{\n\t\tfor(int i=0;i<13;i++)\t{\n\t\t\tif(Integer.parseInt(num)==i)\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean isNumeric() {\n return this.isInteger() || this.isDecimal() || this.isDouble();\n }", "private static boolean isNumeric(String str){\n return NumberUtils.isNumber(str);\n }", "private static boolean isNumber(String value){\r\n\t\tfor (int i = 0; i < value.length(); i++){\r\n\t\t\tif (value.charAt(i) < '0' || value.charAt(i) > '9')\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean isNumber(String in) \n\t{\n\t\ttry \n\t\t{\n\t\t\tInteger.parseInt(in);\n\t\t\treturn true;\n\t\t}\n\t\tcatch (Exception e) \n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isNumeric(String str){\r\n\t Pattern pattern = Pattern.compile(\"[0-9]*\");\r\n\t return pattern.matcher(str).matches(); \r\n\t}", "private boolean isDigit(char x) {\n return x >= '0' && x <= '9';\n }", "private boolean isInt(String num) {\n boolean isInt;\n try {\n Integer.parseInt(num);\n isInt = true;\n } catch (Exception e) {\n isInt = false;\n }\n return isInt;\n }", "public boolean hasNumber(){\n return (alg.hasNumber(input.getText().toString()));\n }", "public boolean isNumeric(String cadena) {\n try {\r\n Integer.parseInt(cadena);\r\n return true;\r\n } catch (NumberFormatException nfe) {\r\n return false;\r\n }\r\n }", "public static boolean isNumeric(String userInput) {\n return Pattern.matches(Constants.ID_VALIDATION, userInput);\n }", "private static boolean isNumeric(String str)\t{\n\n\t\treturn str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); \n\t\t\t// match a number with optional '-' and decimal.\n\t}", "public boolean isNumeric() {\n\t\tif (this instanceof Integer) {\n\t\t\treturn true;\n\t\t} else if (this instanceof Array) {\n\t\t\treturn ((Array) this).getElementType().isNumeric();\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public static boolean isNumeric(String cadena){ \r\n try {\r\n Integer.parseInt(cadena);\r\n return true;\r\n } catch (NumberFormatException e){\t\r\n System.out.println(e.getMessage());\r\n return false;\r\n }\r\n }", "private boolean isNumerico(char unChar) {\r\n\t\tswitch (unChar) {\r\n\t\tcase '0':\r\n\t\t\treturn true;\r\n\t\tcase '1':\r\n\t\t\treturn true;\r\n\t\tcase '2':\r\n\t\t\treturn true;\r\n\t\tcase '3':\r\n\t\t\treturn true;\r\n\t\tcase '4':\r\n\t\t\treturn true;\r\n\t\tcase '5':\r\n\t\t\treturn true;\r\n\t\tcase '6':\r\n\t\t\treturn true;\r\n\t\tcase '7':\r\n\t\t\treturn true;\r\n\t\tcase '8':\r\n\t\t\treturn true;\r\n\t\tcase '9':\r\n\t\t\treturn true;\r\n\t\tdefault:\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "private boolean isNumber(final String number) {\n try {\n Integer.parseInt(number);\n return true;\n } catch (Exception e) {\n LOGGER.error(\"Not a number \" + number, e);\n return false;\n }\n }", "public String getNumberLiteral()\n {\n token = \"\";\n skipSpaces();\n char ch = getCurrentChar();\n\n // Read the first sign, if exists\n if ( ch == '+'\n || ch == '-' )\n {\n token += ch;\n this.advance();\n ch = getCurrentChar();\n }\n\n while( Character.isDigit( ch )\n || ch == '.' )\n {\n token += ch;\n this.advance();\n ch = getCurrentChar();\n }\n\n return token;\n }", "private boolean isNotNumeric(String s) {\n return s.matches(\"(.*)\\\\D(.*)\");\n }", "private void createNumber() {\n\t\tString value = \"\";\n\t\tvalue += data[currentIndex++];\n\t\t// minus is no longer allowed\n\t\twhile (currentIndex < data.length\n\t\t\t\t&& Character.isDigit(data[currentIndex])) {\n\t\t\tvalue += data[currentIndex++];\n\t\t}\n\n\t\tif (currentIndex + 1 < data.length && (data[currentIndex] == '.'\n\t\t\t\t&& Character.isDigit(data[currentIndex + 1]))) {\n\t\t\tvalue += data[currentIndex++]; // add .\n\t\t} else {\n\t\t\ttoken = new Token(TokenType.NUMBER, Integer.parseInt(value));\n\t\t\treturn;\n\t\t}\n\t\t// get decimals of number\n\t\twhile (currentIndex < data.length\n\t\t\t\t&& Character.isDigit(data[currentIndex])) {\n\t\t\tvalue += data[currentIndex++];\n\t\t}\n\t\ttoken = new Token(TokenType.NUMBER, Double.parseDouble(value));\n\t}", "private static boolean stringContainsNumber( String userName ) {\n return Pattern.compile( \"[0-9]\" ).matcher( userName).find();\n }", "public boolean isNumeric() {\n\t\treturn numeric;\n\t}", "public static boolean isNumber(String val)\n {\n\t if(val == null || val.trim().isEmpty())\n\t {\n\t\t return false;\n\t }\n\t else\n\t {\n\t\t Pattern patternForNumber = Pattern.compile(\"^[+-]?(([0-9]+\\\\.?[0-9]+)|[0-9]+)\");\n\t\t return patternForNumber.matcher(val).matches();\n\t }\n }", "private Token scanNumber(LocatedChar firstChar) {\n\t\tStringBuffer buffer = new StringBuffer();\n\t\tbuffer.append(firstChar.getCharacter());\n\t\tappendSubsequentDigits(buffer);\n\t\tif(input.peek().getCharacter() == DECIMAL_POINT) {\n\t\t\tLocatedChar c = input.next();\n\t\t\tif(input.peek().getCharacter() == DECIMAL_POINT) {\n\t\t\t\tinput.pushback(c);\n\t\t\t\treturn IntToken.make(firstChar, buffer.toString());\n\t\t\t}\n\t\t\tbuffer.append(c.getCharacter());\n\t\t\tif(input.peek().isDigit()) {\n\t\t\t\tappendSubsequentDigits(buffer);\n\t\t\t\tif(input.peek().getCharacter() == CAPITAL_E) {\n\t\t\t\t\tLocatedChar expChar = input.next();\n\t\t\t\t\tbuffer.append(expChar.getCharacter());\n\t\t\t\t\tif(input.peek().getCharacter() == '+' || input.peek().getCharacter() == '-') {\n\t\t\t\t\t\tbuffer.append(input.next().getCharacter());\n\t\t\t\t\t}\n\t\t\t\t\tif(input.peek().isDigit()) {\n\t\t\t\t\t\tappendSubsequentDigits(buffer);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tlexicalError(expChar, \"malformed floating exponent literal\");\n\t\t\t\t\t\treturn findNextToken();\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t\treturn FloatToken.make(firstChar, buffer.toString());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tlexicalError(firstChar, \"malformed floating literal\");\n\t\t\t\treturn findNextToken();\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\treturn IntToken.make(firstChar, buffer.toString());\n\t\t}\n\t}", "public default boolean hasNumber() {\n\t\treturn false;\n\t}", "private void nextNumber() {\n\t\tint old=pos;\n\t\tmany(digits);\n\t\ttoken=new Token(\"num\",program.substring(old,pos));\n }", "private void handleNumber() {\n while (isDigit(peek())) {\n advance();\n }\n\n // Look for decimals; Will be allowing extension calls like 140.abs() so make sure it's a numerical decimal\n if (peek() == '.' && isDigit(peekFurther(1))) {\n\n // Consume the decimal\n advance();\n\n // Consume the digits following the decimal\n while (isDigit(peek())) {\n advance();\n }\n }\n\n addToken(NUMBER, Double.parseDouble(source.substring(start, current)));\n }", "private boolean isNumber(char c){\n if(c >= 48 && c < 58)\n return true;\n else{\n return false;\n }\n }", "public void handleNumbers() {\n // TODO handle \"one\", \"two\", \"three\", etc.\n }", "boolean isNumeric() {\r\n\t\treturn isNumeric;\r\n\t}", "public static boolean IsNumber(double par_Number) {\n return true;\n }", "protected boolean isNumberValid(@NotNull ConversationContext context, @NotNull Number input) {\n/* 30 */ return true;\n/* */ }", "public boolean isContainNumericalDigits(String password) {\n\t\treturn password.matches(\".*[0-9].*\");\n\t}", "public boolean isNumeric(String str){\n try {\n int i = Integer.parseInt(str);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }", "public static boolean isNumeric(String num) {\n\t\ttry {\n\t\t\tdouble d = Double.parseDouble(num);\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "@Test\n void checkIsTrueForStringWithNumbers() {\n // Act, Assert\n assertTrue(IsNumeric.check(\"3\"));\n assertTrue(IsNumeric.check(\"0\"));\n assertTrue(IsNumeric.check(\"-0f\"));\n assertTrue(IsNumeric.check(\"3.8f\"));\n assertTrue(IsNumeric.check(\"-3.87F\"));\n assertTrue(IsNumeric.check(\"-3\"));\n assertTrue(IsNumeric.check(\"32f\"));\n assertTrue(IsNumeric.check(\"15D\"));\n assertTrue(IsNumeric.check(\"3.2\"));\n assertTrue(IsNumeric.check(\"0.2\"));\n assertTrue(IsNumeric.check(\"-0.28\"));\n assertTrue(IsNumeric.check(\"0.24D\"));\n assertTrue(IsNumeric.check(\"0.379d\"));\n }", "private static final boolean isNumeric(final char formatChar, final int count) {\n\t\tint i = NUMERIC_FORMAT_CHARS.indexOf(formatChar);\n\t\treturn (i > 0 || (i == 0 && count < 3));\n\t}", "public static boolean isDigits(String value) {\n return value.matches(\"[0-9]+\");\n }", "public static boolean isNumberType(byte t) {\n switch (t) {\n case INTEGER: return true ;\n case LONG: return true ;\n case FLOAT: return true ;\n case DOUBLE: return true ;\n case BIGINTEGER: return true ;\n case BIGDECIMAL: return true ;\n default: return false ;\n }\n }", "public static boolean isNumeric(String str)\n {\n return str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); //match a number with optional '-' and decimal.\n }", "private boolean isNumber(String number){\n\t\ttry{\r\n\t\t\tFloat.parseFloat(number);\r\n\t\t}catch(Exception e){\r\n\t\t\treturn false;// if the user input is not number it throws flase\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private static boolean isNumber( char i ) {\n\t\tif ( Character.isDigit(i) ) return true; \n\t\tthrow new IllegalArgumentException(\"The weight of the route should be a number, now it's '\"+ i +\"'\");\n\t}", "public static boolean isNumeric(String cadena) {\n try {\n Integer.parseInt(cadena);\n return true;\n } catch (NumberFormatException ex) {\n return false;\n }\n }", "private boolean esNumero(String cadena) {\n try {\n Integer.parseInt(cadena);\n return true;\n } catch (NumberFormatException nfe) {\n return false;\n }\n }", "public static boolean isNumeric(String str)\n {\n return str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); //match a number with optional '-' and decimal.\n }", "public boolean isNumber(String sIn)\r\n {\r\n int parseNumber = -1;\r\n \r\n try{\r\n parseNumber = Integer.parseInt(sIn);\r\n }catch(Exception e){\r\n return false;\r\n }\r\n \r\n return true;\r\n }", "public static boolean IsNumber(long par_Number) {\n return true;\n }", "private Token readNum(char firstchar) {\n StringBuilder numConstructCache = new StringBuilder();\n char c = firstchar;\n\n while (true) {\n if (isLegalNumChar(c)) {\n numConstructCache.append(c);\n } else {\n revokeCharRead();\n break;\n }\n c = getNextChar();\n }\n return new Token(TokenType.NUMBER, numConstructCache.toString()); //the value of 0 is null\n }", "@Override\n public abstract JsonParser.NumberType numberType();", "private void processNumeric() {\n\n Token token = tokens.get(currentTokenPointer);\n\n String tokenString = string(token);\n\n pushIt(new ReplacementTransformer(tokenString));\n\n }", "Boolean isNumeric(PrintWriter out, String strNum);", "public static boolean isNumber(String text)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tInteger.parseInt(text);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tcatch(NumberFormatException e)\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "boolean isNumeric(char pChar)\n{\n\n //check each possible number\n if (pChar == '0') {return true;}\n if (pChar == '1') {return true;}\n if (pChar == '2') {return true;}\n if (pChar == '3') {return true;}\n if (pChar == '4') {return true;}\n if (pChar == '5') {return true;}\n if (pChar == '6') {return true;}\n if (pChar == '7') {return true;}\n if (pChar == '8') {return true;}\n if (pChar == '9') {return true;}\n\n return false; //not numeric\n\n}", "private static boolean areNumbers(String s) {\n boolean isADigit = false;//only changed once everything has been checked\n //checks if places 0-2 are numbers and 3 is a \"-\"\n for(int i = 0; i < 3; i++) {\n if(Character.isDigit(s.charAt(i)) && s.charAt(3) == '-') {\n isADigit = true;\n }\n }\n //checks if places 4-5 are numbers and 6 is a \"-\"\n for(int i = 4; i < 6; i++) {\n if(Character.isDigit(s.charAt(i)) && s.charAt(6) == '-') {\n isADigit = true;\n }\n }\n //checks if places 7-10 are numbers\n for(int i = 7; i < 11; i++) {\n if(Character.isDigit(s.charAt(i))) {\n isADigit = true;\n }\n }\n return isADigit;\n }", "private boolean isNumeric(String s)\n {\n for (int i = 0; i < s.length(); ++i)\n {\n if (!Character.isDigit(s.charAt(i)))\n {\n return false;\n }\n }\n return true;\n }", "public static boolean isNumeric(Object number) {\n\t\treturn isNumericClass(number.getClass());\n\t}", "public static boolean isNumber(String text) {\r\n\t\ttry {\r\n\t\t\tInteger.parseInt(text);\r\n\t\t} catch(NumberFormatException e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public static boolean isNumeric(String strNum) {\r\n if (strNum == null) {\r\n return true;\r\n }\r\n try {\r\n Integer.parseInt(strNum);\r\n } catch (NumberFormatException nfe) {\r\n return true;\r\n }\r\n return false;\r\n }", "public static boolean isNumber(String str){\n return str != null && numberPattern.matcher(str).matches();\n }", "public static boolean isNumeric(String strNum) {\n if (strNum == null) {\n return false;\n }\n try {\n Integer d = Integer.parseInt(strNum);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }", "private static Expression getNumericLiteral(String token, ExceptionMetadata metadataFromContext) {\n if (!token.contains(\".\") && !token.contains(\"e\") && !token.contains(\"E\")) {\n return new IntegerLiteralExpression(Integer.parseInt(token), metadataFromContext);\n }\n if (!token.contains(\"e\") && !token.contains(\"E\")) {\n return new DecimalLiteralExpression(new BigDecimal(token), metadataFromContext);\n }\n return new DoubleLiteralExpression(Double.parseDouble(token), metadataFromContext);\n\n }", "public boolean isNumber(String str) {\n\t\treturn str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\");\n\t}", "private boolean isNumber(String str) {\r\n int ASCII_0 = 48;\r\n int ASCII_9 = 57;\r\n if (str.equals(\"\")) {\r\n return false;\r\n }\r\n for (int i = 0; i < str.length(); i++) {\r\n int chr = str.charAt(i);\r\n if (chr < ASCII_0 || chr > ASCII_9) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "public static boolean isNumber(String s) \r\n{ \r\n for (int i = 0; i < s.length(); i++) \r\n if (Character.isDigit(s.charAt(i)) \r\n == false) \r\n return false; \r\n\r\n return true; \r\n}", "@Test\n public void isNumeric() {\n assertTrue(Deadline.isNumeric(VALID_YEAR_2018));\n\n //contains other symbols -> false\n assertFalse(Deadline.isNumeric(INVALID_YEAR_WITH_SYMBOLS));\n\n //contains alphabets -> false\n assertFalse(Deadline.isNumeric(INVALID_YEAR_WITH_ALPHABETS));\n\n //contains space -> false\n assertFalse(Deadline.isNumeric(INVALID_YEAR_WITH_SPACE));\n }", "@Test\n public void testNumbersInvalid() throws Exception {\n testLexerSource(\"6x foo\", true, INVALID, WHITESPACE, IDENTIFIER);\n testLexerSource(\"6g foo\", true, INVALID, WHITESPACE, IDENTIFIER);\n testLexerSource(\"6xsd foo\", true, INVALID, WHITESPACE, IDENTIFIER);\n testLexerSource(\"6gsd foo\", true, INVALID, WHITESPACE, IDENTIFIER);\n }", "private static boolean isDigit(char p_char) {\n return p_char >= '0' && p_char <= '9';\n }", "public boolean isNumeric(String strNum) {\n if (strNum == null) {\n return false;\n }\n try {\n double d = Double.parseDouble(strNum);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }", "private void processNumericModifier() {\n\n Token token = tokens.get(currentTokenPointer);\n\n if (currentVersionComponent == 3) {\n\n raiseParseProblem(\"cannot specify a numerical +/- value for the qualifier, found '\" + string(token) + \"' at position \" + token.start,\n\n token.start);\n\n }\n\n String tokenString = string(token);\n\n try {\n\n Integer value = null;\n\n if (token.kind == TokenKind.PLUSNUMBER) {\n\n value = Integer.parseInt(tokenString.substring(1));\n\n } else {\n\n value = Integer.parseInt(tokenString);\n\n }\n\n pushIt(new SumTransformer(value));\n\n } catch (NumberFormatException nfe) {\n\n raiseParseProblem(\"cannot parse numerical value '\" + tokenString + \"' at position \" + token.start, token.start);\n\n }\n\n }", "private boolean valid_numbers(String nr)\n\t{\n\t\t// loop through the string, char by char\n\t\tfor(int i = 0; i < nr.length();i++)\n\t\t{\n\t\t\t// if the char is not a numeric value or negative\n\t\t\tif(Character.getNumericValue(nr.charAt(i)) < 0)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t// if it did not return false in the loop, return true\n\t\treturn true;\n\t}" ]
[ "0.78163725", "0.7247083", "0.70996946", "0.69556886", "0.68833464", "0.685332", "0.6759734", "0.6734939", "0.6723074", "0.67033696", "0.66589034", "0.6607205", "0.65547055", "0.6544421", "0.6531808", "0.65290934", "0.64472264", "0.6427692", "0.6424488", "0.64182395", "0.6411515", "0.64085996", "0.63776267", "0.6366731", "0.6355197", "0.6353585", "0.6353585", "0.6353585", "0.6330292", "0.63216966", "0.6321492", "0.63150835", "0.63126856", "0.63010657", "0.6299005", "0.6297693", "0.627796", "0.6271899", "0.6241381", "0.62304413", "0.6225048", "0.6219779", "0.6210556", "0.6196784", "0.61953604", "0.6177005", "0.61677", "0.61644703", "0.61604524", "0.6134004", "0.6122419", "0.6122055", "0.61176014", "0.6116069", "0.6112955", "0.6108609", "0.609624", "0.6091467", "0.6087754", "0.6081624", "0.60665005", "0.6066129", "0.6064269", "0.60574985", "0.6043374", "0.6042803", "0.6040791", "0.6032367", "0.6027025", "0.60267204", "0.5998477", "0.59969306", "0.5991214", "0.5990598", "0.5989144", "0.59882164", "0.59824306", "0.5982273", "0.598203", "0.5979472", "0.5976243", "0.5975148", "0.5972432", "0.59549946", "0.59524614", "0.5943466", "0.59428656", "0.5942849", "0.5940868", "0.5938038", "0.5919419", "0.5910053", "0.5902976", "0.59017843", "0.58916867", "0.5888366", "0.58873856", "0.5873937", "0.5873447", "0.5870314" ]
0.6923456
4
Decides whether the token holds a string literal or not
public static boolean isStringLiteral(String token) { return isLiteral( '"', '"', token ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean containsLiteral();", "public boolean isLiteral() {\n return false;\n }", "public static boolean isLiteral(char openDelimiter, char endDelimiter, String token)\n {\n return ( token.charAt( 0 ) == openDelimiter\n && token.charAt( token.length() -1 ) == endDelimiter )\n ;\n }", "public default boolean hasTokenString() {\n\t\treturn false;\n\t}", "static boolean isStringLiteral(final Expr expr)\n {\n return (expr.isLiteral() && expr.getLiteralValue() instanceof String)\n || (NullHandling.replaceWithDefault() && expr.isNullLiteral());\n }", "public boolean containsLiteralString(String literalData);", "public boolean isLiteral()\n {\n return this.literal;\n }", "private static boolean stringLiteralExpression_0(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"stringLiteralExpression_0\")) return false;\n boolean r;\n r = consumeToken(b, RAW_SINGLE_QUOTED_STRING);\n if (!r) r = consumeToken(b, RAW_TRIPLE_QUOTED_STRING);\n if (!r) r = stringTemplate(b, l + 1);\n return r;\n }", "private static boolean isValidLiteral(String literal)\r\n\t{\r\n\t\tboolean result = true;\r\n\t\t\r\n\t\tchar[] literalChars = new char[literal.length()];\r\n\t\tliteral.getChars(0, literalChars.length, literalChars, 0);\r\n\t\t\r\n\t\tfor (int i = 0; i < literalChars.length; i++)\r\n\t\t{\r\n\t\t\tif (i == 0 && !Character.isJavaIdentifierStart(literalChars[i]))\r\n\t\t\t{\r\n\t\t\t\tresult = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (i != 0 && !Character.isJavaIdentifierPart(literalChars[i]))\r\n\t\t\t{\r\n\t\t\t\tresult = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn result;\r\n\t}", "public final boolean hasLiteralValue ()\r\n {\r\n return _value.isLiteral();\r\n }", "public static boolean isToken(String value) {\n\tif( value==null) return true;\n\tint len = value.length();\n\n\tfor (int i = 0; i < len; i++) {\n\t char c = value.charAt(i);\n\n\t if (c < 0x20 || c >= 0x7f || tspecials.indexOf(c) != -1)\n\t\treturn false;\n\t}\n\treturn true;\n }", "@Test\n\tpublic void testStringLiteral() throws ParseException {\n\n\t\t// non-empty string\n\t\tStringLiteral stringLiteral = langParser(\"'abc'\").stringLiteral();\n\t\tassertEquals(stringLiteral.getValue(), \"abc\");\n\n\t\t// empty string\n\t\tstringLiteral = langParser(\"''\").stringLiteral();\n\t\tassertEquals(stringLiteral.getValue(), \"\");\n\t}", "public static boolean StringLiteral(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"StringLiteral\")) return false;\n if (!nextTokenIs(b, \"<string literal>\", OPENINGAPOS, OPENINGQUOT)) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, STRING_LITERAL, \"<string literal>\");\n r = QuotStringLiteral(b, l + 1);\n if (!r) r = AposStringLiteral(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "String getLiteral();", "String getLiteral();", "public boolean isString();", "public static boolean stringLiteralExpression(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"stringLiteralExpression\")) return false;\n if (!nextTokenIs(b, \"<string literal expression>\", OPEN_QUOTE, RAW_SINGLE_QUOTED_STRING, RAW_TRIPLE_QUOTED_STRING)) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, STRING_LITERAL_EXPRESSION, \"<string literal expression>\");\n r = stringLiteralExpression_0(b, l + 1);\n while (r) {\n int c = current_position_(b);\n if (!stringLiteralExpression_0(b, l + 1)) break;\n if (!empty_element_parsed_guard_(b, \"stringLiteralExpression\", c)) break;\n }\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "static private boolean isFirstOfLiteral(Token.Code code) {\r\n \t\t\t\treturn code == Token.Code.NULL || code == Token.Code.FALSE || code == Token.Code.TRUE || code == Token.Code.STRING || code == Token.Code.NUMBER;\r\n \t\t\t}", "@Override\n\tpublic boolean hasLiteral() {\n\t\treturn heldObj.hasLiteral();\n\t}", "public void setLiteral(boolean isLiteral)\n {\n this.literal = isLiteral;\n }", "StringLiteralExp createStringLiteralExp();", "public static boolean isLiteral (char c) {\n if (c != '*' && c != '?' && c != '(' && c != '[' && c != '\\\\' && c!= '|' && c!='^' && c!='.' && c!=')' && c!=']') return true;\n else return false;\n }", "private static boolean AposStringLiteral_1_0(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"AposStringLiteral_1_0\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = consumeToken(b, PREDEFINEDENTITYREF);\n if (!r) r = consumeToken(b, CHARREF);\n if (!r) r = EscapeApos(b, l + 1);\n if (!r) r = consumeToken(b, STRINGCHAR);\n exit_section_(b, m, null, r);\n return r;\n }", "public boolean isString()\n {\n return true;\n }", "public boolean isToken(String token){\n if(currentToken == -1) return false;\n return tokens.get(currentToken).identifier.equals(token);\n }", "boolean hasStringValue();", "static boolean AposStringLiteral(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"AposStringLiteral\")) return false;\n if (!nextTokenIs(b, OPENINGAPOS)) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = consumeToken(b, OPENINGAPOS);\n r = r && AposStringLiteral_1(b, l + 1);\n r = r && consumeToken(b, CLOSINGAPOS);\n exit_section_(b, m, null, r);\n return r;\n }", "public boolean containsLiteral(Object literalData);", "public boolean isString() {\n return false;\n }", "public boolean containsToken(String token);", "public static StringLiteral fromToken (String pToken)\n {\n return new StringLiteral (getValueFromToken (pToken));\n }", "private LiteralToken nextRegularExpressionLiteralToken() {\n LiteralToken token = scanner.nextRegularExpressionLiteralToken();\n lastSourcePosition = token.location.end;\n return token;\n }", "private static boolean AposStringLiteral_1(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"AposStringLiteral_1\")) return false;\n int c = current_position_(b);\n while (true) {\n if (!AposStringLiteral_1_0(b, l + 1)) break;\n if (!empty_element_parsed_guard_(b, \"AposStringLiteral_1\", c)) break;\n c = current_position_(b);\n }\n return true;\n }", "private static boolean QuotStringLiteral_1_0(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"QuotStringLiteral_1_0\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = consumeToken(b, PREDEFINEDENTITYREF);\n if (!r) r = consumeToken(b, CHARREF);\n if (!r) r = EscapeQuot(b, l + 1);\n if (!r) r = consumeToken(b, STRINGCHAR);\n exit_section_(b, m, null, r);\n return r;\n }", "public Literal getLiteralString(String literalData);", "@Override\n public boolean isMaybeAnyStr() {\n checkNotPolymorphicOrUnknown();\n return (flags & (STR_OTHERNUM | STR_IDENTIFIERPARTS | STR_OTHER)) == (STR_OTHERNUM | STR_IDENTIFIERPARTS | STR_OTHER); // note: ignoring excluded_strings and included_strings, see javadoc\n }", "void isToken(String p) {\r\n\t\tint n = 0;\r\n\t\t// switch statement that finds lexemes and tokens and add them to an arrayList\r\n\t\tString x = p;\r\n\t\tswitch (x) {\r\n\r\n\t\tcase \"int\":\r\n\t\t\tlexemes.add(\"int\");\r\n\t\t\ttokens.add(\"DATA_TYPE\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"double\":\r\n\t\t\tlexemes.add(\"double\");\r\n\t\t\ttokens.add(\"DATA_TYPE\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"<\":\r\n\t\t\tlexemes.add(\"<\");\r\n\t\t\ttokens.add(\"LESS_OP\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"{\":\r\n\t\t\tlexemes.add(\"{\");\r\n\t\t\ttokens.add(\"OPEN_CURLB\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"String\":\r\n\t\t\tlexemes.add(\"String\");\r\n\t\t\ttokens.add(\"DATA_TYPE\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"char\":\r\n\t\t\tlexemes.add(\"char\");\r\n\t\t\ttokens.add(\"DATA_TYPE\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"=\":\r\n\t\t\tlexemes.add(\"=\");\r\n\t\t\ttokens.add(\"ASSIGN_OP\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"float\":\r\n\t\t\tlexemes.add(\"float\");\r\n\t\t\ttokens.add(\"DATA_TYPE\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"-\":\r\n\t\t\tlexemes.add(\"-\");\r\n\t\t\ttokens.add(\"SUB_OP\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"+\":\r\n\t\t\tlexemes.add(\"+\");\r\n\t\t\ttokens.add(\"ADD_OPP\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"*\":\r\n\t\t\tlexemes.add(\"*\");\r\n\t\t\ttokens.add(\"MUL_OP\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"/\":\r\n\t\t\tlexemes.add(\"/\");\r\n\t\t\ttokens.add(\"DIV_OP\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"%\":\r\n\t\t\tlexemes.add(\"%\");\r\n\t\t\ttokens.add(\"MOD_OP\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \">\":\r\n\t\t\tlexemes.add(\">\");\r\n\t\t\ttokens.add(\"GREAT_OP\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"}\":\r\n\t\t\tlexemes.add(\"}\");\r\n\t\t\ttokens.add(\"CLOSE_CULRB\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"[\":\r\n\t\t\tlexemes.add(\"[\");\r\n\t\t\ttokens.add(\"OPEN_BRACK\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \":\":\r\n\t\t\tlexemes.add(\":\");\r\n\t\t\ttokens.add(\"COLON\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"]\":\r\n\t\t\tlexemes.add(\"]\");\r\n\t\t\ttokens.add(\"CLOSED_BRACK\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"(\":\r\n\t\t\tlexemes.add(\"(\");\r\n\t\t\ttokens.add(\"OPEN_PAR\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \",\":\r\n\t\t\tlexemes.add(\",\");\r\n\t\t\ttokens.add(\"COMMA\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \")\":\r\n\t\t\tlexemes.add(\")\");\r\n\t\t\ttokens.add(\"CLOSED_PAR\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \";\":\r\n\t\t\tlexemes.add(\";\");\r\n\t\t\ttokens.add(\"SEMICOLON\");\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\tlexemes.add(x);\r\n\t\t\ttokens.add(\"IDENT\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public final void mSTRING_LITERAL() throws RecognitionException {\n try {\n int _type = STRING_LITERAL;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n int c;\n\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:555:5: ( '\\\\'' (c=~ ( '\\\\'' ) | '\\\\'' '\\\\'' )* '\\\\'' )\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:555:7: '\\\\'' (c=~ ( '\\\\'' ) | '\\\\'' '\\\\'' )* '\\\\''\n {\n match('\\''); \n StringBuilder b = new StringBuilder(); \n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:557:7: (c=~ ( '\\\\'' ) | '\\\\'' '\\\\'' )*\n loop4:\n do {\n int alt4=3;\n int LA4_0 = input.LA(1);\n\n if ( (LA4_0=='\\'') ) {\n int LA4_1 = input.LA(2);\n\n if ( (LA4_1=='\\'') ) {\n alt4=2;\n }\n\n\n }\n else if ( ((LA4_0>='\\u0000' && LA4_0<='&')||(LA4_0>='(' && LA4_0<='\\uFFFF')) ) {\n alt4=1;\n }\n\n\n switch (alt4) {\n \tcase 1 :\n \t // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:557:9: c=~ ( '\\\\'' )\n \t {\n \t c= input.LA(1);\n \t if ( (input.LA(1)>='\\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='\\uFFFF') ) {\n \t input.consume();\n\n \t }\n \t else {\n \t MismatchedSetException mse = new MismatchedSetException(null,input);\n \t recover(mse);\n \t throw mse;}\n\n \t b.appendCodePoint(c);\n\n \t }\n \t break;\n \tcase 2 :\n \t // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:558:9: '\\\\'' '\\\\''\n \t {\n \t match('\\''); \n \t match('\\''); \n \t b.appendCodePoint('\\'');\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop4;\n }\n } while (true);\n\n match('\\''); \n setText(b.toString()); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "<C> StringLiteralExp<C> createStringLiteralExp();", "public static boolean StringLiteralOrWildcard(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"StringLiteralOrWildcard\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, STRING_LITERAL_OR_WILDCARD, \"<string literal or wildcard>\");\n r = StringLiteral(b, l + 1);\n if (!r) r = consumeToken(b, STAR_SIGN);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "private boolean noquote() {\r\n return NOT(GO() && CHAR('\\'')) && literal();\r\n }", "@Override\n\tpublic Object visitStringLiteral(StringLiteral literal) {\n\t\treturn null;\n\t}", "private static void checkStringExprNode(@Nullable Node node) {\n if (node == null) {\n throw new IllegalArgumentException(\"Expected a string; found: null\");\n }\n switch (node.getToken()) {\n case STRING:\n case TEMPLATELIT:\n break;\n case ADD:\n Node c = node.getFirstChild();\n checkStringExprNode(c);\n checkStringExprNode(c.getNext());\n break;\n default:\n throw new IllegalArgumentException(\"Expected a string; found: \" + node.getToken());\n }\n }", "public Literal setLiteralString(String literalData);", "public boolean canProvideString();", "boolean hasToken();", "boolean hasToken();", "boolean hasToken();", "boolean hasToken();", "boolean hasToken();", "boolean hasToken();", "private boolean literals() {\r\n return OPT(GO() && literal() && literals());\r\n }", "private boolean isSingleCharSentence(List<String> tokenlist) {\n\n return ((tokenlist.size() == 1)\n &&\n (tokenlist.get(0).equals(\"\\\"\")\n ||\n tokenlist.get(0).equals(\"'\"))\n &&\n !this.sentenceList.isEmpty());\n }", "Rule Literal() {\n // Push 1 LiteralNode onto the value stack\n return Sequence(\n FirstOf(\n SingleQuotedLiteral(),\n DoubleQuotedLiteral()),\n actions.pushLiteralNode());\n }", "public boolean hasString() {\n/* 800 */ return true;\n/* */ }", "public boolean ifPeekIsLitConstant() {\n\t\tif (ifPeek(\"INT_LIT\")) {\n\t\t\treturn true;\n\t\t} else if (ifPeek(\"CHAR_LIT\")) {\n\t\t\treturn true;\n\t\t} else if (ifPeek(\"STRING_LIT\")) {\n\t\t\treturn true;\n\t\t} else if (ifPeek(\"NULL_\")) {\n\t\t\treturn true;\n\t\t} else if (ifPeek(\"TRUE_\")) {\n\t\t\treturn true;\n\t\t} else if (ifPeek(\"FALSE_\")) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "final protected boolean match( Token T, String token )\n {\n return match( T, token, 0, false );\n }", "public abstract boolean isIdentifier(@Nullable String text);", "public void visit(Literal literal) {}", "private boolean STRING(String s) {\r\n int n = input.match(s, in);\r\n in += n;\r\n return (n > 0);\r\n }", "Literal createLiteral();", "Literal createLiteral();", "public StringLiteralToken(String id, String literal, boolean optional, boolean caseInsensitive) {\n\t\tthis.id = id;\n\t\tthis.literal = literal;\n\t\tthis.optional = optional;\n\t\tthis.caseInsensitive = caseInsensitive;\n\t}", "public boolean isActivationString(String word);", "public boolean isToken(Type token){\n if(currentToken == -1) return false;\n return tokens.get(currentToken).type.equals(token);\n }", "Rule SingleQuotedLiteral() {\n return Sequence(\n \"'\",\n ZeroOrMore(NoneOf(\"'\")),\n \"'\");\n }", "@Override\n\tpublic boolean canSetLiteral() {\n\t\treturn heldObj.canSetLiteral();\n\t}", "SimpleLiteral createSimpleLiteral();", "boolean hasScStr();", "public static boolean isIdentifier(String token)\n {\n boolean toret = false;\n\n token = token.trim();\n\n if ( !token.isEmpty() ) {\n final char firstChar = token.charAt( 0 );\n final char lastChar = token.charAt( token.length() -1 );\n\n if ( Character.isLetter( firstChar )\n || firstChar == '_'\n || Reserved.AllowedSymbolsInMethodName.indexOf( firstChar ) >= 0 )\n {\n final int len = token.length() -1;\n int i = 1;\n\n for(; i < len; ++i) {\n final char ch = token.charAt( i );\n\n if ( !Character.isLetterOrDigit( ch )\n && ch != '_'\n && Reserved.AllowedSymbolsInMethodName.indexOf( ch ) < 0 )\n {\n break;\n }\n }\n\n toret = ( i >= len ); // in case length is 1: \"x\"\n }\n }\n\n return toret;\n }", "private String literal(String str) {\n StringBuffer buffer = new StringBuffer();\n \n buffer.append(\"'\");\n for (int i = 0; i < str.length(); i++) {\n switch (str.charAt(i)) {\n case '\\'':\n buffer.append(\"''\");\n break;\n default:\n buffer.append(str.charAt(i));\n break;\n }\n }\n buffer.append(\"'\");\n return buffer.toString();\n }", "boolean hasString();", "@Test\n\tpublic void testJustEmptyChars() {\n\t\tSmartScriptLexer lexer = new SmartScriptLexer(\" \\r\\n\\t \");\n\t\t\n\t\tSmartScriptToken expected = new SmartScriptToken(SmartScriptTokenType.TEXT, \" \\r\\n\\t \");\n\t\tassertEquals(lexer.nextToken().getType(), SmartScriptTokenType.TEXT);\n\t\tassertEquals(lexer.getToken().getValue(), expected.getValue());\n\t}", "public String toString()\n {\n return \"LiteralOPToken(\" + getValue() + \")\";\n }", "public boolean isNotNullTokenType() {\n return genClient.cacheValueIsNotNull(CacheKey.tokenType);\n }", "private void verifySingleTokens(String token){\n\t\t//verify normal codes\n\t\tif (token.equals(\"\")) {\n\t\t\treturn;\n\t\t}\n\t\tif (codingTable.hasCode(token)) {\n\t\t\tSystem.out.println(\"Keyword: \" + token);\n\t\t\tprogramInternalForm.addValues(codingTable.getValueForCode(token), null);\n\t\t\treturn;\n\t\t}\n\t\tif (isConstantToken(token)) {\n\t\t\tSystem.out.println(\"Constant: \" + token);\n\t\t\tsymbolTable.addValue(token);\n\t\t\tprogramInternalForm.addValues(codingTable.getValueForCode(CONSTANT), symbolTable.getPosition(token));\n\t\t\treturn;\n\t\t}\n\t\tif (isIdentifierToken(token)) {\n\t\t\tSystem.out.println(\"Identifier: \" + token);\n\t\t\tsymbolTable.addValue(token);\n\t\t\tprogramInternalForm.addValues(codingTable.getValueForCode(IDENTIFIER), symbolTable.getPosition(token));\n\t\t\treturn;\n\t\t}\n\n\t\tthrow new RuntimeException(\"Couldn't find a category for string '\" + token + \"'\");\n\t}", "@Override\n public String visit(StringLiteralExpr n, Object arg) {\n return null;\n }", "public static boolean isValidToken(final String token) {\n\t\treturn token != null && token.startsWith(BEARER_TOKEN_PREFIX);\n\t}", "boolean hasFirstToken();", "@Override\n public boolean visit(JsPrefixOperation x, JsContext<JsExpression> ctx) {\n return !(x.getArg() instanceof JsStringLiteral);\n }", "public static boolean Literal(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"Literal\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, LITERAL, \"<literal>\");\n r = NumericLiteral(b, l + 1);\n if (!r) r = StringLiteral(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "private boolean name() {\r\n return (\r\n (letter() && alphas()) ||\r\n (CHAR('`') && nobquotes() && MARK(QUOTE) && CHAR('`'))\r\n );\r\n }", "private static boolean needSingleQuotation(char paramChar)\n/* */ {\n/* 2498 */ return ((paramChar >= '\\t') && (paramChar <= '\\r')) || ((paramChar >= ' ') && (paramChar <= '/')) || ((paramChar >= ':') && (paramChar <= '@')) || ((paramChar >= '[') && (paramChar <= '`')) || ((paramChar >= '{') && (paramChar <= '~'));\n/* */ }", "public T caseStringLiteralExpCS(StringLiteralExpCS object) {\r\n return null;\r\n }", "boolean tokenCanEnd(Token token)\r\n {\r\n if (token == null)\r\n return false;\r\n int type = token.getType();\r\n switch (type) {\r\n \tcase MExprANTLRParserTokenTypes.NOT:\r\n \tcase MExprANTLRParserTokenTypes.NOTNOT:\r\n case MExprANTLRParserTokenTypes.RBRACE:\r\n case MExprANTLRParserTokenTypes.RBRACKET:\r\n case MExprANTLRParserTokenTypes.RPAREN:\r\n case MExprANTLRParserTokenTypes.INT: \r\n case MExprANTLRParserTokenTypes.REAL:\r\n case MExprANTLRParserTokenTypes.ID:\r\n case MExprANTLRParserTokenTypes.NULLID:\r\n case MExprANTLRParserTokenTypes.POSTFIXID:\r\n case MExprANTLRParserTokenTypes.STRING:\r\n case MExprANTLRParserTokenTypes.BLANK1:\r\n case MExprANTLRParserTokenTypes.IDBLANK1:\r\n case MExprANTLRParserTokenTypes.BLANKID1:\r\n case MExprANTLRParserTokenTypes.IDBLANKID1:\r\n case MExprANTLRParserTokenTypes.BLANK2:\r\n case MExprANTLRParserTokenTypes.IDBLANK2:\r\n case MExprANTLRParserTokenTypes.BLANKID2:\r\n case MExprANTLRParserTokenTypes.IDBLANKID2:\r\n case MExprANTLRParserTokenTypes.BLANK3:\r\n case MExprANTLRParserTokenTypes.IDBLANK3:\r\n case MExprANTLRParserTokenTypes.BLANKID3:\r\n case MExprANTLRParserTokenTypes.IDBLANKID3:\r\n case MExprANTLRParserTokenTypes.IDBLANKDOT:\r\n case MExprANTLRParserTokenTypes.BLANKDOT:\r\n case MExprANTLRParserTokenTypes.SLOT: \r\n case MExprANTLRParserTokenTypes.TYPESETEXPR:\r\n case MExprANTLRParserTokenTypes.GET:\r\n case MExprANTLRParserTokenTypes.PUT:\r\n case MExprANTLRParserTokenTypes.PERCENT:\r\n case MExprANTLRParserTokenTypes.PERCENTNUMBER:\r\n \t return true;\r\n }\r\n\r\n return false;\r\n }", "private boolean nodquotes() {\r\n return OPT(GO() && NOT(GO() && CHAR('\"')) && literal() && nodquotes());\r\n }", "public static boolean hasToken(String s) {\n\t\tboolean founded=false;\n\t\tfor(int i = 0 ; i < dataList.size() ; i ++ ) {\n\t\t\tif(dataList.get(i).name.equals(s)) {\n\t\t\t\t\n\t\t\t\tfounded = true;\n\t\t\t}\n\t\t}\n\t\treturn founded;\n\t}", "public final void mSTRING_LITERAL() throws RecognitionException {\n try {\n int _type = STRING_LITERAL;\n // /Users/benjamincoe/HackWars/C.g:248:2: ( '\\\"' (~ ( '\\\"' | '\\\\n' | '\\\\r' ) )* '\\\"' )\n // /Users/benjamincoe/HackWars/C.g:248:4: '\\\"' (~ ( '\\\"' | '\\\\n' | '\\\\r' ) )* '\\\"'\n {\n match('\\\"'); \n // /Users/benjamincoe/HackWars/C.g:248:9: (~ ( '\\\"' | '\\\\n' | '\\\\r' ) )*\n loop11:\n do {\n int alt11=2;\n int LA11_0 = input.LA(1);\n\n if ( ((LA11_0>='\\u0000' && LA11_0<='\\t')||(LA11_0>='\\u000B' && LA11_0<='\\f')||(LA11_0>='\\u000E' && LA11_0<='!')||(LA11_0>='#' && LA11_0<='\\uFFFE')) ) {\n alt11=1;\n }\n\n\n switch (alt11) {\n \tcase 1 :\n \t // /Users/benjamincoe/HackWars/C.g:248:10: ~ ( '\\\"' | '\\\\n' | '\\\\r' )\n \t {\n \t if ( (input.LA(1)>='\\u0000' && input.LA(1)<='\\t')||(input.LA(1)>='\\u000B' && input.LA(1)<='\\f')||(input.LA(1)>='\\u000E' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='\\uFFFE') ) {\n \t input.consume();\n\n \t }\n \t else {\n \t MismatchedSetException mse =\n \t new MismatchedSetException(null,input);\n \t recover(mse); throw mse;\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop11;\n }\n } while (true);\n\n match('\\\"'); \n\n }\n\n this.type = _type;\n }\n finally {\n }\n }", "protected boolean qualifies(Object o) {\n\tToken t = (Token) o;\n\treturn t.isQuotedString();\n}", "boolean tokenCanStart(Token token)\r\n {\r\n\r\n int type = token.getType();\r\n switch (type) {\r\n case MExprANTLRParserTokenTypes.NOT:\r\n case MExprANTLRParserTokenTypes.PLUS:\r\n case MExprANTLRParserTokenTypes.MINUS:\r\n case MExprANTLRParserTokenTypes.PLUSPLUS:\r\n case MExprANTLRParserTokenTypes.MINUSMINUS:\r\n case MExprANTLRParserTokenTypes.LBRACE:\r\n case MExprANTLRParserTokenTypes.LPAREN:\r\n case MExprANTLRParserTokenTypes.INT:\r\n case MExprANTLRParserTokenTypes.REAL:\r\n case MExprANTLRParserTokenTypes.ID:\r\n case MExprANTLRParserTokenTypes.STRING:\r\n case MExprANTLRParserTokenTypes.BLANK1:\r\n case MExprANTLRParserTokenTypes.IDBLANK1:\r\n case MExprANTLRParserTokenTypes.BLANKID1:\r\n case MExprANTLRParserTokenTypes.IDBLANKID1:\r\n case MExprANTLRParserTokenTypes.BLANK2:\r\n case MExprANTLRParserTokenTypes.IDBLANK2:\r\n case MExprANTLRParserTokenTypes.BLANKID2:\r\n case MExprANTLRParserTokenTypes.IDBLANKID2:\r\n case MExprANTLRParserTokenTypes.BLANK3:\r\n case MExprANTLRParserTokenTypes.IDBLANK3:\r\n case MExprANTLRParserTokenTypes.BLANKID3:\r\n case MExprANTLRParserTokenTypes.IDBLANKID3:\r\n case MExprANTLRParserTokenTypes.SLOT:\r\n case MExprANTLRParserTokenTypes.TYPESETEXPR:\r\n case MExprANTLRParserTokenTypes.PERCENT:\r\n case MExprANTLRParserTokenTypes.PERCENTNUMBER:\r\n case MExprANTLRParserTokenTypes.GET:\r\n return true;\r\n }\r\n\r\n return false;\r\n }", "private TemplateLiteralToken nextTemplateLiteralToken() {\n TemplateLiteralToken token = scanner.nextTemplateLiteralToken();\n lastSourcePosition = token.location.end;\n return token;\n }", "public Literal getLiteral();", "public Literal getLiteral();", "public final EObject ruleLiteral() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject this_BoolLiteral_0 = null;\r\n\r\n EObject this_IntLiteral_1 = null;\r\n\r\n EObject this_HexLiteral_2 = null;\r\n\r\n EObject this_RealLiteral_3 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3692:28: ( (this_BoolLiteral_0= ruleBoolLiteral | this_IntLiteral_1= ruleIntLiteral | this_HexLiteral_2= ruleHexLiteral | this_RealLiteral_3= ruleRealLiteral ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3693:1: (this_BoolLiteral_0= ruleBoolLiteral | this_IntLiteral_1= ruleIntLiteral | this_HexLiteral_2= ruleHexLiteral | this_RealLiteral_3= ruleRealLiteral )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3693:1: (this_BoolLiteral_0= ruleBoolLiteral | this_IntLiteral_1= ruleIntLiteral | this_HexLiteral_2= ruleHexLiteral | this_RealLiteral_3= ruleRealLiteral )\r\n int alt56=4;\r\n switch ( input.LA(1) ) {\r\n case RULE_BOOL:\r\n {\r\n alt56=1;\r\n }\r\n break;\r\n case RULE_INT:\r\n {\r\n alt56=2;\r\n }\r\n break;\r\n case RULE_HEX:\r\n {\r\n alt56=3;\r\n }\r\n break;\r\n case RULE_FLOAT:\r\n {\r\n alt56=4;\r\n }\r\n break;\r\n default:\r\n if (state.backtracking>0) {state.failed=true; return current;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 56, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt56) {\r\n case 1 :\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3694:5: this_BoolLiteral_0= ruleBoolLiteral\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getLiteralAccess().getBoolLiteralParserRuleCall_0()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleBoolLiteral_in_ruleLiteral8478);\r\n this_BoolLiteral_0=ruleBoolLiteral();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_BoolLiteral_0; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3704:5: this_IntLiteral_1= ruleIntLiteral\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getLiteralAccess().getIntLiteralParserRuleCall_1()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleIntLiteral_in_ruleLiteral8505);\r\n this_IntLiteral_1=ruleIntLiteral();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_IntLiteral_1; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n\r\n }\r\n break;\r\n case 3 :\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3714:5: this_HexLiteral_2= ruleHexLiteral\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getLiteralAccess().getHexLiteralParserRuleCall_2()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleHexLiteral_in_ruleLiteral8532);\r\n this_HexLiteral_2=ruleHexLiteral();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_HexLiteral_2; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n\r\n }\r\n break;\r\n case 4 :\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3724:5: this_RealLiteral_3= ruleRealLiteral\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getLiteralAccess().getRealLiteralParserRuleCall_3()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleRealLiteral_in_ruleLiteral8559);\r\n this_RealLiteral_3=ruleRealLiteral();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_RealLiteral_3; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "public boolean isLiteralNodeSelected() {\n ASTNode[] nodes = getSelectedNodes();\n if (nodes.length != 1)\n return false;\n ASTNode node = nodes[0];\n switch(node.getNodeType()) {\n case ASTNode.BOOLEAN_LITERAL:\n case ASTNode.CHARACTER_LITERAL:\n case ASTNode.NULL_LITERAL:\n case ASTNode.NUMBER_LITERAL:\n return true;\n default:\n return false;\n }\n }", "static boolean QuotStringLiteral(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"QuotStringLiteral\")) return false;\n if (!nextTokenIs(b, OPENINGQUOT)) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = consumeToken(b, OPENINGQUOT);\n r = r && QuotStringLiteral_1(b, l + 1);\n r = r && consumeToken(b, CLOSINGQUOT);\n exit_section_(b, m, null, r);\n return r;\n }", "public LiteralExpression (String str){\n _value = str;\n }", "private static boolean symbolLiteralExpression_1(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"symbolLiteralExpression_1\")) return false;\n boolean r;\n r = consumeToken(b, VOID);\n if (!r) r = userDefinableOperator(b, l + 1);\n if (!r) r = simpleQualifiedReferenceExpression(b, l + 1);\n return r;\n }", "boolean isSetString();", "private boolean isBuiltInProcedureTokenType()\n\t{\n\t\tswitch(theCurrentToken.TokenType)\n\t\t{\n\t\t\tcase GETBOOL: case GETFLOAT: case GETINTEGER: case GETSTRING: case GETCHAR:\n\t\t\tcase PUTBOOL: case PUTFLOAT: case PUTINTEGER: case PUTSTRING: case PUTCHAR:\n\t\t\t\treturn true;\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t}\n}" ]
[ "0.7376158", "0.7170796", "0.7149392", "0.7061559", "0.7018689", "0.69778365", "0.6920247", "0.686721", "0.6790841", "0.678891", "0.6684381", "0.661486", "0.6606342", "0.6385737", "0.6385737", "0.63831985", "0.63670415", "0.6361539", "0.63406146", "0.6278493", "0.6250453", "0.62271565", "0.6204847", "0.61999404", "0.6181849", "0.6161199", "0.6075926", "0.6037299", "0.6000556", "0.599857", "0.5985381", "0.5981944", "0.59682274", "0.59449446", "0.5941733", "0.5936247", "0.5930346", "0.5920136", "0.5917271", "0.59152675", "0.5895942", "0.5878931", "0.5875142", "0.5872709", "0.58360606", "0.58159703", "0.58159703", "0.58159703", "0.58159703", "0.58159703", "0.58159703", "0.58145905", "0.57797694", "0.57772624", "0.57404387", "0.57390434", "0.57149434", "0.57042545", "0.5697083", "0.5695017", "0.56815976", "0.56815976", "0.5670441", "0.56617165", "0.56490004", "0.5646562", "0.5639645", "0.5632143", "0.561283", "0.5612234", "0.5582465", "0.5570909", "0.5568189", "0.55636895", "0.55538446", "0.55112886", "0.5510633", "0.55097085", "0.55060124", "0.55051804", "0.55012625", "0.54970163", "0.5494252", "0.54906327", "0.5475007", "0.5465794", "0.5457056", "0.54563344", "0.54518324", "0.54490113", "0.54316825", "0.54279166", "0.54279166", "0.54271466", "0.5409231", "0.5407711", "0.54050314", "0.54003054", "0.5395251", "0.53929615" ]
0.79683363
0
Decides whether the token holds a literal or not
public static boolean isLiteral(char openDelimiter, char endDelimiter, String token) { return ( token.charAt( 0 ) == openDelimiter && token.charAt( token.length() -1 ) == endDelimiter ) ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isLiteral() {\n return false;\n }", "public boolean containsLiteral();", "public boolean isLiteral()\n {\n return this.literal;\n }", "public static boolean isStringLiteral(String token)\n {\n return isLiteral( '\"', '\"', token );\n }", "public final boolean hasLiteralValue ()\r\n {\r\n return _value.isLiteral();\r\n }", "private boolean literals() {\r\n return OPT(GO() && literal() && literals());\r\n }", "private static boolean isValidLiteral(String literal)\r\n\t{\r\n\t\tboolean result = true;\r\n\t\t\r\n\t\tchar[] literalChars = new char[literal.length()];\r\n\t\tliteral.getChars(0, literalChars.length, literalChars, 0);\r\n\t\t\r\n\t\tfor (int i = 0; i < literalChars.length; i++)\r\n\t\t{\r\n\t\t\tif (i == 0 && !Character.isJavaIdentifierStart(literalChars[i]))\r\n\t\t\t{\r\n\t\t\t\tresult = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (i != 0 && !Character.isJavaIdentifierPart(literalChars[i]))\r\n\t\t\t{\r\n\t\t\t\tresult = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn result;\r\n\t}", "static private boolean isFirstOfLiteral(Token.Code code) {\r\n \t\t\t\treturn code == Token.Code.NULL || code == Token.Code.FALSE || code == Token.Code.TRUE || code == Token.Code.STRING || code == Token.Code.NUMBER;\r\n \t\t\t}", "@Override\n\tpublic boolean hasLiteral() {\n\t\treturn heldObj.hasLiteral();\n\t}", "public void setLiteral(boolean isLiteral)\n {\n this.literal = isLiteral;\n }", "public static boolean isLiteral (char c) {\n if (c != '*' && c != '?' && c != '(' && c != '[' && c != '\\\\' && c!= '|' && c!='^' && c!='.' && c!=')' && c!=']') return true;\n else return false;\n }", "private LiteralToken nextRegularExpressionLiteralToken() {\n LiteralToken token = scanner.nextRegularExpressionLiteralToken();\n lastSourcePosition = token.location.end;\n return token;\n }", "public void visit(Literal literal) {}", "public boolean containsLiteralString(String literalData);", "public boolean containsLiteral(Object literalData);", "Rule Literal() {\n // Push 1 LiteralNode onto the value stack\n return Sequence(\n FirstOf(\n SingleQuotedLiteral(),\n DoubleQuotedLiteral()),\n actions.pushLiteralNode());\n }", "String getLiteral();", "String getLiteral();", "public static boolean Literal(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"Literal\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, LITERAL, \"<literal>\");\n r = NumericLiteral(b, l + 1);\n if (!r) r = StringLiteral(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "public static boolean literalExpression(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"literalExpression\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _COLLAPSE_, LITERAL_EXPRESSION, \"<literal expression>\");\n r = consumeToken(b, NULL);\n if (!r) r = consumeToken(b, TRUE);\n if (!r) r = consumeToken(b, FALSE);\n if (!r) r = consumeToken(b, NUMBER);\n if (!r) r = consumeToken(b, HEX_NUMBER);\n if (!r) r = stringLiteralExpression(b, l + 1);\n if (!r) r = symbolLiteralExpression(b, l + 1);\n if (!r) r = setOrMapLiteralExpressionWrapper(b, l + 1);\n if (!r) r = listLiteralExpressionWrapper(b, l + 1);\n if (!r) r = record(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "public Literal getLiteral();", "public Literal getLiteral();", "Literal createLiteral();", "Literal createLiteral();", "public boolean ifPeekIsLitConstant() {\n\t\tif (ifPeek(\"INT_LIT\")) {\n\t\t\treturn true;\n\t\t} else if (ifPeek(\"CHAR_LIT\")) {\n\t\t\treturn true;\n\t\t} else if (ifPeek(\"STRING_LIT\")) {\n\t\t\treturn true;\n\t\t} else if (ifPeek(\"NULL_\")) {\n\t\t\treturn true;\n\t\t} else if (ifPeek(\"TRUE_\")) {\n\t\t\treturn true;\n\t\t} else if (ifPeek(\"FALSE_\")) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public final EObject ruleLiteral() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject this_BoolLiteral_0 = null;\r\n\r\n EObject this_IntLiteral_1 = null;\r\n\r\n EObject this_HexLiteral_2 = null;\r\n\r\n EObject this_RealLiteral_3 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3692:28: ( (this_BoolLiteral_0= ruleBoolLiteral | this_IntLiteral_1= ruleIntLiteral | this_HexLiteral_2= ruleHexLiteral | this_RealLiteral_3= ruleRealLiteral ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3693:1: (this_BoolLiteral_0= ruleBoolLiteral | this_IntLiteral_1= ruleIntLiteral | this_HexLiteral_2= ruleHexLiteral | this_RealLiteral_3= ruleRealLiteral )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3693:1: (this_BoolLiteral_0= ruleBoolLiteral | this_IntLiteral_1= ruleIntLiteral | this_HexLiteral_2= ruleHexLiteral | this_RealLiteral_3= ruleRealLiteral )\r\n int alt56=4;\r\n switch ( input.LA(1) ) {\r\n case RULE_BOOL:\r\n {\r\n alt56=1;\r\n }\r\n break;\r\n case RULE_INT:\r\n {\r\n alt56=2;\r\n }\r\n break;\r\n case RULE_HEX:\r\n {\r\n alt56=3;\r\n }\r\n break;\r\n case RULE_FLOAT:\r\n {\r\n alt56=4;\r\n }\r\n break;\r\n default:\r\n if (state.backtracking>0) {state.failed=true; return current;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 56, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt56) {\r\n case 1 :\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3694:5: this_BoolLiteral_0= ruleBoolLiteral\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getLiteralAccess().getBoolLiteralParserRuleCall_0()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleBoolLiteral_in_ruleLiteral8478);\r\n this_BoolLiteral_0=ruleBoolLiteral();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_BoolLiteral_0; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3704:5: this_IntLiteral_1= ruleIntLiteral\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getLiteralAccess().getIntLiteralParserRuleCall_1()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleIntLiteral_in_ruleLiteral8505);\r\n this_IntLiteral_1=ruleIntLiteral();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_IntLiteral_1; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n\r\n }\r\n break;\r\n case 3 :\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3714:5: this_HexLiteral_2= ruleHexLiteral\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getLiteralAccess().getHexLiteralParserRuleCall_2()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleHexLiteral_in_ruleLiteral8532);\r\n this_HexLiteral_2=ruleHexLiteral();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_HexLiteral_2; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n\r\n }\r\n break;\r\n case 4 :\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:3724:5: this_RealLiteral_3= ruleRealLiteral\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getLiteralAccess().getRealLiteralParserRuleCall_3()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleRealLiteral_in_ruleLiteral8559);\r\n this_RealLiteral_3=ruleRealLiteral();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_RealLiteral_3; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "public boolean isLiteralNodeSelected() {\n ASTNode[] nodes = getSelectedNodes();\n if (nodes.length != 1)\n return false;\n ASTNode node = nodes[0];\n switch(node.getNodeType()) {\n case ASTNode.BOOLEAN_LITERAL:\n case ASTNode.CHARACTER_LITERAL:\n case ASTNode.NULL_LITERAL:\n case ASTNode.NUMBER_LITERAL:\n return true;\n default:\n return false;\n }\n }", "private boolean noquote() {\r\n return NOT(GO() && CHAR('\\'')) && literal();\r\n }", "void isToken(String p) {\r\n\t\tint n = 0;\r\n\t\t// switch statement that finds lexemes and tokens and add them to an arrayList\r\n\t\tString x = p;\r\n\t\tswitch (x) {\r\n\r\n\t\tcase \"int\":\r\n\t\t\tlexemes.add(\"int\");\r\n\t\t\ttokens.add(\"DATA_TYPE\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"double\":\r\n\t\t\tlexemes.add(\"double\");\r\n\t\t\ttokens.add(\"DATA_TYPE\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"<\":\r\n\t\t\tlexemes.add(\"<\");\r\n\t\t\ttokens.add(\"LESS_OP\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"{\":\r\n\t\t\tlexemes.add(\"{\");\r\n\t\t\ttokens.add(\"OPEN_CURLB\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"String\":\r\n\t\t\tlexemes.add(\"String\");\r\n\t\t\ttokens.add(\"DATA_TYPE\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"char\":\r\n\t\t\tlexemes.add(\"char\");\r\n\t\t\ttokens.add(\"DATA_TYPE\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"=\":\r\n\t\t\tlexemes.add(\"=\");\r\n\t\t\ttokens.add(\"ASSIGN_OP\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"float\":\r\n\t\t\tlexemes.add(\"float\");\r\n\t\t\ttokens.add(\"DATA_TYPE\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"-\":\r\n\t\t\tlexemes.add(\"-\");\r\n\t\t\ttokens.add(\"SUB_OP\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"+\":\r\n\t\t\tlexemes.add(\"+\");\r\n\t\t\ttokens.add(\"ADD_OPP\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"*\":\r\n\t\t\tlexemes.add(\"*\");\r\n\t\t\ttokens.add(\"MUL_OP\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"/\":\r\n\t\t\tlexemes.add(\"/\");\r\n\t\t\ttokens.add(\"DIV_OP\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"%\":\r\n\t\t\tlexemes.add(\"%\");\r\n\t\t\ttokens.add(\"MOD_OP\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \">\":\r\n\t\t\tlexemes.add(\">\");\r\n\t\t\ttokens.add(\"GREAT_OP\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"}\":\r\n\t\t\tlexemes.add(\"}\");\r\n\t\t\ttokens.add(\"CLOSE_CULRB\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"[\":\r\n\t\t\tlexemes.add(\"[\");\r\n\t\t\ttokens.add(\"OPEN_BRACK\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \":\":\r\n\t\t\tlexemes.add(\":\");\r\n\t\t\ttokens.add(\"COLON\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"]\":\r\n\t\t\tlexemes.add(\"]\");\r\n\t\t\ttokens.add(\"CLOSED_BRACK\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"(\":\r\n\t\t\tlexemes.add(\"(\");\r\n\t\t\ttokens.add(\"OPEN_PAR\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \",\":\r\n\t\t\tlexemes.add(\",\");\r\n\t\t\ttokens.add(\"COMMA\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \")\":\r\n\t\t\tlexemes.add(\")\");\r\n\t\t\ttokens.add(\"CLOSED_PAR\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \";\":\r\n\t\t\tlexemes.add(\";\");\r\n\t\t\ttokens.add(\"SEMICOLON\");\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\tlexemes.add(x);\r\n\t\t\ttokens.add(\"IDENT\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public static boolean symbolLiteralExpression(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"symbolLiteralExpression\")) return false;\n if (!nextTokenIs(b, HASH)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_, SYMBOL_LITERAL_EXPRESSION, null);\n r = consumeToken(b, HASH);\n p = r; // pin = 1\n r = r && symbolLiteralExpression_1(b, l + 1);\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }", "private static boolean symbolLiteralExpression_1(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"symbolLiteralExpression_1\")) return false;\n boolean r;\n r = consumeToken(b, VOID);\n if (!r) r = userDefinableOperator(b, l + 1);\n if (!r) r = simpleQualifiedReferenceExpression(b, l + 1);\n return r;\n }", "private TemplateLiteralToken nextTemplateLiteralToken() {\n TemplateLiteralToken token = scanner.nextTemplateLiteralToken();\n lastSourcePosition = token.location.end;\n return token;\n }", "private static boolean stringLiteralExpression_0(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"stringLiteralExpression_0\")) return false;\n boolean r;\n r = consumeToken(b, RAW_SINGLE_QUOTED_STRING);\n if (!r) r = consumeToken(b, RAW_TRIPLE_QUOTED_STRING);\n if (!r) r = stringTemplate(b, l + 1);\n return r;\n }", "boolean tokenCanStart(Token token)\r\n {\r\n\r\n int type = token.getType();\r\n switch (type) {\r\n case MExprANTLRParserTokenTypes.NOT:\r\n case MExprANTLRParserTokenTypes.PLUS:\r\n case MExprANTLRParserTokenTypes.MINUS:\r\n case MExprANTLRParserTokenTypes.PLUSPLUS:\r\n case MExprANTLRParserTokenTypes.MINUSMINUS:\r\n case MExprANTLRParserTokenTypes.LBRACE:\r\n case MExprANTLRParserTokenTypes.LPAREN:\r\n case MExprANTLRParserTokenTypes.INT:\r\n case MExprANTLRParserTokenTypes.REAL:\r\n case MExprANTLRParserTokenTypes.ID:\r\n case MExprANTLRParserTokenTypes.STRING:\r\n case MExprANTLRParserTokenTypes.BLANK1:\r\n case MExprANTLRParserTokenTypes.IDBLANK1:\r\n case MExprANTLRParserTokenTypes.BLANKID1:\r\n case MExprANTLRParserTokenTypes.IDBLANKID1:\r\n case MExprANTLRParserTokenTypes.BLANK2:\r\n case MExprANTLRParserTokenTypes.IDBLANK2:\r\n case MExprANTLRParserTokenTypes.BLANKID2:\r\n case MExprANTLRParserTokenTypes.IDBLANKID2:\r\n case MExprANTLRParserTokenTypes.BLANK3:\r\n case MExprANTLRParserTokenTypes.IDBLANK3:\r\n case MExprANTLRParserTokenTypes.BLANKID3:\r\n case MExprANTLRParserTokenTypes.IDBLANKID3:\r\n case MExprANTLRParserTokenTypes.SLOT:\r\n case MExprANTLRParserTokenTypes.TYPESETEXPR:\r\n case MExprANTLRParserTokenTypes.PERCENT:\r\n case MExprANTLRParserTokenTypes.PERCENTNUMBER:\r\n case MExprANTLRParserTokenTypes.GET:\r\n return true;\r\n }\r\n\r\n return false;\r\n }", "public ParseTreeNode visit(LiteralNode literalNode) {\n return null;\n }", "public Literal getLiteralBoolean(Boolean literalData);", "@Override\n\tpublic boolean canSetLiteral() {\n\t\treturn heldObj.canSetLiteral();\n\t}", "public static boolean isToken(String value) {\n\tif( value==null) return true;\n\tint len = value.length();\n\n\tfor (int i = 0; i < len; i++) {\n\t char c = value.charAt(i);\n\n\t if (c < 0x20 || c >= 0x7f || tspecials.indexOf(c) != -1)\n\t\treturn false;\n\t}\n\treturn true;\n }", "boolean tokenCanEnd(Token token)\r\n {\r\n if (token == null)\r\n return false;\r\n int type = token.getType();\r\n switch (type) {\r\n \tcase MExprANTLRParserTokenTypes.NOT:\r\n \tcase MExprANTLRParserTokenTypes.NOTNOT:\r\n case MExprANTLRParserTokenTypes.RBRACE:\r\n case MExprANTLRParserTokenTypes.RBRACKET:\r\n case MExprANTLRParserTokenTypes.RPAREN:\r\n case MExprANTLRParserTokenTypes.INT: \r\n case MExprANTLRParserTokenTypes.REAL:\r\n case MExprANTLRParserTokenTypes.ID:\r\n case MExprANTLRParserTokenTypes.NULLID:\r\n case MExprANTLRParserTokenTypes.POSTFIXID:\r\n case MExprANTLRParserTokenTypes.STRING:\r\n case MExprANTLRParserTokenTypes.BLANK1:\r\n case MExprANTLRParserTokenTypes.IDBLANK1:\r\n case MExprANTLRParserTokenTypes.BLANKID1:\r\n case MExprANTLRParserTokenTypes.IDBLANKID1:\r\n case MExprANTLRParserTokenTypes.BLANK2:\r\n case MExprANTLRParserTokenTypes.IDBLANK2:\r\n case MExprANTLRParserTokenTypes.BLANKID2:\r\n case MExprANTLRParserTokenTypes.IDBLANKID2:\r\n case MExprANTLRParserTokenTypes.BLANK3:\r\n case MExprANTLRParserTokenTypes.IDBLANK3:\r\n case MExprANTLRParserTokenTypes.BLANKID3:\r\n case MExprANTLRParserTokenTypes.IDBLANKID3:\r\n case MExprANTLRParserTokenTypes.IDBLANKDOT:\r\n case MExprANTLRParserTokenTypes.BLANKDOT:\r\n case MExprANTLRParserTokenTypes.SLOT: \r\n case MExprANTLRParserTokenTypes.TYPESETEXPR:\r\n case MExprANTLRParserTokenTypes.GET:\r\n case MExprANTLRParserTokenTypes.PUT:\r\n case MExprANTLRParserTokenTypes.PERCENT:\r\n case MExprANTLRParserTokenTypes.PERCENTNUMBER:\r\n \t return true;\r\n }\r\n\r\n return false;\r\n }", "static boolean isStringLiteral(final Expr expr)\n {\n return (expr.isLiteral() && expr.getLiteralValue() instanceof String)\n || (NullHandling.replaceWithDefault() && expr.isNullLiteral());\n }", "SimpleLiteral createSimpleLiteral();", "public Literal getLiteralString(String literalData);", "public final void literal() throws RecognitionException {\n int literal_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"literal\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(505, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 67) ) { return ; }\n // Java.g:506:5: ( integerLiteral | FloatingPointLiteral | CharacterLiteral | StringLiteral | booleanLiteral | 'null' )\n int alt87=6;\n try { dbg.enterDecision(87);\n\n switch ( input.LA(1) ) {\n case HexLiteral:\n case OctalLiteral:\n case DecimalLiteral:\n {\n alt87=1;\n }\n break;\n case FloatingPointLiteral:\n {\n alt87=2;\n }\n break;\n case CharacterLiteral:\n {\n alt87=3;\n }\n break;\n case StringLiteral:\n {\n alt87=4;\n }\n break;\n case 71:\n case 72:\n {\n alt87=5;\n }\n break;\n case 70:\n {\n alt87=6;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 87, 0, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n\n } finally {dbg.exitDecision(87);}\n\n switch (alt87) {\n case 1 :\n dbg.enterAlt(1);\n\n // Java.g:506:9: integerLiteral\n {\n dbg.location(506,9);\n pushFollow(FOLLOW_integerLiteral_in_literal2565);\n integerLiteral();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n case 2 :\n dbg.enterAlt(2);\n\n // Java.g:507:9: FloatingPointLiteral\n {\n dbg.location(507,9);\n match(input,FloatingPointLiteral,FOLLOW_FloatingPointLiteral_in_literal2575); if (state.failed) return ;\n\n }\n break;\n case 3 :\n dbg.enterAlt(3);\n\n // Java.g:508:9: CharacterLiteral\n {\n dbg.location(508,9);\n match(input,CharacterLiteral,FOLLOW_CharacterLiteral_in_literal2585); if (state.failed) return ;\n\n }\n break;\n case 4 :\n dbg.enterAlt(4);\n\n // Java.g:509:9: StringLiteral\n {\n dbg.location(509,9);\n match(input,StringLiteral,FOLLOW_StringLiteral_in_literal2595); if (state.failed) return ;\n\n }\n break;\n case 5 :\n dbg.enterAlt(5);\n\n // Java.g:510:9: booleanLiteral\n {\n dbg.location(510,9);\n pushFollow(FOLLOW_booleanLiteral_in_literal2605);\n booleanLiteral();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n case 6 :\n dbg.enterAlt(6);\n\n // Java.g:511:9: 'null'\n {\n dbg.location(511,9);\n match(input,70,FOLLOW_70_in_literal2615); if (state.failed) return ;\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 67, literal_StartIndex); }\n }\n dbg.location(512, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"literal\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }", "public String toString()\n {\n return \"LiteralOPToken(\" + getValue() + \")\";\n }", "boolean hasToken();", "boolean hasToken();", "boolean hasToken();", "boolean hasToken();", "boolean hasToken();", "boolean hasToken();", "public default boolean hasTokenString() {\n\t\treturn false;\n\t}", "private boolean literal() {\r\n return ALT((GO() && escape()) || (OK() && visible()));\r\n }", "public LiteralOPToken(String s, int nTypeCode)\n {\n super(s);\n m_nType = nTypeCode;\n setBindingPower(OPToken.PRECEDENCE_IDENTIFIER);\n }", "public final ValueNode literal() throws RecognitionException {\n ValueNode value = null;\n\n CommonTree NUMBER11=null;\n CommonTree FPNUMBER12=null;\n CommonTree STRING13=null;\n\n try {\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:47:3: ( NUMBER | FPNUMBER | STRING | TRUE | FALSE | NULL )\n int alt9=6;\n switch ( input.LA(1) ) {\n case NUMBER:\n {\n alt9=1;\n }\n break;\n case FPNUMBER:\n {\n alt9=2;\n }\n break;\n case STRING:\n {\n alt9=3;\n }\n break;\n case TRUE:\n {\n alt9=4;\n }\n break;\n case FALSE:\n {\n alt9=5;\n }\n break;\n case NULL:\n {\n alt9=6;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 9, 0, input);\n\n throw nvae;\n }\n\n switch (alt9) {\n case 1 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:47:5: NUMBER\n {\n NUMBER11=(CommonTree)match(input,NUMBER,FOLLOW_NUMBER_in_literal248); \n value = new ValueNode((NUMBER11!=null?NUMBER11.getText():null), \"int\");\n\n }\n break;\n case 2 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:48:5: FPNUMBER\n {\n FPNUMBER12=(CommonTree)match(input,FPNUMBER,FOLLOW_FPNUMBER_in_literal256); \n value = new ValueNode((FPNUMBER12!=null?FPNUMBER12.getText():null), \"double\");\n\n }\n break;\n case 3 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:49:5: STRING\n {\n STRING13=(CommonTree)match(input,STRING,FOLLOW_STRING_in_literal264); \n value = new ValueNode((STRING13!=null?STRING13.getText():null), \"string\");\n\n }\n break;\n case 4 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:50:5: TRUE\n {\n match(input,TRUE,FOLLOW_TRUE_in_literal272); \n value = new ValueNode(\"true\", \"boolean\");\n\n }\n break;\n case 5 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:51:5: FALSE\n {\n match(input,FALSE,FOLLOW_FALSE_in_literal280); \n value = new ValueNode(\"false\", \"boolean\");\n\n }\n break;\n case 6 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:52:5: NULL\n {\n match(input,NULL,FOLLOW_NULL_in_literal288); \n value = new ValueNode(\"null\", \"null\");\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return value;\n }", "@Test\n\tpublic void testStringLiteral() throws ParseException {\n\n\t\t// non-empty string\n\t\tStringLiteral stringLiteral = langParser(\"'abc'\").stringLiteral();\n\t\tassertEquals(stringLiteral.getValue(), \"abc\");\n\n\t\t// empty string\n\t\tstringLiteral = langParser(\"''\").stringLiteral();\n\t\tassertEquals(stringLiteral.getValue(), \"\");\n\t}", "public boolean isToken(String token){\n if(currentToken == -1) return false;\n return tokens.get(currentToken).identifier.equals(token);\n }", "@Override\n\tpublic boolean canLiteralSurvive(Frame frame) {\n\t\treturn heldObj.canLiteralSurvive(frame);\n\t}", "@Override\n\tpublic Object visitLiteral(Literal literal) {\n\t\treturn null;\n\t}", "public static boolean StringLiteral(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"StringLiteral\")) return false;\n if (!nextTokenIs(b, \"<string literal>\", OPENINGAPOS, OPENINGQUOT)) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, STRING_LITERAL, \"<string literal>\");\n r = QuotStringLiteral(b, l + 1);\n if (!r) r = AposStringLiteral(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "public LiteralOPToken(String s, int nTypeCode, String sNudASTName)\n {\n this(s, nTypeCode);\n m_sNudASTName = sNudASTName;\n }", "public Literal setLiteralString(String literalData);", "@Override\n\tpublic Object visitStringLiteral(StringLiteral literal) {\n\t\treturn null;\n\t}", "public boolean isToken(Type token){\n if(currentToken == -1) return false;\n return tokens.get(currentToken).type.equals(token);\n }", "public final EObject ruleLiteral() throws RecognitionException {\n EObject current = null;\n\n EObject this_NumericLiteral_0 = null;\n\n EObject this_BooleanLiteral_1 = null;\n\n EObject this_StringLiteral_2 = 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:4359:6: ( (this_NumericLiteral_0= ruleNumericLiteral | this_BooleanLiteral_1= ruleBooleanLiteral | this_StringLiteral_2= ruleStringLiteral ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4360:1: (this_NumericLiteral_0= ruleNumericLiteral | this_BooleanLiteral_1= ruleBooleanLiteral | this_StringLiteral_2= ruleStringLiteral )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4360:1: (this_NumericLiteral_0= ruleNumericLiteral | this_BooleanLiteral_1= ruleBooleanLiteral | this_StringLiteral_2= ruleStringLiteral )\n int alt64=3;\n switch ( input.LA(1) ) {\n case RULE_REAL:\n case RULE_INTEGER:\n {\n alt64=1;\n }\n break;\n case 76:\n case 77:\n {\n alt64=2;\n }\n break;\n case RULE_STRING:\n {\n alt64=3;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"4360:1: (this_NumericLiteral_0= ruleNumericLiteral | this_BooleanLiteral_1= ruleBooleanLiteral | this_StringLiteral_2= ruleStringLiteral )\", 64, 0, input);\n\n throw nvae;\n }\n\n switch (alt64) {\n case 1 :\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4361:5: this_NumericLiteral_0= ruleNumericLiteral\n {\n \n currentNode=createCompositeNode(grammarAccess.getLiteralAccess().getNumericLiteralParserRuleCall_0(), currentNode); \n \n pushFollow(FOLLOW_ruleNumericLiteral_in_ruleLiteral7558);\n this_NumericLiteral_0=ruleNumericLiteral();\n _fsp--;\n\n \n current = this_NumericLiteral_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:4371:5: this_BooleanLiteral_1= ruleBooleanLiteral\n {\n \n currentNode=createCompositeNode(grammarAccess.getLiteralAccess().getBooleanLiteralParserRuleCall_1(), currentNode); \n \n pushFollow(FOLLOW_ruleBooleanLiteral_in_ruleLiteral7585);\n this_BooleanLiteral_1=ruleBooleanLiteral();\n _fsp--;\n\n \n current = this_BooleanLiteral_1; \n currentNode = currentNode.getParent();\n \n\n }\n break;\n case 3 :\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:4381:5: this_StringLiteral_2= ruleStringLiteral\n {\n \n currentNode=createCompositeNode(grammarAccess.getLiteralAccess().getStringLiteralParserRuleCall_2(), currentNode); \n \n pushFollow(FOLLOW_ruleStringLiteral_in_ruleLiteral7612);\n this_StringLiteral_2=ruleStringLiteral();\n _fsp--;\n\n \n current = this_StringLiteral_2; \n currentNode = currentNode.getParent();\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 }", "private void addToken(TokenType type, Object literal) {\n String text = source.substring(start, current);\n tokens.add(new Token(type, text, literal, line));\n }", "private static boolean AposStringLiteral_1_0(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"AposStringLiteral_1_0\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = consumeToken(b, PREDEFINEDENTITYREF);\n if (!r) r = consumeToken(b, CHARREF);\n if (!r) r = EscapeApos(b, l + 1);\n if (!r) r = consumeToken(b, STRINGCHAR);\n exit_section_(b, m, null, r);\n return r;\n }", "public final EObject ruleLiteralValueExpression() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject this_NumberLiteral_0 = null;\r\n\r\n EObject this_BooleanLiteral_1 = null;\r\n\r\n EObject this_NullLiteral_2 = null;\r\n\r\n EObject this_StringLiteral_3 = null;\r\n\r\n EObject this_UnlimitedLiteral_4 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4134:28: ( (this_NumberLiteral_0= ruleNumberLiteral | this_BooleanLiteral_1= ruleBooleanLiteral | this_NullLiteral_2= ruleNullLiteral | this_StringLiteral_3= ruleStringLiteral | this_UnlimitedLiteral_4= ruleUnlimitedLiteral ) )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4135:1: (this_NumberLiteral_0= ruleNumberLiteral | this_BooleanLiteral_1= ruleBooleanLiteral | this_NullLiteral_2= ruleNullLiteral | this_StringLiteral_3= ruleStringLiteral | this_UnlimitedLiteral_4= ruleUnlimitedLiteral )\r\n {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4135:1: (this_NumberLiteral_0= ruleNumberLiteral | this_BooleanLiteral_1= ruleBooleanLiteral | this_NullLiteral_2= ruleNullLiteral | this_StringLiteral_3= ruleStringLiteral | this_UnlimitedLiteral_4= ruleUnlimitedLiteral )\r\n int alt50=5;\r\n switch ( input.LA(1) ) {\r\n case RULE_INT:\r\n case RULE_POSITIVE_SMALL_DECIMAL:\r\n case RULE_SMALL_DECIMAL:\r\n case RULE_EBIGDECIMAL:\r\n {\r\n alt50=1;\r\n }\r\n break;\r\n case RULE_EBOOLEAN:\r\n {\r\n alt50=2;\r\n }\r\n break;\r\n case RULE_NULL:\r\n {\r\n alt50=3;\r\n }\r\n break;\r\n case RULE_STRING:\r\n {\r\n alt50=4;\r\n }\r\n break;\r\n case 46:\r\n {\r\n alt50=5;\r\n }\r\n break;\r\n default:\r\n if (state.backtracking>0) {state.failed=true; return current;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 50, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt50) {\r\n case 1 :\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4136:5: this_NumberLiteral_0= ruleNumberLiteral\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getLiteralValueExpressionAccess().getNumberLiteralParserRuleCall_0()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleNumberLiteral_in_ruleLiteralValueExpression8863);\r\n this_NumberLiteral_0=ruleNumberLiteral();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_NumberLiteral_0; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4146:5: this_BooleanLiteral_1= ruleBooleanLiteral\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getLiteralValueExpressionAccess().getBooleanLiteralParserRuleCall_1()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleBooleanLiteral_in_ruleLiteralValueExpression8890);\r\n this_BooleanLiteral_1=ruleBooleanLiteral();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_BooleanLiteral_1; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n\r\n }\r\n break;\r\n case 3 :\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4156:5: this_NullLiteral_2= ruleNullLiteral\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getLiteralValueExpressionAccess().getNullLiteralParserRuleCall_2()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleNullLiteral_in_ruleLiteralValueExpression8917);\r\n this_NullLiteral_2=ruleNullLiteral();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_NullLiteral_2; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n\r\n }\r\n break;\r\n case 4 :\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4166:5: this_StringLiteral_3= ruleStringLiteral\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getLiteralValueExpressionAccess().getStringLiteralParserRuleCall_3()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleStringLiteral_in_ruleLiteralValueExpression8944);\r\n this_StringLiteral_3=ruleStringLiteral();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_StringLiteral_3; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n\r\n }\r\n break;\r\n case 5 :\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4176:5: this_UnlimitedLiteral_4= ruleUnlimitedLiteral\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getLiteralValueExpressionAccess().getUnlimitedLiteralParserRuleCall_4()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleUnlimitedLiteral_in_ruleLiteralValueExpression8971);\r\n this_UnlimitedLiteral_4=ruleUnlimitedLiteral();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_UnlimitedLiteral_4; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "public boolean containsLiteralBoolean(Boolean literalData);", "public Literal getLiteral(Object literalData);", "public boolean containsToken(String token);", "public Literal setLiteralBoolean(Boolean literalData);", "public Literal getDeepLiteralBoolean(XDI3Segment contextNodeXri, Boolean literalData);", "private Token scanRealOrIntegerLiteral() {\n Token tok;\n Pair<Integer, Integer> pos = new Pair<>(in.line(), in.pos());\n while (Character.isDigit(c) && c != '.' && c != -1) {\n buffer.add(c);\n c = in.read();\n }\n\n if (c == '.') {\n int nextChar = in.read();\n if (nextChar == '.') { // which means '..' operator was encountered\n tok = new Token(buffer.toString(),\n TokenType.INTEGER, pos);\n enqueuedToken = new Token(\"..\", TokenType.RANGE, pos);\n buffer.flush();\n c = in.read(); // reading in the next unprocessed character\n } else if (Character.isDigit(nextChar)) { // which means a real literal was encountered\n buffer.add(c);\n while (Character.isDigit(nextChar)) {\n buffer.add(nextChar);\n nextChar = in.read();\n }\n tok = new Token(buffer.toString(), TokenType.REAL_LITERAL, pos);\n buffer.flush();\n c = nextChar;\n\n } else { // which means a real literal without digits after dot (like 1. <=> 1.0)\n\n buffer.add(c);\n tok = new Token(buffer.toString(), TokenType.REAL_LITERAL, pos);\n buffer.flush();\n c = nextChar;\n\n }\n } else {\n tok = new Token(buffer.toString(), TokenType.INTEGER_LITERAL, pos);\n buffer.flush();\n }\n return tok;\n }", "public final EObject ruleLiteral() throws RecognitionException {\n EObject current = null;\n int ruleLiteral_StartIndex = input.index();\n EObject this_IntLiteral_0 = null;\n\n EObject this_RealLiteral_1 = null;\n\n EObject this_BooleanLiteral_2 = null;\n\n EObject this_StringLiteral_3 = null;\n\n EObject this_NullLiteral_4 = null;\n\n\n enterRule(); \n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 106) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4551:28: ( (this_IntLiteral_0= ruleIntLiteral | this_RealLiteral_1= ruleRealLiteral | this_BooleanLiteral_2= ruleBooleanLiteral | this_StringLiteral_3= ruleStringLiteral | this_NullLiteral_4= ruleNullLiteral ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4552:1: (this_IntLiteral_0= ruleIntLiteral | this_RealLiteral_1= ruleRealLiteral | this_BooleanLiteral_2= ruleBooleanLiteral | this_StringLiteral_3= ruleStringLiteral | this_NullLiteral_4= ruleNullLiteral )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4552:1: (this_IntLiteral_0= ruleIntLiteral | this_RealLiteral_1= ruleRealLiteral | this_BooleanLiteral_2= ruleBooleanLiteral | this_StringLiteral_3= ruleStringLiteral | this_NullLiteral_4= ruleNullLiteral )\n int alt76=5;\n switch ( input.LA(1) ) {\n case RULE_INT:\n {\n alt76=1;\n }\n break;\n case RULE_FLOAT:\n {\n alt76=2;\n }\n break;\n case KEYWORD_61:\n case KEYWORD_55:\n {\n alt76=3;\n }\n break;\n case RULE_STRING:\n {\n alt76=4;\n }\n break;\n case KEYWORD_51:\n {\n alt76=5;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return current;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 76, 0, input);\n\n throw nvae;\n }\n\n switch (alt76) {\n case 1 :\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4553:2: this_IntLiteral_0= ruleIntLiteral\n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getLiteralAccess().getIntLiteralParserRuleCall_0()); \n \n }\n pushFollow(FOLLOW_ruleIntLiteral_in_ruleLiteral9222);\n this_IntLiteral_0=ruleIntLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n current = this_IntLiteral_0;\n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 2 :\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4566:2: this_RealLiteral_1= ruleRealLiteral\n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getLiteralAccess().getRealLiteralParserRuleCall_1()); \n \n }\n pushFollow(FOLLOW_ruleRealLiteral_in_ruleLiteral9252);\n this_RealLiteral_1=ruleRealLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n current = this_RealLiteral_1;\n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 3 :\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4579:2: this_BooleanLiteral_2= ruleBooleanLiteral\n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getLiteralAccess().getBooleanLiteralParserRuleCall_2()); \n \n }\n pushFollow(FOLLOW_ruleBooleanLiteral_in_ruleLiteral9282);\n this_BooleanLiteral_2=ruleBooleanLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n current = this_BooleanLiteral_2;\n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 4 :\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4592:2: this_StringLiteral_3= ruleStringLiteral\n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getLiteralAccess().getStringLiteralParserRuleCall_3()); \n \n }\n pushFollow(FOLLOW_ruleStringLiteral_in_ruleLiteral9312);\n this_StringLiteral_3=ruleStringLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n current = this_StringLiteral_3;\n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 5 :\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4605:2: this_NullLiteral_4= ruleNullLiteral\n {\n if ( state.backtracking==0 ) {\n \n \t /* */ \n \t\n }\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getLiteralAccess().getNullLiteralParserRuleCall_4()); \n \n }\n pushFollow(FOLLOW_ruleNullLiteral_in_ruleLiteral9342);\n this_NullLiteral_4=ruleNullLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n current = this_NullLiteral_4;\n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 106, ruleLiteral_StartIndex); }\n }\n return current;\n }", "private static boolean AposStringLiteral_1(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"AposStringLiteral_1\")) return false;\n int c = current_position_(b);\n while (true) {\n if (!AposStringLiteral_1_0(b, l + 1)) break;\n if (!empty_element_parsed_guard_(b, \"AposStringLiteral_1\", c)) break;\n c = current_position_(b);\n }\n return true;\n }", "public static boolean listLiteralExpression(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"listLiteralExpression\")) return false;\n if (!nextTokenIs(b, \"<list literal expression>\", CONST, LBRACKET, LT)) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, LIST_LITERAL_EXPRESSION, \"<list literal expression>\");\n r = listLiteralExpression_0(b, l + 1);\n r = r && listLiteralExpression_1(b, l + 1);\n r = r && consumeToken(b, LBRACKET);\n r = r && listLiteralExpression_3(b, l + 1);\n r = r && consumeToken(b, RBRACKET);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "public boolean isNotNullTokenType() {\n return genClient.cacheValueIsNotNull(CacheKey.tokenType);\n }", "BooleanLiteralExp createBooleanLiteralExp();", "static boolean AposStringLiteral(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"AposStringLiteral\")) return false;\n if (!nextTokenIs(b, OPENINGAPOS)) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = consumeToken(b, OPENINGAPOS);\n r = r && AposStringLiteral_1(b, l + 1);\n r = r && consumeToken(b, CLOSINGAPOS);\n exit_section_(b, m, null, r);\n return r;\n }", "Rule SingleQuotedLiteral() {\n return Sequence(\n \"'\",\n ZeroOrMore(NoneOf(\"'\")),\n \"'\");\n }", "public static StringLiteral fromToken (String pToken)\n {\n return new StringLiteral (getValueFromToken (pToken));\n }", "public StringLiteralToken(String id, String literal, boolean optional, boolean caseInsensitive) {\n\t\tthis.id = id;\n\t\tthis.literal = literal;\n\t\tthis.optional = optional;\n\t\tthis.caseInsensitive = caseInsensitive;\n\t}", "boolean hasFirstToken();", "public Literal setDeepLiteralBoolean(XDI3Segment contextNodeXri, Boolean literalData);", "private void verifySingleTokens(String token){\n\t\t//verify normal codes\n\t\tif (token.equals(\"\")) {\n\t\t\treturn;\n\t\t}\n\t\tif (codingTable.hasCode(token)) {\n\t\t\tSystem.out.println(\"Keyword: \" + token);\n\t\t\tprogramInternalForm.addValues(codingTable.getValueForCode(token), null);\n\t\t\treturn;\n\t\t}\n\t\tif (isConstantToken(token)) {\n\t\t\tSystem.out.println(\"Constant: \" + token);\n\t\t\tsymbolTable.addValue(token);\n\t\t\tprogramInternalForm.addValues(codingTable.getValueForCode(CONSTANT), symbolTable.getPosition(token));\n\t\t\treturn;\n\t\t}\n\t\tif (isIdentifierToken(token)) {\n\t\t\tSystem.out.println(\"Identifier: \" + token);\n\t\t\tsymbolTable.addValue(token);\n\t\t\tprogramInternalForm.addValues(codingTable.getValueForCode(IDENTIFIER), symbolTable.getPosition(token));\n\t\t\treturn;\n\t\t}\n\n\t\tthrow new RuntimeException(\"Couldn't find a category for string '\" + token + \"'\");\n\t}", "@Override\r\n public final RenderContext literal(String literal) {\n if (literal == null) {\r\n return this;\r\n }\r\n\r\n // Quoting is needed when explicitly requested...\r\n boolean needsQuote =\r\n (RenderNameStyle.QUOTED == cachedRenderNameStyle\r\n\r\n // [#2367] ... but in SQLite, quoting \"normal\" literals is generally\r\n // asking for trouble, as SQLite bends the rules here, see\r\n // http://www.sqlite.org/lang_keywords.html for details ...\r\n && configuration.dialect() != SQLDialect.SQLITE)\r\n\r\n ||\r\n\r\n // [#2367] ... yet, do quote when an identifier is a SQLite keyword\r\n (configuration.dialect() == SQLDialect.SQLITE\r\n && SQLITE_KEYWORDS.contains(literal.toUpperCase()))\r\n\r\n ||\r\n\r\n // [#1982] ... yet, do quote when an identifier contains special characters\r\n (!IDENTIFIER_PATTERN.matcher(literal).matches());\r\n\r\n if (RenderNameStyle.LOWER == cachedRenderNameStyle) {\r\n literal = literal.toLowerCase();\r\n }\r\n else if (RenderNameStyle.UPPER == cachedRenderNameStyle) {\r\n literal = literal.toUpperCase();\r\n }\r\n\r\n if (!needsQuote) {\r\n sql(literal);\r\n }\r\n else {\r\n switch (configuration.dialect().family()) {\r\n\r\n // MySQL supports backticks and double quotes\r\n case MARIADB:\r\n case MYSQL:\r\n sql(\"`\").sql(StringUtils.replace(literal, \"`\", \"``\")).sql(\"`\");\r\n break;\r\n\r\n // T-SQL databases use brackets\r\n case ASE:\r\n case SQLSERVER:\r\n case SYBASE:\r\n sql(\"[\").sql(StringUtils.replace(literal, \"]\", \"]]\")).sql(\"]\");\r\n break;\r\n\r\n // Most dialects implement the SQL standard, using double quotes\r\n case SQLITE:\r\n case CUBRID:\r\n case DB2:\r\n case DERBY:\r\n case FIREBIRD:\r\n case H2:\r\n case HSQLDB:\r\n case INGRES:\r\n case ORACLE:\r\n case POSTGRES:\r\n default:\r\n sql('\"').sql(StringUtils.replace(literal, \"\\\"\", \"\\\"\\\"\")).sql('\"');\r\n break;\r\n }\r\n }\r\n\r\n return this;\r\n }", "StringLiteralExp createStringLiteralExp();", "final protected boolean match( Token T, String token )\n {\n return match( T, token, 0, false );\n }", "public final EObject ruleLiteralExpression() throws RecognitionException {\n EObject current = null;\n\n EObject this_IntLiteral_0 = null;\n\n EObject this_LongLiteral_1 = null;\n\n EObject this_FloatLiteral_2 = null;\n\n EObject this_DoubleLiteral_3 = null;\n\n EObject this_CharLiteral_4 = null;\n\n EObject this_StringLiteral_5 = null;\n\n EObject this_BooleanLiteral_6 = null;\n\n EObject this_NullLiteral_7 = null;\n\n\n enterRule(); \n \n try {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1548:28: ( (this_IntLiteral_0= ruleIntLiteral | this_LongLiteral_1= ruleLongLiteral | this_FloatLiteral_2= ruleFloatLiteral | this_DoubleLiteral_3= ruleDoubleLiteral | this_CharLiteral_4= ruleCharLiteral | this_StringLiteral_5= ruleStringLiteral | this_BooleanLiteral_6= ruleBooleanLiteral | this_NullLiteral_7= ruleNullLiteral ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1549:1: (this_IntLiteral_0= ruleIntLiteral | this_LongLiteral_1= ruleLongLiteral | this_FloatLiteral_2= ruleFloatLiteral | this_DoubleLiteral_3= ruleDoubleLiteral | this_CharLiteral_4= ruleCharLiteral | this_StringLiteral_5= ruleStringLiteral | this_BooleanLiteral_6= ruleBooleanLiteral | this_NullLiteral_7= ruleNullLiteral )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1549:1: (this_IntLiteral_0= ruleIntLiteral | this_LongLiteral_1= ruleLongLiteral | this_FloatLiteral_2= ruleFloatLiteral | this_DoubleLiteral_3= ruleDoubleLiteral | this_CharLiteral_4= ruleCharLiteral | this_StringLiteral_5= ruleStringLiteral | this_BooleanLiteral_6= ruleBooleanLiteral | this_NullLiteral_7= ruleNullLiteral )\n int alt24=8;\n switch ( input.LA(1) ) {\n case RULE_INT:\n {\n alt24=1;\n }\n break;\n case RULE_LONG:\n {\n alt24=2;\n }\n break;\n case RULE_FLOAT:\n {\n alt24=3;\n }\n break;\n case RULE_DOUBLE:\n {\n alt24=4;\n }\n break;\n case RULE_CHAR:\n {\n alt24=5;\n }\n break;\n case RULE_STRING:\n {\n alt24=6;\n }\n break;\n case 48:\n case 49:\n {\n alt24=7;\n }\n break;\n case 50:\n {\n alt24=8;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return current;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 24, 0, input);\n\n throw nvae;\n }\n\n switch (alt24) {\n case 1 :\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1550:5: this_IntLiteral_0= ruleIntLiteral\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getLiteralExpressionAccess().getIntLiteralParserRuleCall_0()); \n \n }\n pushFollow(FOLLOW_ruleIntLiteral_in_ruleLiteralExpression3671);\n this_IntLiteral_0=ruleIntLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_IntLiteral_0; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 2 :\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1560:5: this_LongLiteral_1= ruleLongLiteral\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getLiteralExpressionAccess().getLongLiteralParserRuleCall_1()); \n \n }\n pushFollow(FOLLOW_ruleLongLiteral_in_ruleLiteralExpression3698);\n this_LongLiteral_1=ruleLongLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_LongLiteral_1; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 3 :\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1570:5: this_FloatLiteral_2= ruleFloatLiteral\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getLiteralExpressionAccess().getFloatLiteralParserRuleCall_2()); \n \n }\n pushFollow(FOLLOW_ruleFloatLiteral_in_ruleLiteralExpression3725);\n this_FloatLiteral_2=ruleFloatLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_FloatLiteral_2; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 4 :\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1580:5: this_DoubleLiteral_3= ruleDoubleLiteral\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getLiteralExpressionAccess().getDoubleLiteralParserRuleCall_3()); \n \n }\n pushFollow(FOLLOW_ruleDoubleLiteral_in_ruleLiteralExpression3752);\n this_DoubleLiteral_3=ruleDoubleLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_DoubleLiteral_3; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 5 :\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1590:5: this_CharLiteral_4= ruleCharLiteral\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getLiteralExpressionAccess().getCharLiteralParserRuleCall_4()); \n \n }\n pushFollow(FOLLOW_ruleCharLiteral_in_ruleLiteralExpression3779);\n this_CharLiteral_4=ruleCharLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_CharLiteral_4; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 6 :\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1600:5: this_StringLiteral_5= ruleStringLiteral\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getLiteralExpressionAccess().getStringLiteralParserRuleCall_5()); \n \n }\n pushFollow(FOLLOW_ruleStringLiteral_in_ruleLiteralExpression3806);\n this_StringLiteral_5=ruleStringLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_StringLiteral_5; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 7 :\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1610:5: this_BooleanLiteral_6= ruleBooleanLiteral\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getLiteralExpressionAccess().getBooleanLiteralParserRuleCall_6()); \n \n }\n pushFollow(FOLLOW_ruleBooleanLiteral_in_ruleLiteralExpression3833);\n this_BooleanLiteral_6=ruleBooleanLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_BooleanLiteral_6; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n case 8 :\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1620:5: this_NullLiteral_7= ruleNullLiteral\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getLiteralExpressionAccess().getNullLiteralParserRuleCall_7()); \n \n }\n pushFollow(FOLLOW_ruleNullLiteral_in_ruleLiteralExpression3860);\n this_NullLiteral_7=ruleNullLiteral();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_NullLiteral_7; \n afterParserOrEnumRuleCall();\n \n }\n\n }\n break;\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public static boolean isOperator(String token) {\n if (Connective.getValueFromSymbol(token) == null) {\n return false;\n } else {\n return true;\n }\n }", "public static boolean stringLiteralExpression(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"stringLiteralExpression\")) return false;\n if (!nextTokenIs(b, \"<string literal expression>\", OPEN_QUOTE, RAW_SINGLE_QUOTED_STRING, RAW_TRIPLE_QUOTED_STRING)) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, STRING_LITERAL_EXPRESSION, \"<string literal expression>\");\n r = stringLiteralExpression_0(b, l + 1);\n while (r) {\n int c = current_position_(b);\n if (!stringLiteralExpression_0(b, l + 1)) break;\n if (!empty_element_parsed_guard_(b, \"stringLiteralExpression\", c)) break;\n }\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "public Literal setLiteral(Object literalData);", "public static CharacterLiteralExpression parse(TokenStream tokens)\n\t{\n\t\tPosition pos = tokens.getPosition();\n\t\ttokens.pushMark();\n\t\tCharacterLiteralExpression charExpr = null;\n\n\t\tToken token = tokens.read();\n\t\tif (token instanceof CharacterLiteralToken) {\n\t\t\tCharacterLiteralToken charToken = (CharacterLiteralToken) token;\n\t\t\tcharExpr = new CharacterLiteralExpression(charToken.getValues(), pos);\n\t\t}\n\n\t\ttokens.popMark(charExpr == null);\n\t\treturn charExpr;\n\t}", "private boolean nodquotes() {\r\n return OPT(GO() && NOT(GO() && CHAR('\"')) && literal() && nodquotes());\r\n }", "public boolean containsLiteralNumber(Double literalData);", "@Override\n public String visit(CharLiteralExpr n, Object arg) {\n return null;\n }", "@Override\n\tpublic boolean add(Literal literal) {\n\t\tLiteral compliment;\n\t\tif (literal.isNormal() && this.contains(compliment = new Literal(literal.index(), false)))\n\t\t\tthis.remove(compliment);\n\t\treturn super.add(literal);\n\t}", "public static boolean StringLiteralOrWildcard(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"StringLiteralOrWildcard\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, STRING_LITERAL_OR_WILDCARD, \"<string literal or wildcard>\");\n r = StringLiteral(b, l + 1);\n if (!r) r = consumeToken(b, STAR_SIGN);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "private boolean isBuiltInProcedureTokenType()\n\t{\n\t\tswitch(theCurrentToken.TokenType)\n\t\t{\n\t\t\tcase GETBOOL: case GETFLOAT: case GETINTEGER: case GETSTRING: case GETCHAR:\n\t\t\tcase PUTBOOL: case PUTFLOAT: case PUTINTEGER: case PUTSTRING: case PUTCHAR:\n\t\t\t\treturn true;\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t}\n}", "@Override\n public String visit(BooleanLiteralExpr n, Object arg) {\n return null;\n }" ]
[ "0.8071239", "0.79362196", "0.7890037", "0.7424619", "0.740767", "0.7124527", "0.7096774", "0.6981571", "0.69589317", "0.69412464", "0.6937983", "0.68593216", "0.6834485", "0.6822255", "0.6708438", "0.6669514", "0.66274184", "0.66274184", "0.6529414", "0.65099925", "0.64818233", "0.64818233", "0.64654577", "0.64654577", "0.64053667", "0.6352068", "0.63111806", "0.6248311", "0.62157303", "0.6212167", "0.6186997", "0.6153341", "0.6150915", "0.6142471", "0.6141093", "0.6139885", "0.61327314", "0.60931605", "0.6084591", "0.60374844", "0.6022568", "0.59481865", "0.5937321", "0.59278655", "0.59267646", "0.59267646", "0.59267646", "0.59267646", "0.59267646", "0.59267646", "0.5919908", "0.5915004", "0.5874687", "0.58527416", "0.58511984", "0.5828088", "0.579944", "0.57968545", "0.5784804", "0.57662845", "0.5761722", "0.5755705", "0.5742059", "0.57391447", "0.5727051", "0.570941", "0.5704766", "0.56997705", "0.5691164", "0.5688811", "0.5688514", "0.5664058", "0.56478417", "0.5634572", "0.5605908", "0.5599823", "0.5592727", "0.55917275", "0.55811286", "0.55795735", "0.55667615", "0.5558355", "0.5540702", "0.5540635", "0.5531182", "0.552241", "0.5520201", "0.55117434", "0.55101866", "0.55096674", "0.5491928", "0.54786813", "0.5474731", "0.5468892", "0.54615635", "0.5460224", "0.54574615", "0.5444004", "0.544167", "0.54340667" ]
0.77427655
3
Decides whether the token is a boolean or not.
public static boolean isBool(String token) { return ( BooleanValues.contains( " " + token + " " ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean readBoolean() {\n try {\n String token = readString();\n if (\"true\".equalsIgnoreCase(token)) return true;\n if (\"false\".equalsIgnoreCase(token)) return false;\n if (\"1\".equals(token)) return true;\n if (\"0\".equals(token)) return false;\n throw new InputMismatchException(\"attempts to read a 'boolean' value from standard input, \"\n + \"but the next token is \\\"\" + token + \"\\\"\");\n }\n catch (NoSuchElementException e) {\n throw new NoSuchElementException(\"attempts to read a 'boolean' value from standard input, \"\n + \"but no more tokens are available\");\n }\n }", "public boolean isBoolean();", "public static boolean tokenToBool(Token i) {\n return Boolean.valueOf(i.image);\n }", "public boolean readBoolean() throws IOException {\n int token = fTokenizer.nextToken();\n if (token == StreamTokenizer.TT_NUMBER)\n return ((int) fTokenizer.nval) == 1;\n\n String msg = \"Integer expected in line: \" + fTokenizer.lineno();\n throw new IOException(msg);\n }", "public boolean isBool() {\n return bool;\n }", "public Boolean asBoolean();", "private boolean processTrueOrFalse() throws HsqlException {\n\n String sToken = tokenizer.getSimpleToken();\n\n if (sToken.equals(Token.T_TRUE)) {\n return true;\n } else if (sToken.equals(Token.T_FALSE)) {\n return false;\n } else {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, sToken);\n }\n }", "abstract public boolean getAsBoolean();", "boolean getBoolValue();", "boolean getBoolValue();", "public boolean isBoolean() {\n return false;\n }", "public boolean nextBoolean() {\n this.inputStr = this.s.nextLine();\n\n if (inputStr.toLowerCase().contains(\"true\")) {\n return true;\n } else if (inputStr.toLowerCase().contains(\"false\")) {\n return false;\n } else if (inputStr.toLowerCase().contains(\"t\") || inputStr.toLowerCase().contains(\"1\")) {\n return true;\n } else if (inputStr.toLowerCase().contains(\"f\") || inputStr.toLowerCase().contains(\"0\")) {\n return false;\n }\n return false;\n }", "public boolean sawNonboolean() {\n return nonboolean;\n }", "public boolean isBoolean() {\n return this.data instanceof Boolean;\n }", "public static boolean parse_boolean(String value) {\n\t return value.equalsIgnoreCase(\"true\") || value.equalsIgnoreCase(\"T\");\n }", "public final Boolean _parseBoolean(JsonParser jVar, DeserializationContext gVar) throws IOException {\n JsonToken l = jVar.mo29328l();\n if (l == JsonToken.VALUE_NULL) {\n return (Boolean) _coerceNullToken(gVar, this._primitive);\n }\n if (l == JsonToken.START_ARRAY) {\n return (Boolean) _deserializeFromArray(jVar, gVar);\n }\n if (l == JsonToken.VALUE_NUMBER_INT) {\n return Boolean.valueOf(_parseBooleanFromInt(jVar, gVar));\n }\n if (l == JsonToken.VALUE_STRING) {\n String trim = jVar.mo29334t().trim();\n if (Constants.SERVICE_SCOPE_FLAG_VALUE.equals(trim) || \"True\".equals(trim)) {\n _verifyStringForScalarCoercion(gVar, trim);\n return Boolean.TRUE;\n } else if (BUGLY.SDK_IS_DEV.equals(trim) || \"False\".equals(trim)) {\n _verifyStringForScalarCoercion(gVar, trim);\n return Boolean.FALSE;\n } else if (trim.length() == 0) {\n return (Boolean) _coerceEmptyString(gVar, this._primitive);\n } else {\n if (_hasTextualNull(trim)) {\n return (Boolean) _coerceTextualNull(gVar, this._primitive);\n }\n return (Boolean) gVar.mo31517b(this._valueClass, trim, \"only \\\"true\\\" or \\\"false\\\" recognized\", new Object[0]);\n }\n } else if (l == JsonToken.VALUE_TRUE) {\n return Boolean.TRUE;\n } else {\n if (l == JsonToken.VALUE_FALSE) {\n return Boolean.FALSE;\n }\n return (Boolean) gVar.mo31493a(this._valueClass, jVar);\n }\n }", "public String getType() {\r\n\t\treturn \"boolean\";\r\n\t}", "boolean readBoolean();", "public abstract boolean read_boolean();", "boolean isEBoolean();", "boolean hasBoolValue();", "boolean hasToken();", "boolean hasToken();", "boolean hasToken();", "boolean hasToken();", "boolean hasToken();", "boolean hasToken();", "boolean booleanOf();", "boolean getBoolean();", "boolean getBoolean();", "public boolean getBoolValue() {\n if (typeCase_ == 2) {\n return (java.lang.Boolean) type_;\n }\n return false;\n }", "private String parseBoolean () {\r\n \r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n \r\n char chr=next();//get next character\r\n assert \"ft\".indexOf(chr)>=0;//assert valid boolean start character\r\n switch (chr) {//switch on first character\r\n case 'f': skip(4);//skip to last character\r\n return \"false\";\r\n case 't': skip(3);//skip to last character\r\n return \"true\";\r\n default: assert false;//assert that we do not reach this statement\r\n return null;\r\n }//switch on first character\r\n \r\n }", "boolean hasBool();", "public static boolean inputBoolean()\n\t{\n\t\treturn(sc.nextBoolean());\n\t}", "public static boolean is_boolean(String s) {\n\t return (s.equalsIgnoreCase(\"true\") || s.equalsIgnoreCase(\"T\") || s.equalsIgnoreCase(\"false\") || s.equalsIgnoreCase(\"F\"));\n }", "@java.lang.Override\n public boolean getBoolValue() {\n if (typeCase_ == 2) {\n return (java.lang.Boolean) type_;\n }\n return false;\n }", "public boolean readBoolean() {\n return (((readLong() & 1) == 1) ? true : false);\n }", "public boolean isSetToken() {\n return this.token != null;\n }", "public boolean getBoolean();", "public Boolean booleanValue() {\n\t\tif (this.getLiteralValue() instanceof Boolean) {\n\t\t\treturn (Boolean) this.getLiteralValue();\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public static final boolean getBoolean(String key) {\n\t\tString token = getString(key);\n\t\tif (token == null) {\n\t\t\treturn false;\n\t\t}\n\t\tif (token.equalsIgnoreCase(\"true\")) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean readBool() throws IOException {\n return in.readBoolean();\n }", "public boolean getBoolValue() {\n return boolValue_;\n }", "BooleanLiteralExp createBooleanLiteralExp();", "public boolean getBoolValue() {\n return boolValue_;\n }", "@ZenCodeType.Caster\n @ZenCodeType.Method\n default boolean asBool() {\n \n return notSupportedCast(BasicTypeID.BOOL);\n }", "public Boolean getBooleanValue() {\n return this.booleanValue;\n }", "public final void mBOOL() throws RecognitionException {\n try {\n int _type = BOOL;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2922:6: ( 'true' | 'false' )\n int alt5=2;\n int LA5_0 = input.LA(1);\n\n if ( (LA5_0=='t') ) {\n alt5=1;\n }\n else if ( (LA5_0=='f') ) {\n alt5=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 5, 0, input);\n\n throw nvae;\n }\n switch (alt5) {\n case 1 :\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2922:8: 'true'\n {\n match(\"true\"); if (state.failed) return ;\n\n\n }\n break;\n case 2 :\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2922:17: 'false'\n {\n match(\"false\"); if (state.failed) return ;\n\n\n }\n break;\n\n }\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public SemanticType semanticType() {\n\t\treturn SemanticType.BOOLEAN;\n\t}", "private boolean parseBoolean(final byte[] buffer, final int offset) {\n return buffer[offset] == 1;\n }", "public Boolean toBool(){\n\t\tString s = txt().trim();\n\t\tBoolean i;\n\t\ttry{\n\t\t\ti = Boolean.parseBoolean(s);\n\t\t}catch(NumberFormatException exp){\n\t\t\texp.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t\treturn i;\t\n\t}", "boolean result_is_boolean(DiagnosticChain diagnostics, Map<Object, Object> context);", "@Override\n\t\tpublic BooleanType toBooleanType() {\n\t\t\treturn new BooleanType(false);\n\t\t}", "@Override\n\t\tpublic BooleanType toBooleanType() {\n\t\t\treturn new BooleanType(false);\n\t\t}", "@Column(name = \"BOOLEAN_VALUE\", length = 20)\n/* 35 */ public String getBooleanValue() { return this.booleanValue; }", "private static boolean isBoolean(String value) {\n boolean status = false;\n value = value.trim();\n if (value.equals(\"true\") || value.equals(\"false\")) {\n return true;\n }\n\n return status;\n }", "public Boolean getBoolean() {\r\n\t\ttype(ConfigurationItemType.BOOLEAN);\r\n\t\treturn booleanValue;\r\n\t}", "public boolean isSetToken() {\n\t\t\treturn this.token != null;\n\t\t}", "public final void mRULE_BOOLEAN() throws RecognitionException {\n try {\n int _type = RULE_BOOLEAN;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:2527:14: ( ( 'true' | 'false' ) )\n // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:2527:16: ( 'true' | 'false' )\n {\n // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:2527:16: ( 'true' | 'false' )\n int alt5=2;\n int LA5_0 = input.LA(1);\n\n if ( (LA5_0=='t') ) {\n alt5=1;\n }\n else if ( (LA5_0=='f') ) {\n alt5=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 5, 0, input);\n\n throw nvae;\n }\n switch (alt5) {\n case 1 :\n // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:2527:17: 'true'\n {\n match(\"true\"); \n\n\n }\n break;\n case 2 :\n // ../org.xtext.example.webgme_mtl/src-gen/org/xtext/example/webgme/parser/antlr/internal/InternalMTL.g:2527:24: 'false'\n {\n match(\"false\"); \n\n\n }\n break;\n\n }\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public final void mT__26() throws RecognitionException {\n try {\n int _type = T__26;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalDSL.g:24:7: ( 'bool' )\n // InternalDSL.g:24:9: 'bool'\n {\n match(\"bool\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public boolean isNotNullTokenType() {\n return genClient.cacheValueIsNotNull(CacheKey.tokenType);\n }", "public boolean isSAMLToken() {\n\t\treturn samlToken;\n\t}", "public Boolean getBoolean(String key)\n\t{\n\t\tverifyParseState();\n\t\t\n\t\tValue value = values.get(key);\n\t\tif(value == null || value.value == null)\n\t\t\treturn null;\n\t\tif(value.type != ValueType.BOOLEAN)\n\t\t\tthrow new JsonTypeException(value.value.getClass(), Boolean.class);\n\t\treturn (Boolean)value.value;\n\t}", "private boolean getBooleanValue(Element element, String tagName)\n {\n String value = getValue(element,tagName).trim();\n try\n {\n return Integer.parseInt(value) != 0;\n }\n catch (NumberFormatException exception)\n {\n return value.equalsIgnoreCase(\"true\")\n || value.equalsIgnoreCase(\"on\")\n || value.equalsIgnoreCase(\"yes\");\n }\n }", "public boolean isToken(Type token){\n if(currentToken == -1) return false;\n return tokens.get(currentToken).type.equals(token);\n }", "@Test\n public void booleanInvalidType() throws Exception {\n String retVal = new SynapseHelper().serializeToSynapseType(MOCK_TEMP_DIR, TEST_PROJECT_ID, TEST_RECORD_ID,\n TEST_FIELD_NAME, UploadFieldTypes.BOOLEAN, new TextNode(\"true\"));\n assertNull(retVal);\n }", "public default boolean hasTokenString() {\n\t\treturn false;\n\t}", "public final Enumerator ruleBooleanKind() throws RecognitionException {\n Enumerator current = null;\n\n setCurrentLookahead(); resetLookahead(); \n try {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6910:6: ( ( ( 'false' ) | ( 'true' ) ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6911:1: ( ( 'false' ) | ( 'true' ) )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6911:1: ( ( 'false' ) | ( 'true' ) )\n int alt104=2;\n int LA104_0 = input.LA(1);\n\n if ( (LA104_0==76) ) {\n alt104=1;\n }\n else if ( (LA104_0==77) ) {\n alt104=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"6911:1: ( ( 'false' ) | ( 'true' ) )\", 104, 0, input);\n\n throw nvae;\n }\n switch (alt104) {\n case 1 :\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6911:2: ( 'false' )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6911:2: ( 'false' )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6911:4: 'false'\n {\n match(input,76,FOLLOW_76_in_ruleBooleanKind12221); \n\n current = grammarAccess.getBooleanKindAccess().getFalseEnumLiteralDeclaration_0().getEnumLiteral().getInstance();\n createLeafNode(grammarAccess.getBooleanKindAccess().getFalseEnumLiteralDeclaration_0(), null); \n \n\n }\n\n\n }\n break;\n case 2 :\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6917:6: ( 'true' )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6917:6: ( 'true' )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:6917:8: 'true'\n {\n match(input,77,FOLLOW_77_in_ruleBooleanKind12236); \n\n current = grammarAccess.getBooleanKindAccess().getTrueEnumLiteralDeclaration_1().getEnumLiteral().getInstance();\n createLeafNode(grammarAccess.getBooleanKindAccess().getTrueEnumLiteralDeclaration_1(), null); \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 }", "@Override\n\tpublic String visitBoolExpr(BoolExprContext ctx) {\n\t\tint childrenNo=ctx.children.size();\n\t\tif (childrenNo == 3 )\n\t\t{\n\t\t\tParseTree n=ctx.getChild(1);\t\t\t\n\t\t\tif (!(n instanceof TerminalNode)) return visit(n); //( boolExpr ) \n\t\t\telse if(n.equals(ctx.COMP())) {\n\t\t\t\tString firstOpType=visit(ctx.getChild(0)); //|arExpr COMP arExpr\n\t\t\t\tString secondOpType=visit(ctx.getChild(2)); \n\t\t\t\tif(!((firstOpType.equals(\"int\"))&&(secondOpType.equals(\"int\")))) throw new RuntimeException(\"you can only compare integer types\");\n\t\t\t\treturn \"boolean\";\n\t\t\t}else if(n==ctx.EQ()){\t\t\t\t\t\t\t\t\t\t\t//|arExpr EQ arExpr\n\t\t\t\tString firstOpType=visit(ctx.getChild(0)); \n\t\t\t\tString secondOpType=visit(ctx.getChild(2)); \t\t\t\t\n\t\t\t\tif(!(((firstOpType.equals(\"int\"))&&(secondOpType.equals(\"int\")))||((firstOpType.equals(\"char\"))&&(secondOpType.equals(\"char\"))))) throw new RuntimeException(\"you can only use\"\n\t\t\t\t\t\t+ \"\\\"==\\\" operator on integer or character types\");\n\t\t\t\treturn \"boolean\";\n\t\t\t}else if(n==ctx.AND()||n==ctx.OR()){ //|boolExpr (AND|OR)boolExpr\n\t\t\t\tString firstOpType=visit(ctx.getChild(0));\n\t\t\t\tString secondOpType=visit(ctx.getChild(2));\n\t\t\t\tif(!(firstOpType.equals(\"boolean\"))&&(secondOpType.equals(\"boolean\"))) throw new RuntimeException(\"you can only use boolean operators on boolean expressions\");\n\t\t\t\treturn \"boolean\";\n\t\t\t}\n\t\t} else if (childrenNo == 2 ) { //|NOT boolExpr\n\t\t\tString exprType=visit(ctx.getChild(1));\n\t\t\tif (!exprType.equals(\"boolean\")) throw new RuntimeException(\"NOT operator works only with boolean expresssions\");\n\t\t\t\treturn \"boolean\";\n\t\t}else {\t\t\t\t\t\t\t\t//|(ID|property|BOOLEANLIT|arrIdExpr|methodCall)\n\t\t\tParseTree n=ctx.getChild(0);\n\t\t\tif (n instanceof TerminalNode) {\t\t\t\t\n\t\t\t\tif (n==ctx.BOOLEANLIT()) return \"boolean\";\n\t\t\t\telse if(n==ctx.ID()){\n\t\t\t\t\tString key=visitTerminal((TerminalNode)n);\n\t\t\t\t\tRecord id= table.lookup(key);\n\t\t\t\t\tif (id==null) throw new RuntimeException(\"Identifier \"+key+\" is not declared\");\t\t\t\t\t\n\t\t\t\t\treturn id.getReturnType();\n\t\t\t\t\t\n\t\t\t\t}\t\t\t \n\t\t\t}else {\n\t\t\t\tString type=visit(ctx.getChild(0));\n\t\t\t\treturn type;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn null; //for debug\n\t}", "public Literal getLiteralBoolean(Boolean literalData);", "BooleanValue createBooleanValue();", "BooleanValue createBooleanValue();", "BooleanValue createBooleanValue();", "BooleanValue createBooleanValue();", "boolean isValidBoolean(boolean value);", "@Override\r\n\tpublic void visit(ast.type.Boolean t) {\r\n\t\tSystem.out.println(\"boolean@\");\r\n\t}", "boolean getValue();", "public boolean nextBoolean(){\r\n\t\treturn (nextInt() & 0x10) == 0;\r\n\t}", "public boolean containsLiteralBoolean(Boolean literalData);", "public final void mT38() throws RecognitionException {\n try {\n int _type = T38;\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:36:5: ( 'bool' )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:36:7: 'bool'\n {\n match(\"bool\"); \n\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }", "public boolean hasToken() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasToken() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasToken() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasToken() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean isTruth() {\n return truth;\n }", "@Override\n\t\tpublic Boolean convert(String s) {\n\t\t\tString value = s.toLowerCase();\n\t\t\tif (\"true\".equals(value) || \"1\".equals(value) /* || \"yes\".equals(value) || \"on\".equals(value) */) {\n\t\t\t\treturn Boolean.TRUE;\n\t\t\t}\n\t\t\telse if (\"false\".equals(value) || \"0\".equals(value) /* || \"no\".equals(value) || \"off\".equals(value) */) {\n\t\t\t\treturn Boolean.FALSE;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new RuntimeException(\"Can not parse to boolean type of value: \" + s);\n\t\t\t}\n\t\t}", "public final void ruleBoolean() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:266:2: ( ( 'Boolean' ) )\n // InternalMyDsl.g:267:2: ( 'Boolean' )\n {\n // InternalMyDsl.g:267:2: ( 'Boolean' )\n // InternalMyDsl.g:268:3: 'Boolean'\n {\n before(grammarAccess.getBooleanAccess().getBooleanKeyword()); \n match(input,14,FOLLOW_2); \n after(grammarAccess.getBooleanAccess().getBooleanKeyword()); \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 boolean hasToken() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasToken() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasToken() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasToken() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean readBoolean() throws IOException {\n\n\t\tint b = read();\n\t\tif (b == 1) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public final boolean getBoolean(final String tagToGet) {\n final String thisVal = getStr(tagToGet);\n if (thisVal.toUpperCase().startsWith(\"T\"))\n return true;\n return false;\n }", "public boolean readBooleanNonBlock() {\n return (((readLongNonBlock() & 1) == 1) ? true : false);\n }", "public boolean getBoolean(final String key) {\n String s = removeByteOrderMark(get(key));\n if (s == null) return false;\n s = s.toLowerCase(Locale.ROOT);\n return s.equals(\"true\") || s.equals(\"on\") || s.equals(\"1\");\n }", "public final EObject ruleBooleanType() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_1=null;\n\n enterRule(); \n \n try {\n // ../org.xtext.example.lmrc.entity/src-gen/org/xtext/example/lmrc/entity/parser/antlr/internal/InternalEntityDsl.g:340:28: ( ( () otherlv_1= 'boolean' ) )\n // ../org.xtext.example.lmrc.entity/src-gen/org/xtext/example/lmrc/entity/parser/antlr/internal/InternalEntityDsl.g:341:1: ( () otherlv_1= 'boolean' )\n {\n // ../org.xtext.example.lmrc.entity/src-gen/org/xtext/example/lmrc/entity/parser/antlr/internal/InternalEntityDsl.g:341:1: ( () otherlv_1= 'boolean' )\n // ../org.xtext.example.lmrc.entity/src-gen/org/xtext/example/lmrc/entity/parser/antlr/internal/InternalEntityDsl.g:341:2: () otherlv_1= 'boolean'\n {\n // ../org.xtext.example.lmrc.entity/src-gen/org/xtext/example/lmrc/entity/parser/antlr/internal/InternalEntityDsl.g:341:2: ()\n // ../org.xtext.example.lmrc.entity/src-gen/org/xtext/example/lmrc/entity/parser/antlr/internal/InternalEntityDsl.g:342:5: \n {\n\n current = forceCreateModelElement(\n grammarAccess.getBooleanTypeAccess().getBooleanTypeAction_0(),\n current);\n \n\n }\n\n otherlv_1=(Token)match(input,16,FOLLOW_16_in_ruleBooleanType734); \n\n \tnewLeafNode(otherlv_1, grammarAccess.getBooleanTypeAccess().getBooleanKeyword_1());\n \n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public Object VisitBooleanLiteral(ASTBooleanLiteral boolliteral) {\n if (boolliteral.value()) {\n return new TypeClass(BooleanType.instance(), bt.constantExpression(1));\n } else {\n return new TypeClass(BooleanType.instance(), bt.constantExpression(0));\n }\n }", "public final void mBOOLEAN_TYPE() throws RecognitionException {\n try {\n int _type = BOOLEAN_TYPE;\n // /Users/benjamincoe/HackWars/C.g:189:2: ( 'bool' | 'boolean' )\n int alt5=2;\n int LA5_0 = input.LA(1);\n\n if ( (LA5_0=='b') ) {\n int LA5_1 = input.LA(2);\n\n if ( (LA5_1=='o') ) {\n int LA5_2 = input.LA(3);\n\n if ( (LA5_2=='o') ) {\n int LA5_3 = input.LA(4);\n\n if ( (LA5_3=='l') ) {\n int LA5_4 = input.LA(5);\n\n if ( (LA5_4=='e') ) {\n alt5=2;\n }\n else {\n alt5=1;}\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"188:1: BOOLEAN_TYPE : ( 'bool' | 'boolean' );\", 5, 3, input);\n\n throw nvae;\n }\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"188:1: BOOLEAN_TYPE : ( 'bool' | 'boolean' );\", 5, 2, input);\n\n throw nvae;\n }\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"188:1: BOOLEAN_TYPE : ( 'bool' | 'boolean' );\", 5, 1, input);\n\n throw nvae;\n }\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"188:1: BOOLEAN_TYPE : ( 'bool' | 'boolean' );\", 5, 0, input);\n\n throw nvae;\n }\n switch (alt5) {\n case 1 :\n // /Users/benjamincoe/HackWars/C.g:189:4: 'bool'\n {\n match(\"bool\"); \n\n\n }\n break;\n case 2 :\n // /Users/benjamincoe/HackWars/C.g:189:11: 'boolean'\n {\n match(\"boolean\"); \n\n\n }\n break;\n\n }\n this.type = _type;\n }\n finally {\n }\n }", "public boolean hasToken() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "@Override\n public Object evaluateNode(Interpretation interpretation) {\n InternalBoolean internalBoolean = term.verifyAndReturnBoolean(interpretation);\n return internalBoolean;\n }" ]
[ "0.7441353", "0.72904056", "0.6989321", "0.6958135", "0.6846288", "0.684543", "0.68136436", "0.67636067", "0.6739154", "0.6739154", "0.66731256", "0.66689175", "0.66479665", "0.6609492", "0.6600022", "0.65861726", "0.6563528", "0.6543528", "0.6523532", "0.64916044", "0.6490055", "0.64874244", "0.64874244", "0.64874244", "0.64874244", "0.64874244", "0.64874244", "0.64599395", "0.64462566", "0.64462566", "0.64154947", "0.6411596", "0.6357412", "0.6355065", "0.63332623", "0.63308656", "0.62863064", "0.62817514", "0.62796724", "0.62663865", "0.6246429", "0.62324935", "0.6217633", "0.6212845", "0.6195006", "0.61922044", "0.61711603", "0.61591655", "0.6154492", "0.6144583", "0.6115177", "0.60806865", "0.60751575", "0.60751575", "0.6067191", "0.6060661", "0.60513335", "0.6048165", "0.6045414", "0.60430264", "0.6041747", "0.6037038", "0.6018585", "0.6017803", "0.60162383", "0.6001739", "0.5999601", "0.5988247", "0.5984983", "0.5953934", "0.5946769", "0.5946769", "0.5946769", "0.5946769", "0.5931968", "0.59188145", "0.5917181", "0.59116524", "0.59110224", "0.5900009", "0.58999276", "0.58999276", "0.58999276", "0.58999276", "0.5897204", "0.58909625", "0.58898973", "0.5879789", "0.5879789", "0.5879789", "0.5879789", "0.5878383", "0.58774984", "0.5862285", "0.5854243", "0.58397126", "0.58373386", "0.5835024", "0.5831776", "0.58284503" ]
0.7087498
2
Determines whether the string is an identifier
public static boolean isIdentifier(String token) { boolean toret = false; token = token.trim(); if ( !token.isEmpty() ) { final char firstChar = token.charAt( 0 ); final char lastChar = token.charAt( token.length() -1 ); if ( Character.isLetter( firstChar ) || firstChar == '_' || Reserved.AllowedSymbolsInMethodName.indexOf( firstChar ) >= 0 ) { final int len = token.length() -1; int i = 1; for(; i < len; ++i) { final char ch = token.charAt( i ); if ( !Character.isLetterOrDigit( ch ) && ch != '_' && Reserved.AllowedSymbolsInMethodName.indexOf( ch ) < 0 ) { break; } } toret = ( i >= len ); // in case length is 1: "x" } } return toret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Boolean isIdentifier(String string) {\n\t\tif (string == null) {\n\t\t\treturn false;\n\t\t}\n\t\treturn string.matches(\"[0-9].*\");\n\t}", "private boolean isIdentifier(String input) {\n if (this.isLetter(input.charAt(0))) {\n return true;\n } else return false;\n }", "private boolean isIdentifier(String identifier) {\n boolean isFirst = true;\n\n for (int i = 0; i < identifier.length(); i++) {\n char ch = identifier.charAt(i);\n\n if (isFirst && Character.isJavaIdentifierStart(ch)) {\n // first char of key\n } else if (Character.isJavaIdentifierPart(ch) || ch == '.') {\n // remaining chars of the key\n } else {\n // error in format\n return false;\n }\n\n isFirst = false;\n }\n\n return true;\n }", "boolean isIdentifierChar(char c);", "public abstract boolean isIdentifier(@Nullable String text);", "boolean hasIdentifier();", "public abstract boolean isIdentifier(@Nullable String text, LanguageLevel languageLevel);", "private static boolean isLegalIdentifier(String str) {\n if (\"\".equals(str)) {\n return false;\n }\n if (str.charAt(0) >= '0' & str.charAt(0) <= '9') {\n return false;\n }\n\n return str.matches(\"^\\\\w+$\");\n }", "static boolean isValidIdentifier(String identifier) {\n return FULL_IDENTIFIER_PATTERN.matcher(identifier).matches();\n }", "private static boolean isJavaIdentifier(String identifier) {\r\n for (int i = 0, length = identifier.length(); i < length; ++i) {\r\n char character = identifier.charAt(i);\r\n if ((i == 0 && !Character.isJavaIdentifierStart(character)) ||\r\n (i != 0 && !Character.isJavaIdentifierPart(character))) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "private boolean isIdentifierChar(char ch) {\n return (((ch >= 'A') && (ch <= 'Z')) || ((ch >= 'a') && (ch <= 'z'))\n || ((ch >= '0') && (ch <= '9')) || (\".-_:\".indexOf(ch) >= 0));\n }", "private static boolean isValidJavaIdentifier(String s)\r\n {\r\n if (s == null || s.length() == 0)\r\n {\r\n return false;\r\n }\r\n char[] c = s.toCharArray();\r\n if (!Character.isJavaIdentifierStart(c[0]))\r\n {\r\n return false;\r\n }\r\n for (int i = 1; i < c.length; i++)\r\n {\r\n if (!Character.isJavaIdentifierPart(c[i]))\r\n {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "public static boolean isJavaIdentifier(String s) {\n if (s.length() == 0 || !Character.isJavaIdentifierStart(s.charAt(0))) {\n return false;\n }\n for (int i = 1; i < s.length(); i++) {\n if (!Character.isJavaIdentifierPart(s.charAt(i))) {\n return false;\n }\n }\n return true;\n }", "public void testStringID() {\n String testID = generator.generatePrefixedIdentifier(\"test\");\n assertNotNull(testID);\n assertTrue(testID.matches(\"test\" + ID_REGEX));\n }", "public static boolean isValidIdentifier(CharSequence identifier) {\n if (identifier == null || identifier.length() == 0) {\n return false;\n }\n\n if (!isValidIdentifierStart(identifier.charAt(0))) {\n return false;\n }\n\n for (int i = 1; i < identifier.length(); i++) {\n if (!isValidIdentifierAfterStart(identifier.charAt(i))) {\n return false;\n }\n }\n\n return true;\n }", "@Test\n\tpublic void testIdentifier() throws ParseException {\n\t\tIdentifier identifier = langParser(\"foo\").identifier();\n\t\tassertEquals(identifier.getName(), \"foo\");\n\t}", "static boolean isJavaIdentifier (String pValue)\n {\n int len = pValue.length ();\n if (len == 0) {\n return false;\n }\n else {\n if (!Character.isJavaIdentifierStart (pValue.charAt (0))) {\n\treturn false;\n }\n else {\n\tfor (int i = 1; i < len; i++) {\n\t if (!Character.isJavaIdentifierPart (pValue.charAt (i))) {\n\t return false;\n\t }\n\t}\n\treturn true;\n }\n }\n }", "protected boolean hasStringIdentifier(){\r\n // get string descriptor\r\n int status = gUsbIo.getStringDescriptor(stringDescriptor1,(byte)1,0);\r\n if (status != USBIO_ERR_SUCCESS) {\r\n return false;\r\n } else {\r\n if(stringDescriptor1.Str.length()>0) return true;\r\n }\r\n return false;\r\n }", "public static boolean isIdentifierChar(char c) {\n return Character.isJavaIdentifierPart(c) || (// Globals, fields and parameter prefixes (for blocks and symbols)\n c == '$') || (c == '@') || (c == '&') || (c == ':') || (// Function name suffixes\n c == '!') || (c == '?') || (c == '=');\n }", "private static boolean verify(String ident) {\n if (Arrays.asList(IDENTIFIERS).contains(ident)) return true;\n if (!ident.matches(\"[a-zA-Z]\\\\w*\")) return true;\n variables.putIfAbsent(ident,0L);\n return false;\n }", "static boolean verifyID(String id)\r\n\t{\r\n\t\tfor(int i = 0; i < id.length(); i++)\r\n\t\t{\r\n\t\t\tchar c = id.charAt(i);\r\n\t\t\tif((c <= 'Z' && c >= 'A') || (c >= 'a' && c <= 'z')) //isAlpha\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\telse if(c >= '0' && c <= '9' || c == '_' || c == '-') //is digit or _ or -\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\telse if(c == ' ')\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn id.length() > 0;\r\n\t}", "public static boolean isWord(String str) {\r\n if (str == null || str.length() == 0)\r\n return false;\r\n\r\n for (int i= 0; i < str.length(); i++) {\r\n if (!Character.isJavaIdentifierPart(str.charAt(i)))\r\n return false;\r\n }\r\n return true;\r\n }", "boolean isSetIdentifier();", "public static boolean isSafeIdentifierName(String name, int fromIndex) {\n int i = fromIndex;\n for (; i < name.length(); i++) {\n char c = name.charAt(i);\n if (!(c == '$' || c == '@' || c == ':')) {\n break;\n }\n }\n for (; i < name.length(); i++) {\n char c = name.charAt(i);\n if (!((c >= 'a' && c <= 'z') || (c == '_') ||\n (c >= 'A' && c <= 'Z') ||\n (c >= '0' && c <= '9') ||\n (c == '?') || (c == '=') || (c == '!'))) { // Method suffixes; only allowed on the last line\n\n if (isOperator(name)) {\n return true;\n }\n\n return false;\n }\n }\n\n return true;\n }", "public boolean isActivationString(String word);", "private static boolean isValidLiteral(String literal)\r\n\t{\r\n\t\tboolean result = true;\r\n\t\t\r\n\t\tchar[] literalChars = new char[literal.length()];\r\n\t\tliteral.getChars(0, literalChars.length, literalChars, 0);\r\n\t\t\r\n\t\tfor (int i = 0; i < literalChars.length; i++)\r\n\t\t{\r\n\t\t\tif (i == 0 && !Character.isJavaIdentifierStart(literalChars[i]))\r\n\t\t\t{\r\n\t\t\t\tresult = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (i != 0 && !Character.isJavaIdentifierPart(literalChars[i]))\r\n\t\t\t{\r\n\t\t\t\tresult = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn result;\r\n\t}", "public String getIdentifierString();", "java.lang.String getIdentifier();", "String getIdentifierName(String name, String type);", "static boolean verifyIDRelaxed(String id)\r\n\t{\r\n\t\tfor(int i = 0; i < id.length(); i++)\r\n\t\t{\r\n\t\t\tchar c = id.charAt(i);\r\n\t\t\tif(Character.isLetterOrDigit(c)) //isAlpha\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\telse if(c == ' ' || c == '_' || c == '-')\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn id.length() > 0;\r\n\t}", "boolean hasString();", "boolean equals(Identifier comparand);", "@Override\n public boolean isMaybeAnyStr() {\n checkNotPolymorphicOrUnknown();\n return (flags & (STR_OTHERNUM | STR_IDENTIFIERPARTS | STR_OTHER)) == (STR_OTHERNUM | STR_IDENTIFIERPARTS | STR_OTHER); // note: ignoring excluded_strings and included_strings, see javadoc\n }", "private boolean isValidId(String id) {\r\n\t\tboolean result = false;\r\n\t\tif (id.length() >= 1) {\r\n\t\t\tif (Character.isLetter(id.charAt(0))) {\r\n\t\t\t\tif (id.contains(\".\")) {\r\n\t\t\t\t\tString[] tokens = id.split(\"\\\\.\");\r\n\t\t\t\t\tif (tokens.length == 2) {\r\n\t\t\t\t\t\tfor (int i = 0; i < tokens[0].length(); i++) {\r\n\t\t\t\t\t\t\tif (!(tokens[0].charAt(i) == '.'\r\n\t\t\t\t\t\t\t\t\t|| tokens[0].charAt(i) == '_'\r\n\t\t\t\t\t\t\t\t\t|| tokens[0].charAt(i) == '-' || Character\r\n\t\t\t\t\t\t\t\t\t\t.isLetterOrDigit(tokens[0].charAt(i)))) {\r\n\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tfor (int i = 0; i < tokens[1].length(); i++) {\r\n\t\t\t\t\t\t\tif (!(tokens[0].charAt(i) == '.'\r\n\t\t\t\t\t\t\t\t\t|| tokens[0].charAt(i) == '_'\r\n\t\t\t\t\t\t\t\t\t|| tokens[0].charAt(i) == '-' || Character\r\n\t\t\t\t\t\t\t\t\t\t.isLetterOrDigit(tokens[0].charAt(i)))) {\r\n\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\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 result;\r\n\t}", "boolean hasLetterId();", "boolean hasLetterId();", "public void markUseIdentifierNameString() {\n useIdentifierNameString = true;\n }", "private boolean isIdentificatorAhead() {\r\n\t\treturn Character.isLetter(expression[currentIndex]);\r\n\t}", "public static boolean isStrictIdentifierChar(char c) {\n return Character.isJavaIdentifierPart(c) ||\n (c == '!') || (c == '?') || (c == '=');\n }", "public static boolean empidValidate(String emp_id){\n if(emp_id.matches(\"\\\\p{IsAlphabetic}{2}-\\\\d{4}\"))\n return true;\n\n else {\n System.out.println(\"The employee ID must be in the format of AA-1234.\");\n return false;\n }\n\n }", "public static boolean isIDTag(String tag){\n\t\treturn tag.equalsIgnoreCase(idField);\n\t}", "private void handleIdentifier() {\n\n while (isAlphaNumeric(peek())) {\n advance();\n }\n\n // Get the lexeme\n String text = source.substring(start, current);\n\n // Find a matching keyword (if any)\n TokenType type = keywords.get(text);\n if (type == null) {\n type = IDENTIFIER; // ie not a keyword\n }\n addToken(type);\n }", "public final void mIdent() throws RecognitionException {\r\n\t\ttry {\r\n\t\t\tint _type = Ident;\r\n\t\t\tint _channel = DEFAULT_TOKEN_CHANNEL;\r\n\t\t\t// C:\\\\Users\\\\don\\\\workspace\\\\sea-of-ql-repo-3\\\\ckonig\\\\QLJava\\\\src\\\\org\\\\uva\\\\sea\\\\ql\\\\parser\\\\antlr\\\\QL.g:162:7: ( ( 'a' .. 'z' ) ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' )* )\r\n\t\t\t// C:\\\\Users\\\\don\\\\workspace\\\\sea-of-ql-repo-3\\\\ckonig\\\\QLJava\\\\src\\\\org\\\\uva\\\\sea\\\\ql\\\\parser\\\\antlr\\\\QL.g:162:12: ( 'a' .. 'z' ) ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' )*\r\n\t\t\t{\r\n\t\t\tif ( (input.LA(1) >= 'a' && input.LA(1) <= 'z') ) {\r\n\t\t\t\tinput.consume();\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tMismatchedSetException mse = new MismatchedSetException(null,input);\r\n\t\t\t\trecover(mse);\r\n\t\t\t\tthrow mse;\r\n\t\t\t}\r\n\t\t\t// C:\\\\Users\\\\don\\\\workspace\\\\sea-of-ql-repo-3\\\\ckonig\\\\QLJava\\\\src\\\\org\\\\uva\\\\sea\\\\ql\\\\parser\\\\antlr\\\\QL.g:162:22: ( 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' | '_' )*\r\n\t\t\tloop5:\r\n\t\t\twhile (true) {\r\n\t\t\t\tint alt5=2;\r\n\t\t\t\tint LA5_0 = input.LA(1);\r\n\t\t\t\tif ( ((LA5_0 >= '0' && LA5_0 <= '9')||(LA5_0 >= 'A' && LA5_0 <= 'Z')||LA5_0=='_'||(LA5_0 >= 'a' && LA5_0 <= 'z')) ) {\r\n\t\t\t\t\talt5=1;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tswitch (alt5) {\r\n\t\t\t\tcase 1 :\r\n\t\t\t\t\t// C:\\\\Users\\\\don\\\\workspace\\\\sea-of-ql-repo-3\\\\ckonig\\\\QLJava\\\\src\\\\org\\\\uva\\\\sea\\\\ql\\\\parser\\\\antlr\\\\QL.g:\r\n\t\t\t\t\t{\r\n\t\t\t\t\tif ( (input.LA(1) >= '0' && input.LA(1) <= '9')||(input.LA(1) >= 'A' && input.LA(1) <= 'Z')||input.LA(1)=='_'||(input.LA(1) >= 'a' && input.LA(1) <= 'z') ) {\r\n\t\t\t\t\t\tinput.consume();\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tMismatchedSetException mse = new MismatchedSetException(null,input);\r\n\t\t\t\t\t\trecover(mse);\r\n\t\t\t\t\t\tthrow mse;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tdefault :\r\n\t\t\t\t\tbreak loop5;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\tstate.type = _type;\r\n\t\t\tstate.channel = _channel;\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\t// do for sure before leaving\r\n\t\t}\r\n\t}", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "boolean hasScStr();", "I getIdentifier();", "private boolean CheckID(String id) {\n\t\tif ((!id.matches(\"([0-9])+\") || id.length() != 9) && (!id.matches(\"S([0-9])+\") || id.length() != 10)) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "IdentifierType createIdentifierType();", "@Override\n public boolean isUhUuid(String naming) {\n return naming.matches(\"\\\\d+\");\n }", "boolean hasRfIdentifier();", "public boolean isToken(String token){\n if(currentToken == -1) return false;\n return tokens.get(currentToken).identifier.equals(token);\n }", "private void processIdentificator() {\r\n\t\tString identificator = generateString();\r\n\r\n\t\tif (identificator.equals(Constants.AND_STRING)) {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.AND_STRING);\r\n\r\n\t\t} else if (identificator.equals(Constants.XOR_STRING)) {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.XOR_STRING);\r\n\r\n\t\t} else if (identificator.equals(Constants.OR_STRING)) {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.OR_STRING);\r\n\r\n\t\t} else if (identificator.equals(Constants.NOT_STRING)) {\r\n\t\t\ttoken = new Token(TokenType.OPERATOR, Constants.NOT_STRING);\r\n\r\n\t\t} else if (identificator.equals(trueString)) {\r\n\t\t\ttoken = new Token(TokenType.CONSTANT, true);\r\n\r\n\t\t} else if (identificator.equals(falseString)) {\r\n\t\t\ttoken = new Token(TokenType.CONSTANT, false);\r\n\r\n\t\t} else {\r\n\t\t\ttoken = new Token(TokenType.VARIABLE, identificator.toUpperCase());\r\n\t\t}\r\n\t}", "public final static boolean validationByIdentified(String identified) {\n return getScopeTypeByIdentified(identified) != null;\n }", "public static boolean isA(String s) {\n\t\tlong ip = IP4Style.transfer(s);\n\t\tif (ip == -1L) return false;\n\t\tlong a = (ip >>> 24) & 0xFF;\n\t\treturn (a >> 7) == 0L;\n\t}", "public boolean isSetIdentifier() {\n return this.identifier != null;\n }", "private static boolean isValidTypeString(String string)\r\n {\r\n return VALID_TYPE_STRINGS.contains(string);\r\n }", "private boolean name() {\r\n return (\r\n (letter() && alphas()) ||\r\n (CHAR('`') && nobquotes() && MARK(QUOTE) && CHAR('`'))\r\n );\r\n }", "public boolean m3532a(String str) {\n return this.f2511a.containsKey(str);\n }", "public boolean isIdentifier(int identifier, ObjectDataOptionsEnum... options) throws PersistenceException {\n if(getAllIdentifier(options).contains(identifier)) {\n return (true);\n }\n return (false);\n }", "public boolean canProvideString();", "public void containsString() {\n\t\t\tString name = \"martin\";\n\t\t\tboolean contains = name.contains(\"rti\");\n\t\t\tif(contains) {\n\t\t\t\tSystem.out.println(\"it contains\");\n\t\t\t}\n\t\t}", "private boolean isNameValid(String name) {\n\n }", "private boolean m81839a(String str) {\n return C6969H.m41409d(\"G738BDC12AA\").equals(str) || C6969H.m41409d(\"G738BDC12AA39A528F61E\").equals(str);\n }", "public boolean providesIdentifier() {\n\t\treturn false;\n\t}", "boolean hasCodeName();", "public boolean isNamed(String n) {\n return name.equals(n);\n }", "protected abstract String getIdentifier();", "boolean isNilID();", "boolean hasStringValue();", "public abstract boolean mo70721d(String str);", "private boolean isValidTagName(String s) {\n if (s.equals(\"=\")) {\n return true;\n }\n\n char[] array = s.toCharArray();\n if (Character.isLetter(array[0])) {\n for (int i = 1; i < array.length; i++) {\n if (!(Character.isLetterOrDigit(array[i]) || array[i] == '_')) {\n return false;\n }\n }\n return true;\n }\n\n return false;\n }", "private boolean hasInvalidCharacter(final String taxId) {\n char aChar;\n for (int i = 0; i < EXPECTED_LEN; i++) {\n aChar = taxId.charAt(i);\n if (!(aChar >= '0' && aChar <= '9' || aChar >= 'A' && aChar <= 'Z')) {\n return true;\n }\n }\n return false;\n }", "public boolean containsLiteralString(String literalData);", "public boolean hasIdentifier() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean isSetIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(IDENTIFIER$0) != 0;\n }\n }", "private boolean isNdexId(String conceptId) {\n\t\tif(conceptId.startsWith(Translator.NDEX_NS)) {\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// ...old test, in case you\n\t\ttry {\n\t\t\tif (conceptId.length() >= 38) {\n\t\t\t\tUUID.fromString(conceptId.substring(0, 36));\n\t\t\t\treturn conceptId.charAt(36) == Translator.NETWORK_NODE_DELIMITER_CHAR;\n\t\t\t}\n\t\t\n\t\t} catch (IllegalArgumentException e) {}\n\t\t\n\t\treturn false;\n\t}", "public static boolean isAlphapetic(String userInput) {\n return Pattern.matches(Constants.NAME_VALIDATION, userInput);\n }", "public static boolean alphanumericCheck(String name)\r\n\t{\r\n\t\treturn name.matches(\"^[a-zA-Z0-9]*$\");\r\n\t}", "public static boolean isNameValid(String string) {\n if (isBlankOrNull(string)) return false;\n if (string.length() > 45) return false;\n\n return string.matches(\"[a-zA-Z0-9]*\");\n }", "public final boolean mo99837a(String str) {\n return true;\n }", "public boolean hasIdentifier() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean supports(String identifier)\n {\n for(String prefix : supportedPrefixes){\n if(identifier.startsWith(prefix))\n {\n return true;\n }\n }\n return false;\n }", "public static Value makeAnyStrIdent() {\n return theStrIdent;\n }", "public interface Identifier {\n\n public String getIdentifier();\n\n}", "private boolean preTest(String str) {\n\t\treturn str.matches(\"^[\\\"A-Z][\\u0000-\\u0080]+$\");\n\t}", "boolean isTypeKey(String key);", "boolean hasSymbolId();", "public abstract boolean isQualifiedName(@Nullable String text);", "boolean isWord(String potentialWord);", "private @Nullable IdentifierToken eatIdOrKeywordAsId() {\n Token token = nextToken();\n if (token.type == TokenType.IDENTIFIER) {\n return (IdentifierToken) token;\n } else if (Keywords.isKeyword(token.type)) {\n return new IdentifierToken(token.location, Keywords.get(token.type).toString());\n } else {\n reportExpectedError(token, TokenType.IDENTIFIER);\n }\n return null;\n }", "public static boolean validatenum(String str) {\n\t\tchar[] s=str.toCharArray();\n\t\tfor(int i=0;i<str.length();i++) {\n\t\t\tchar temp=s[i];\n\t\t\ts[i]=temp; \n\t\t}\n\t\tchar ch;\n\t\tboolean capital=false;\n\t\tboolean lower=false;\n\t\tboolean num=false;\n\t\tboolean spc=false;\n\t\tfor(int i=0; i<s.length; i++) {\n\t\t\tch=s[i];\n\t\t\tif(s.length>9) {\n\t\t\t\tif(Character.isDigit(ch)) {\n\t\t\t\t\tSystem.out.println(\"digit char: \"+ch);\n\t\t\t\t\tnum=true;\n\t\t\t\t}\n\t\t\t\telse if(Character.isUpperCase(ch)) {\n\t\t\t\t\tSystem.out.println(\"upper char: \"+ch);\n\t\t\t\t\tcapital=true;\n\t\t\t\t}\n\t\t\t\telse if(Character.isLowerCase(ch)) {\n\t\t\t\t\tSystem.out.println(\"lower char: \"+ch);\n\t\t\t\t\tlower=true;\n\t\t\t\t}\n\t\t\t\telse if((int)ch==(int)'$'|| (int)ch==(int)'#') {\n\t\t\t\t\tSystem.out.println(\"special char: \"+ch);\n\t\t\t\t\tspc=true;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Extra :\"+ch);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\t\n\t\t}\n\t\tif(num && spc && lower && capital) {\n\t\t\tSystem.out.println(\"String is valid :\" + \"num: \"+num+\" spc: \"+spc+\" lower: \"+lower+\" capital: \"+capital);\n\t\t\treturn true;\n\t\t}\n\t\t//System.out.println(\"String is valid :\" + \"num: \"+num+\" spc: \"+spc+\" lower: \"+lower+\" capital: \"+capital);\n\t\treturn false;\n\t}", "private void AnalyzeIdentNum(String s, int lineNum){\n if (s.matches(\"[a-z](([a-z]|[0-9])*)\")){\n arrL.add(new Token(s, 61, lineNum));\n }\n //check s is number or not\n else if (s.matches(\"[1-9]([0-9]*)\")||s.matches(\"0\")){\n arrL.add(new Token(s, 60, lineNum));\n }\n // check s is a\n // none of above, then s is an errorToken\n else{\n arrL.add(new Token(s, 0, lineNum));\n Error(\"Error: Invalid input \\\"\" + s + \"\\\" on line \" + lineNum);\n }\n }", "public String getIdentifier();", "public String getIdentifier();" ]
[ "0.83732575", "0.796173", "0.7811243", "0.77400416", "0.7718937", "0.7579798", "0.7315985", "0.7226749", "0.7165033", "0.7021674", "0.70094633", "0.6989645", "0.69745344", "0.6856239", "0.6852034", "0.6699654", "0.6689564", "0.66375947", "0.6618648", "0.6582404", "0.65768504", "0.6510422", "0.65100235", "0.63334394", "0.63267887", "0.627844", "0.62567294", "0.6184769", "0.6162842", "0.61354685", "0.60249996", "0.60167474", "0.5983902", "0.5919264", "0.59075165", "0.59075165", "0.58462507", "0.5820492", "0.5810072", "0.5800677", "0.57985914", "0.57924366", "0.5784363", "0.5779958", "0.5779958", "0.5779958", "0.5779958", "0.5779958", "0.5779958", "0.5779958", "0.5778092", "0.57678175", "0.5705413", "0.5704491", "0.57004994", "0.56939965", "0.5690159", "0.56764776", "0.5672419", "0.5654839", "0.5623748", "0.56222504", "0.5597811", "0.55848956", "0.55726254", "0.5569667", "0.5565645", "0.5556349", "0.5554359", "0.55529875", "0.55453885", "0.5536156", "0.55293804", "0.55281705", "0.5520251", "0.5516338", "0.5514104", "0.55096936", "0.5506752", "0.5503473", "0.54818577", "0.54778755", "0.5475985", "0.5473058", "0.5472042", "0.54710716", "0.5469534", "0.5466394", "0.5463726", "0.545212", "0.5451908", "0.54510665", "0.54508543", "0.5450443", "0.5427003", "0.5409166", "0.5398454", "0.5396011", "0.53951466", "0.53951466" ]
0.7313746
7
Inserts a new particle at the current position of the lexed string.
public void insertAtCurrentPos(String part) { StringBuffer newLine = new StringBuffer( this.getLine() ); newLine.insert( this.getPos(), part + ' ' ); this.line = newLine.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void insert(int pos, String s);", "public void addPos(String word, IPosition pos);", "public void insertBeforeCursor(String s) {\n if(this.isEmpty() || cursor==-1)\n {\n lines.addFirst(s);\n }\n else\n lines.addBefore(new PositionObject<>(lines.get(cursor)), s);\n //cursor--;\n }", "public void insertString(int offs, String str, AttributeSet a)\n throws BadLocationException\n {\n String currentText = getText( 0, getLength() ) + \"0\";\n\n String beforeOffset = currentText.substring(0, offs);\n String afterOffset = currentText.substring(offs, currentText.length());\n String proposedResult = beforeOffset + str + afterOffset;\n try {\n format.parseObject( proposedResult );\n super.insertString( offs, str, a );\n } catch (ParseException e) {\n Toolkit.getDefaultToolkit().beep();\n }\n }", "public void insert(String word, Point point)\r\n\t{\r\n\t\t//call insert\r\n\t\troot.insert(new Data(word, point));\r\n\t}", "public void insertAfterCursor(String s) {\n if(this.isEmpty())\n {\n lines.addFirst(s);\n }\n else\n lines.addAfter(new PositionObject<>(lines.get(cursor)), s);\n cursor++;\n }", "public static void insert(String s)\n {\n }", "public void insertString(int offset, String str, AttributeSet a)\n throws BadLocationException\n {\n super.insertString(offset, str, a);\n\t\t//System.out.println(\"STRING: \"+str+\" \"+str.length()+\" \"+\n\t\t//\toffset);\n\t\t//variables\n int locationChange = offset - _currentLocation;\n\t\tint strLength = str.length();\n\t\tint prevSize;\t\t//stores the size of the item prev when insert begins.\n\t\tint reducedOffset;\n\t\tModelList<ReducedToken>.Iterator mark;\n\t\tVector<StateBlock> newStates = new Vector<StateBlock>();\n\n\t\t//1)adjust location\n _reduced.move(locationChange);\n\t\treducedOffset = _reduced._offset;\n\t\t//2)set mark to the previous item.\n\t\tmark = _reduced.makeCopyCursor();\n\t\tif (!mark.atStart()) //if not at start then get the previous item.\n\t\t\tmark.prev();\n\t\tif (mark.atStart()) //if now at start then size of current == 0\n\t\t\tprevSize = 0;\n\t\telse\n\t\t\tprevSize = mark.current().getSize(); //else size == size of current\n\t\t\n\t\t\n\t\t//3)loop through string inserting characters\n for (int i = 0; i < str.length(); i++)\n\t\t\t{\n\t\t\t\tchar curChar = str.charAt(i);\n\t\t\t\t_addCharToReducedView(curChar);\n\t\t\t}\n\t\t\n\t\t//get highlight information from mark onward\n\t\t//numbers are off by prevSize + strLength + reducedOffset\n\t\t//the adjustment is the absolute position that newStates started at\n\n\t\tint adjustment = offset - prevSize - reducedOffset;\n\t\tnewStates = SBVectorFactory.generate(mark,0,adjustment);\n\t\t\n\t\tupdateCurrentHighlights(newStates,adjustment);\n\t\t\n\t\t_currentLocation = offset + strLength;\n\t\t_modifiedSinceSave = true;\n\n\t\tupdateStyles();\n\n }", "public void insert(String word) {\n TrieTree point = root;\n for(int i = 0; i < word.length(); i++){\n char ch = word.charAt(i);\n if(point.getChild(ch - 'a') == null){\n point.setChild(ch - 'a', ch);\n }\n point = point.getChild(ch - 'a');\n }\n point.setIsWord();\n }", "public void insertToken(Token tok) {\r\n\t}", "public void insert(String word) {\r\n tree.add(word);\r\n }", "@Override\n\tpublic void insertString(int offs, String str, AttributeSet a) throws BadLocationException {\n\t\tsuper.insertString(offs, str.replaceAll(\"[^0-9]\", \"\"), a);\n\t}", "void insert(String mappedNumber, String word);", "private static String insert(String input, int index, String toInsert) {\n return input.substring(0, index) + toInsert + input.substring(index);\n }", "protected void insertbefore(String token, int index) {\n\n int stop = token.length() + index - 1;\n\n for(int i=0; i < token.length(); ++i) {\n message.insertAt(index+i, token.charAt(i));\n }\n\n // Generate and store inverse commands\n this.undoCommands += \"r \" + index + \" \" + stop + \"\\n\";\n }", "public void add(Mention mention, int sentenceOffset);", "public void insertAtBegin(String v) {\n\tElementDPtr e = new ElementDPtr(v,null,head);\n\thead = e;\n\tlength ++;\n\tSystem.out.println(tail.getPrev().getValue() + \" insertB \" + length);\n}", "public void Insert(char ch)\n {\n if(stringstream.contains(ch)){\n rep.add(ch);\n }\n stringstream.add(ch);\n \n }", "public void insertString (int pos, String str, AttributeSet attr) \r\n\t\tthrows BadLocationException {\r\n\r\n\t\tif (str == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tint len = str.length();\r\n\t\tif (len == 0) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tint curLength = getLength();\r\n\t\tif (maxLength > 0) {\r\n\t\t\tif (curLength + len > maxLength) {\r\n\t\t\t\tbeep();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t\tif (len > 1) {\r\n\r\n\t\t\tdontValidate = true;\r\n\t\t\tint j = 0;\r\n\t\t\tfor (int i = pos; i < len; i++, j++) {\r\n\r\n\t\t\t\tif (i == len - 1) {\r\n\t\t\t\t\tdontValidate = false;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tString s = str.substring(j, j + 1);\t\r\n\t\t\t\tinsertString(i, s, attr);\r\n\t\t\t}\r\n\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\r\n\t\t/*\r\n\t\t * If it's a digit character then go on, otherwise enter the \r\n\t\t * special checking mode\r\n\t\t */\r\n\t\tchar digit_char = str.charAt(0);\r\n\t\tif (!Character.isDigit(digit_char) && digit_char != '-'\r\n\t\t\t&& digit_char != '+' && digit_char != '.'\r\n\t\t\t&& digit_char != 'E' && digit_char != 'e') {\r\n\r\n\t\t\t/*\r\n\t\t\t * Invalid data - don't modify\r\n\t\t\t */\t\t\t\r\n\t\t\tbeep();\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tString buf = getText(0, curLength).toLowerCase();\r\n\t\tif (digit_char == '-' || digit_char == '+') {\r\n\r\n\t\t\tif (pos == 0 && buf.length() > 0\r\n\t\t\t\t\t&& (buf.charAt(0) == '-' || buf.charAt(0) == '+')) {\r\n\t\t\t\t/*\r\n\t\t\t\t * don't let user begin line with 2 sign characters\r\n\t\t\t\t */\r\n\t\t\t\tbeep();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/*\r\n\t\t\t * other than the first character, only allow a +/- to\r\n\t\t\t * sign the exponent (i.e. -5.09e-3)\r\n\t\t\t */\r\n\t\t\tboolean sign_okay = \r\n\t\t\t\t(pos == 0) || (pos > 1 && buf.charAt(pos - 1) == 'e');\r\n\t\t\tif (!sign_okay) {\r\n\t\t\t\tbeep();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (digit_char == '.' && buf.indexOf(\".\") > -1) {\r\n\t\t\tbeep();\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif ((digit_char == 'e' || digit_char == 'E') && buf.indexOf(\"e\") > -1) {\r\n\t\t\tbeep();\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\r\n\t\tif (dontValidate || (minValue == null && maxValue == null)) {\r\n\t\t\tsuper.insertString(pos, str, attr);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\t\r\n\r\n\t\t/*\r\n\t\t * Build up the string and validate it's numeric value \r\n\t\t */\r\n\t\tString s = getText(0, curLength);\r\n\t\tStringBuffer number = new StringBuffer();;\r\n\t\tif (pos > 0) {\r\n\r\n\t\r\n\t\t\tif (pos <= curLength) {\r\n\t\t\t\tnumber.append(s.substring(0, pos));\r\n\t\t\t}\r\n\r\n\t\t\tnumber.append(str);\r\n\t\t\r\n\t\t\tif (pos < curLength) {\r\n\t\t\t\tnumber.append(s.substring(pos));\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\r\n\t\t\tnumber.append(str);\r\n\t\t\tif (s != null) {\r\n\t\t\t\tnumber.append(s);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t\ttry {\r\n\r\n\t\t\tDouble val = new Double(number.toString());\r\n\t\t\tif (validateMin && minValue != null &&\r\n\t\t\t\t\tminValue.compareTo(val) > 0) {\r\n\r\n\t\t\t\tbeep();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tif (maxValue != null && maxValue.compareTo(val) < 0) {\r\n\r\n\t\t\t\tbeep();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t} catch (NumberFormatException e) {\r\n\r\n\t\t\tbeep();\r\n\t\t\treturn;\r\n\t\t}\t\t\t\r\n\r\n\r\n\t\tsuper.insertString(pos, str, attr);\r\n\t}", "public void insert(char location, Node toInsert)\n {\n if (location >= 'a' && location <= 'z')\n {\n nexts[location - 97] = toInsert;\n }\n if (location >= 'A' && location <= 'Z')\n {\n nexts[location - 10] = toInsert;\n }\n }", "public void insert(String s){\n\t\tinsertHelper(root, s);\n\t}", "public void insert(String word) {\n this.root.insert(word);\n }", "public void insert(int index, String fragment);", "public native String insertItemBefore(String newItem, Number index);", "public void insert(int pos, MConstText srcText) {\r\n replace(pos, pos, srcText, 0, srcText.length());\r\n }", "private void insert(String text, AttributeSet style) {\r\n\t\ttry {\r\n\t\t\tdocument.insertString(getCaretPosition(), text, style);\r\n\t\t} catch (BadLocationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public JsStatement insertBefore(String expression)\n\t{\n\t\tchain(ManipulatingHelper.insertBefore(expression));\n\t\treturn this;\n\t}", "public void insert(String word) {\n insert(root, word, new Object(), 0);\n }", "public MyStringBuilder2 insert(int offset, String str)\n\t{\n\t\tif(offset > length || offset < 0) {\n\t\t\t//do nothing\n\t\t} else if(offset == length) {\n\t\t\t//append if at the end\n\t\t\tthis.append(str);\n\t\t} else {\n\t\t\tif (offset == 0) {\n\t\t\t\t//add new nodes from the front\n\t\t\t\tCNode newNode = new CNode(str.charAt(0));\n\t\t\t\tnewNode.next = firstC;\n\t\t\t\tfirstC = newNode;\n\t\t\t\toffset++;\n\t\t\t\tlength++;\n\t\t\t\trecursiveInsert(offset, 1, str);\n\t\t\t} else {\n\t\t\t\toffset -= 1;\n\t\t\t\tCNode nodeBefore = getCNodeAt(offset, firstC);\n\t\t\t\tCNode nodeAfter = nodeBefore.next;\n\t\t\t\trecursiveInsertMiddle(0, str, nodeBefore, nodeAfter);\n\t\t\t}\n\t\t\n\t\t}\n\t\treturn this;\n\t}", "@Override\n public void insert(String word) {\n root = insertIterative(word, root);\n }", "public void Insert(String st) {\n\t\ttable[hashFunction(st,m)].insert(st);\n\t}", "@Override\n\tpublic void editorInsert(String substring)\n\t{\n\t stringBuffer.replace(selectionStart,selectionEnd,substring);\n\t selectionEnd=selectionStart+substring.length();\n\t selectionStart=selectionEnd;\n\t\tSystem.out.println(\"DEBUG: inserting text [\" + substring + \"]\");\n\t}", "public void insert(String word) { \n char[] w = word.toCharArray(); \n insert(root, w, 0); \n }", "public void insert(String s, int caretOffset) {\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tchar c = s.charAt(i);\n\t\t\tinsert(c, caretOffset);\n\t\t}\n\t}", "public void insertar (String p) {\n int x = p.length();\n for (int i = x-1; i >=0; i--) {\n System.out.println(p.charAt(i));\n pila.add(p.charAt(i)+\"\");\n }\n }", "public void insert(String word) {\n var node = root;\n for(char currentChar : word.toCharArray()){\n if(!node.containsKey(currentChar)) {\n node.put(currentChar, new Node());\n }\n node = node.get(currentChar);\n }\n node.setEnd();\n }", "public void insert(char i);", "public void insertString(int offset, String s, AttributeSet attributeSet)\n {\n \tfor (int i=0; i< s.length(); i++)\n \t{\n \t\tif (!s.valueOf(s.charAt(i)).equals(\"0\") &&\n \t\t\t\t!s.valueOf(s.charAt(i)).equals(\"1\") &&\n \t\t\t\t!s.valueOf(s.charAt(i)).equals(\"2\") &&\n \t\t\t\t!s.valueOf(s.charAt(i)).equals(\"3\") &&\n \t\t\t\t!s.valueOf(s.charAt(i)).equals(\"4\") &&\n \t\t\t\t!s.valueOf(s.charAt(i)).equals(\"5\") &&\n \t\t\t\t!s.valueOf(s.charAt(i)).equals(\"6\") &&\n \t\t\t\t!s.valueOf(s.charAt(i)).equals(\"7\") &&\n \t\t\t\t!s.valueOf(s.charAt(i)).equals(\"8\") &&\n \t\t\t\t!s.valueOf(s.charAt(i)).equals(\"9\") &&\n \t\t\t\t!s.valueOf(s.charAt(i)).equals(\"-\") &&\n \t\t\t\t!s.valueOf(s.charAt(i)).equals(\"E\") &&\n \t\t\t\t!s.valueOf(s.charAt(i)).equals(\"e\") &&\n \t\t\t\t!s.valueOf(s.charAt(i)).equals(\".\") \n \t\t\t\t)\n \t\t{\n \t\t\tToolkit.getDefaultToolkit().beep();\n \t\t\treturn;\n \t\t}\n \t}\n \ttry\n \t{\n \t\tsuper.insertString( offset,s,attributeSet);\n \t}\n \tcatch (BadLocationException ble)\n \t{\n \t\treturn;\n \t}\n }", "public void spawnParticle(String particle, double x, double y, double z, double dx, double dy, double dz, double speed, int count);", "public void insertString(int offset, String str, AttributeSet attr)\n throws BadLocationException {\n\n if (iMaxLength <= 0) // aceitara qualquer no. de caracteres \n {\n super.insertString(offset, str, attr);\n return;\n }\n\n int ilen = (getLength() + str.length());\n if (ilen <= iMaxLength) // se o comprimento final for menor... \n {\n super.insertString(offset, str, attr); // ...aceita str \n }\n }", "public void insert(String word) {\n Node current = root;\n for (int i = 0; i < word.length(); ++i) {\n int c = word.charAt(i) - 'a';\n if (current.children[c] == null)\n current.children[c] = new Node(c);\n current = current.children[c];\n }\n current.isWord = true;\n }", "public void insert(String word){\n //initially curr is root\n TrieNode curr = root;\n for(int i=0; i<word.length(); i++){\n char c = word.charAt(i);\n //if char doesnot exist, add new trienode\n if(curr.children[c-'a'] == null){\n curr.children[c-'a'] = new TrieNode();\n }\n //curr++\n curr = curr.children[c-'a'];\n }\n //set curr.word to the word\n curr.word = word;\n }", "public void insert(String word) {\n Node temp = this.root;\n while(word.length()!=0){\n char c = word.charAt(0);\n word = word.substring(1);\n int index = (int)c -97;\n if(temp.children[index]==null){\n temp.children[index] = new Node(c);\n }\n temp = temp.children[index];\n }\n temp.isEnd = true;\n \n }", "@Override\n public void insertString(int offs, String str, AttributeSet a) throws NumberFormatException {\n int help;\n\n\n if (Character.isDigit(str.charAt(0))) {\n help = Character.digit(str.charAt(0),10);\n if (help < 10) {\n if (super.getLength() + str.length() > maxWert) {\n str = str.substring(0, maxWert - super.getLength());\n }\n try {\n super.insertString(offs, str, a);\n\n String text = super.getText(0, super.getLength());\n if(text != null && !text.equals(\"\")){\n edge.setWeight(Integer.parseInt(text));\n\n }\n\n } catch (BadLocationException e) {\n e.printStackTrace();\n }\n }\n }\n }", "public void insertBefore(String value, StringListIterator position)\n {\n\tStringListNode node = new StringListNode(value, position.node.prev, position.node);\n\tposition.node.prev = node;\n\tif (head == position.node) {\n\t head = node;\n\t}\n\telse {\n\t node.prev.next = node;\n\t}\n }", "public\n void insertString(int offset, String str, AttributeSet a) throws BadLocationException {\n if (str == null) {\n return;\n }\n\n /* Insert the string if it is formatted properly. */\n try {\n double d = Double.parseDouble(str);\n } catch (NumberFormatException e) {\n\n /* Handle decimal points the first time they appear. */\n if (!str.equals(\".\")) {\n return;\n } else if (str.equals(\".\") && !firstDecimal) {\n return;\n } else {\n firstDecimal = false;\n }\n }\n\n\n /* If the string was successfully parsed but had a decimal point\n in it (as could happen when this class is instantiated with\n a given value), the firstDecimal flag must be set. */\n if (str.indexOf(\".\") != -1) {\n firstDecimal = false;\n }\n\n /* Insert the string into the field. */\n super.insertString(offset, str, a);\n }", "public void insert(String word) {\n Node curr = root;\n\n for(int i = 0; i < word.length(); i++) {\n char c = word.charAt(i);\n\n if(curr.children[c - 'a'] == null) {\n curr.children[c - 'a'] = new Node(c);\n }\n\n curr = curr.children[c - 'a'];\n }\n\n curr.isWord = true;\n }", "public void insertString(int offs, String str, AttributeSet a) throws BadLocationException {\n\t\tboolean allow = true;\n\t\tfor (int i = 0; i < str.length(); i++)\n\t\t\tif (allowChars.indexOf(str.charAt(i)) < 0) {\n\t\t\t\t// Check each character (better way?)\n\t\t\t\tallow = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\tif (allow)\n\t\t\tsuper.insertString(offs, str, a);\n\t}", "public void insertString(String text) {\n HashSet<Node> visited = new HashSet<Node>();\n for (int i = 0; i <= text.length(); i++) {\n addSuffix(text.substring(i) + WORD_TERMINATION, i, visited);\n }\n // fullText = text;\n for (Node n: visited) {\n n.setCount(n.getCount() + 1.0);\n }\n this.string_cnt += 1;\n }", "@External\r\n\t@ClientFunc\r\n\tpublic MetaVarCLuaParticle Add(MetaVarString materialVar,MetaVarVector positionVar);", "public void insert(String word) {\n Node curr = root;\n for (int i = 0; i < word.length(); i++) {\n char c = word.charAt(i);\n Node subNode = curr.subNodes[c - 'a'];\n if (subNode == null) {\n subNode = new Node(c);\n curr.subNodes[c - 'a'] = subNode;\n }\n if (i == word.length() - 1) {\n subNode.isWord = true;\n }\n curr = subNode;\n }\n }", "void insert(String delta) {\n \n if (!acceptInsert(delta)) {\n clear();\n } \n \n int cursor = mDisplay.getSelectionStart();\n mDisplay.getText().insert(cursor, delta);\n \n }", "public void insert(String word) {\n Node node = root;\n char[] chars = word.toCharArray();\n for (char c: chars) {\n int idx = c - 'a';\n Node next = node.children[idx];\n if (next == null) {\n next = new Node(null);\n node.children[idx] = next;\n }\n node = next;\n }\n node.val = word;\n }", "public void insert(String word) {\n char [] words=word.toCharArray();\n CharTree t=root;\n for (char c : words) {\n if(t.next[c-97]==null){\n t.next[c-97]=new CharTree();\n }\n t=t.next[c-97];\n }\n t.isend=true;\n }", "void insertToNode(String text, Node n) {\n\t\tList<String> list = new ArrayList<String>();\n\t\tint pos = 0, end;\n\t\t//Method finds all text part between spaces, but ignores the last text since there is no space, just newline\n\t\twhile ((end = text.indexOf(\" \", pos)) >= 0) {\n\t\t\tlist.add(text.substring(pos, end));\n\t\t\tpos = end + 1;\n\t\t}\n\t\t//Adds the last text since it else wise is ignored\n\t\tlist.add(2, text.substring(pos, text.length() - 1));\n\t\t\n\t\tn.setNum(Integer.parseInt(list.get(0).trim()));\n\t\tn.setLatitude(Double.parseDouble(list.get(1).trim()));\n\t\tn.setLongitude(Double.parseDouble(list.get(2).trim()));\n\t\tn.setPrev(new Last());\n\t}", "public void insert( final char c ) {\n\t\tbuffer.insert( cursor++, c );\n\t}", "public void insert(String word) \n\t {\n\t \tTrieNode p = root;\n\t for(int i=0; i<word.length(); ++i)\n\t {\n\t \tchar c = word.charAt(i);\n\t \tif(p.children[c-'a']==null)\n\t \t\tp.children[c-'a'] = new TrieNode(c);\n\t \tp = p.children[c-'a'];\n\t }\n\t p.mark = true;\n\t }", "public void Insert(char ch){\n if(occurrence[ch]==-1)\n occurrence[ch]=index++;\n else if(occurrence[ch]>=0)\n occurrence[ch]=-2;\n }", "public void insert(String text) {\n\t\tcmd = new InsertCommand(text, editor);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}", "@Override\r\n public void insertString(int offs, String str, AttributeSet a)\r\n throws BadLocationException {\n\r\n if (getLength() + str.length() > max) {\r\n // If it does, then truncate it\r\n\r\n str = str.substring(0, max - getLength());\r\n }\r\n super.insertString(offs, str, a);\r\n }", "public void Insert(char ch)\n {\n if (map[ch] == -1) {\n map[ch] = pos;\n }\n else {\n map[ch] = -2;\n } \n pos ++;\n }", "public void insert(String word) {\n Node currentNode = head;\n for (int i = 0; i < word.length(); i++) {\n char currentChar = word.charAt(i);\n if (currentNode.children.get(currentChar - 'a') == null) {\n currentNode.children.set(currentChar - 'a', new Node(false));\n }\n currentNode = currentNode.children.get(currentChar - 'a');\n }\n currentNode.setIsFinished(true);\n }", "public void insert(String word) {\n TrieNodeWithWord curr = root;\n\n for (int i = 0; i < word.length(); i++) {\n char c = word.charAt(i);\n // 当前孩子是否存在\n if (curr.children[c - 'a'] == null) {\n curr.children[c - 'a'] = new TrieNodeWithWord();\n }\n curr = curr.children[c - 'a'];\n }\n // 当前节点结束,存入当前单词\n curr.word = word;\n }", "public void insertOutput(int offset, String text) {\r\n\t\ttry {\r\n\t\t\tdocument.insertString(offset, text, styles.getOutput());\r\n\t\t\tcommandIndex += text.length();\r\n\t\t\tcallOffsetListeners(offset, text.length());\r\n\t\t}\r\n\t\tcatch (BadLocationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n\tpublic void insertChar(char c)\n\t{\n\t\tleft.push(c);\n\t}", "@Override\r\n\tpublic void insertString(int offs, String str, AttributeSet a)\r\n\t\t\tthrows BadLocationException {\n\t\tStyleConstants.setForeground((MutableAttributeSet) a, Color.BLACK);\r\n\t\tStyleConstants.setItalic((MutableAttributeSet) a, false);\r\n\t\t\r\n\t\t// trim line breaks, spaces and tab characters from inserted string\r\n\t\tString line = str.trim();\r\n\t\t// check for keywords\r\n\t\t// TODO: maybe move context detection to separate method\r\n\t\tif (line.startsWith(\"[BEFORE_HEX]\")) {\r\n\t\t\tthis.branchContext = BranchContext.BEFORE_HEX;\r\n\t\t} else if (line.startsWith(\"[AFTER_HEX]\")) {\r\n\t\t\tthis.branchContext = BranchContext.AFTER_HEX;\r\n\t\t} else if (line.startsWith(\"[HEADER]\")) {\r\n\t\t\tthis.branchContext = BranchContext.HEX_HEADER;\r\n\t\t} else if (line.startsWith(\"[CODE]\")) {\r\n\t\t\tthis.branchContext = BranchContext.HEX_CODE;\r\n\t\t} else if (line.startsWith(\"//\")) {\r\n\t\t\t// TODO: get style data from context enum\r\n\t\t\tStyleConstants.setForeground((MutableAttributeSet) a, new Color(63, 127, 95));\r\n\t\t}\r\n\t\t\r\n\t\tif (this.leafContext == LeafContext.ATTRIBUTE_VALUE) {\r\n\t\t\tStyleConstants.setForeground((MutableAttributeSet) a, new Color(0, 0, 192));\r\n\t\t\tStyleConstants.setItalic((MutableAttributeSet) a, true);\r\n\t\t}\r\n\t\tthis.leafContext = LeafContext.OTHER;\r\n\t\t\r\n\t\t// check for comments\r\n\t\tint commentOffset = line.indexOf(\"//\");\r\n\t\tif (commentOffset > 0) {\r\n\t\t\t// split at '//' if comment is after other content\r\n\t\t\tString pre = str.substring(0, commentOffset + 1);\r\n\t\t\tString post = str.substring(commentOffset + 1);\r\n\t\t\t\r\n\t\t\tthis.insertString(offs, pre, a);\r\n\t\t\tthis.insertString(offs + pre.length(), post, a);\r\n\t\t} else {\r\n\t\t\t// check for attribute values\r\n\t\t\tint equalsOffset = str.indexOf(\"=\");\r\n\t\t\tif ((equalsOffset > 0) && (commentOffset < 0)) {\r\n\t\t\t\t// split at '=' if attribute/value pair is outside of comment\r\n\t\t\t\tString pre = str.substring(0, equalsOffset);\r\n\t\t\t\tString post = str.substring(equalsOffset + 1);\r\n\t\t\t\t\r\n\t\t\t\tthis.leafContext = LeafContext.ATTRIBUTE_NAME;\r\n\t\t\t\tthis.insertString(offs, pre, a);\r\n\t\t\t\tthis.leafContext = LeafContext.OTHER;\r\n\t\t\t\tthis.insertString(offs + pre.length(), \"=\", a);\r\n\t\t\t\tthis.leafContext = LeafContext.ATTRIBUTE_VALUE;\r\n\t\t\t\tthis.insertString(offs + pre.length() + 1, post, a);\r\n\t\t\t} else {\r\n\t\t\t\t// fall-back for default behavior\r\n\t\t\t\tsuper.insertString(offs, str, a);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "public void insert(String input)\n\t{\n\t\tint parent = (pointer - 1) / 2;\n\t\tint child = pointer;\n\n\t\tif (pointer < data.length)\n\t\t{\n\t\t\tdata[pointer] = input;\n\t\t\tpointer++;\n\t\t}\n\n\t\twhile (child != 0 && smallerThan(child, parent))\n\t\t{\n\t\t\t//upheap\n\t\t\tswap(child, parent);\n\t\t\tchild = parent;\n\t\t\tparent = (child - 1) / 2;\n\t\t}\n\n\t}", "public void insertAtPos(singlyListNode n, int position){\n singlyListNode ptr = this.head;\n int previous = position - 1;\n //find insertion position\n for (int i = 0 ; i < this.listSize; i ++){\n if (i == position){\n singlyListNode temp = ptr.getNextNode();\n ptr.setNextNode(n);\n n.setNextNode(temp);\n break;\n }\n ptr = ptr.getNextNode();\n }\n this.listSize ++;\n }", "public void insert(String word) {\n char[] chars = word.toCharArray();\n int length = chars.length;\n\n Map<Character,Node> map = this.root.map;\n for(int i = 0;i < length;i++){\n if(map.containsKey(chars[i])){\n Node node = map.get(chars[i]);\n }else{\n map.put(chars[i],new Node(chars[i]));\n }\n\n if(i == length - 1){\n map.get(chars[i]).isWordEnd = true;\n }\n map = map.get(chars[i]).map;\n }\n }", "public void insertStaticText(String text){\n if(lastText != null){\n lastText.clear();\n }\n lastText = new TextBuilder(text);\n lastText.build();\n }", "public void Insert(char ch) {\n s.append(ch);\n }", "@Override\n\tpublic void insertString(FilterBypass fb, int offset, String string, AttributeSet attr)\n\t\t\tthrows BadLocationException {\n\t\tif((fb.getDocument().getLength() + string.length()) <= MAX_NUMBER_DIGITS && string.matches(REGEX)) {\n\t\t\t//replace in string to append only characters that are digits \n\t\t\tfb.insertString(offset, string, attr);\n\t\t}else {\n\t\t\tToolkit.getDefaultToolkit().beep();\n\t\t}\n\t}", "public void insert(T vertex, Point2D pos);", "public void insertPreservingSelection(String newText, int offset) {\n getLock().getWriteLock();\n try {\n SelectionSetter noChange = new SelectionSetter(SelectionSetter.DO_NOT_CHANGE);\n PTextBuffer buffer = getTextBuffer();\n buffer.replace(noChange, offset, 0, newText, noChange);\n } finally {\n getLock().relinquishWriteLock();\n }\n }", "Position<T> addBefore(Position<T> p, T data) throws IllegalStateException;", "public void insert(String word) {\n TrieNode ptr = root;\n for(int i = 0;i < word.length();i++) {\n char c = word.charAt(i);\n if(ptr.child[c - 'a'] == null) {\n ptr.child[c - 'a'] = new TrieNode();\n }\n ptr = ptr.child[c - 'a'];\n }\n ptr.is_end = true;\n }", "public void insert(String word) {\n TrieNode cur = root;\n for(int i=0; i<word.length(); i++){\n int index = word.charAt(i)-'a';\n if(cur.children[index] == null)\n cur.children[index] = new TrieNode(word.charAt(i));\n cur = cur.children[index];\n if(i == word.length()-1)\n cur.isEnd = true;\n }\n }", "void wildcardParticle(ParticleSG particle) throws SAXException;", "public void insertAtPos(int val, int position){\n singlyListNode n = new singlyListNode(val, null);\n singlyListNode ptr = this.head;\n int previous = position - 1;\n //find insertion position\n for (int i = 0 ; i < this.listSize; i ++){\n if (i == position){\n singlyListNode temp = ptr.getNextNode();\n ptr.setNextNode(n);\n n.setNextNode(temp);\n break;\n }\n ptr = ptr.getNextNode();\n }\n this.listSize ++;\n }", "public void insertAfter(SequiturSymbol toInsert){\n join(toInsert,n);\n join(this,toInsert);\n }", "public void insertAtBeginning(String data)\n\t{ \n\t\t\n\t\tNode node=new Node();\n\t\tnode.data = data;\n\t\tnode.next = null;\n\t\t\n\t\tnode.next = head;\n\t\t\n\t\thead =node;\n\t}", "public void Insert(char ch)\n {\n sb.insert(str.length(),ch);\n }", "public void insert(String word) {\n TrieNode cur = root;\n for (int i = 0 ; i < word.length(); i ++) {\n char ch = word.charAt(i);\n if (! cur.children.containsKey(ch)) {\n TrieNode child = new TrieNode(ch);\n cur.children.put(ch, child);\n }\n cur = cur.children.get(ch);\n }\n cur.isEnd = true;\n }", "private void insertTokenPosition(Element parent, String span, String[] labelParts, BoxCoordinates positionSpan) {\n //associate position here\n adjustPosition(parent, positionSpan);\n// parent.setAttribute(\"llx\", String.valueOf(positionSpan.getLlx()));\n// parent.setAttribute(\"lly\", String.valueOf(positionSpan.getLly()));\n// parent.setAttribute(\"urx\", String.valueOf(positionSpan.getUrx()));\n// parent.setAttribute(\"ury\", String.valueOf(positionSpan.getUry()));\n //end associate position\n if (labelParts.length > 0) {\n String labelPart = labelParts[0];\n Element child;\n\n if ((child = lastChild( parent )) == null || labelPart.startsWith( \"^\" ) || !labelPart.equals( child.getName() )) {\n labelPart = labelPart.replaceFirst( \"^\\\\^\", \"\" );\n child = new Element( labelPart );\n parent.addContent( child );\n }\n List tails = Arrays.asList( labelParts ).subList( 1, labelParts.length );\n String[] labelTail = (String[])tails.toArray( new String[tails.size()] );\n //associate position here\n\n //end associate position\n insertTokenPosition(child, span, labelTail, positionSpan);\n }\n else {\n parent.addContent( span );\n }\n }", "public org.landxml.schema.landXML11.GPSPositionDocument.GPSPosition insertNewGPSPosition(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.GPSPositionDocument.GPSPosition target = null;\r\n target = (org.landxml.schema.landXML11.GPSPositionDocument.GPSPosition)get_store().insert_element_user(GPSPOSITION$2, i);\r\n return target;\r\n }\r\n }", "public void insert(String word) {\n\t\tcur = root;\n\t\tfor (char c : word.toCharArray()) {\n\t\t\tif (cur.children[c - 'a'] == null) {\n\t\t\t\tcur.children[c - 'a'] = new TrieNode(c);\n\t\t\t}\n\t\t\tcur = cur.children[c - 'a'];\n\t\t}\n\t\tcur.isWord = true;\n\t}", "public abstract Position<E> insertLeftSibling(Position<E> p, E e);", "public void insert(String newitem) {\n\t\t// TODO Write me!\n\t\t\n\t}", "public void insert(String word) {\n\n int length = word.length();\n TrieNode node = root;\n for(int i=0; i<length; i++) {\n char curr = word.charAt(i);\n if(!node.containsKey(curr)){\n node.put(curr, new TrieNode());\n }\n node = node.get(curr);\n }\n node.setEnd();\n }", "public void insert(String word) {\r\n\t\tchar[] letterArray = word.toCharArray(); // iterate through letters in\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// word\r\n\t\tNode currNode = root;\r\n\t\tint wordLength = letterArray.length;\r\n\t\tfor (int i = 0; i < wordLength; i++) {\r\n\t\t\tchar letter = letterArray[i];\r\n\t\t\tif (currNode.isChild(letter)) { // if letter is a child of currNode\r\n\t\t\t\tcurrNode = currNode.getChild(letter); // set that node as\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// currNode\r\n\t\t\t\tif (i == wordLength - 1)\r\n\t\t\t\t\tcurrNode.wordEnd(); // if letter is end of a word, change\r\n\t\t\t\t\t\t\t\t\t\t// that node's boolean flag\r\n\t\t\t} else { // if letter is not a child of currNode\r\n\t\t\t\tif (i == wordLength - 1) {\r\n\t\t\t\t\tcurrNode.addChild(letter, new Node(currNode, letter, true)); // create\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// appropriate\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// node\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// with\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// flag\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcurrNode.addChild(letter, new Node(currNode, letter, false)); // checking\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// to\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// see\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// letter\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// is\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// also\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// end\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// of\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// word\r\n\t\t\t\t}\r\n\t\t\t\tcurrNode = currNode.getChild(letter); // update currNode\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void insert(String word) {\n TrieNode parent = root;\n for(int i=0; i<word.length(); i++) {\n char c = word.charAt(i);\n int index = c - 'a';\n\n // Character doesn't exist at the current level\n if (parent.children[index] == null) {\n TrieNode node = new TrieNode();\n parent.children[index] = node;\n parent = node;\n } else {\n parent = parent.children[index];\n }\n }\n parent.isLeaf = true;\n }", "public void insertString(final DocumentFilter.FilterBypass fb, final int offset, final String text,\n final AttributeSet attr) throws BadLocationException {\n // fb.insertString(offset, text.toUpperCase(), attr);\n fb.insertString(offset, text, attr);\n }", "public void insert(String word) {\n Entry tempRoot = root;\n for(int i=0; i<word.length(); i++){\n char ch = word.charAt(i);\n Entry childNode = tempRoot.getChildNode(ch);\n if(childNode == null){\n tempRoot.setChildNode(new Entry(), ch);\n }\n tempRoot = tempRoot.getChildNode(ch);\n }\n\n tempRoot.setIsWord(true);\n }", "public void spawnParticle ( Particle particle , double x , double y , double z , int count , double offsetX ,\n\t\t\tdouble offsetY , double offsetZ , double extra ) {\n\t\tspawnParticle ( particle , x , y , z , count , offsetX , offsetY , offsetZ );\n\t}", "public void insert(String v, int position) {\n\t\t\t// fix the position\n\t\t\tif (position < 0) {\n\t\t\t\tposition = 0;\n\t\t\t}\n\t\t\tif (position > length) {\n\t\t\t\tposition = length;\n\t\t\t}\n\n\t\t\t// if the list is empty, make it be the only element\n\t\t\tif (head == null) {\n\t\t\t\thead = new ElementDPtr(v);\n\t\t\t\ttail = head;\n\t\t\t}\n\t\t\t// if adding at the front of the list...\n\t\t\telse if (position == 0) {\n\t\t\t\tElementDPtr temp = new ElementDPtr(v);\n\t\t\t\ttemp.setNext(head);\n\t\t\t\thead = temp;\n\t\t\t}\n\t\t\t// else find the correct position and insert\n\t\t\telse {\n\t\t\t\tElementDPtr temp = head;\n\t\t\t\tfor (int i=1; i<position; i+=1) {\n\t\t\t\t\ttemp = temp.getNext();\n\t\t\t\t}\n\t\t\t\tElementDPtr newNode = new ElementDPtr(v);\n\t\t\t\tnewNode.setNext(temp.getNext());\n\t\t\t\tnewNode.setPrev(temp);\n\t\t\t\tnewNode.getNext().setPrev(newNode);\n\t\t\t\ttemp.setNext(newNode);\n\t\t\t}\n\t\t\t// the list is now one value longer\n\t\t\tlength += 1;\n\t\t\tSystem.out.println(tail.getPrev().getValue() + \" insert \" + length);\n\t\t}", "private String insert(String input_from_user) {\n\t\tSystem.out.println(\"Enter the position you want to insert a character in the string\"+input_from_user);\n\t\tint position = in.nextInt();\n\t\tchar get_char = in.next().charAt(0);\n\t\tString result = insertCharAt(input_from_user,get_char,position);\n\t\treturn result;\n\t}", "public void place (Particle particle)\n {\n _layer.pointToLayer(place(particle.getPosition()), true);\n }", "public void insert(String word) {\n TrieNode p = root;\n for (int i = 0; i < word.length(); i++) {\n char c = word.charAt(i);\n int index = c - 'a';\n if (p.arr[index] == null) {\n TrieNode temp = new TrieNode();\n p.arr[index] = temp;\n p = temp;\n } else {\n p = p.arr[index];\n }\n }\n p.isEnd = true;\n }", "void insert(String s, int index) {\n Node curr = root;//lets start by root node and insert\n for (int i = 0; i < s.length(); i++) {\n\n // we dont want to override existing key only add new key thats what putifabsent do..\n curr.childrens.putIfAbsent(s.charAt(i), new Node(s.charAt(i)));\n curr.childrens.get(s.charAt(i));\n }\n curr.end = index;\n }", "public void insertAt(String insertData, int index) {\n\t\t// write you code for insertAt using the specification above\n\t\tif(index==0){\n\t\t\tadd(insertData);\n\t\t\treturn;\n\t\t}\n\t\tif(index<=size()){\n\t\t\tNode nodref = head;\n\t\t\tfor (int count = 0; count<index-1; count++){\n\t\t\t\tnodref=nodref.next;\n\t\t\t}\n\t\t\tNode adder = new Node(insertData);\n\t\t\tadder.next = nodref.next;\n\t\t\tnodref.next = adder; \n\t\t\tnumElements++;\n\t\t\treturn;\n\t\t}\n\t}" ]
[ "0.6760297", "0.6645591", "0.6294307", "0.61921555", "0.6071035", "0.6055019", "0.59670293", "0.5909659", "0.5866596", "0.57958204", "0.57808065", "0.57806677", "0.5747207", "0.5716406", "0.56970775", "0.56665164", "0.5663558", "0.56448233", "0.56438285", "0.5625065", "0.56236196", "0.55949986", "0.5589783", "0.55836576", "0.55758107", "0.5557825", "0.5550539", "0.55427015", "0.55367094", "0.5525054", "0.55226207", "0.54742754", "0.54682624", "0.5463863", "0.5461362", "0.545939", "0.5422964", "0.54198676", "0.5410813", "0.5397452", "0.5389734", "0.53586155", "0.53489923", "0.5343802", "0.5341102", "0.53380585", "0.53299916", "0.5327669", "0.53247136", "0.53106296", "0.5305838", "0.5292891", "0.5288633", "0.5264177", "0.5260474", "0.5243098", "0.52423525", "0.5242137", "0.52395916", "0.52368724", "0.5229078", "0.5229053", "0.52228343", "0.51995116", "0.519676", "0.51949024", "0.5181235", "0.5177506", "0.51455086", "0.5128854", "0.5125625", "0.51202005", "0.5119922", "0.5114415", "0.51088274", "0.5100354", "0.5098705", "0.50939816", "0.50937843", "0.5084959", "0.5081802", "0.5078244", "0.50752175", "0.5072108", "0.5071866", "0.5063986", "0.50604874", "0.50594103", "0.5058385", "0.5057063", "0.5056476", "0.5055733", "0.5054195", "0.5048449", "0.504715", "0.50398624", "0.5035242", "0.50325", "0.5029623", "0.5019554" ]
0.6402071
2
TODO: Return the communication channel to the service.
@Override public IBinder onBind(Intent intent) { throw new UnsupportedOperationException("Not yet implemented"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Channel channel() {\n return channel;\n }", "public IChannel getChannel() {\n\t\treturn message.getChannel();\n\t}", "SocketChannel getChannel();", "EzyChannel getChannel();", "public Channel getChannel()\n {\n return channel;\n }", "java.lang.String getChannel();", "protected Channel getChannel()\n {\n return mChannel;\n }", "@Override\n public int getChannel()\n {\n return channel;\n }", "public SocketChannel getChannel() {\n return channel;\n }", "public Channel getChannel()\n\t{\n\t\treturn channel;\n\t}", "public Channel getChannel() {\n return channel;\n }", "private ManagedChannel getManagedChannel() {\n return ManagedChannelBuilder.forAddress(\"localhost\", mGrpcPortNum)\n .usePlaintext()\n .build();\n }", "public Channel getChannel() {\r\n\t\treturn channel;\r\n\t}", "public int GetChannel();", "public ChannelManager getChannelManager() {\n return channelMgr;\n }", "public String getChannel() {\r\n return channel;\r\n }", "public String getChannel() {\n return channel;\n }", "public Channel getChannel() throws ConnectException\n {\n return getChannel(null);\n }", "public Object getCommunicationChannel()\r\n\t\t\tthrows PersistenceMechanismException {\n\t\treturn null;\r\n\t}", "public Channel channel()\r\n/* 36: */ {\r\n/* 37: 68 */ return this.channel;\r\n/* 38: */ }", "public String getChannel() {\r\n\t\treturn this.channel;\r\n\t}", "private SocketChannel getChannel(){\n if ( key == null ) {\n return getSocket().getChannel();\n } else {\n return (SocketChannel)key.channel();\n }\n }", "public String getChannel() {\n\t\treturn channel;\n\t}", "public String getChannel() {\n\t\treturn channel;\n\t}", "public int getChannel() {\n return channel;\n }", "public interface Channel\r\n{\r\n /**\r\n * Get a duplex connection for this channel. This method must be called for each request-response message exchange.\r\n * @param msgProps message specific properties\r\n * @param xmlOptions XML formatting options\r\n * @return connection\r\n * @throws IOException on I/O error\r\n * @throws WsConfigurationException on configuration error\r\n */\r\n DuplexConnection getDuplex(MessageProperties msgProps, XmlOptions xmlOptions) throws IOException, \r\n WsConfigurationException;\r\n \r\n /**\r\n * Get a send-only connection for this channel. This method must be called for each message to be sent without a\r\n * response.\r\n * @param msgProps message specific properties\r\n * @param xmlOptions XML formatting options\r\n * @return connection\r\n * @throws IOException on I/O error\r\n * @throws WsConfigurationException on configuration error\r\n */\r\n OutConnection getOutbound(MessageProperties msgProps, XmlOptions xmlOptions) throws IOException, \r\n WsConfigurationException;\r\n \r\n /**\r\n * Get a receive-only connection for this channel. This method must be called for each message to be received, and\r\n * will wait for a message to be available before returning.\r\n * \r\n * @return connection\r\n * @throws IOException on I/O error\r\n * @throws WsConfigurationException on configuration error\r\n */\r\n InConnection getInbound() throws IOException, WsConfigurationException;\r\n \r\n /**\r\n * Close the channel. Implementations should disconnect and free any resources allocated to the channel.\r\n * @throws IOException on I/O error\r\n */\r\n void close() throws IOException;\r\n}", "public int getChannel() {\r\n\t\treturn channel;\r\n\t}", "public Byte getChannel() {\n return channel;\n }", "public SocketChannel getChannel() { return null; }", "public ChannelFuture getChannelFuture() {\n return channelFuture;\n }", "public interface ChannelsService {\n\n /**\n * Gets the Facebook data-ref to create send to messenger button.\n *\n * @param callback Callback with the result.\n */\n void createFbOptInState(@Nullable Callback<ComapiResult<String>> callback);\n }", "private static ManagedChannel getManagedChannel(int port) {\n return ManagedChannelBuilder.forAddress(\"localhost\", port)\n .usePlaintext(true)\n .build();\n }", "protected SocketChannel getSocket() {\n\t\treturn channel;\n\t}", "public interface MessagingService {\n\n /**\n * Checks whether message receivers are registered for this channel.\n * \n * @param ccid the channel id\n * @return <code>true</code> if there are message receivers on this channel,\n * <code>false</code> if not.\n */\n boolean hasMessageReceiver(String ccid);\n\n /**\n * Passes the message to the registered message receiver.\n * \n * @param ccid the channel to pass the message on\n * @param serializedMessage the message to send (serialized SMRF message)\n */\n void passMessageToReceiver(String ccid, byte[] serializedMessage);\n\n /**\n * Check whether the messaging component is responsible to send messages on\n * this channel.<br>\n * \n * In scenarios with only one messaging component, this will always return\n * <code>true</code>. In scenarios in which channels are assigned to several\n * messaging components, only the component that the channel was assigned\n * to, returns <code>true</code>.\n * \n * @param ccid\n * the channel ID or cluster controller ID, respectively.\n * @return <code>true</code> if the messaging component is responsible for\n * forwarding messages on this channel, <code>false</code>\n * otherwise.\n */\n boolean isAssignedForChannel(String ccid);\n\n /**\n * Check whether the messaging component was responsible before but the\n * channel has been assigned to a new messaging component in the mean time.\n * \n * @param ccid the channel id\n * @return <code>true</code> if the messaging component was responsible\n * before but isn't any more, <code>false</code> if it either never\n * was responsible or still is responsible.\n */\n boolean hasChannelAssignmentMoved(String ccid);\n}", "org.apache.drill.exec.proto.UserBitShared.RpcChannel getChannel();", "public java.lang.String getChannel() {\n java.lang.Object ref = channel_;\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 channel_ = s;\n return s;\n }\n }", "public final int getChannel() {\n return device.getChannel();\n }", "public String getChannelName()\r\n\t{\r\n\t\treturn this.sChannelName;\r\n\t}", "public ChannelLogger getChannelLogger() {\n return this.channelLogger;\n }", "public java.lang.String getChannel() {\n java.lang.Object ref = channel_;\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 channel_ = s;\n }\n return s;\n }\n }", "public java.lang.String getChannel() {\n java.lang.Object ref = channel_;\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 channel_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public NotificationsChannel getChannel(String channelId) throws Exception;", "java.lang.String getChannelName();", "public java.lang.String getChannel() {\n java.lang.Object ref = channel_;\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 channel_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public TextChannel getSupportChannel() { return supportChannel; }", "public ChannelLocator getChannelLocator();", "com.google.protobuf.ByteString\n getChannelBytes();", "private SmartCardChannel getChannel() throws UsbDeviceException, NotAvailableUSBDeviceException{\n\t\tif(this.channel != null){\n\t\t\treturn this.channel;\n\t\t}\n\t\tif(getUsbInterface() != null){\n\t\t\tif (!getUsbDeviceConnection().claimInterface(getUsbInterface(), true)) {\n\t\t\t\tthrow new NotAvailableUSBDeviceException(\"Imposible acceder al interfaz del dispositivo USB\"); //$NON-NLS-1$\n\t\t\t}\n\t\t\tthis.channel = new SmartCardChannel(getUsbDeviceConnection(), getUsbInterface());\n\t\t\treturn this.channel;\n\t\t}\n\t\tthrow new UsbDeviceException(\"usbInterface cannot be NULL\"); //$NON-NLS-1$\n\t}", "public String getChannel() {\n if(this.isRFC2812())\n return this.getNumericArg(1);\n else\n return this.getNumericArg(0);\n }", "@PreAuthorize(\"hasRole('superman')\")\n\tpublic abstract Channel getChannel(String name);", "public interface Channels {\n \n public void createChannel();\n\n}", "public int getChannelId( ) {\r\n return channelId;\r\n }", "public String getChannelId()\n {\n return channelId;\n }", "public Channel method_4090() {\n return null;\n }", "public com.google.protobuf.ByteString\n getChannelBytes() {\n java.lang.Object ref = channel_;\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 channel_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getChannelBytes() {\n java.lang.Object ref = channel_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n channel_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n\tpublic int getChannel() {\n\t\treturn super.getDeviceID();\n\t}", "public interface ChannelServiceI {\r\n Channel createChannel(Channel channel);\r\n\r\n int updateChannelUser(int id);\r\n\r\n int minusChannelUser(int id);\r\n\r\n List<Channel> getChannelPage(Channel channel);\r\n\r\n int count();\r\n\r\n Channel getChannel(String channelToken);\r\n\r\n List<Channel> getUserChannel(Channel channel);\r\n\r\n int deleteUser(Integer id);\r\n\r\n List<Channel> getUserChannelTotal(Channel channel);\r\n\r\n int updateChannel(Channel channel);\r\n}", "protected Channel connect() {\n\t\t\tif (channel == null) {\n\t\t\t\tinit();\n\t\t\t}\n\t\t\tSystem.out.println(\"channel === \"+channel);\n\t\t\tif (channel.isDone() && channel.isSuccess())\n\t\t\t\treturn channel.channel();\n\t\t\telse\n\t\t\t\tthrow new RuntimeException(\"Not able to establish connection to server\");\n\t\t}", "public abstract ManagedChannelBuilder<?> delegate();", "public io.grpc.channelz.v1.Channel getChannel(int index) {\n if (channelBuilder_ == null) {\n return channel_.get(index);\n } else {\n return channelBuilder_.getMessage(index);\n }\n }", "public com.google.protobuf.ByteString\n getChannelBytes() {\n java.lang.Object ref = channel_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n channel_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "java.lang.String getChannelToken();", "java.lang.String getChannelToken();", "public String getChannelId()\r\n\t{\r\n\t\treturn this.sChannelId;\r\n\t}", "String getServerConnectionChannelName();", "public com.google.protobuf.ByteString\n getChannelBytes() {\n java.lang.Object ref = channel_;\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 channel_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Bean\n\tpublic DirectChannel requestChooserOutputChannel() {\n\t\treturn MessageChannels.direct().get();\n\t}", "public ManagedChannelBuilder<?> delegate() {\n return this.delegateBuilder;\n }", "@Override\n public ScheduledExecutorService getSchedExecService() {\n return channelExecutor;\n }", "@objid (\"1bb2731c-131f-497d-9749-1f4f1e705acb\")\n Link getChannel();", "private ManagedChannel emulatedPubSubChannel() {\n if (!useEmulator) {\n throw new RuntimeException(\"You shouldn't be calling this when using the real \"\n + \"(non-emulator) implementation\");\n }\n String hostport = System.getenv(\"PUBSUB_EMULATOR_HOST\");\n return ManagedChannelBuilder.forTarget(hostport).usePlaintext().build();\n }", "public String getChannelId() {\n return channelId;\n }", "public Channel method_4112() {\n return null;\n }", "public Channel method_4121() {\n return null;\n }", "public SodiumChannel getSodiumChannel() {\n\t\t\treturn sodiumChannel;\n\t\t}", "public interface ChannelManager {\n int createChannel(String channel, long ttlInSeconds);\n int publishToChannel(String channel, String msg);\n}", "public interface ChannelConnection {\n public Channel getChannel();\n public Connector getConnector();\n}", "public io.grpc.channelz.v1.Channel getChannel(int index) {\n return channel_.get(index);\n }", "public ChannelType getChannelType() {\n return type;\n }", "@Override\n\tprotected void channelRead0(ChannelHandlerContext ctx, WsClientMessage msg) throws Exception {\n\t}", "public interface ChatPlayerService extends PlayerService, Chatter\n{\n /**\n * Sets the player's ChatTarget focus.\n * \n * @param focus The new ChatTarget to focus\n */\n void setFocus( ChatTarget focus );\n \n /**\n * Gets the player's current focus.\n * \n * @return The channel the player has focused\n */\n ChatTarget getFocus();\n \n /**\n * Gets the player's BaseComponent name.\n * \n * @return The player's BaseComponent name.\n */\n BaseComponent getComponentName();\n \n /**\n * Gets the ChatManagerImpl.\n * \n * @return The ChatManagerImpl instance\n */\n ChatManager getChatManager();\n \n /**\n * Gets the PrivateMessageTarget from the last inbound PM.\n * \n * @return The PrivateMessageTarget from the last PM received\n */\n PrivateMessageTarget getLastInboundWhisperTarget();\n \n /**\n * Sets the most recent inbound PM's PrivateMessageTarget.\n * \n * @param lastInboundWhisperTarget The new target.\n * @return This ChatPlayerService object.\n */\n ChatPlayerService setLastInboundWhisperTarget( PrivateMessageTarget lastInboundWhisperTarget );\n \n /**\n * Gets a formatted message to show all of the channels the\n * player is currently in.\n * \n * @return A formatted message showing the channels the player is in.\n */\n BaseComponent[] getChannelsJoinedMessage();\n}", "public String getSubChannel() {\r\n\t\treturn this.subChannel;\r\n\t}", "public String getChannelId() {\n\t\treturn channelId;\n\t}", "public ReadableByteChannel getByteChannel() throws IOException {\n InputStream source = getInputStream();\n \n if(source != null) {\n return Channels.newChannel(source);\n }\n return null;\n }", "public DmaChannel getChannelAt(int i);", "public interface MessageInputChannel extends\r\n Channel<MessageInput, MessageInputChannelAPI>, OneDimensional, MessageCallback {\r\n\r\n}", "public int getChannelType( ) {\r\n return 1;\r\n }", "public interface IRemoteMessageService {\n\n void unsubscribeToMessage(UnSubscribeToMessage cmd);\n\n /**\n * Sets a message element to a specified value\n */\n void setElementValue(SetElementValue cmd);\n\n void zeroizeElement(ZeroizeElement cmd);\n\n /**\n * Notifies service to send message updates to the specified ip address\n */\n SubscriptionDetails subscribeToMessage(SubscribeToMessage cmd);\n\n Set<? extends DataType> getAvailablePhysicalTypes();\n\n boolean startRecording(RecordCommand cmd);\n\n InetSocketAddress getRecorderSocketAddress();\n\n InetSocketAddress getMsgUpdateSocketAddress();\n\n void stopRecording();\n\n void terminateService();\n\n void reset();\n\n void setupRecorder(IMessageEntryFactory factory);\n\n public Map<String, Throwable> getCancelledSubscriptions();\n}", "@Test\n\tpublic void testChannel() {\n\t\tString requestXml =\n\t\t\t\t\"<FahrenheitToCelsius xmlns=\\\"http://www.w3schools.com/webservices/\\\">\" +\n\t\t\t\t\" <Fahrenheit>55</Fahrenheit>\" +\n\t\t\t\t\"</FahrenheitToCelsius>\";\n\n\t\t// Create the Message object\n\t\tMessage<String> message = MessageBuilder.withPayload(requestXml).build();\n\n\t\t// Send the Message to the handler's input channel\n\t\t//MessageChannel channel = channelResolver.resolveChannelName(\"fahrenheitChannel\");\n\t\tchannel.send(message);\n\t}", "public Message getMessageWizardChannel() {\n\t\tMessage temp = null;\n\t\t\n\t\ttry {\n\t\t\t//se ia mesajul din buffer\n\t\t\ttemp = bufferWizardChannel.take();\t\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn temp;\n\t\t\n\t}", "public MessageChannel getGameChannel() {\r\n\t\treturn gameChannel;\r\n\t}", "public Message getMessageWizardChannel() {\n\t\tMessage msg1=null;\n\t\ttry{\n\t\t\tmsg1=chann1.take();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn msg1;\n\t}", "void start(Channel channel, Object msg);", "@Override\n\tpublic String getChannelId()\n\t{\n\t\treturn null;\n\t}", "public String getChannelCode() {\n return channelCode;\n }", "byte[] getChannelCommand() throws IOException {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n baos.write(rgbCommand(r, g, b));\n baos.write(wwcwCommand(ww, cw));\n return baos.toByteArray();\n }", "java.lang.String getChannelId();", "protected Channel createChannel() throws IOException, TimeoutException, NoSuchAlgorithmException {\n LOGGER.debug(\"Creating channel\");\n Channel channel = connectionProducer.getConnection(config).createChannel();\n LOGGER.debug(\"Created channel\");\n return channel;\n }", "public org.apache.axis.types.UnsignedInt getChannel() {\n return channel;\n }", "public interface SendService {\n\n public void sendMessage(RemotingCommand remotingCommand, long timeout);\n}" ]
[ "0.7437254", "0.73157257", "0.7183302", "0.7135984", "0.7129005", "0.71285546", "0.7090409", "0.7070889", "0.7067624", "0.7038997", "0.6988283", "0.6917885", "0.68884337", "0.67946744", "0.67914945", "0.67852235", "0.677885", "0.674656", "0.67354923", "0.6681876", "0.66714543", "0.6667951", "0.6658963", "0.6658963", "0.6637923", "0.65924364", "0.6589948", "0.65803987", "0.65801334", "0.656291", "0.6394705", "0.6370899", "0.6364142", "0.6360486", "0.63541204", "0.63400555", "0.6295168", "0.62838054", "0.6278035", "0.6249136", "0.62438136", "0.62114525", "0.6202571", "0.6174055", "0.6163322", "0.61605746", "0.6151532", "0.614542", "0.6134949", "0.61321455", "0.60943747", "0.6087775", "0.60815173", "0.60634476", "0.6059933", "0.60573", "0.6053354", "0.6047734", "0.60389555", "0.6030655", "0.6022905", "0.60092485", "0.6005142", "0.6005142", "0.60051006", "0.60014427", "0.6001328", "0.5996678", "0.59943444", "0.59914345", "0.59837997", "0.5970838", "0.59568334", "0.5928881", "0.5895364", "0.58861846", "0.58624125", "0.5857131", "0.58528924", "0.581504", "0.581163", "0.58108175", "0.58004445", "0.57914156", "0.57894915", "0.578917", "0.5776858", "0.57738584", "0.576785", "0.57609695", "0.5759547", "0.5758005", "0.57573795", "0.5743325", "0.5738268", "0.5733163", "0.57316715", "0.5726644", "0.5715349", "0.57023185", "0.5701523" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { int idade,mes,dia; Scanner leia = new Scanner(System.in); int diasVida; System.out.println("digite sua idade: "); idade = leia.nextInt(); System.out.println("digite quantos meses: "); mes = leia.nextInt(); System.out.println("digite os dias: "); dia = leia.nextInt(); diasVida=((idade*365)+(mes*30)+dia); System.out.println("VocÍ tem "+diasVida+" dias vividos"); }
{ "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
Recursive method to draw all rocks.
public void drawRocks(Graphics2D g2, int i){ int index = i; if(i<rocks.size()){ rocks.get(index).draw(g2); index++; drawRocks(g2,index); }else{ return; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void drawAll(){\n for (Triangle triangle : triangles) {\n triangle.draw();\n }\n for (Circle circle : circles) {\n circle.draw();\n }\n for(Rectangle rectangle : rectangles){\n rectangle.draw();\n }\n }", "private void drawSquares() {\n for (Square square : gui.game) {\n new SquareRenderer(gui, g2, square);\n }\n }", "public void draw() {\n drawSubtree(root);\n }", "@Override\n public void paint(Painter painter)\n {\n // Drawing the outline of the CarrierShape\n painter.drawRect(_x,_y,_width,_height);\n // Translating the origin to x and y point to the top left corner\n // of the CarrierShape to be able to paint its children relative to that point\n painter.translate(_x,_y);\n\n // Painting each child relative to the top left corner of the CarrierShape\n for(Shape child : children)\n {\n child.doPaint(painter);\n }\n\n // Translating the origin back to x = 0 y = 0\n painter.translate(-_x,-_y);\n }", "public void draw(Canvas canvas) {\n // Draw the game\n for (int i = 0; i < width + 2; i++) {\n for (int j = 0; j < height + 2; j++) {\n canvas.setPoint(i, j, '.');\n }\n }\n\n for (int i = 0; i < width + 2; i++) {\n canvas.setPoint(i, 0, '-');\n canvas.setPoint(i, height + 1, '-');\n }\n\n for (int i = 0; i < height + 2; i++) {\n canvas.setPoint(0, i, '|');\n canvas.setPoint(width + 1, i, '|');\n }\n\n for (BaseObject object : getAllItems()) {\n object.draw(canvas);\n }\n }", "public void draw() {\n if (!myTurn()) {\n return;\n }\n draw(4 - handPile.size());\n }", "@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Draw all shapes\");\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Draw all shapes\");\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Draw all shapes\");\r\n\t\t\r\n\t}", "public void draw() {\n if (isEmpty()) return;\n draw1(root, 0, 1, 0, 1);\n }", "public void draw() {\n\t\tfor (Link link : links)\n\t\t\tlink.draw();\n\t}", "public void drawAllGraphics(){\r\n\t\t \r\n\t}", "public void draw() {\n draw(root, true);\n }", "private void drawPolygons(Renderer r) {\n for ( Polygon p : polygons ) {\n p.drawYourSelf(r);\n }\n }", "public void paint(Graphics gfx) {\r\n\t\tif (x== -5) {\r\n\t\t\tx = this.getWidth()/2;\r\n\t\t}\r\n\t\tif (y == -5) {\r\n\t\t\ty = this.getHeight()/2;\r\n\t\t}\r\n\t\tsuper.paint(gfx);\r\n\t\tSnake head = game.getSnake();\r\n\r\n\t\tgfx.setColor(Color.green);\r\n\t\tgfx.drawRect(head.x, head.y, head.width, head.height);\r\n\t\tSegment current = head.tailFirst;\r\n\t\twhile(current!=null) {\r\n\t\t\tgfx.drawRect(current.x, current.y, current.width, current.height);\r\n\t\t\tcurrent=current.next;\r\n\t\t}\r\n\t\tfor(Mushroom i : game.getMushrooms()) {\r\n\t\t\tgfx.drawImage(i.mushroomImage.getImage(), i.x, i.y, i.width, i.height , null);\r\n\r\n\t\t}\r\n\t}", "public void draw() {\n draw(root, false);\n }", "public final void drawChildren() {\n // Set my clipping rectangle\n assert (window != null);\n assert (getScreen() != null);\n Screen screen = getScreen();\n\n // Special case: TStatusBar is drawn by TApplication, not anything\n // else.\n if (this instanceof TStatusBar) {\n return;\n }\n\n screen.setClipRight(width);\n screen.setClipBottom(height);\n\n int absoluteRightEdge = window.getAbsoluteX() + window.getWidth();\n int absoluteBottomEdge = window.getAbsoluteY() + window.getHeight();\n if (!(this instanceof TWindow) && !(this instanceof TVScroller)) {\n absoluteRightEdge -= 1;\n }\n if (!(this instanceof TWindow) && !(this instanceof THScroller)) {\n absoluteBottomEdge -= 1;\n }\n int myRightEdge = getAbsoluteX() + width;\n int myBottomEdge = getAbsoluteY() + height;\n if (getAbsoluteX() > absoluteRightEdge) {\n // I am offscreen\n screen.setClipRight(0);\n } else if (myRightEdge > absoluteRightEdge) {\n screen.setClipRight(screen.getClipRight()\n - (myRightEdge - absoluteRightEdge));\n }\n if (getAbsoluteY() > absoluteBottomEdge) {\n // I am offscreen\n screen.setClipBottom(0);\n } else if (myBottomEdge > absoluteBottomEdge) {\n screen.setClipBottom(screen.getClipBottom()\n - (myBottomEdge - absoluteBottomEdge));\n }\n\n // Set my offset\n screen.setOffsetX(getAbsoluteX());\n screen.setOffsetY(getAbsoluteY());\n\n // Draw me\n draw();\n\n // Continue down the chain\n for (TWidget widget: children) {\n widget.drawChildren();\n }\n }", "public void drawSelf() {\n for (Point p : matches) {\n this.drawPoint(p, Color.WHITE);\n }\n }", "private void redraw() {\r\n for (int row = 0; row < maxRows; row++) {\r\n for (int column = 0; column < maxColumns; column++) {\r\n grid[row][column].setBackground(SQUARE_COLOR);\r\n }\r\n }\r\n grid[snake[HEAD].row][snake[HEAD].column].setBackground(\r\n SNAKE_HEAD_COLOR);\r\n for (int i = 1; i < length; i++) {\r\n grid[snake[i].row][snake[i].column].setBackground(SNAKE_BODY_COLOR);\r\n }\r\n grid[powerUp.row][powerUp.column].setBackground(POWER_UP_COLOR);\r\n }", "private void drawGame(){\n drawBackGroundImage();\n drawWalls();\n drawPowerups();\n drawBullet();\n }", "private void doDrawing(Graphics g) {\n Dimension size = getSize();\n//paint all the shapes that have been dropped to the bottom \n int boardTop = (int) size.getHeight() - BOARD_HEIGHT * squareHeight();\n\n for (int i = 0; i < BOARD_HEIGHT; ++i) {\n\n for (int j = 0; j < BOARD_WIDTH; ++j) {\n// access all the squares that were stored in the board array\n Tetrominoe shape = shapeAt(j, BOARD_HEIGHT - i - 1);\n\n if (shape != Tetrominoe.NoShape) {\n \n drawSquare(g, 0 + j * squareWidth(),\n boardTop + i * squareHeight(), shape);\n }\n }\n }\n//paint the falling piece\n if (curPiece.getShape() != Tetrominoe.NoShape) {\n\n for (int i = 0; i < 4; ++i) {\n\n int x = curX + curPiece.x(i);\n int y = curY - curPiece.y(i);\n drawSquare(g, 0 + x * squareWidth(),\n boardTop + (BOARD_HEIGHT - y - 1) * squareHeight(),\n curPiece.getShape());\n }\n }\n }", "public void draw() {\n StdDraw.setPenColor(StdDraw.BLACK);\n StdDraw.setPenRadius(.01);\n for (Point2D p : s) {\n p.draw();\n }\n }", "public void draw() \r\n\t{\r\n\t\tdraw(root, new RectHV(0,0,1,1) );\r\n\t}", "@Override\n\tpublic void paint(Graphics g) {\n\t\tsuper.paint(g);\t\t\t\t\t\t\t\t\t// If this method is reimplemented, super.paint(g) should be called so that lightweight components are properly rendered.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// If a child component is entirely clipped by the current clipping setting in g, paint() will not be forwarded to that child.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// from http://docs.oracle.com/javase/7/docs/api/java/awt/Container.html#paint(java.awt.Graphics)\n\t\t\n\t\tif (newGame) newGoGame();\t\t\t\t\t\t// if new go game: setup goBoard array, goHistory, black player first\n\t\tif (checkWin) \t\t\t\t\t\t\t\t\t// if checkWin is true - check to see if the last move was a win\n\t\t\tif ((k=gameWin())!=0) {\n\t\t\t\tif (k==1)\n\t\t\t\t\tJOptionPane.showMessageDialog(this, \"White player has won!\", \"Gomoku Winner\", JOptionPane.PLAIN_MESSAGE);\n\t\t\t\telse \n\t\t\t\t\tJOptionPane.showMessageDialog(this, \"Black player has won!\", \"Gomoku Winner\", JOptionPane.PLAIN_MESSAGE);\n\t\t\t\tnewGoGame();\n\t\t\t}\n\t\t\n\t\t// Draw Background Image, depending on the index of bgNum\n\t\tg.drawImage(imgBackground[bgNum], 0, 54, Color.BLACK, null); // 44\n\t\t\n\t\t// Draw Grid\n\t\tg.setColor(Color.BLACK);\n\t\tfor (i=0; i<525; i+=35) {\t\t\t\t\t\t// 15x15 grid - 35 pixels per side - offset by 75 pixels on x, 75 pixels on y\n\t\t\tg.drawLine(75, 75+i, 565, 75+i);\t\t// draws horizontal lines\n\t\t\tg.drawLine(75+i, 75+0, 75+i, 565); \t// draws vertical lines\n\t\t} // end loop for drawing lines\n\t\t\n\t\t// draw pieces on board\n\t\tfor (i=0; i<15; ++i) {\n\t\t\tfor (j=0; j<15; ++j) {\n\t\t\t\tif ((k=goBoard[i][j])!=0) {\n\t\t\t\t\tif (k==1) { g.setColor(Color.WHITE); g.fillOval(61+(i*35),62+(j*35),30,30); }\n\t\t\t\t\telse { g.setColor(Color.BLACK); g.fillOval(61+(i*35),62+(j*35),30,30); }\n\t\t\t\t} // end if goBoard\n\t\t\t} // end j - inner loop for drawing game pieces\n\t\t} // end i - outer loop for drawing game pieces\n\n\t\t\n\t\t// To Do list\n\t\t// Check move - 5 in a row - (not with stack, but with int Array)\n\n\t\t\n\t}", "public void paint(Graphics g) {\n int rad = 30;\n int x = border;\n int y = border;\n size = 400/n;\n\n for (int i = 0; i < n; i++) {\n y = i * size + border;\n for (int j = 0; j < n; j++) {\n x = j * size + border;\n int z = matrix[i][j].getColor();\n\n if (matrix[i][j].isClicked()) {\n setRectColor(g, z); \n }\n\n else {\n g.setColor(Color.white);\n }\n\n g.fillRect(x, y, size, size);\n g.setColor(Color.black);\n g.drawRect(x, y, size, size);\n\n if (matrix[i][j].isDot()) {\n setDotColor(g, z);\n drawCircle(g, x, y, rad);\n }\n }\n }\n\n if (isOver()==true) { //Draw win screen if entire board is filled\n g.setColor(Color.white);\n g.fillRect(70, 70, 300, 225);\n g.setColor(Color.black);\n g.drawRect(70, 70, 300, 225);\n \n youWin(g, 110, 160, game.getMoves());\n }\n\n\n }", "public void draw()\n {\n inorder(root);\n }", "public void redraw(int [][] board)\n\t{\n\t\tfor(int i = 0; i < 20; ++i)\n\t\t{\n\t\t\tfor( int j = 0; j < 10; ++j)\n\t\t\t{\n\t\t\t\tswitch (board[i][j])\n\t\t\t\t{\n\t\t\t\t\t//empty\n\t\t\t\t\tcase 0:\tcolors[i][j] = Color.GRAY; \n\t\t\t\t\t\tbreak;\n\t\t\t\t\t//J - shape\n\t\t\t\t\tcase 1:\tcolors[i][j] = Color.BLUE; \n\t\t\t\t\t\tbreak;\n\t\t\t\t\t//Z shape\n\t\t\t\t\tcase 2:\tcolors[i][j] = Color.RED; \n\t\t\t\t\t\tbreak;\n\t\t\t\t\t//L shape\n\t\t\t\t\tcase 3:\tcolors[i][j] = Color.ORANGE; \n\t\t\t\t\t\tbreak;\n\t\t\t\t\t//S shape\n\t\t\t\t\tcase 4:\tcolors[i][j] = new Color(102,255,102); ;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t//I shape\n\t\t\t\t\tcase 5:\tcolors[i][j] = Color.CYAN; \n\t\t\t\t\t\tbreak;\n\t\t\t\t\t//O shape\n\t\t\t\t\tcase 6:\tcolors[i][j] = Color.YELLOW; \n\t\t\t\t\t\tbreak;\n\t\t\t\t\t//T shape\n\t\t\t\t\tcase 7:\tcolors[i][j] = Color.PINK; \n\t\t\t\t\t\tbreak;\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tview.getInGamePanel().getBoardGamePanel().redraw(colors);\t\n\t}", "public void paint() {\n int L = 150; // Local convenience var\n\n // Declare three lines (left, middle, and right)\n Line left = new Line(L, L, L, getHeight() - L);\n Line middle = new Line(L, getHeight() / 2, getWidth() - L, getHeight() / 2);\n Line right = new Line(getWidth() - L, L, getWidth() - L, getHeight() - L);\n\n getChildren().clear(); // Clear the pane before redisplay\n\n displayHTree(order, left, middle, right); // Call the recursive method\n }", "private void drawGame() {\r\n //For each each cell of the grid if there is a snake draw green,\r\n //an apple draw red or nothing draw white.\r\n for (int x = 0; x < gridWidth; x++) {\r\n for (int y = 0; y < gridHeight; y++) {\r\n if (isSnakeAt(new Coordinates(x, y))) {\r\n drawCell(x, y, Color.GREEN);\r\n } else if (apple.equals(new Coordinates(x, y))) {\r\n drawCell(x, y, Color.RED);\r\n } else {\r\n drawCell(x, y, Color.WHITE);\r\n }\r\n }\r\n }\r\n //Draw a grid around the game grid\r\n gc.strokeRect(0, 0, gridWidth * cellSize, gridHeight * cellSize); \r\n }", "public synchronized void draw() {\n // Clear the canvas\n// canvas.setFill(Color.BLACK);\n// canvas.fillRect(0, 0, canvasWidth, canvasHeight);\n canvas.clearRect(0, 0, canvasWidth, canvasHeight);\n\n // Draw a grid\n if (drawGrid) {\n canvas.setStroke(Color.LIGHTGRAY);\n canvas.setLineWidth(1);\n for (int i = 0; i < mapWidth; i++) {\n drawLine(canvas, getPixel(new Point(i - mapWidth / 2, -mapHeight / 2)), getPixel(new Point(i - mapWidth / 2, mapHeight / 2)));\n drawLine(canvas, getPixel(new Point(-mapWidth / 2, i - mapHeight / 2)), getPixel(new Point(mapWidth / 2, i - mapHeight / 2)));\n }\n }\n\n // Draw each player onto the canvas\n int height = 0;\n for (Player p : playerTracking) {\n canvas.setStroke(p.getColor());\n\n drawName(canvas, p.getName(), height, p.getColor());\n height += 30;\n\n canvas.setLineWidth(7);\n\n // Draw each position\n Point last = null;\n int direction = 0;\n for (Point point : p.getPoints()) {\n if (last != null) {\n drawLine(canvas, getPixel(last), getPixel(point));\n\n Point dir = point.substract(last);\n if (dir.X > dir.Y && dir.X > 0) {\n direction = 1;\n } else if (dir.X < dir.Y && dir.X < 0) {\n direction = 3;\n } else if (dir.Y > dir.X && dir.Y > 0) {\n direction = 2;\n } else if (dir.Y < dir.X && dir.Y < 0) {\n direction = 0;\n }\n }\n last = point;\n }\n\n drawSlug(canvas, p.getId() - 1, getPixel(last), direction);\n }\n }", "public void draw() \n\t {\n\t\t draw(root,0,0,1,1,true);\n\t }", "private void draw() {\n\t\t\n\t\tthis.getChildren().clear(); // empty the result first\n\t\t\n\t\tfor (int i = 0; i < resultList.size(); i++) { // create a snippet for each quiz in the result and show\n\t\t\t\n\t\t\tthis.getChildren().add(new QuizSnippet(resultList.get(i)));\n\t\t \n\t\t}\n\t\t\n\t\tif(resultList.size() == 0) { // if no result: show \"No result found!\"\n\n\t\t\tText noResult = new Text(\"No result found!\");\n\t\t\tnoResult.setFont(new Font(20));\n\t\t\tthis.getChildren().add(noResult);\n\t\t\t\n\t\t}\n\t\t\n\t}", "public void draw() {\n Node curr = root;\n RectHV rect = new RectHV(0, 0, 1, 1);\n print_ele(curr, true, rect);\n StdDraw.setPenRadius();\n }", "public void render() {\n\n /*\n gridCache is a much more efficient way of rendering the grid -- instead of iterating every single location with each render(),\n it only draws the locations which have changed, cutting down on lag.\n */\n\n ArrayList<Location> queue = gridCache;\n\n if (doFullRender) { // On the first render it should draw the entire grid\n background(255, 255, 255);\n queue = grid;\n doFullRender = false;\n this.bar = new ScoreBar(players, 0, topHeight/2 + topHeight/4);\n }\n\n for (PowerUp p : powerUps) { // Workaround for cache being overwritten\n p.addToCache();\n }\n\n for (Location loc : queue) {\n if (loc.getType() != LocationType.POWERUP) {\n int c = loc.getColor();\n stroke(c);\n fill(c);\n\n rect(loc.getX(), loc.getY(), pixelSize-1, pixelSize-1);\n } else {\n Location l2 = getLocation(loc);\n if (l2 != null) {\n l2.setType(LocationType.POWERUP);\n }\n }\n }\n\n for (PowerUp p : powerUps) {\n p.render();\n }\n\n gridCache = new ArrayList();\n}", "public void draw()\n\t{\n\t\tdrawWalls();\n\n\t\tfor( Zombie z: zombies )\n\t\t{\n\t\t\tz.draw();\n\t\t}\n\t\tfor( Entity h: humans )\n\t\t{\n\t\t\th.draw();\n\t\t}\n\n\t\tdp.repaintAndSleep(rate);\n\t}", "@Override\n public void handlePaint()\n {\n for(GraphicObject obj : this.graphicObjects)\n {\n obj.draw();\n }\n \n }", "private void refreshDisplay(){\n // The ArrayList bricks gets all the bricks currently on the board.\n bricks.addAll(board.getBoardBricks());\n bricks.addAll(board.getCurrentBlock().getBricks());\n g.clearRect(0, 0, BRICK_SIZE*(Board.BOUNDARY_RIGHT+7), BRICK_SIZE*(Board.BOUNDARY_BOTTOM+1));\n\n setupGhostBoard();\n for (Brick brick : ghostBoard.getCurrentBlock().getBricks()){\n g.setFill(Color.rgb(61, 61, 61));\n g.fillRect(brick.getX() * BRICK_SIZE, brick.getY() * BRICK_SIZE, BRICK_SIZE, BRICK_SIZE);\n g.setStroke(Color.WHITE);\n g.setLineWidth(2.0);\n g.strokeRect(brick.getX() * BRICK_SIZE, brick.getY() * BRICK_SIZE, BRICK_SIZE, BRICK_SIZE);\n }\n\n for (Brick brick : bricks) {\n g.setFill(getBrickColour(brick.getColour()));\n g.fillRect(brick.getX() * BRICK_SIZE + 2, brick.getY() * BRICK_SIZE + 2, BRICK_SIZE - 4, BRICK_SIZE - 4);\n }\n\n if(board.getHeldBlock() != null){\n for(Brick brick : board.getHeldBlock().getBricks()){\n g.setFill(getBrickColour(brick.getColour()));\n g.fillRect(brick.getX() * BRICK_SIZE + 259, brick.getY() * BRICK_SIZE + 44, BRICK_SIZE - 4, BRICK_SIZE - 4);\n }\n }\n\n for(Brick brick : board.getBlockQueue().get(0).getBricks()){\n g.setFill(getBrickColour(brick.getColour()));\n g.fillRect(brick.getX() * BRICK_SIZE + 259, brick.getY() * BRICK_SIZE + 184, BRICK_SIZE - 4, BRICK_SIZE - 4);\n }\n\n score.setText(\"\" + board.getScore());\n highScore.setText(\"\" + Math.max(FileHandler.readHighScore(), board.getScore()));\n level.setText(\"\" + board.getLevel());\n lines.setText(\"\" + board.getTotalLinesCleared());\n // All the elements of bricks must be removed, otherwise they stack up.\n bricks.removeAll(bricks);\n\n if(board.isGameOver()){\n g.setFill(Color.rgb(31, 31, 31, 0.5));\n g.fillRect(0, 0, BRICK_SIZE*(Board.BOUNDARY_RIGHT+1), BRICK_SIZE*(Board.BOUNDARY_BOTTOM+1));\n g.setTextAlign(TextAlignment.CENTER);\n g.setTextBaseline(VPos.CENTER);\n g.setFill(Color.WHITE);\n g.setFont(new Font(\"Impact\", 50));\n g.fillText(\n \"GAME OVER\",\n 160, 352\n );\n g.setFill(Color.rgb(190, 190, 190));\n g.setFont(new Font(\"Impact\", 20));\n g.fillText(\n \"Press 'Esc' to exit.\",\n 160, 392\n );\n\n int oldHighScore = FileHandler.readHighScore(), newHighScore = board.getScore();\n if(oldHighScore < newHighScore){\n highScoreSurpassed = true;\n }\n if(highScoreSurpassed){\n g.setFill(Color.WHITESMOKE);\n g.setFont(new Font(\"Impact\", 24));\n g.fillText(\n \"New High Score: \" + newHighScore + \"!\\nOld High Score: \" + oldHighScore + \".\",\n 160, 502\n );\n }\n }\n }", "public void draw(){\n\t\t int startRX = 100;\r\n\t\t int startRY = 100;\r\n\t\t int widthR = 300;\r\n\t\t int hightR = 300;\r\n\t\t \r\n\t\t \r\n\t\t // start points on Rectangle, from the startRX and startRY\r\n\t\t int x1 = 0;\r\n\t\t int y1 = 100;\r\n\t\t int x2 = 200;\r\n\t\t int y2 = hightR;\r\n\t\t \r\n //direction L - false or R - true\r\n\t\t \r\n\t\t boolean direction = true;\r\n\t\t \t\r\n\t\t\r\n\t\t //size of shape\r\n\t\t int dotD = 15;\r\n\t\t //distance between shapes\r\n\t int distance = 30;\r\n\t\t \r\n\t rect(startRX, startRY, widthR, hightR);\r\n\t \r\n\t drawStripesInRectangle ( startRX, startRY, widthR, hightR,\r\n\t \t\t x1, y1, x2, y2, dotD, distance, direction) ;\r\n\t\t \r\n\t\t super.draw();\r\n\t\t}", "void playGame() {\n boolean done = false;\n\n printIntro();\n addPlayers();\n\n while (!done && !hasWinner()) {\n for (Player player : list) {\n Card nextCard = draw();\n nextRoll++;\n\n if (nextCard != null) {\n System.out.println(player + \" roll \" + nextCard);\n board.move(player, nextCard);\n } else {\n done = true;\n break;\n }\n }\n }\n if (!hasWinner()) {\n System.out.println(\"No winner\");\n } else {\n System.out.println(determineWinner());\n }\n }", "private void drawPlayers(Graphics g){\n\t\tg.setColor(Color.BLACK);\n\t\tfor(int i=0; i<grid.length; i++){\n\t\t\tfor(int j=0; j<grid[0].length; j++){\n\t\t\t\tfor(GameMatter itm: grid[i][j].getItems()){\n\t\t\t\t\tif(itm instanceof Bandit){\n\t\t\t\t\t\tif(itm.equals(player))\n\t\t\t\t\t\t\tg.setColor(Color.MAGENTA);\n\t\t\t\t\t\tg.fillRect(j*widthBlock+padding, i*heightBlock+padding, bandit, bandit);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void paintBalls(Graphics g);", "public void drawStars()\r\n\t{\r\n\t\tIterator<Star> iterator = stars.iterator();\r\n\t\twhile (iterator.hasNext())\r\n\t\t{\r\n\t\t\tStar s = iterator.next();\r\n\t\t\tstarCircles.add(drawStar(s.x, s.y));\r\n\t\t}\r\n\t}", "void draw() {\n canvas.drawColor(Color.BLACK);\n insertSort(vstar);\n for( int i=0; i<NUMSTARS; i++){\n vstar[i].draw();\n }\n }", "public void draw(){\n if (! this.isFinished() ){\n UI.setColor(this.color);\n double left = this.xPos-this.radius;\n double top = GROUND-this.ht-this.radius;\n UI.fillOval(left, top, this.radius*2, this.radius*2);\n }\n }", "@Override\n protected void onDraw(Canvas canvas) {\n super.onDraw(canvas);\n\n hip.preDraw(purplePaint);\n body.preDraw(redPaint);\n neck.preDraw(purplePaint);\n head.preDraw(bluePaint);\n leftArm1.preDraw(bluePaint);\n leftArm2.preDraw(greenPaint);\n leftArm3.preDraw(cyanPaint);\n rightArm1.preDraw(bluePaint);\n rightArm2.preDraw(greenPaint);\n rightArm3.preDraw(cyanPaint);\n leftLeg1.preDraw(bluePaint);\n leftLeg2.preDraw(greenPaint);\n leftLeg3.preDraw(redPaint);\n rightLeg1.preDraw(bluePaint);\n rightLeg2.preDraw(greenPaint);\n rightLeg3.preDraw(redPaint);\n\n Cube[] renderCubes = {\n hip,\n body,\n neck,\n head,\n leftArm1, leftArm2, leftArm3,\n rightArm1, rightArm2, rightArm3,\n leftLeg1, leftLeg2, leftLeg3,\n rightLeg1, rightLeg2, rightLeg3,\n };\n sort(renderCubes, new Comparator<Cube>() {\n @Override\n public int compare(Cube o1, Cube o2) {\n return new Double(o2.getMaxZ()).compareTo(o1.getMaxZ());\n }\n });\n for (Cube c: renderCubes) {\n c.draw(canvas);\n }\n }", "public void paint(Graphics g){\n super.paint(g);\n Graphics2D g2d = (Graphics2D) g;\n g.setColor(Color.WHITE);\n for(int i = 0; i < ROWS; i++){\n g.drawLine(0, i * HEIGHT / ROWS - 1, \n WIDTH, i * HEIGHT / ROWS - 1);\n g.drawLine(0, i * HEIGHT / ROWS - 2, \n WIDTH, i * HEIGHT / ROWS - 2);\n }\n for (int i = 0; i <= COLS; i++) {\n g.drawLine(i * Game.getWindowWidth() / Game.getCols(), 0,\n i * Game.getWindowWidth() / Game.getCols(), HEIGHT);\n g.drawLine(i * Game.getWindowWidth() / Game.getCols() - 1, 0,\n i * Game.getWindowWidth() / Game.getCols() - 1, HEIGHT);\n }\n for (int i = 0; i < ROWS; i++) {\n for (int j = 0; j < COLS; j++) {\n grid[i][j].paintShadow(g2d);\n }\n }\n for (int i = 0; i < ROWS; i++) {\n for (int j = 0; j < COLS; j++) {\n grid[i][j].paint(g2d);\n }\n }\n \n for(Ball b : balls) {\n b.paint(g2d);\n }\n g2d.setColor(Color.BLACK);\n //segment at the top\n g2d.drawLine(0, 0, WIDTH, 0);\n g2d.drawLine(0, 1, WIDTH, 1);\n g2d.drawLine(0, 2, WIDTH, 2);\n //segment at the bottom\n g2d.drawLine(0, HEIGHT, WIDTH, HEIGHT);\n g2d.drawLine(0, HEIGHT + 1, WIDTH, HEIGHT + 1);\n g2d.drawLine(0, HEIGHT + 2, WIDTH, HEIGHT + 2);\n \n for(Point p : corners){\n g2d.drawOval(p.x, p.y, 3, 3);\n }\n\n if(aimStage){\n //draw the firing line\n g2d.setColor(lineColor);\n drawFatPath(g2d, startX, startY, endX, endY);\n g2d.setColor(arrowColor);\n drawArrow(g2d);\n }\n if(mouseHeld){\n// drawFatPath(g, Ball.restPositionX, HEIGHT - Ball.diameter, \n// getEndPoint().x, getEndPoint().y);\n }\n }", "public void paintComponent(Graphics g){\n super.paintComponent(g);\n for(int i = 0; i < count; i++){\n drawObjects[i].draw(g);\n } \n }", "public void paint(Graphics g) {\n\t\t\tif(!winning&&!losing){\n\t\t\t\t//System.out.println(\"IN PAINT\");\n\t\t\t\tsuper.paint(g);\n\t\t\t\tImage background;\n\t\t\t\tURL loc = this.getClass().getResource(\"sky.jpg\");\n\t\t\t\tImageIcon o = new ImageIcon(loc);\n\t\t\t\tbackground = o.getImage();\n\t\t\t\tg.drawImage(background,0, 0, this.getWidth(), this.getHeight(),null);\n\t\t\t\tlevel.addLevel();\n\t\t\t\tString chosen= level.getLevel(Level);\n\t\t\t\tlimit= level.getTime(Level);\n\t\t\t\t//\tg.drawRect (50, 50, 100, 100);\n\t\t\t\t//System.out.println(chosen);\n\n\t\t\t\tfor(int i=0;i<chosen.length();i++){\n\t\t\t\t\tchar c = chosen.charAt(i);\n\t\t\t\t\t//System.out.println(c);\n\t\t\t\t\tif(c==' '){\n\t\t\t\t\t\tside+=20;//add up to the x-position \n\t\t\t\t\t}\n\t\t\t\t\telse if(c=='#'){\n\t\t\t\t\t\tside+=20;\n\t\t\t\t\t\tif(number==0)//if it is the first time print out\n\t\t\t\t\t\t\twalls.add(new wall(side,upper));//add to the wall list\n\t\t\t\t\t}\n\t\t\t\t\telse if(c=='$'){\n\t\t\t\t\t\tside+=20;\n\t\t\t\t\t\tif(number==0)\n\t\t\t\t\t\t\tboxes.add(new box(side, upper));\n\n\n\t\t\t\t\t}\n\t\t\t\t\telse if(c=='\\n'){\n\t\t\t\t\t\tside=0;\n\t\t\t\t\t\tupper+=20;\n\t\t\t\t\t}\n\t\t\t\t\telse if (c=='.'){\n\t\t\t\t\t\tside+=20;\n\t\t\t\t\t\tif(number==0)\n\t\t\t\t\t\t\tareas.add(new area(side, upper));//add to the areas list\n\t\t\t\t\t}\n\t\t\t\t\telse if(c=='a'){\n\t\t\t\t\t\tside+=20;\n\t\t\t\t\t\th= new player(side+velX,upper+velY);//change the position of the player\n\t\t\t\t\t\tg.drawRect (h.getX(), h.getY(), 20, 20);\n\t\t\t\t\t\tg.drawImage(h.getP(), h.getX(),h.getY(),20,20, null);//draw the player\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tnumber++;// the number of paint times add\n\t\t\t\tside=40;//reset the initial x position\n\t\t\t\tupper=80;//reset the initial y position\n\t\t\t\t//\t\t\tSystem.out.println(\"here\");\n\t\t\t\tfor(int i=0;i<walls.size();i++){\n\t\t\t\t\t//System.out.println(\"HERE\");\n\t\t\t\t\twall a= walls.get(i);\n\t\t\t\t\t//\t\t\t\tSystem.out.println(\"X: \"+a.getX());\n\t\t\t\t\t//\t\t\t\tSystem.out.println(\"Y: \"+a.getY());\n\t\t\t\t\tg.drawRect (a.getX(), a.getY(), 20, 20);\n\t\t\t\t\t//g.drawRect(30, 30, 100, 100);\n\t\t\t\t\tg.drawImage(a.getP(), a.getX(),a.getY(), 20, 20,null);\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\t * This section is used to draw the boxes\n\t\t\t\t */\n\t\t\t\tfor(int i=0;i<boxes.size();i++){\n\t\t\t\t\tbox a= boxes.get(i);\n\t\t\t\t\tg.drawRect (a.getX(), a.getY(), 20, 20);\n\t\t\t\t\tg.drawImage(a.getP(), a.getX(),a.getY(),20,20, null);\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\t * This section is used to draw the areas\n\t\t\t\t */\n\t\t\t\tfor(int i=0; i<areas.size();i++){\n\t\t\t\t\tarea a = areas.get(i);\n\t\t\t\t\tg.drawRect (a.getX(), a.getY(), 20, 20);\n\t\t\t\t\tg.drawImage(null, a.getX(),a.getY(),20,20, null);\n\t\t\t\t}\n\t\t\t\t//System.out.println(m.getTime());\n\t\t\t\tg.drawString (\"Steps: \" + steps, 300, 400);\n\t\t\t\tg.drawString (\"Remaining steps: \" + (limit-steps), 300, 420);//show the remaining steps \n\t\t\t}\n\t\t\telse if(losing){//change the screen if you lose\n\t\t\t\tImage background;\n\t\t\t\tURL loc = this.getClass().getResource(\"over.jpg\");\n\t\t\t\tImageIcon o = new ImageIcon(loc);\n\t\t\t\tbackground = o.getImage();\n\t\t\t\tg.drawImage(background,0, 0, this.getWidth(), this.getHeight(),null);\n\t\t\t}\n\t\t\telse if(winning){//change the screen if you win\n \n\t\t\t\tImage background;\n\t\t\t\tURL loc = this.getClass().getResource(\"win.jpg\");\n\t\t\t\tImageIcon o = new ImageIcon(loc);\n\t\t\t\tbackground = o.getImage();\n\t\t\t\tg.drawImage(background,0, 0, this.getWidth(), this.getHeight(),null);\n\t\t\t}\n\n\n\t\t\n\n\n\t\t}", "public void draw()\r\n {\r\n\tfinal GraphicsLibrary g = GraphicsLibrary.getInstance();\r\n\t_level.draw(g);\r\n\t_printText.draw(\"x\" + Mario.getTotalCoins(), 30, _height - 36, false);\r\n\t_printText.draw(\"C 000\", _width - 120, _height - 36, false);\r\n\t_printText.draw(Mario.getLives() + \"UP\", 240, _height - 36, false);\r\n\t_printText.draw(Mario.getPoints() + \"\", 400, _height - 36, false);\r\n\t_coin.draw();\r\n\t_1UP.draw();\r\n }", "public void draw(Graphics g) {\n\t\tGraphics2D graphic2d = (Graphics2D) g;\n\t\t//loop through and create circles\n\t\tint bool = 0;\n\t\t//makes 36 squares\n\t\tfor (int x=1; x < 37; x++) {\t\t\t\n\t\t\tRectangle2D shape = new Rectangle2D.Double(super.getX(), super.getY(), super.width/2, super.height/2);\n\t\t\tfinal AffineTransform saved = graphic2d.getTransform();\n\t\t\t//converts 10 to radians and rotates shape by 10 degrees\n\t\t\tfinal AffineTransform rotate = AffineTransform.getRotateInstance(Math.toRadians(x*10), super.getX(), super.getY());\n\t\t\tgraphic2d.transform(rotate);\n\t\t\t//paints a different square colour every 9 squares\n\t\t\tif (x%9 == 0) {\n\t\t\t\tif (bool == 0) {\n\t\t\t\t\tgraphic2d.setPaint(super.borderColor);\n\t\t\t\t\tbool = 1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tgraphic2d.setPaint(super.fillColor);\n\t\t\t\t\tbool = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tgraphic2d.setPaint(super.fillColor);\n\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\tgraphic2d.fill(shape);\n\t\t\tgraphic2d.setTransform(saved);\n\t\t}\n\t\tdrawHandles(g);\n\t\t\n\t}", "public void draw() {\n mGameBoard.draw();\n }", "public void paint() {\n for (int row = 0; row < ROWS; ++row) {\n for (int col = 0; col < COLS; ++col) {\n cells[row][col].paint();\n if (col < COLS - 1) System.out.print(\"|\");\n }\n System.out.println();\n if (row < ROWS - 1) {\n System.out.println(\"-----------\");\n }\n }\n }", "private void draw() {\n\n // Current generation (y-position on canvas)\n int generation = 0;\n\n // Looping while still on canvas\n while (generation < canvasHeight / CELL_SIZE) {\n\n // Next generation\n cells = generate(cells);\n\n // Drawing\n for (int i = 0; i < cells.length; i++) {\n gc.setFill(colors[cells[i]]);\n gc.fillRect(i * CELL_SIZE, generation * CELL_SIZE, CELL_SIZE, CELL_SIZE);\n }\n\n // Next line..\n generation++;\n }\n }", "private void playGame() {\n drawBricks();\n for (int i = 1; i <= NTURNS; i++) {\n setBallSpeed();\n GOval ball = drawBall();\n paddle = drawPaddle();\n showLabel(\"ROUND \" + i, Color.ORANGE);\n waitForClick();\n playRound(ball);\n }\n showLabel(\"GAME OVER\", Color.BLACK);\n }", "private void drawBoard(int N) {\n\t\tfor (int i = 0; i < N; i++) {\n for (int j = 0; j < N; j++) {\n if ((i + j) % 2 == 0) StdDrawPlus.setPenColor(StdDrawPlus.GRAY);\n else StdDrawPlus.setPenColor(StdDrawPlus.BLACK);\n StdDrawPlus.filledSquare(i + .5, j + .5, .5);\n StdDrawPlus.setPenColor(StdDrawPlus.WHITE);\n }\n }\n\n if (hasSelected) {\n StdDrawPlus.setPenColor(StdDrawPlus.WHITE);\n \tStdDrawPlus.filledSquare(prevSelectedX + .5, prevSelectedY + .5, .5);\n }\n\n // Drawing pieces\n for (int x = 0; x < 8; x++) {\n \tfor (int y = 0; y < 8; y++) {\n \t\tPiece p = pieceAt(x, y);\n \t\tif (p != null) {\n\t \t\t\tif (p.isFire() && p.isShield() && !p.isKing()) {\n\t \t\t\t\tStdDrawPlus.picture(x + .5, y + .5, \"img/shield-fire.png\", 1, 1);\n\t \t\t\t}\n\t \t\t\telse if (p.isFire() && p.isBomb() && !p.isKing()) {\n\t \t\t\t\tStdDrawPlus.picture(x + .5, y + .5, \"img/bomb-fire.png\", 1, 1);\n\t \t\t\t}\n\t \t\t\telse if (!p.isFire() && p.isBomb() && !p.isKing()) {\n\t \t\t\t\tStdDrawPlus.picture(x + .5, y + .5, \"img/bomb-water.png\", 1, 1);\n\t \t\t\t}\n\t \t\t\telse if (!p.isFire() && p.isShield() && !p.isKing()) {\n\t \t\t\t\tStdDrawPlus.picture(x + .5, y + .5, \"img/shield-water.png\", 1, 1);\n\t \t\t\t}\n\t \t\t\telse if (!p.isFire() && !p.isKing()) {\n\t \t\t\t\tStdDrawPlus.picture(x + .5, y + .5, \"img/pawn-water.png\", 1, 1);\n\t \t\t\t}\n\t \t\t\telse if (p.isFire() && !p.isKing()) {\n\t \t\t\t\tStdDrawPlus.picture(x + .5, y + .5, \"img/pawn-fire.png\", 1, 1);\n\t \t\t}\n\t \t\telse if (p.isFire() && p.isBomb() && p.isKing()) {\n\t \t\t\tStdDrawPlus.picture(x + .5, y + .5, \"img/bomb-fire-crowned.png\", 1, 1);\n\t \t\t}\n\t \t\telse if (p.isFire() && p.isShield() && p.isKing()) {\n\t \t\t\tStdDrawPlus.picture(x + .5, y + .5, \"img/shield-fire-crowned.png\", 1, 1);\n\t \t\t}\n\t \t\telse if (p.isFire() && p.isKing()) {\n\t \t\t\tStdDrawPlus.picture(x + .5, y + .5, \"img/pawn-fire-crowned.png\", 1, 1);\n\t \t\t}\n\t \t\telse if (!p.isFire() && p.isBomb() && p.isKing()) {\n\t \t\t\tStdDrawPlus.picture(x + .5, y + .5, \"img/bomb-water-crowned.png\", 1, 1);\n\t \t\t}\n\t \t\telse if (!p.isFire() && p.isShield() && p.isKing()) {\n\t \t\t\tStdDrawPlus.picture(x + .5, y + .5, \"img/shield-fire-crowned.png\", 1, 1);\n\t \t\t}\n\t \t\telse if (!p.isFire() && p.isKing()) {\n\t \t\t\tStdDrawPlus.picture(x + .5, y + .5, \"img/pawn-water-crowned.png\", 1, 1);\n\t \t\t}\n\t \t}\n \t}\n }\n\t}", "public void draw() {\n for (Point2D i : pointsSet)\n i.draw();\n }", "public void draw() {\n drawNode(root);\n }", "private void drawWalls(Graphics g) {\n\t\tfor(int i=0; i<grid.length; i++){\n\t\t\tfor(int j=0; j<grid[0].length; j++){\n\t\t\t\tif(grid[i][j].getNorth()!=null) {\n\t\t\t\t\tg.setColor(Color.decode(\"#CC3300\"));//Brown\n\t\t\t\t\tg.drawLine(j*widthBlock+padding+doorX, i*heightBlock+padding, j*widthBlock+padding+doorWidth, i*heightBlock+padding);\n\t\t\t\t}else {\n\t\t\t\t\tg.setColor(Color.BLACK);\n\t\t\t\t\tg.drawLine(j*widthBlock+padding, i*heightBlock+padding, j*widthBlock+padding+widthBlock, i*heightBlock+padding);\n\t\t\t\t}\n\t\t\t\tif(grid[i][j].getEast()!=null) {\n\t\t\t\t\tg.setColor(Color.decode(\"#CC3300\"));//Brown\n\t\t\t\t\tg.drawLine((j+1)*widthBlock+padding, i*heightBlock+padding+doorX, (j+1)*widthBlock+padding, i*heightBlock+padding+doorWidth);\n\t\t\t\t}else {\n\t\t\t\t\tg.setColor(Color.BLACK);\n\t\t\t\t\tg.drawLine((j+1)*widthBlock+padding, i*heightBlock+padding, (j+1)*widthBlock+padding, (i+1)*heightBlock+padding);\n\t\t\t\t}\n\t\t\t\tif(grid[i][j].getSouth()!=null) {\n\t\t\t\t\tg.setColor(Color.decode(\"#CC3300\"));//Brown\n\t\t\t\t\tg.drawLine(j*widthBlock+padding+doorX, (i+1)*heightBlock+padding, j*widthBlock+padding+doorWidth, (i+1)*heightBlock+padding);\n\t\t\t\t}else {\n\t\t\t\t\tg.setColor(Color.BLACK);\n\t\t\t\t\tg.drawLine(j*widthBlock+padding, (i+1)*heightBlock+padding, (j+1)*widthBlock+padding, (i+1)*heightBlock+padding);\n\t\t\t\t}\n\t\t\t\tif(grid[i][j].getWest()!=null) {\n\t\t\t\t\tg.setColor(Color.decode(\"#CC3300\"));//Brown\n\t\t\t\t\tg.drawLine(j*widthBlock+padding, i*heightBlock+padding+doorX, j*widthBlock+padding, i*heightBlock+padding+doorWidth);\n\t\t\t\t}else {\n\t\t\t\t\tg.setColor(Color.BLACK);\n\t\t\t\t\tg.drawLine(j*widthBlock+padding, i*heightBlock+padding, j*widthBlock+padding, (i+1)*heightBlock+padding);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void paint(Graphics g) {\n g.setColor(Color.white);\n g.fillRect(0, 0, getWidth(), getHeight() );\n\n for (PieceUI pieceUI : pieceUIList) {\n pieceUI.draw(g);\n }\n\n g.drawImage(trapeze.getTrapezeView(), 200, 400, null);\n }", "private void doDraw(Canvas canvas) {\n\t\t// Draw the background image. Operations on the Canvas accumulate\n\t\t// so this is like clearing the screen.\n\t\tcanvas.drawBitmap(mBackgroundImage, 0, 0, null);\n\t\tcanvas.save();\n\n\t\t// rotate rocket so it always faces where it is headed\n\t\tcanvas.save();\n\t\t\n\t\t\n\t\t//rotates rocket in the direction it is moving based on x and y velocity\n\t\t//http://gamedev.stackexchange.com/questions/19209/rotate-entity-to-match-current-velocity\n//\t\tcanvas.rotate((int) -(Math.tan(mRocket.xVel / mRocket.yVel) * 57.2957795), mRocket.xPos,\n\t\tcanvas.rotate((int) (-270 + Math.atan2(mRocket.yVel, mRocket.xVel) * 57.2957795), mRocket.xPos,\n\t\t\t\tmRocket.yPos);\n\t\tmRocket.setBounds();\n\t\tmRocket.image.draw(canvas);\n\t\tcanvas.restore();\n\n\t\tfor (Satellite s : mLevel.satellites) {\n\t\t\ts.setBounds();\n\t\t\ts.image.draw(canvas);\n\t\t}\n\t\t\n\t\t//draw line\n\t\tif(mState == GameState.PLANNING_LVL && currXPos != Float.MIN_VALUE){\n\t\t\tPaint p = new Paint();\n\t\t\tp.setAlpha(255);\n\t\t\tp.setStrokeWidth(3);\n\t\t\tp.setColor(Color.WHITE);\n\t\t\tp.setStyle(Style.FILL_AND_STROKE);\n\t\t\tp.setPathEffect(new DashPathEffect(new float[]{15,4}, 0));\n//\t\t\tLineSegment ls = new LineSegment(new Point(mRocket.xPos, mRocket.yPos), new Point(currXPos, currYPos));\n//\t\t\tls.extendLine(mCanvasHeight/2);\n//\t\t\tcanvas.drawLine((float)ls.a.x, (float)ls.a.y, (float)ls.b.x, (float)ls.b.y, p);\n\t\t\tcanvas.drawLine(mRocket.xPos, mRocket.yPos, currXPos, currYPos, p);\t\n\t\t}\n\t}", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "private void draw(){\n GraphicsContext gc = canvasArea.getGraphicsContext2D();\n canvasDrawer.drawBoard(canvasArea, board, gc, currentCellColor, currentBackgroundColor, gridToggle);\n }", "public void paintShapeAll(RMShapePainter aPntr)\n{\n // Get graphics\n RMShapePainter pntr = aPntr;\n \n // If clipping, clip to shape\n if(getClipShape()!=null) {\n pntr = pntr.clone();\n pntr.clip(getClipShape());\n }\n \n // Have shape paint only itself\n pntr.sendPaintShape(this);\n \n // Have shape paint children\n paintShapeChildren(pntr);\n \n // Have shape paint over\n paintShapeOver(aPntr);\n \n // If graphics copied, dispose\n if(pntr!=aPntr) pntr.dispose();\n}", "@Override\n\tpublic void draw() {\n\t\tbg.draw();\n\t\tfor(Test2 t : test)\n\t\t\tt.draw();\n\t\tfor(Test2 t : test2)\n\t\t\tt.draw();\n\t\t\n\t\tfor(Test2 t : test3)\n\t\t\tt.draw();\n\t\tobj.draw();\n\t\tEffect().drawEffect(1);\n\t}", "private void drawPlayers(Graphics g){\r\n\t\t// Comprobamos que existen jugadores\r\n\t\tint x = 40, y = 60;\r\n\t\tint spanLeft = 0, spanRight = 0;\r\n\t\tif(players != null){\r\n\t\t\t//Recorremos los jugadores\r\n\t\t\tListIterator<Player> it = players.listIterator();\r\n\t\t\twhile(it.hasNext()){\r\n\t\t\t\tif(it.nextIndex()<4){ // los cuatro primeros jugadores van a la izquierda\r\n\t\t\t\t\tit.next().draw(g, x, y+spanLeft, deck);\r\n\t\t\t\t\tspanLeft += 150;\r\n\t\t\t\t}else{ // los cuatro siguientes a la derecha\r\n\t\t\t\t\tit.next().draw(g, x+500, y+spanRight, deck);\r\n\t\t\t\t\tspanRight += 150;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tg.setColor(Color.black);\r\n\t\t\tg.fillRect(0, 0, this.getWidth(), this.getHeight());\r\n\t\t\tg.setColor(Color.white);\r\n\t\t\tg.setFont(new Font(\"Arial\", Font.PLAIN, 70));\r\n\t\t\tg.drawString(\"¡Bienvenido a Siete y Media!\", 50, 150);\r\n\t\t\tg.setFont(new Font(\"Arial\", Font.PLAIN, 18));\r\n\t\t\tg.drawString(\"Configura tu partida.\", 50, 200);\r\n\t\t}\r\n\r\n\t}", "public static void setBoard() {\n\t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n\t\tStdDraw.filledRectangle(500, 500, 1000, 1000);\n\t\tStdDraw.setPenColor(StdDraw.BLACK);\n\t\tStdDraw.filledCircle(200, 800, 35);\n\t\tStdDraw.filledCircle(500, 800, 35);\n\t\tStdDraw.filledCircle(800, 800, 35);\n\t\tStdDraw.filledCircle(200, 200, 35);\n\t\tStdDraw.filledCircle(500, 200, 35);\n\t\tStdDraw.filledCircle(800, 200, 35);\n\t\tStdDraw.filledCircle(200, 500, 35);\n\t\tStdDraw.filledCircle(800, 500, 35);\n\t\tStdDraw.filledCircle(350, 650, 35);\n\t\tStdDraw.filledCircle(500, 650, 35);\n\t\tStdDraw.filledCircle(650, 650, 35);\n\t\tStdDraw.filledCircle(350, 350, 35);\n\t\tStdDraw.filledCircle(500, 350, 35);\n\t\tStdDraw.filledCircle(650, 350, 35);\n\t\tStdDraw.filledCircle(350, 500, 35);\n\t\tStdDraw.filledCircle(650, 500, 35);\n\n\t\tStdDraw.setPenRadius(0.01);\n\t\tStdDraw.line(200, 200, 800, 200);\n\t\tStdDraw.line(200, 800, 800, 800);\n\t\tStdDraw.line(350, 350, 650, 350);\n\t\tStdDraw.line(350, 650, 650, 650);\n\t\tStdDraw.line(200, 500, 350, 500);\n\t\tStdDraw.line(650, 500, 800, 500);\n\t\tStdDraw.line(200, 800, 200, 200);\n\t\tStdDraw.line(800, 800, 800, 200);\n\t\tStdDraw.line(350, 650, 350, 350);\n\t\tStdDraw.line(650, 650, 650, 350);\n\t\tStdDraw.line(500, 800, 500, 650);\n\t\tStdDraw.line(500, 200, 500, 350);\n\n\t\tStdDraw.setPenColor(StdDraw.BLUE);\n\t\tStdDraw.filledCircle(80, 200, 35);\n\t\tStdDraw.filledCircle(80, 300, 35);\n\t\tStdDraw.filledCircle(80, 400, 35);\n\t\tStdDraw.filledCircle(80, 500, 35);\n\t\tStdDraw.filledCircle(80, 600, 35);\n\t\tStdDraw.filledCircle(80, 700, 35);\n\n\t\tStdDraw.setPenColor(StdDraw.RED);\n\t\tStdDraw.filledCircle(920, 200, 35);\n\t\tStdDraw.filledCircle(920, 300, 35);\n\t\tStdDraw.filledCircle(920, 400, 35);\n\t\tStdDraw.filledCircle(920, 500, 35);\n\t\tStdDraw.filledCircle(920, 600, 35);\n\t\tStdDraw.filledCircle(920, 700, 35);\n\n\t\tStdDraw.setPenColor(StdDraw.BLACK);\n\n\t}", "void paintOverall(Graphics g);", "public static void drawBoard(ArrayList<Integer> brd){\n\n clearScreen();\n\n /*\n | | | |\n | | | |\n | | | |\n */\n String p = \"\"; // what to print out\n for (int i = 0; i < brd.size(); i++) { // looping through the board\n String put = \"\"; // what will appear in the console\n int z = brd.get(i); // value of the current square\n if (z == 1) { // value is 1 which means it is an x square\n put = \"x\";\n } else if (z == 2) { // value is 2 which means it is an o square\n put = \"o\";\n } else if (z == 0) { // value is 0 which means it hasn't been claimed yet.\n // finding the row and column\n if (i == 0 || i == 1 || i == 2) {\n put = \"a\" + (i+1);\n }\n if (i == 3 || i == 4 || i == 5) {\n put = \"b\" + ((i-3) + 1);\n }\n if (i == 6 || i == 7 || i == 8) {\n put = \"c\" + ((i-6) + 1);\n }\n }\n\n // formatting\n p += \"| \" + put + \" \";\n if (i == 2 || i == 5 || i == 8) {\n p += \"|\\n\"; // closing off rows.\n \n }\n //System.out.println(i + \" \" + brd.get(i));\n }\n System.out.println(p); // display the board\n }", "private void drawFallingPiece() {\r\n\t\t// loops through each rectangle of the shape type (always 4), and draws it\r\n\t\t// based on it's status and position.\r\n\t\tfor (int i = 0; i < 4; i++) {\r\n\t\t\tdrawSquare(game.fallingPiece.x + game.fallingPiece.coord[game.fallingPiece.status][i][0],\r\n\t\t\t\t\t game.fallingPiece.y + game.fallingPiece.coord[game.fallingPiece.status][i][1],\r\n\t\t\t\t\t game.fallingPiece.color);\r\n\t\t}\r\n\t}", "protected void paintComponent(Graphics g) {\n super.paintComponent(g);\n // draw all piles and the remaining cards left in the deck\n for (int i = 0; i < mainPiles.length; i++) {\n mainPiles[i].draw(g);\n }\n for (int i = 0; i < suitPiles.length; i++) {\n suitPiles[i].draw(g);\n }\n deckPile.draw(g);\n deck.draw(g);\n \n if (selectedPile != null) {\n selectedPile.draw(g);\n }\n }", "public void paint () {\n\t\tPaint.clear();\n\t\t\n\t\tPaint.setColor(Color.WHITE);\n\t\tPaint.fillRect(0,0,numcols_ * cellsize_,numrows_ * cellsize_);\n\t\tPaint.setColor(Color.GRAY);\n\t\tPaint.drawRect(0,0,numcols_ * cellsize_ - 1,numrows_ * cellsize_ - 1);\n\n\t\tfor ( int row = 0 ; row < numrows_ ; row++ ) {\n\t\t\tfor ( int col = 0 ; col < numcols_ ; col++ ) {\n\t\t\t\tint x = col * cellsize_;\n\t\t\t\tint y = row * cellsize_;\n\n\t\t\t\tThing thing = at(row,col);\n\t\t\t\tif ( thing != null ) {\n\t\t\t\t\tthing.paint(x,y,cellsize_,cellsize_);\n\t\t\t\t}\n\t\t\t\tPaint.setColor(Color.GRAY);\n\t\t\t\tPaint.drawRect(x,y,cellsize_,cellsize_);\n\t\t\t}\n\t\t}\n\n\t}", "public void draw() {\n drawNode(root, true);\n }", "public void draw(Canvas canvas){\n\t\tcanvas.drawColor(Color.BLACK);\n\t\tresultSprite.draw(canvas);\n\t\tnewRound.draw(canvas);\n\t\tbackMenu.draw(canvas);\n\t}", "public void drawAll(List<? extends Shape> shapes) {\n\t}", "@Override\n protected void onDraw(Canvas canvas) {\n super.onDraw(canvas);\n\n if (gameOver) {\n // end game - loss\n gameOverDialog();\n } else if (gameWon) {\n // end game - win\n gameWonDialog();\n }\n\n //Convert dp to pixels by multiplying times density.\n canvas.scale(density, density);\n\n // draw horizon\n paint.setColor(Color.GREEN);\n paint.setStyle(Paint.Style.FILL);\n canvas.drawRect(0, horizon, getWidth() / density, getHeight() / density, paint);\n\n // draw cities\n paint.setColor(Color.BLACK);\n paint.setStyle(Paint.Style.FILL);\n textPaint.setColor(Color.WHITE);\n textPaint.setTextSize(10);\n\n for (int i = 0; i < cityCount; ++i) {\n canvas.drawRect(cityLocations[i].x - citySize, cityLocations[i].y - citySize, cityLocations[i].x + citySize, cityLocations[i].y + citySize, paint);\n canvas.drawText(cityNames[i], cityLocations[i].x - (citySize / 2) - 5, cityLocations[i].y - (citySize / 2) + 10, textPaint);\n }\n\n // draw rocks\n for (RockView rock : rockList) {\n PointF center = rock.getCenter();\n String color = rock.getColor();\n\n paint.setColor(Color.parseColor(color));\n\n paint.setStyle(Paint.Style.FILL);\n //Log.d(\"center.x\", center.x + \"\");\n //Log.d(\"center.y\", center.y + \"\");\n canvas.drawCircle(center.x, center.y, rockRadius, paint);\n }\n\n // draw MagnaBeam circle\n if (touchActive) {\n canvas.drawCircle(touchPoint.x, touchPoint.y, touchWidth, touchPaint);\n }\n }", "public void draw(){\r\n\r\n\t\t\t//frame of house\r\n\t\t\tpen.move(0,0);\r\n\t\t\tpen.down();\r\n\t\t\tpen.move(250,0);\r\n\t\t\tpen.move(250,150);\r\n\t\t\tpen.move(0,300);\r\n\t\t\tpen.move(-250,150);\r\n\t\t\tpen.move(-250,0);\r\n\t\t\tpen.move(0,0);\r\n\t\t\tpen.up();\r\n\t\t\tpen.move(250,150);\r\n\t\t\tpen.down();\r\n\t\t\tpen.move(-250,150);\r\n\t\t\tpen.up();\r\n\t\t\tpen.move(0,0);\r\n\t\t\tpen.down();\r\n\r\n\t\t\t//door\r\n\t\t\tpen.setColor(Color.blue);\r\n\t\t\tpen.setWidth(10);\r\n\t\t\tpen.move(50,0);\r\n\t\t\tpen.move(50,100);\r\n\t\t\tpen.move(-50,100);\r\n\t\t\tpen.move(-50,0);\r\n\t\t\tpen.move(0,0);\r\n\r\n\t\t\t//windows\r\n\t\t\tpen.up();\r\n\t\t\tpen.move(150,80);\r\n\t\t\tpen.down();\r\n\t\t\tpen.drawCircle(30);\r\n\t\t\tpen.up();\r\n\t\t\tpen.move(-150,80);\r\n\t\t\tpen.down();\r\n\t\t\tpen.drawCircle(30);\r\n\t\t\tpen.up();\r\n\r\n\t\t\t//extra\r\n\t\t\tpen.move(-45,120);\r\n\t\t\tpen.down();\r\n\t\t\tpen.setColor(Color.black);\r\n\t\t\tpen.drawString(\"This is a house\");\r\n\t}", "public void paint(Graphics g){\r\n super.paintComponent(g);\r\n for(int row = 0; row < 8; row++) {\r\n for (int col = 0; col < 8; col++) {\r\n if((row % 2 == 0 && col % 2 == 0) || (row % 2 != 0 && col % 2 != 0)){\r\n g.setColor(Color.gray.brighter()); //pale yellow\r\n g.fillRect(col * tileSize, row * tileSize, tileSize, tileSize);\r\n }\r\n else{\r\n g.setColor(Color.gray.darker()); //dark brown\r\n g.fillRect(col * tileSize, row * tileSize, tileSize, tileSize);\r\n if ((currentPlayer.getColor()==checks[row][col])) {\r\n g.setColor(Color.darkGray.darker());\r\n g.fillRect(col * tileSize, row * tileSize, tileSize, tileSize);\r\n }\r\n if (this.nextMove[row][col] == 1) {\r\n g.setColor(Color.getHSBColor(98,70,43));\r\n g.fillRect(col * tileSize, row * tileSize, tileSize, tileSize);\r\n }\r\n if (this.checks[row][col] != 0) {\r\n if (this.checks[row][col] == WHITE) {\r\n drawPiece(row, col, g, Color.yellow.brighter());\r\n if (row == 7)\r\n g.drawImage(crownImage, (col * tileSize)+6, (row * tileSize) + 6, tileSize - 12, tileSize - 12, null);\r\n }\r\n else{\r\n drawPiece(row, col, g, Color.black);\r\n if (row == 0)\r\n g.drawImage(crownImage, (col * tileSize)+6, (row * tileSize) + 6, tileSize - 12, tileSize - 12, null);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n if(isOver && isGame){\r\n gameOverDisplay(g);\r\n }\r\n }", "private void redrawGraphs(int k, int i) {\n\t\tdouble y = 0;\r\n\t\tif (nse.getRank(k) == 0) {\r\n\t\t\ty = getHeight() - GRAPH_MARGIN_SIZE;\r\n\t\t} else {\r\n\t\t\ty = (getHeight() - 2 * GRAPH_MARGIN_SIZE) * nse.getRank(k) / (double) MAX_RANK + GRAPH_MARGIN_SIZE;\r\n\t\t}\r\n\t\tredrawLines(k, y, i);\r\n\t\tredrawTitles(i, k, y);\r\n\t}", "private void drawBooksAndTitles(int spaceBetweenShelves, int dimCanvasX, int thiknessEdges, int shelfWidth,\r\n\t\t\tboolean leaning, List<Shape> shelves, String bColor) {\r\n\t\tList<Shape> bookShapes = new ArrayList<>();\r\n\t\tint idealWidth = (int) (0.6 * (shelfWidth / library.getShelves().get(0).getBooks().size()));\r\n\t\tint idealHeight = (int) (0.8 * spaceBetweenShelves);\r\n\t\tint placeLeftInShelf = shelfWidth;\r\n\t\tint shelfNumber = 1;\r\n\t\tRandom randomGenerator = new Random();\r\n\t\tint counterBooks = library.getShelves().get(shelfNumber - 1).getBooks().size();\r\n\t\tfor (Book book : library.getListOfAllTheBooks()) {\r\n\t\t\tShape bookShape = null;\r\n\t\t\tint randomWidth = idealWidth + randomGenerator.nextInt(30);\r\n\t\t\tint randomHeightGap = randomGenerator.nextInt(50);\r\n\t\t\tint heightSup = idealHeight + randomHeightGap;\r\n\t\t\tif (heightSup > spaceBetweenShelves) {\r\n\t\t\t\theightSup = spaceBetweenShelves;\r\n\t\t\t}\r\n\t\t\tsetSizeBook(spaceBetweenShelves, shelfWidth, book, idealWidth, idealHeight, randomWidth, heightSup);\r\n\t\t\tint width = book.getWidth();\r\n\t\t\tint height = book.getHeight();\r\n\r\n\t\t\tif (placeLeftInShelf <= width) {\r\n\t\t\t\t// go to another shelf\r\n\t\t\t\tplaceLeftInShelf = shelfWidth;\r\n\t\t\t\tshelfNumber++;\r\n\t\t\t}\r\n\t\t\tint bookX = dimCanvasX - thiknessEdges - placeLeftInShelf;\r\n\t\t\tint bookY = shelfNumber * thiknessEdges + (shelfNumber - 1) * spaceBetweenShelves + spaceBetweenShelves\r\n\t\t\t\t\t- height;\r\n\t\t\tbookShape = new Rectangle(bookX, bookY, width, height);\r\n\t\t\tbookShapes.add(bookShape);\r\n\t\t\tcounterBooks--;\r\n\t\t\tif (counterBooks == 0) {\r\n\t\t\t\t// go to another shelf\r\n\t\t\t\tplaceLeftInShelf = shelfWidth;\r\n\t\t\t\tshelfNumber++;\r\n\t\t\t\tif (shelfNumber < library.getShelves().size()) {\r\n\t\t\t\t\tcounterBooks = library.getShelves().get(shelfNumber - 1).getBooks().size();\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tplaceLeftInShelf -= width;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tint indexShelf = 0;\r\n\t\tint indexBook = 0;\r\n\t\tplaceLeftInShelf = shelfWidth;\r\n\t\tfor (Shape bookShape : bookShapes) {\r\n\t\t\tdouble YOfTheShelf = shelves.get(indexShelf).getBounds().getY();\r\n\t\t\tboolean isLastBookOfTheShelf = (indexBook + 1)\r\n\t\t\t\t\t% library.getShelves().get(indexShelf).getBooks().size() == 0;\r\n\t\t\tint[] table = drawBook(randomGenerator, isLastBookOfTheShelf, bookShape,\r\n\t\t\t\t\tlibrary.getShelves().get(indexShelf).getBooks().get(indexBook), placeLeftInShelf, YOfTheShelf,\r\n\t\t\t\t\tleaning, bColor);\r\n\t\t\tlastColorIndex = table[2];\r\n\t\t\tint bookRotation = table[0];\r\n\t\t\tdouble bookX = bookShape.getBounds().getX();\r\n\t\t\tdouble bookY;\r\n\t\t\tif (isLastBookOfTheShelf) {\r\n\t\t\t\tbookY = table[1];\r\n\t\t\t} else {\r\n\t\t\t\tbookY = bookShape.getBounds().getY();\r\n\t\t\t}\r\n\t\t\tdouble bookHeight = bookShape.getBounds().getHeight();\r\n\t\t\tdouble bookWidth = bookShape.getBounds().getWidth();\r\n\t\t\tString bookTitle = library.getShelves().get(indexShelf).getBooks().get(indexBook).getTitle();\r\n\t\t\tString authorFirstName = library.getShelves().get(indexShelf).getBooks().get(indexBook).getAuthor()\r\n\t\t\t\t\t.getFirstName();\r\n\t\t\tString authorLastName = library.getShelves().get(indexShelf).getBooks().get(indexBook).getAuthor()\r\n\t\t\t\t\t.getLastName();\r\n\t\t\tint bookYear = library.getShelves().get(indexShelf).getBooks().get(indexBook).getYear();\r\n\t\t\tString bookString = bookTitle + \" - \" + authorFirstName + \" \" + authorLastName + \" - \" + bookYear;\r\n\t\t\tdrawTitle(bookRotation, bookString, bookShape, bookX, bookY, indexBook, bookHeight, bColor, bookWidth);\r\n\t\t\tif (isLastBookOfTheShelf) {\r\n\t\t\t\tindexShelf++;\r\n\t\t\t\tindexBook = 0;\r\n\t\t\t\tplaceLeftInShelf = shelfWidth;\r\n\t\t\t} else {\r\n\t\t\t\tindexBook++;\r\n\t\t\t\tplaceLeftInShelf -= bookShape.getBounds().getWidth();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public void draw() {\n \n // TODO\n }", "@Override\n public void run() {\n for (; ; ) {\n\n // increment score, speed and create rock counters\n incrementCounters();\n\n if (gameLevel > 24) {\n gameWon = true;\n } else {\n\n // check if we should create a new rock\n // (don't try to create rocks until we're drawn the screen)\n if (getWidth() > 0) {\n if (rockTimer >= rockInterval - gameLevel) {\n createRock();\n rockTimer = 0;\n }\n }\n\n // move all existing rocks in list\n for (RockView rock : rockList) {\n rock.dragTowards(touchPoint, touchWidth);\n }\n\n // check for rock collision with city -> end of game\n for (RockView rock : rockList) {\n if (isRockTouchingCity(rock)) {\n gameOver = true;\n }\n }\n\n // check for rock collision with ground -> delete rock\n CopyOnWriteArrayList<RockView> tmp1 = new CopyOnWriteArrayList<RockView>();\n Iterator<RockView> rockIterator = rockList.iterator();\n while (rockIterator.hasNext()) {\n RockView rock = rockIterator.next();\n if (isRockTouchingGround(rock)) {\n tmp1.add(rock);\n }\n }\n rockList.removeAll(tmp1);\n\n // check for rock collision with other rocks -> delete both rocks\n CopyOnWriteArrayList<RockView> tmp2 = new CopyOnWriteArrayList<RockView>();\n\n Iterator<RockView> rockIterator1 = rockList.iterator();\n while (rockIterator1.hasNext()) {\n RockView rock1 = rockIterator1.next();\n\n Iterator<RockView> rockIterator2 = rockList.iterator();\n while (rockIterator2.hasNext()) {\n RockView rock2 = rockIterator2.next();\n if (rock1 != rock2) {\n if (isRockTouchingRock(rock1, rock2)) {\n tmp2.add(rock1);\n // get 100 points for each rock you destroy\n score += 100;\n }\n }\n }\n }\n\n // remove rocks marked for destruction\n rockList.removeAll(tmp2);\n }\n\n //Call onDraw to redraw screen\n postInvalidate();\n\n // check if game is over or won, else sleep and then start loop over again\n if (gameOver || gameWon) {\n // pause for 7 seconds to display toast\n try {\n Thread.sleep(7000L); //milliseconds\n } catch (InterruptedException interruptedException) {\n }\n\n // reset game\n resetGame();\n } else {\n\n //Sleep for 1/10 of a second.\n try {\n Thread.sleep(100L); //milliseconds\n } catch (InterruptedException interruptedException) {\n }\n }\n }\n }", "private void drawImages() {\n\t\t\r\n\t}", "private static void draw() {\r\n\t\tclearDoc();\r\n\t\twrite(\"score: \" + score + \"\\n\", null);\r\n\t\twrite(\"+\", null);\r\n\t\tfor (int i = 0; i < COLUMNS; i++) {\r\n\t\t\twrite(\"-\", null);\r\n\t\t}\r\n\t\twrite(\"+\\n\", null);\r\n\t\tfor (int i = 0; i < ROWS; i++) {\r\n\t\t\twrite(\"|\", null);\r\n\t\t\tfor (int j = 0; j < COLUMNS; j++) {\r\n\t\t\t\tif (field[i][j] == SNAKE) {\r\n\t\t\t\t\twrite(\"S\", green);\r\n\t\t\t\t} else if (field[i][j] == APPLE) {\r\n\t\t\t\t\twrite(\"A\", red);\r\n\t\t\t\t} else if (field[i][j] == POISON) {\r\n\t\t\t\t\twrite(\"P\", magenta);\r\n\t\t\t\t} else if (field[i][j] == MOUSE) {\r\n\t\t\t\t\twrite(\"M\", grey);\r\n\t\t\t\t} else {\r\n\t\t\t\t\twrite(\"~\", null);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\twrite(\"|\\n\", null);\r\n\t\t}\r\n\t\twrite(\"+\", null);\r\n\t\tfor (int i = 0; i < COLUMNS; i++) {\r\n\t\t\twrite(\"-\", null);\r\n\t\t}\r\n\t\twrite(\"+\", null);\r\n\t\tframe.pack();\r\n\t}", "@Override\n\tpublic void draw(PGraphics g) {\n\t\t\n\t\tfor (BoosterHistory boosterHistory : boosterHistories) {\n\t\t\tboosterHistory.draw(g);\n\t\t}\n\t\t\n\t\tfor(String boosterName : labels.keySet()) {\n\t\t\tString labelText = labels.get(boosterName);\n\t\t\tthis.drawFlag(g, boosterName, labelText);\n\t\t}\n\t\t\n\t\tthis.drawSeparator(g);\n\t}", "public void printAll(){\n for (Triangle triangle : triangles) {\n System.out.println(triangle.toString());\n }\n for (Circle circle : circles) {\n System.out.println(circle.toString());\n }\n for (Rectangle rectangle : rectangles) {\n System.out.println(rectangle.toString());\n }\n }", "public void draw(float delta) {\n\t\tcanvas.clear();\n\t\tcanvas.begin();\n\t\tcw = canvas.getWidth();\n\t\tch = canvas.getHeight();\n\t\tfor (int i = -5; i < 5; i++) {\n\t\t\tfor (int j = -5; j < 5; j++) {\n\t\t\t\tcanvas.draw(getBackground(dayTime), Color.WHITE, cw*i * 2, ch*j * 2, cw * 2, ch * 2);\n\t\t\t\tif(dayTime == 0 || dayTime == 1){\n\t\t\t\t\tcanvas.draw(getBackground(dayTime + 1), levelAlpha, cw*i * 2, ch*j * 2, cw * 2, ch * 2);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcanvas.end();\n\t\tif (walls.size() > 0){ \n\t\t\tfor (ArrayList<Float> wall : walls) canvas.drawPath(wall);\n\t\t}\n\t\tcanvas.begin();\n\t\t//\t\tcanvas.draw(background, Color.WHITE, 0, 0, canvas.getWidth(), canvas.getHeight());\n\t\t//canvas.draw(rocks, Color.WHITE, 0, 0, canvas.getWidth(), canvas.getHeight());\n\t\t\n\t\t\n//\t\tfor (ArrayList<Float> wall : walls) canvas.drawPath(wall);\n\t\t\n\t\tfor(Obstacle obj : objects) {\n\t\t\tobj.draw(canvas);\n\t\t}\n\t\t\n\n\t\tfor (int i = -5; i < 5; i++) {\n\t\t\tfor (int j = -5; j < 5; j++) {\n\t\t\t\tcanvas.draw(overlay, referenceC, cw*i, ch*j, cw, ch);\n\t\t\t}\n\t\t}\n\n\t\tcanvas.end();\n\n\t\tif (debug) {\n\t\t\tcanvas.beginDebug();\n\t\t\tfor(Obstacle obj : objects) {\n\t\t\t\tobj.drawDebug(canvas);\n\t\t\t}\n\t\t\tcanvas.endDebug();\n\t\t}\n\n\n\n//\t\t// Final message\n//\t\tif (complete && !failed) {\n//\t\t\tdisplayFont.setColor(Color.BLACK);\n//\t\t\tcanvas.begin(); // DO NOT SCALE\n//\t\t\tcanvas.drawTextCentered(\"VICTORY!\", displayFont, 0.0f);\n//\t\t\tcanvas.end();\n//\t\t\tdisplayFont.setColor(Color.BLACK);\n//\t\t} else if (failed) {\n//\t\t\tdisplayFont.setColor(Color.RED);\n//\t\t\tcanvas.begin(); // DO NOT SCALE\n//\t\t\tcanvas.drawTextCentered(\"FAILURE!\", displayFont, 0.0f);\n//\t\t\tcanvas.end();\n//\t\t}\n\t}", "private static void draw(int r, int c) {\n StdDraw.setPenColor (openSite);\n StdDraw.filledSquare(2 * c * SQR_SIZE + SQR_SIZE, 2 * (N - r - 1) * SQR_SIZE + SQR_SIZE, SQR_SIZE);\n StdDraw.setPenColor(filledSite);\n for (int i = 0; i < N; i++)\n for (int j = 0; j < N; j++) {\n if (perc.isFull(i, j) && perc.isOpen(i, j)) {\n StdDraw.filledSquare(2 * j * SQR_SIZE + SQR_SIZE, 2 * (N - i - 1) * SQR_SIZE + SQR_SIZE, SQR_SIZE);\n }\n }\n }", "public void draw(Graphics g, Dimension winSize) {\n\t\t\n\t\tfor (int i = 0; i < dimensions.x; ++i) {\n\t\t\tfor (int j = 0; j < dimensions.y; ++j) {\n\t\t\t\tg.setColor(Color.getHSBColor(.5f, .5f, .5f));\n\t\t\t\tg.fillRect(i*Square.Size, j*Square.Size, Square.Size, Square.Size);\n\t\t\t\tg.setColor(Color.BLACK);\n\t\t\t\tg.drawRect(i*Square.Size, j*Square.Size, Square.Size, Square.Size);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Fill selected square\n\t\tg.setColor(Color.CYAN);\n\t\tRectangle r = highlightedSquare.getBoundingRect(); \n\t\tg.fill3DRect(r.x, r.y, r.width, r.height, true);\n\t\t\n\t\t// Draw pieces - delegated to square class\n\t\tfor (int i = 0; i < dimensions.x; ++i) {\n\t\t\tfor (int j = 0; j < dimensions.y; ++j) {\n\t\t\t\tboard[i][j].draw(g);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "protected abstract void drawGame();", "private void paintAllObjects()\n {\n for (int i = 0; i < allObjects.size(); i++)\n {\n JComponent c = (JComponent) allObjects.get(i);\n\n c.setBackground(backgroundColor);\n c.setForeground(foregroundColor);\n }\n }", "public void draw() {\n\t\t/* Clear Screen */\n\t\tGdx.graphics.getGL20().glClearColor(1,1,1,0);\n\t\tGdx.graphics.getGL20().glClear( GL20.GL_COLOR_BUFFER_BIT | GL20.GL_DEPTH_BUFFER_BIT );\n\n\t\t/* Iterate through draw list */\n\t\tIterator<ArrayList<Drawable>> iter = this.drawlist.iterator();\n\t\twhile(iter.hasNext()) {\n\t\t\tArrayList<Drawable> layer = iter.next();\n\t\t\t/* Sort the layer. */\n\t\t\tCollections.sort(layer, new DrawableComparator());\n\t\t\t/* Iterate through the layer. */\n\t\t\tIterator<Drawable> jter = layer.iterator();\n\t\t\twhile(jter.hasNext()) {\n\t\t\t\tDrawable drawable = jter.next();\n\t\t\t\tif (drawable.isDead()) {\n\t\t\t\t\tjter.remove(); //Remove if dead.\n\t\t\t\t}//fi\n\t\t\t\telse {\n\t\t\t\t\tdrawable.draw(this, this.scalar); //Draw the drawable.\n\t\t\t\t}//else\n\t\t\t}//elihw\n\t\t}//elihw\n\t}", "@Override\n\tpublic void draw(Canvas canvas) {\n\t\t\n\t\tif(!all) {\n\t\t\tsprite3.draw(canvas);\n\t\t}\n\t\telse {\n\t\tif (count%4 == 0) {\n\t\t\tsprite1.draw(canvas);\n\t\t}\n\t\telse {\n\t\t\tsprite2.draw(canvas);\n\t\t}\n\t\t++count;\n\t\t\n\t\tif (count==60) {\n\t\t\tcount=0;\n\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "public void draw(Graphics g) {\n\t\tfor (var f : flowers) {\n\t\t\tf.draw(g);\n\t\t}\n\t\t\n\t\t//loop through weeds; draw each\n\t\tfor (var w : weeds) {\n\t\t\tw.draw(g);\n\t\t}\n\t}", "public static void print_all() {\n for (int i = 0; i < roster.size(); i++)\n System.out.println(roster.get(i).print());\n\n System.out.println();\n }", "public void draw()\n\t{\n\t\tSystem.out.println(\" |-------------------------------|\");\n\t\t\n\t\tfor (int i = 0; i < board_size; i++)\n\t\t{\n\t\t\tSystem.out.print(board_size - i + \" |\");\n\t\t\t\n\t\t\tfor (int j = 0; j < board_size; j++)\n\t\t\t{\n\t\t\t\tif (getPiece(i,j) == null) {System.out.print(\" |\");}\n\t\t\t\telse {System.out.print(\" \" + getPiece(i,j).getSymbol().toChar() + \" |\");}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"\");\n\t\t\tSystem.out.println(\" |-------------------------------|\");\n\t\t}\n\t\t\n\t\tSystem.out.println(\" A B C D E F G H \\n\");\n\t}", "public void paint(Graphics g) {\n // Try-catch to prevent errors from being thrown, although they rarely if ever should be\n try {\n // Cast the simple Graphics object to a Graphics2D\n Graphics2D g2 = (Graphics2D) g;\n\n // Set up visibility ArrayList\n for(int i=0; i<buttonVisibilities.size(); i++) {\n buttonVisibilities.set(i, false);\n }\n\n // draw the poker table\n BufferedImage img = ImageIO.read(new File(GameLauncher.RESOURCE_ROOT+\"table.png\"));\n int tableWidth = (int)(getWidth()*0.8);\n int tableHeight = (int)(getHeight()*0.8);\n int tableX = (getWidth()-tableWidth)/2;\n int tableY = (getHeight()-tableHeight)/2;\n\n int margin=10;\n int optX=margin;\n int optY=getHeight()-50+margin;\n\n // Actually draw the image here\n g2.drawImage(img, tableX, tableY, tableWidth, tableHeight, null);\n\n // Calculate which spot the player should be located at\n // This is a fairly cool feature which prevents players from being bunched up at one end, and also\n // is implemented without any trigonometry, which I tend to avoid at all costs for these sorts of things :)\n int spotFactor=playerSpots.length/(game.getPlayerList().size());\n for(int i=0; i<game.getPlayerList().size(); i++) {\n // Get the player object\n // Player class provides a simple base class, but no instances actually are created directly\n // The only instances are those hiding under the child instances of RemotePlayer and LocalPlayer\n Player p=game.getPlayer(i);\n // If the player has lost the game or is out of the game, skip them\n if(p.hasLost()) continue;\n\n // Boolean for whether the player is the current better or not\n boolean isBetter=game.betterIndex==i;\n\n // If the current better is the local player (the one this instance of the program is controlling), then...\n if(p.getUUID().equals(GameLauncher.manager.mainPlayer.getUUID())&&isBetter&&game.gameStarted) {\n // Draw the fold button\n drawButton(\"Fold\", optX, optY, margin, g2);\n // Draw the call/check button\n if(game.currentBet!=0&&GameLauncher.manager.mainPlayer.getBet()!=game.currentBet) {\n drawButton(\"Call (\"+(game.currentBet-p.getBet())+\")\", optX+200, optY, margin, g2);\n }\n else {\n drawButton(\"Check\", optX+200, optY, margin, g2);\n }\n // Draw the raise button\n drawButton(\"Raise\", optX+400, optY, margin, g2);\n }\n\n // Calculate the current player's x-y position based on the non-trigonometric system implemented\n double[] currentPlayerSpot=playerSpots[i*spotFactor];\n int spotX=(int)(currentPlayerSpot[0]*getWidth());\n int spotY=(int)(currentPlayerSpot[1]*getHeight());\n\n // Calculate the base x and y position of the player's chips\n // Formatting is the way it is to help with editing inside IntelliJ\n int csX;\n int csY;\n if (currentPlayerSpot[0]>0.5) csX=spotX-CHIP_SPACE_X;\n else if(currentPlayerSpot[0]<0.5) csX=spotX+CHIP_SPACE_X;\n else csX=spotX;\n if (currentPlayerSpot[1]>0.5) csY=spotY-CHIP_SPACE_Y;\n else if(currentPlayerSpot[1]<0.5) csY=spotY+CHIP_SPACE_Y;\n else csY=spotY;\n Point chipSpot=new Point(csX, csY);\n // Draw the chips at the calculated position\n p.getChips().draw(chipSpot.x, chipSpot.y, (int)currentPlayerSpot[2], (int)currentPlayerSpot[3], g2);\n\n // Calculate the base card x and y position of the player's hand\n int cardSpotY=spotY;\n if (currentPlayerSpot[1]>=0.5) cardSpotY=spotY+CARD_SPACE_Y;\n else if(currentPlayerSpot[1]<0.5) cardSpotY=spotY-CARD_SPACE_Y;\n // Draw the player's hand at the calculated position\n if(!p.isFolded()) p.drawHand(spotX, cardSpotY, g2);\n\n // Calculate whether or not text should be added to the user's username\n // to show information about their role\n String addedText=\"\";\n if(p.isDealer()) addedText=\" (Dealer)\";\n if(p.getBlind()==1) addedText=\" (Little Blind)\";\n if(p.getBlind()==2) addedText=\" (Big Blind)\";\n if(p.isDealer()&&p.getBlind()==2) addedText=\" (Dealer & Big Blind)\";\n int playerFS=Font.PLAIN;\n // Make the current better's name bold\n if(isBetter&&game.gameStarted) {\n playerFS=Font.BOLD;\n }\n // Draw the calculated strings, as well as the username and the total number of chips the player has\n// drawCenteredString(p.getUsername()+addedText, spotX, spotY-10, new Font(\"Arial\", playerFS, 18), g2);\n String playerStr=p.getUsername()+addedText;\n drawCenteredString(playerStr, spotX, spotY-10, new Font(\"Arial\", playerFS, 18), g2);\n drawCenteredString(p.getChips().getTotal()+\" Chips\", spotX, spotY+10, STANDARD_FONT, g2);\n }\n // Draw server-wide variables\n // Draw current round\n if(game.gameStarted) {\n drawCenteredString(\"Round \"+game.roundCount, getWidth()/2, 30, new Font(\"Arial\", Font.PLAIN, 24), g2);\n }\n\n // Draw chip keys\n // This tells the user globally what each of the chips correspond to\n g2.drawRect(-1, CHIP_INDEX_BASE_Y-10, 100, 100);\n g2.drawImage(ChipBank.IMG_C100, 0, CHIP_INDEX_BASE_Y, ChipBank.CHIP_SIZE, ChipBank.CHIP_SIZE, null);\n g2.drawImage(ChipBank.IMG_C50, 0, CHIP_INDEX_BASE_Y+ChipBank.CHIP_SIZE, ChipBank.CHIP_SIZE, ChipBank.CHIP_SIZE, null);\n g2.drawImage(ChipBank.IMG_C25, 0, CHIP_INDEX_BASE_Y+ChipBank.CHIP_SIZE*2, ChipBank.CHIP_SIZE, ChipBank.CHIP_SIZE, null);\n g2.drawImage(ChipBank.IMG_C5, 0, CHIP_INDEX_BASE_Y+ChipBank.CHIP_SIZE*3, ChipBank.CHIP_SIZE, ChipBank.CHIP_SIZE, null);\n g2.drawImage(ChipBank.IMG_C1, 0, CHIP_INDEX_BASE_Y+ChipBank.CHIP_SIZE*4, ChipBank.CHIP_SIZE, ChipBank.CHIP_SIZE, null);\n g2.setFont(STANDARD_FONT);\n g2.drawString(\"= $100\", ChipBank.CHIP_SIZE, CHIP_INDEX_BASE_Y+ChipBank.CHIP_SIZE);\n g2.drawString(\"= $50\", ChipBank.CHIP_SIZE, CHIP_INDEX_BASE_Y+ChipBank.CHIP_SIZE*2);\n g2.drawString(\"= $25\", ChipBank.CHIP_SIZE, CHIP_INDEX_BASE_Y+ChipBank.CHIP_SIZE*3);\n g2.drawString(\"= $5\", ChipBank.CHIP_SIZE, CHIP_INDEX_BASE_Y+ChipBank.CHIP_SIZE*4);\n g2.drawString(\"= $1\", ChipBank.CHIP_SIZE, CHIP_INDEX_BASE_Y+ChipBank.CHIP_SIZE*5);\n\n // Draw the current bet\n g2.drawString(\"Current Bet: \"+game.currentBet, optX+getWidth()-200, optY+(getHeight()-optY)/2);\n\n // Draw the start game button\n if(!game.gameStarted) drawButton(\"Start Game\", 15, 15, margin, g2);\n\n // Calculate the drawn card's position\n int drawnX=getWidth()/2;\n int drawnY=getHeight()/2;\n // Draw a static hand at the calculated \"drawn\" position\n // This also draws outlines around the cards so it doesn't look like they haven't been flipped yet\n Player.drawUniversalHand(drawnX, drawnY, game.draw, true, g2);\n\n // Draws the divider for actions\n g2.setStroke(new BasicStroke(2));\n g2.drawLine(0, getHeight()-50, getWidth(), getHeight()-50);\n\n // Detects if the game is over or not\n if(game.gameOver) {\n // Get the winner's message\n String winnerUsername=\"\";\n for(Player p : game.players) {\n if(!p.hasLost()) {\n winnerUsername=p.getUsername();\n }\n }\n String winnerMessage=winnerUsername+\" wins!\";\n // If the local player won, then display \"You win!\"\n if(!GameLauncher.manager.mainPlayer.hasLost()) {\n winnerMessage=\"You win!\";\n }\n\n // Set the background\n g2.setPaint(new Color(255, 255, 255, (int)((gameOverCount/255.0)*220)));\n g2.fillRect(0, 0, getWidth(), getHeight());\n // Draw the win message\n g2.setPaint(new Color(64, 64, 64, gameOverCount));\n drawCenteredString(winnerMessage, getWidth() / 2, getHeight() / 2, new Font(\"Arial\", Font.PLAIN, 60), g2);\n // Increment the game counter to create animation\n if(gameOverCount<255-10) gameOverCount+=10;\n }\n\n // Dispose of the Graphics2D object to prevent memory leaks\n g2.dispose();\n }\n // Catch any error thrown. Most likely due to image failure\n catch(IOException e) {\n System.out.println(\"Unable to retrieve image\");\n }\n }", "public void draw() {\n for (Point2D point : pointSet) {\n point.draw();\n }\n }", "@Override\r\n public final void draw(final Rectangle r, final BufferedImage paper) {\n String red;\r\n String green;\r\n String blue;\r\n if (Integer.toHexString(r.getBorderColor().getRed()).length() == 1) {\r\n red = \"0\" + Integer.toHexString(r.getBorderColor().getRed());\r\n } else {\r\n red = Integer.toHexString(r.getBorderColor().getRed());\r\n }\r\n if (Integer.toHexString(r.getBorderColor().getGreen()).length() == 1) {\r\n green = \"0\" + Integer.toHexString(r.getBorderColor().getGreen());\r\n } else {\r\n green = Integer.toHexString(r.getBorderColor().getGreen());\r\n }\r\n if (Integer.toHexString(r.getBorderColor().getBlue()).length() == 1) {\r\n blue = \"0\" + Integer.toHexString(r.getBorderColor().getBlue());\r\n } else {\r\n blue = Integer.toHexString(r.getBorderColor().getBlue());\r\n }\r\n String color = \"#\" + red + green + blue;\r\n\r\n draw(new Line((String.valueOf(r.getxSus())), String.valueOf(r.getySus()),\r\n String.valueOf(r.getxSus() + r.getLungime() - 1), String.valueOf(r.getySus()),\r\n color, String.valueOf(r.getBorderColor().getAlpha()), paper), paper);\r\n\r\n draw(new Line((String.valueOf(r.getxSus() + r.getLungime() - 1)),\r\n String.valueOf(r.getySus()), String.valueOf(r.getxSus() + r.getLungime() - 1),\r\n String.valueOf(r.getySus() + r.getInaltime() - 1), color,\r\n String.valueOf(r.getBorderColor().getAlpha()), paper), paper);\r\n\r\n draw(new Line((String.valueOf(r.getxSus() + r.getLungime() - 1)),\r\n String.valueOf(r.getySus() + r.getInaltime() - 1), String.valueOf(r.getxSus()),\r\n String.valueOf(r.getySus() + r.getInaltime() - 1), color,\r\n String.valueOf(r.getBorderColor().getAlpha()), paper), paper);\r\n\r\n draw(new Line((String.valueOf(r.getxSus())),\r\n String.valueOf(r.getySus() + r.getInaltime() - 1), String.valueOf(r.getxSus()),\r\n String.valueOf(r.getySus()), color, String.valueOf(r.getBorderColor().getAlpha()),\r\n paper), paper);\r\n\r\n for (int i = r.getxSus() + 1; i < r.getxSus() + r.getLungime() - 1; i++) {\r\n for (int j = r.getySus() + 1; j < r.getySus() + r.getInaltime() - 1; j++) {\r\n if (checkBorder(i, j, paper)) {\r\n paper.setRGB(i, j, r.getFillColor().getRGB());\r\n }\r\n }\r\n }\r\n }", "public void checkMovedRedraw(){\n if((board.isTreasureCollected() || board.isKeyCollected()) && muteMusic == false){\n music.playAudio(\"PickupSound\");\n }\n renderer.redraw(board, boardCanvas.getWidth(), boardCanvas.getHeight());\n if(board.isChipAlive() == false){\n gamePaused = true;\n timeRuunableThread.setPause(gamePaused);\n if(muteMusic == false){\n music.stopPlayingAudio(\"All\");\n music.playAudio(\"LevelCompleteSound\");\n }\n musicName = \"LevelCompleteSound\";\n JOptionPane.showMessageDialog(null, \"Oops! Better luck next time!\", \"Failed\", 1);\n canLoadGame = false;\n } else if(board.isLevelFinished()){\n gamePaused = true;\n timeRuunableThread.setPause(gamePaused);\n if(muteMusic == false){\n music.stopPlayingAudio(\"All\");\n music.playAudio(\"LevelCompleteSound\");\n }\n musicName = \"LevelCompleteSound\";\n if(level == 1){\n int saveOrNot = JOptionPane.showConfirmDialog(null, \"congratulations! Level 1 passed! Go to next level?\", \"Confirm\", JOptionPane.YES_NO_OPTION);\n if (saveOrNot == 0) { // yes\n level = level + 1;\n newGameStart(level);\n } else {\n gamePaused = true;\n }\n }else if(level == 2){\n JOptionPane.showMessageDialog(null, \"congratulations! Level 2 passed!\", \"Win Level 2\", JOptionPane.INFORMATION_MESSAGE);\n }\n }else if(board.onInfoTile()){\n JOptionPane.showMessageDialog(null, readAllLines(), \"Information\", JOptionPane.INFORMATION_MESSAGE);\n }else{\n try {\n infoCanvas.drawChipsLeftNumber(board.getTreasureRemainingAmount());\n infoCanvas.drawKeysChipsPics();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n }", "public void draw() { \n\t\tbackground(255); // Clear the screen with a white background\n\t\tfill(0);\n\t\ttextAlign(LEFT);\n\t\ttextSize(12);\n\t\t\n\t\tif (runCount == 0) {\n\t\t\tboard.onClick();\n\t\t} else if (runCount > 0) {\n\t\t\trunCount--;\n\t\t}\n\t\t\n\t\tif (board != null) {\n\t\t\tboard.draw(this, 0, 0, height, height);\n\t\t}\n\t\t\n\t}" ]
[ "0.6672406", "0.6007921", "0.59684086", "0.596722", "0.59524417", "0.5853097", "0.5848082", "0.5848082", "0.5848082", "0.5829672", "0.5814169", "0.5806981", "0.57920134", "0.5792004", "0.5779072", "0.5772863", "0.57700974", "0.5738784", "0.57339257", "0.5723601", "0.5699673", "0.56972647", "0.5684874", "0.56839055", "0.5671877", "0.5630579", "0.5622621", "0.56060696", "0.5596304", "0.5594347", "0.55880624", "0.5587228", "0.5574736", "0.5561379", "0.5560629", "0.55558467", "0.55550855", "0.5542175", "0.5538641", "0.5537206", "0.55132866", "0.55103195", "0.550203", "0.5495833", "0.5493877", "0.54898876", "0.5476041", "0.5462538", "0.5460638", "0.5460415", "0.5459611", "0.5449888", "0.5441588", "0.5437364", "0.54327863", "0.54179895", "0.54024357", "0.54011065", "0.5395984", "0.53909874", "0.5389625", "0.5389279", "0.5385441", "0.5374602", "0.5370535", "0.5369018", "0.5368832", "0.53659767", "0.53650975", "0.5363615", "0.53622067", "0.5360621", "0.53605056", "0.53598654", "0.535137", "0.5350459", "0.5347697", "0.53475827", "0.53459483", "0.53441495", "0.53396297", "0.5333867", "0.53264874", "0.53260934", "0.5319887", "0.53196394", "0.5317092", "0.53136855", "0.5306011", "0.53041184", "0.5303526", "0.530331", "0.5296687", "0.52852404", "0.5284748", "0.52832127", "0.5283003", "0.5282275", "0.5277645", "0.526995" ]
0.6645986
1
update je player TEMP: player movement limited to screen bounds
@Override public void update(){ if(right && !left) { if(player1.getX() < cm.getGameStateManager().getWidth() - player1.getBounds().getWidth()) player1.setX(player1.getX()+8); } if(!right && left) { if(player1.getX() > 0) player1.setX(player1.getX()-8); } checkBarrelBounds(); try{ checkPlayerCollision(); refreshData(); }catch(IOException e){ System.err.println("no connection with server"); } player1.update(); player2.update(); playerIndication.update(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void update() {\n\t\t\n\t\t//System.out.println(this.observer);\n\t\t\n\t\tif(this.isCollidable == false){\n\t\t\tthis.x = -500;\n\t\t\tthis.y = -500;\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (this.life < this.maxLife && !this.isDead()){\n\t\t\t\n\t\t\tif(recovery >= 1){\n\t\t\t\tthis.setLife(this.life + 1);\n\t\t\t\trecovery = 0;\n\t\t\t}\n\t\t\t\n\t\t\trecovery += 0.01;\n\t\t}\n\t\t\n\t\tsuper.update();\n\t\t\n\t\t//Shield movement\n\t\tInteger horizontalCorrection = (this.width - player.width)/2;\n\t\tInteger verticalCorrection = (this.height - player.height)/2;\n\n\t\t//Adjusting position player with force shield\n\t\tthis.x = player.x - horizontalCorrection;\n\t\tthis.y = player.y - verticalCorrection;\n\t}", "public void update() {\n\t\tint xa = 0, ya = 0; \n\t\tif(game.getPlayer().x < 0){\n\t\t\txa -= 2;\n\t\t}else if(game.getPlayer().x + 32 > game.getScreen().width){\n\t\t\txa += 2;\n\t\t}\n\t\tif(game.getPlayer().y < 0){\n\t\t\tya -= 2;\n\t\t}else if(game.getPlayer().y + 32 > game.getScreen().height){\n\t\t\tya +=2;\n\t\t}\n\t\t\n\t\tif (xa != 0 || ya!= 0) move(xa, ya);\n\t\t\n\t\t//detects if the mouse is clicking on the interface\n\t\t/*if(Mouse.getButton() == 1 && Mouse.getX() >= 0 && Mouse.getX() <= 1200 && Mouse.getY() > 525 && Mouse.getY() < 675) {\n\t\t\tclicked = true;\n\t\t} else {\n\t\t\tclicked = false;\n\t\t}*/\n\t\t\n\t\treturn;\n\t}", "void playerPositionChanged(Player player);", "@Override\r\n\tpublic void updateScreen() {\r\n\t\tsuper.updateScreen();\r\n\t\t_resolutionResolver = new ScaledResolution(Minecraft.getMinecraft(), Minecraft.getMinecraft().displayWidth, Minecraft.getMinecraft().displayHeight);\r\n\t\tthis.width = _resolutionResolver.getScaledWidth();\r\n\t\tthis.height = _resolutionResolver.getScaledHeight();\r\n\r\n\t\t// Handle when the player clicked on a cell\r\n\t\tif (_selectedCell != -1) {\r\n\t\t \r\n\t\t\t// make sure we have our player or otherwise we will\r\n\t\t // not be able to set the correct position for the player\r\n\t\t\tif (HubbyUtils.getServerPlayer() != null) {\r\n\t\t\t\tint cellIndex = _startCell + _selectedCell;\r\n\t\t\t\tif (cellIndex < UltraTeleportWaypoint.getWaypointCount()) {\r\n\t\t\t\t UltraTeleportWaypoint p = UltraTeleportWaypoint.getWaypoints().get(cellIndex);\r\n\t\t\t\t double posX = p.getPos().getX();\r\n\t\t\t\t double posY = p.getPos().getY();\r\n\t\t\t\t double posZ = p.getPos().getZ();\r\n\t\t\t\t float yaw = p.getRotationY();\r\n\t\t\t\t float pitch = p.getRotationX();\r\n\r\n\t\t\t\t // Get the client world to be able to find the proper block for teleporting\r\n\t\t\t\t World world = HubbyUtils.getClientWorld();\r\n\t\t\t\t if (world != null) {\r\n\t\t\t\t while (true) {\r\n\t\t\t\t \tBlockPos pos = new BlockPos(posX, posY, posZ);\r\n\t\t\t\t if (world.isAirBlock(pos)) {\r\n\t\t\t\t break;\r\n\t\t\t\t }\r\n\t\t\t\t posY += 1.0d;\r\n\t\t\t\t }\r\n\t\t\t\t }\r\n\r\n\t\t\t\t // Update the player's location on the server and then\r\n\t\t\t\t // that will pass down to the client player and update his\r\n\t\t\t\t // position as well\r\n\t\t\t\t HubbyUtils.getServerPlayer().playerNetServerHandler.setPlayerLocation(posX, posY, posZ, yaw, pitch);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t_selectedCell = -1;\r\n\t\t}\r\n\r\n\t\t// update selected list\r\n for (int i = 0; i < UltraTeleportWaypoint.getWaypointCount(); ++i) {\r\n if (i >= _selectedList.size()) {\r\n _selectedList.add(false);\r\n }\r\n }\r\n\r\n // Only show delete button when we have something selected\r\n if (getSelectedCount() > 0) {\r\n this.buttonList.add(_deleteButton);\r\n }\r\n else {\r\n this.buttonList.clear();\r\n }\r\n\t}", "void updatePosition() {\n\t\t\n\t\tcoords.x = body.getPosition().x*Simulation.meterToPixel;\n\t\tcoords.y = body.getPosition().y*Simulation.meterToPixel;\n\t\tspeed.x = body.m_linearVelocity.x;\n\t\tspeed.y = body.m_linearVelocity.y;\n\t}", "public void updatePlayer() {\n if(this.hasCam) {\n this.camDir.set(cam.getDirection()).multLocal(0.3f);\n this.camLeft.set(cam.getLeft()).multLocal(0.2f);\n //initialize the walkDirection value so it can be recalculated\n walkDirection.set(0,0,0);\n if (this.left) {\n this.walkDirection.addLocal(this.camLeft);\n }\n if (this.right) {\n this.walkDirection.addLocal(this.camLeft.negate());\n }\n if (this.up) {\n this.walkDirection.addLocal(this.camDir);\n }\n if (this.down) {\n this.walkDirection.addLocal(this.camDir.negate());\n }\n this.mobControl.setWalkDirection(this.walkDirection);\n //player.get\n cam.setLocation(this.mobControl.getPhysicsLocation().add(0,1.5f,0));\n this.setRootPos(this.mobControl.getPhysicsLocation().add(0,-0.75f,0));\n this.setRootRot(this.camDir, this.camLeft);\n }\n // If the actor control does not have ownership of cam, do nothing\n }", "public void update() {\n\t\tVec2 newPos = calculatePos();\n\t\t/* energy bar */\n\t\tfloat newEnergy = actor.getEnergy();\n\t\tfloat maxEnergy = actor.getEnergyLimit();\n\t\tenergy.setPosition(newPos.getX(), newPos.getY() + paddingHealth / Application.s_Viewport.getX(), newEnergy,\n\t\t\t\tmaxEnergy);\n\t\t/* health bar */\n\t\tfloat newHealth = actor.getHealth();\n\t\tfloat maxHealth = actor.getHealthLimit();\n\t\thealth.setPosition(newPos.getX(), newPos.getY() + paddingEnergy / Application.s_Viewport.getX(), newHealth,\n\t\t\t\tmaxHealth);\n\t\t/* name label */\n\t\tplayerName.setPosition(newPos.getX(), newPos.getY() + paddingName / Application.s_Viewport.getY());\n\t}", "@Override\n\tpublic void update() \n\t{\n\t\tPoint loc = getLocationCopy();\n\t\tEnemy c = game.findNearestEnemy(loc);\n\t\tif (c == null)\n\t\t\treturn;\n\t\t\n\t\tif(c.getLocation().distance(loc) < 100 && game.getFrameCount() % 30 == 0)\n\t\t{\n\t\t\tFlyingSalt s = new FlyingSalt(game, loc, \n\t\t\t\t\t\t\t\t\tc.getLocation().x - position.x,\n\t\t\t\t\t\t\t\t\tc.getLocation().y - position.y);\n\t\t\tgame.addAnimatable(s);\n\t\t}\n\t}", "public void update(Player player) {\n\t\t\n\t}", "public void update(){\n\t\tupdatePlayerPosition();\n\t\thandleCollisions();\n\t}", "@Override\n protected void update(Engine engine) {\n\t\trs = (GL4RenderSystem) engine.getRenderSystem();\n\t\t\n\t\telapsTime += engine.getElapsedTimeMillis();\n\t\telapsTimeSec = Math.round(elapsTime/1000.0f);\n\t\telapsTimeStr = Integer.toString(elapsTimeSec);\n\t\t\n\t\t//player.update(elapsTimeSec);\n\t\tSceneNode dragon = engine.getSceneManager().getSceneNode(\"dragonNPCNode\");\n\t\t\n\t\tdIter++;\n\t\t//if(dIter == 200)\n\t\t//{\n\t\t\t//dir = dir*-1;\n\t\t\t//dIter = 0;\n\t\t//}\n\t\tif(dIter <= 200)\n\t\tdragon.moveBackward(dir);\n\t\t\n\t\tif(dIter > 200 && dIter <= 400 )\n\t\t\tdragon.moveLeft(dir);\n\t\t\n\t\tif(dIter > 400 && dIter <= 600 )\n\t\t\tdragon.moveForward(dir);\n\t\t\n\t\tif(dIter > 600 && dIter <= 800 )\n\t\t\tdragon.moveRight(dir);\n\t\t\n\t\tif(dIter == 800 )\n\t\t\tdIter = 0;\n\t\t//SkeletalEntity dragonSE =\n\t\t\t\t//(SkeletalEntity) engine.getSceneManager().getEntity(\"dragonSkeleton\");\n\t\t//dragonSE.update();\n\t\t\n\t\tfloat time = engine.getElapsedTimeMillis();\n\t\t\n\t\tfloat playerFloat[] = player.getNode().getLocalTransform().toFloatArray();\n\t\t//playerFloat[7] = player.getNode().getLocalPosition().y();\n\t\tdouble playerMat[] = toDoubleArray(playerFloat);\n\t\tMatrix4 mat3;\n\t\tmat3 = Matrix4f.createFrom(toFloatArray(player.getNode().getPhysicsObject().getTransform()));\n\t\t//player.getNode().setLocalPosition(playerFloat[3],mat3.value(1,3), playerFloat[11]);\n\t\t//double playerMat[] = toDoubleArray(player.getNode().getLocalTransform().toFloatArray());\n\t\tplayerFloat = player.getNode().getLocalTransform().toFloatArray();\n\t\t//playerFloat[7] = player.getNode().getLocalPosition().y();\n\t\tplayerFloat[7] = mat3.value(1,3);//set y coordinate to physics world\n\t\tplayerMat = toDoubleArray(playerFloat);\n\t\tSystem.out.println(\"player.getNode().getLocalTransform(): \" + player.getNode().getLocalTransform());\n\t player.getNode().getPhysicsObject().setTransform(playerMat);\n\t \n\t player.update(elapsTimeSec);\n\t SkeletalEntity manSE =\n \t\t(SkeletalEntity) engine.getSceneManager().getEntity(\"knightSkeleton\");\n \t\tmanSE.update();\n\n\t \n\t\tif (running)\n\t\t{ \n\t\t\tMatrix4 mat;\n\t\t\tphysicsEng.update(time);\n\t\t\tfor (SceneNode s : engine.getSceneManager().getSceneNodes())\n\t\t\t{ \n\t\t\t\t//if (s.getPhysicsObject() != null && s.getName() != player.getNode().getName())\n\t\t\t\t//if (s.getPhysicsObject() != null /*&& s.getName() != player.getNode().getName()*/)\n\t\t\t\t{ \n\t\t\t\t\tmat = Matrix4f.createFrom(toFloatArray(s.getPhysicsObject().getTransform()));\n\t\t\t\t\ts.setLocalPosition(mat.value(0,3),mat.value(1,3), mat.value(2,3));\n\t\t\t\t} \n\t\t\t} \n\t\t}\n\n\t\tdispStr=\"Time = \" + elapsTimeStr + \" Score: \"+player.getScore();\n\t\trs.setHUD(dispStr, 15, 15);\n\t\tif(player.isBoostActive()) dispStr+=\" Boost Active!\";\n\t\tim.update(elapsTime);\n\t\tprocessNetworking(elapsTime);\n\t\t\n\t\tcheckForCollisions();\n\t\t//player.update(elapsTimeSec);\n\t\tSystem.out.println(\"ball transform: \" + ball2Node.getLocalTransform() );\n\t\tSystem.out.println(\"ball physycs object transform: \" + ball2Node.getPhysicsObject().getTransform()[0] + ',' \n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[1] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[2] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[3] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[4] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[5] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[6] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[7] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[8] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[9] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[10] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[11] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[12] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[13] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[14] + ','\n\t\t\t\t+ ball2Node.getPhysicsObject().getTransform()[15] + ',');\n\t\tSystem.out.println(\"ball linear velocity: \" + ball2Node.getPhysicsObject().getLinearVelocity());\n\t\tif(distanceTo(player.getNode().getLocalPosition(),ball2Node.getLocalPosition()) <= 4)\n\t\t{\n\t\t\tball2Node.setLocalPosition(0,10,0);\n\t\t\tfloat velocityArray[] = { 0, 5, 0};\n\t\t\tball2Node.getPhysicsObject().setLinearVelocity(velocityArray);\n\t\t\tfloat floTemp[] = ball2Node.getLocalTransform().toFloatArray();\n\t\t\tdouble dubTemp[] = {(double)floTemp[0], (double)floTemp[1], (double)floTemp[2], (double)floTemp[3], (double)floTemp[4],\n\t\t\t\t\t(double)floTemp[5],(double)floTemp[6],(double)floTemp[7], (double)floTemp[8], (double)floTemp[9], (double)floTemp[10], (double)floTemp[11]\n\t\t\t\t\t\t\t, (double)floTemp[12], (double)floTemp[13], (double)floTemp[14], (double)floTemp[15] };\n\t\t\t\n\t\t\tdouble dubTemp2[] = toDoubleArray(floTemp);\n\n\n\t\t\t Matrix4 mat2;\n\t\t\tball2Node.getPhysicsObject().setTransform(dubTemp2);\n\t\t\t\n\t\t\t//mat2 = Matrix4f.createFrom(toDoubleArray( ball2Node.getLocalTransform().toFloatArray()))\n\t\t\t//ball2Node.getPhysicsObject().setTransform(dubTemp2);\n\t\t\t//ball2Node.setPhysicsObject(ball2PhysObj);\n\t\t\t//ball2Node.getPhysicsObject().getTransform().\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t//player.playWalkAnimation();\n\t\t\n\t\t\n\t\t\n\t\t/*ball2Node.getPhysicsObject().setTransform(ball2Node.getLocalTransform());\n\t\t//ball2PhysObj.set\n\t\tphysicsEng.\n\t\ttemptf = toDoubleArray(ball1Node.getLocalTransform().toFloatArray());\n \tball1PhysObj = physicsEng.addSphereObject(physicsEng.nextUID(),\n \tmass, temptf, 2.0f);\n \tball1PhysObj.setBounciness(1.0f);\n \tball1Node.setPhysicsObject(ball1PhysObj);*/\n\t\t\n\t\t/* check if player jumped*/\n\t\t\n\t}", "@Override\r\n public void updateMixer() {\n playerPosition = mixer.getGlobalCoordinates();\r\n }", "public void updateGameWorld() {\r\n\t\t//divide the user entered height by the height of the canvas to get a ratio\r\n\t\tfloat canvas_height = Window.getCanvas().getHeight();\r\n\t\tfloat new_height = EnvironmentVariables.getHeight();\r\n\t\tfloat ratio = new_height / canvas_height;\r\n\t\t\r\n\t\t//use this ration th=o set the new meter value\r\n\t\tEnvironmentVariables.setMeter(EnvironmentVariables.getMeter() * ratio);\r\n\t\t\r\n\t\t//use the ratio to set all objects new location\r\n\t\tfor(GameObject obj: EnvironmentVariables.getWorldObjects()) {\r\n\t\t\tobj.setX(obj.getX() * ratio);\r\n\t\t\tobj.setY(obj.getY() * ratio);\r\n\t\t}\r\n\t\t\r\n\t\tfor(GameObject obj: EnvironmentVariables.getTerrain()) {\r\n\t\t\tobj.setX(obj.getX() * ratio);\r\n\t\t\tobj.setY(obj.getY() * ratio);\r\n\t\t}\r\n\t\t\r\n\t\tif(EnvironmentVariables.getMainPlayer() != null) {\r\n\t\t\tEnvironmentVariables.getMainPlayer().setX(EnvironmentVariables.getMainPlayer().getX() * ratio);\r\n\t\t\tEnvironmentVariables.getMainPlayer().setY(EnvironmentVariables.getMainPlayer().getY() * ratio);\r\n\t\t}\r\n\t\t\r\n\t}", "public abstract void changePlayerAt(ShortPoint2D pos, Player player);", "public void update() {\n MouseWrapper mouseWrapper = Engine.get().getMouseWrapper();\n bufferBuffer.clear();\n if (\n Engine.get().getEngineState() == Engine.EngineState.PLAY ||\n Engine.get().getEngineState() == Engine.EngineState.PAUSE\n ) {\n VectorD mousePos = new VectorD(\n mouseWrapper.getX(),\n mouseWrapper.getY()\n );\n VectorD difference = mousePos.diff(\n Engine.get().getGameState().getCursorFollow()\n );\n if (difference.length() > Constants.MOUSE_FOLLOW_CUTOFF) {\n difference =\n difference.multiplicate(Constants.MOUSE_FOLLOW_MULTIPLIER);\n }\n Engine\n .get()\n .getGameState()\n .setCursorFollow(\n Engine\n .get()\n .getGameState()\n .getCursorFollow()\n .sum(difference)\n );\n\n Entity player = EntityUtil.getPlayer(\n Engine.get().getEntityStream()\n );\n TransformationStorage playerPos = (TransformationStorage) player.getComponent(\n SpaxelComponent.TRANSFORMATION\n );\n\n Engine\n .get()\n .getGameState()\n .setScreenOffset(calculateScreenOffset(playerPos));\n }\n renderEntities();\n\n Engine.get().getCurrentUI().render(bufferBuffer);\n\n master.render(bufferBuffer);\n }", "public void updatePlayerLocation() {requires new property on gamestate object\n //\n }", "public void update() {\n\t\tgetLocation().offsetX(getDirection().getXOffset());\n\t\tgetLocation().offsetY(getDirection().getYOffset());\n\t\t\n\t\tChunk center = World.getMap().getCenterChunk();\n\t\t\n\t\tint localX = (int) (getLocation().getX() - center.getData().getRealX());\n\t\tint localY = (int) (getLocation().getY() - center.getData().getRealY());\n\t\t\n\t\tif(localX < 0 ||localY< 0\n\t\t\t|| localX > 256 || localY > 256) {\n\t\t\t\tWorld.getMap().load(getLocation());\n\t\t}\n\t}", "private void setMapPos()\r\n {\r\n try\r\n {\r\n Thread.sleep(1000);//so that you can see players move\r\n }\r\n catch(Exception e){}\r\n int currentPlayer = worldPanel.getCurrentPlayer();\r\n int currentUnit = worldPanel.getCurrentUnit();\r\n int unitPos = 0;\r\n int firstX = 0;\r\n int firstY = 0;\r\n if (currentPlayer == 1)\r\n {\r\n unitPos = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n }\r\n if (currentPlayer == 2)\r\n {\r\n unitPos = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n }\r\n int tempX = unitPos % mapWidth;\r\n int tempY = unitPos - tempX;\r\n if (tempY == 0) {}\r\n else\r\n tempY = tempY / mapHeight;\r\n tempX = tempX - 11;\r\n tempY = tempY - 7;\r\n if (tempX >= 0)\r\n firstX = tempX;\r\n else\r\n firstX = tempX + mapWidth;\r\n if (tempY >= 0)\r\n firstY = tempY;\r\n else\r\n firstY = tempY + mapWidth;\r\n\r\n int drawWidth = worldPanel.getDrawWidth();\r\n int drawHeight = worldPanel.getDrawHeight();\r\n worldPanel.setNewXYPos(firstX, firstY);\r\n miniMap.setNewXY(firstX, firstY, drawWidth, drawHeight);\r\n }", "void updatePlayer(Player player);", "@Override\n\tpublic void update() {\n\t\tposX -= ninja.getSpeedX();\n\t\t\n\t}", "@Override\n public void simpleUpdate(float tpf) {\n moveCamera(tpf);\n updateEnemies(tpf);\n updatePlayer();\n }", "public void update()\r\n {\n for (MapObject mo : gameData.getMap().getObjects())\r\n {\r\n mo.getAI().advance();\r\n }\r\n \r\n // update the UI\r\n for (UIElement uiEl : ui.getUIElements())\r\n {\r\n uiEl.update();\r\n }\r\n\r\n // Move the map objects\r\n movHandler.moveObjects();\r\n\r\n // Refresh the screen position\r\n Player player = gameData.getPlayer();\r\n this.centerScreen((int) player.getX() + Tile.TILESIZE / 2, (int) player.getY() + Tile.TILESIZE / 2);\r\n }", "void updateScreen() {\n\t\tZone possibleNewZone = currentZone.getSpace(playerY, playerX).getNextZone();\n\t\tif (possibleNewZone != null) {\n\t\t\tString oldBGMusic = currentZone.getBackgroundMusic();\n\t\t\tcurrentZone = possibleNewZone;\n\t\t\tcurrentZone.enableZoneWarpSpaces();\n\t\t\tplayerX = currentZone.getPlayerStartX();\n\t\t\tplayerY = currentZone.getPlayerStartY();\n\t\t\t\n\n\t\t\tif (!oldBGMusic.equals(currentZone.getBackgroundMusic())) {\n\t\t\t\tmusicPlayer.stop();\n\t\t\t\tmusicPlayer.play(currentZone.getBackgroundMusic(), 100);\n\t\t\t}\n\t\t}\n\n\t\t// Update Panel Colors\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tfor (int a = 0; a < 10; a++) {\n\t\t\t\tpanels[i][a].setBackground(currentZone.getSpace(i, a).getColor());\n\t\t\t}\n\t\t}\n\n\t\t// Update Labels\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tfor (int a = 0; a < 10; a++) {\n\n\t\t\t\tlabels[i][a].setIcon(currentZone.getSpace(i, a).getPic());\n\t\t\t}\n\t\t}\n\t\t// Shows player in the new space\n\t\tlabels[playerY][playerX].setIcon(playerPic);\n\n\t\t// Shows enemy in the new space\n\t\t// labels[enemyY][enemyX].setIcon(enemyPic);\n\t}", "abstract void updatePlayer();", "@Override\n\tpublic void updatePlayer(Joueur joueur) {\n\t\t\n\t}", "public void updatePlayer(Player player) {\n\t\t// update the flag GO TO JAIL in Player class\n\t}", "public void setPlayerPosition(Player player) {\n if (player.getPositionX() < 0 && (player.getPositionY() > screenHeight / 2 - doorSize && player.getPositionY() < screenHeight / 2 + doorSize)) {\n //left exit to right entry\n player.position.x = screenWidth - wallSize - player.getRadius();\n player.position.y = player.getPositionY();\n } else if ((player.getPositionX() > screenWidth / 2 - doorSize && player.getPositionX() < screenWidth / 2 + doorSize) && player.getPositionY() < 0) {\n //top exit to bottom entry\n player.position.x = player.getPositionX();\n player.position.y = screenHeight - wallSize - player.getRadius();\n } else if (player.getPositionX() > screenWidth && (player.getPositionY() > screenHeight / 2 - doorSize && player.getPositionY() < screenHeight / 2 + doorSize)) {\n //right exit to left entry\n player.position.x = wallSize + player.getRadius();\n player.position.y = player.getPositionY();\n } else {\n //bottom exit to top entry\n player.position.x = player.getPositionX();\n player.position.y = wallSize + player.getRadius();\n }\n }", "@Override\n public void update(){\n getNextPosition();\n checkTileMapCollision();\n setPosition(xtemp, ytemp);\n animation.update();\n }", "private void movePlayer() {\r\n\t\tshipImageView.setX(ship.getCurrentLocation().x * scalingFactor);\r\n\t\tshipImageView.setY(ship.getCurrentLocation().y * scalingFactor);\r\n\t\tship.notifyObservers();\r\n\t}", "@Override\n\tpublic void update() {\n\n\t\ttimer++;\n\t\tupdatePlayer();\n\t\tupdateScreen();\n\t\tupdateLives();\n\n\t}", "public void onUpdate()\n {\n this.prevPosX = this.posX;\n this.prevPosY = this.posY;\n this.prevPosZ = this.posZ;\n this.motionX = 0.0D;\n this.motionY = 0.0D;\n this.motionZ = 0.0D;\n this.onGround = false;\n\n if (this.wallPos != null)\n {\n this.xPosition = this.wallPos[0];\n this.yPosition = this.wallPos[1];\n this.zPosition = this.wallPos[2];\n\n if (!this.onValidSurface() && !this.isDead)\n {\n this.entityDropItem(this.mapStack, 0.0F);\n this.setDead();\n }\n }\n\n ++this.updateCount;\n\n if (this.updateCount > 400)\n {\n this.updateCount = 0;\n mod_HangableMaps.instance.sendMapIDPacket(this);\n }\n }", "private synchronized void updatePlayer(float deltaTime, float accelX, boolean touchDown) {\n\t\t\t\n\t\t\ttry {\n\t\t\tplayer.velocity.x = (float) (-accelX / 9.8 * Player.PLAYER_MOVE_VELOCITY);\n\t\t\t} catch(Exception e) {}\n\n\t\t\t\n\t\t\tif(touchDown) {\n\t\t\t\tplayer.velocity.y += Player.PLAYER_FLY_VELOCITY;\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tif(player.velocity.y > 7) {\n\t\t\t\t\tplayer.velocity.y = 7;\n\t\t\t\t} else if(player.velocity.y < -7) {\n\t\t\t\t\tplayer.velocity.y = -7;\n\t\t\t\t}\n\t\t\t\n\t\t\t\tplayer.update(deltaTime);\n\t\t\t} catch(Exception e) {}\n\t}", "@Override\n\tpublic void update() {\n\t\tthis.setBounds(obstacle.getCoords().getX() * 64, obstacle.getCoords().getY() * 64, 64, 64);\n\t}", "protected void updatePosition() {\n\t\tif(motion == null) {\n\t\t\tmotion = new Motion3D(player, true);\n\t\t} else motion.update(player, true);\n\t\t\n\t\tmotion.applyToEntity(this);\n\t\tthis.rotationPitch = player.rotationPitch;\n\t\tthis.rotationYaw = player.rotationYaw;\n\t}", "public void update() {\n if (!outOfBounds()) {\n super.move(dirVec.mul(ShadowDefend.getTimescale() * speed));\n }\n super.update();\n }", "public void update(){\n\t\tx+=xspeed; \n\t\ty+=yspeed;\t\n\t}", "private void tempoUp()\n {\n MyWorld world = (MyWorld) getWorld();\n if(Greenfoot.mouseClicked(this))\n {\n world.increaseTempo(); \n }\n }", "public void update() {\n\t\tif (screen.scale != newScale) \n\t\t\tscreen = new Screen(Game.width/newScale, Game.height/newScale, newScale);\n\t\t\n\t\tif (screen.width != Game.width || screen.height != Game.height) {\n\t\t\t\n\t\t\tscreen = new Screen(Game.width/newScale, Game.height/newScale, newScale);\n\t\t}\n\t\t\n\t\tfor (Terrain t : terrainObjs) {\n\t\t\tt.update();\n\t\t}\n\t\t\n\t\tif (backgroundMain != null) {\n\t\t\tbackgroundMain.update();\n\t\t}\n\t\t\n\t\txPos += xMoving;\n\t\tyPos += yMoving;\n\t}", "public void update(){\n posX += velX;\n posY += velY;\n }", "public Player updatePlayer(Player player);", "public void update() {\n\t\tfinal StarSystem oldLocation = getPlayer().getLocation();\n\t\tfinal StarSystem newLocation = getChart().getSelected();\n\t\tgetPlayer().setLocation(newLocation);\n\t\tgetPlayer().setFuel(-oldLocation.distanceToStarSystem(newLocation));\n\t\tgetChart().setSelected(null);\n\t\tgetChart().repaint();\n\t\tplanetLbl.setText(\"Current Location: \" + player.getLocation().getName()\n\t\t\t\t+ \"....Tech Level: \" + player.getLocation().getTechLevel());\n\n\t}", "public void update() {\n\t\tif (MainClass.getPlayer().isJumping()) {\n\t\t\tcurrentImage = characterJumped;\n\t\t} else if(Math.abs(MainClass.getPlayer().getSpeedY()) > Player.getFallspeed() ) {\n\t\t\tcurrentImage = characterJumped;\n\t\t} else if(MainClass.getPlayer().isCovered() == true) {\n\t\t\tcurrentImage = characterCover;\n\t\t} else if(MainClass.getPlayer().isJumping() == false && MainClass.getPlayer().isCovered() == false) {\n\t\t\tcurrentImage = super.getCurrentImage();\n\t\t}\n\t\tthis.update(25);\n\t\n\t}", "public void updateInformation() {\r\n onFirstCycle = false;\r\n lastLocation = player.getLocation();\r\n preparedAppearance = false;\r\n }", "public void move() {\n float xpos = thing.getX(), ypos = thing.getY();\n int xdir = 0, ydir = 0;\n if (left) xdir -= SPEED; if (right) xdir += SPEED;\n if (up) ydir -= SPEED; if (down) ydir += SPEED;\n xpos += xdir; ypos += ydir;\n\n VeggieCopter game = thing.getGame();\n int w = game.getWindowWidth(), h = game.getWindowHeight();\n int width = thing.getWidth(), height = thing.getHeight();\n if (xpos < 1) xpos = 1; if (xpos + width >= w) xpos = w - width - 1;\n if (ypos < 1) ypos = 1; if (ypos + height >= h) ypos = h - height - 1;\n thing.setPos(xpos, ypos);\n }", "public void update() {\n \n // move\n // Update velocity\n velocity.add(acceleration);\n // Limit speed\n velocity.limit(maxspeed);\n location.add(velocity);\n // Reset accelertion to 0 each cycle\n acceleration.mult(0);\n \n // decay life\n leftToLive = lifespan - (millis() - birth);\n }", "public void update() {\n // Update velocity\n velocity.add(acceleration);\n // Limit speed\n velocity.limit(maxspeed);\n position.add(velocity);\n // Reset accelertion to 0 each cycle\n acceleration.mult(0);\n }", "public void update() {\n // Update velocity\n velocity.add(acceleration);\n // Limit speed\n velocity.limit(maxspeed);\n position.add(velocity);\n // Reset accelertion to 0 each cycle\n acceleration.mult(0);\n }", "public void updatePlayer(float deltaTime){\n\n this.sprite.setPosition(body.getPosition().x * GameInfo.PPM, body.getPosition().y * GameInfo.PPM);\n this.feet.getPosition().set(pos.x * GameInfo.PPM, pos.y * GameInfo.PPM);\n\n if(this.isInAir)\n inAirTime += deltaTime;\n }", "public void update(){\n if(player.getPlaying()) {\n // update player animation.\n player.update();\n // update background animation.\n bg.update();\n // checks if skater has finished falling animation to end the game.\n if (player.animate instanceof FallAnimate && player.animate.getDone()) {\n player.setPlaying(false);\n player.setFall(false);\n System.out.println(\"End \" + player.getPlaying());\n }\n // checks if player has reached required points.\n if(player.getScore() > TARGETSCORE){\n player.setPlaying(false);\n levelCompleted = true;\n levelReset = System.nanoTime();\n }\n // increment jumpcounter while crouched.\n if (player.animate instanceof CrouchingAnimate && (jumpCounter <= 25)) {\n jumpCounter++;\n }\n // Creating Bananas:\n long bananaElapsed = (System.nanoTime() - bananaStartTime) / 1000000;\n if(bananaElapsed > 10500 && MainActivity.difficulty != 0){\n bananas.add(new Banana(BitmapFactory.decodeResource(getResources(),\n R.drawable.bigbanana), WIDTH + 10, (int) (HEIGHT * 0.85), 40, 40, 1));\n bananaStartTime = System.nanoTime();\n }\n //collision detection:\n for (int i = 0; i < bananas.size(); i++) {\n bananas.get(i).update();\n if (collision(bananas.get(i), player)) {\n bananas.remove(i);\n player.setFall(true);\n player.setPlaying(false);\n break;\n }\n // removing bananas when off screen\n if (bananas.get(i).getX() < -100) {\n bananas.remove(i);\n break;\n }\n }\n // Creating Cones:\n long coneElapsed = (System.nanoTime() - coneStartTime) / 1000000;\n if (coneElapsed > 5000) {\n cones.add(new TallBricks(BitmapFactory.decodeResource(getResources(),\n R.drawable.tallbricks), WIDTH + 10, (int) (HEIGHT * 0.59), 100, 161, 1));\n coneStartTime = System.nanoTime();\n }\n // update and check collisions.\n for (int i = 0; i < cones.size(); i++) {\n\n cones.get(i).update();\n if (collision(cones.get(i), player) && MainActivity.difficulty == 0) {\n cones.remove(i);\n player.forceSetScore(-500);\n break;\n }\n\n if (collision(cones.get(i), player) && MainActivity.difficulty != 0) {\n cones.remove(i);\n player.setFall(true);\n break;\n }\n // removing cones when off screen\n if (cones.get(i).getX() < -100) {\n cones.remove(i);\n break;\n }\n\n if((cones.get(i).getX() < player.getX() -15) ){\n cones.remove(i);\n player.setPendingPoints(1000);\n break;\n }\n }\n }\n else if(player.getPlaying() == false && levelCompleted){\n long resetElapsed = (System.nanoTime()-levelReset)/1000000;\n if(resetElapsed > 4000) {\n Intent resultIntent = new Intent();\n resultIntent.putExtra(\"result\",true);\n ((Activity)context).setResult(Activity.RESULT_OK,resultIntent);\n ((Activity)context).finish();\n }\n }\n else if(player.getPlaying() == false && !levelCompleted){\n if(!reset){\n newGameCreated = false;\n startReset = System.nanoTime();\n reset = true;\n }\n\n long resetElapsed = (System.nanoTime()-startReset)/1000000;\n\n if(resetElapsed > 2500 && !newGameCreated){\n newGame();\n }\n else if(resetElapsed < 2500 && started){\n player.update();\n }\n }\n }", "@Override\n\tpublic void update() {\n\n\t\t//Get current time\n\t\tdouble currentTime = System.currentTimeMillis();\n\t\tdouble movement = ((currentTime - previousTime) * movementSpeed) / 1000.0;\n\t\t\n\t\t//Create a translation vector\n\t\tVector translation = new Vector(2);\n\n\t\tboolean moving = false;\n\t\t\n\t\t//Determine which keys are pressed\n\t\tif(Directory.inputManager.isKeyPressed('w')){\n\t\t\t//Set translation Vector to move up\n\t\t\ttranslation.setComponent(1, translation.getComponent(1)-movement);\n\t\t\tattachedTo.getSprite().playAnimation(3, true);\n\t\t\tmoving = true;\n\t\t}\n\t\tif(Directory.inputManager.isKeyPressed('s')){\n\t\t\t//Set translation vector to move down\n\t\t\ttranslation.setComponent(1, translation.getComponent(1) + movement);\n\t\t\tattachedTo.getSprite().playAnimation(2, true);\n\t\t\tmoving = true;\n\n\t\t}\n\t\tif(Directory.inputManager.isKeyPressed('a')){\n\t\t\t//Set translation Vector to move left\n\t\t\ttranslation.setComponent(0, translation.getComponent(0)-movement);\n\t\t\tattachedTo.getSprite().playAnimation(0, true);\n\t\t\tmoving = true;\n\n\t\t}\n\t\tif(Directory.inputManager.isKeyPressed('d')){\n\t\t\t//Set translation Vector to move right\n\t\t\ttranslation.setComponent(0, translation.getComponent(0)+movement);\n\t\t\tattachedTo.getSprite().playAnimation(1, true);\n\t\t\tmoving = true;\n\n\t\t}\n\t\t\n\t\tif(!moving) attachedTo.getSprite().setRepeating(false);\n\t\t\n\t\t//Move this gameObject\n\t\tgetAttachedMObj().move(translation);\n\t\t\n\t\t//Update previous time\n\t\tpreviousTime = currentTime;\n\t\t\t\n\t}", "public void update() {\n\t\t\n\t\tVector size = new Vector(Main.frame.getContentPane().getWidth() + 64, 64 + 64);\n\t\tposition = new Vector(0, Main.frame.getContentPane().getHeight() - 40);\n\t\t\n\t\tRectangle rect = new Rectangle(position, size);\n\t\t\n\t\tif (rect.contains(Mouse.getVector())) {\n\t\t\troom.isMouseOverGUI = true;\n\t\t}\n\t}", "@Override\n public void update() {\n adjustRenderHitbox();\n if (renderHurtboxes) {\n renderHurtbox.setRect(player.getHurtbox().x / 1920 * gameWidth, player.getHurtbox().y / 1080 * gameHeight, player.getHurtbox().width / 1920 * gameWidth, player.getHurtbox().height / 1080 * gameHeight);\n }\n updateAnimationLoop();\n }", "private void playerMoveUp()\n {\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(false);\n this.setCurrentY(this.getCurrentY() - 1);\n if (this.getCurrentY() > -1) {\n if (!nextIsWall()) {\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n } else {\n this.setCurrentY(this.getCurrentY() + 1);\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n }\n } else// hit edge redo setlocation\n {\n this.setCurrentY(this.getCurrentY() + 1);\n this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].setHasPlayer(true);\n } \n }", "public void updateMountedMovingPlayer(EntityPlayerMP player)\r\n {\r\n int var2 = (int)player.posX >> 4;\r\n int var3 = (int)player.posZ >> 4;\r\n double var4 = player.managedPosX - player.posX;\r\n double var6 = player.managedPosZ - player.posZ;\r\n double var8 = var4 * var4 + var6 * var6;\r\n\r\n if (var8 >= 64.0D)\r\n {\r\n int var10 = (int)player.managedPosX >> 4;\r\n int var11 = (int)player.managedPosZ >> 4;\r\n int var12 = this.playerViewRadius;\r\n int var13 = var2 - var10;\r\n int var14 = var3 - var11;\r\n\r\n if (var13 != 0 || var14 != 0)\r\n {\r\n for (int var15 = var2 - var12; var15 <= var2 + var12; ++var15)\r\n {\r\n for (int var16 = var3 - var12; var16 <= var3 + var12; ++var16)\r\n {\r\n if (!this.overlaps(var15, var16, var10, var11, var12))\r\n {\r\n this.getPlayerInstance(var15, var16, true).addPlayer(player);\r\n }\r\n\r\n if (!this.overlaps(var15 - var13, var16 - var14, var2, var3, var12))\r\n {\r\n PlayerManager.PlayerInstance var17 = this.getPlayerInstance(var15 - var13, var16 - var14, false);\r\n\r\n if (var17 != null)\r\n {\r\n var17.removePlayer(player);\r\n }\r\n }\r\n }\r\n }\r\n\r\n this.filterChunkLoadQueue(player);\r\n player.managedPosX = player.posX;\r\n player.managedPosZ = player.posZ;\r\n }\r\n }\r\n }", "public void update(){\n\t\t\t//Key listener for keyboard input \n\t\t\taddKeyListener(new KeyAdapter(){\n\t\t\t\t\n\n\t\t\t\t@Override\n\t\t\t\tpublic void keyPressed(KeyEvent e)\n\t\t\t\t{\t\t\t\n\t\t\t\t\t \t// Moving on the x axis.\n\t\t\t\t if((e.getKeyCode() == KeyEvent.VK_D) || e.getKeyCode() == (KeyEvent.VK_RIGHT))\n\t\t\t\t pl.moveXspeed += pl.accelXspeed;\n\t\t\t\t \t\t\n\t\t\t\t else if(e.getKeyCode() == (KeyEvent.VK_A) || e.getKeyCode() == (KeyEvent.VK_LEFT))\n\t\t\t\t pl.moveXspeed -= pl.accelXspeed;\n\t\t\t\t \n\t\t\t\t // Moving on the y axis.\n\t\t\t\t if(e.getKeyCode() == (KeyEvent.VK_W) || e.getKeyCode() == (KeyEvent.VK_UP))\n\t\t\t\t pl.moveYspeed -= pl.accelYspeed;\n\t\t\t\t else if(e.getKeyCode() == (KeyEvent.VK_S) || e.getKeyCode() == (KeyEvent.VK_DOWN))\n\t\t\t\t pl.moveYspeed += pl.accelYspeed;\n\t\t\t\t else\n\t\t\t\t {\n\t\t\t\t \t \n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t if (GameOn == true){\n\t\t\t\t \t\n\t\t\t\t }\n\t\t\t\t else if (GameOn == false )\n\t\t\t\t {\n\t\t\t\t \t repaint(); \n\t\t\t\t \t \n\t\t\t\t \t \t\t\t\t\t\t\t\n\t\t\t\t\t\tData = \" Number of rockets remaining: \" + pl.NumRockets \n\t\t\t\t\t\t\t+ \"Number of bullets remaining: \" +pl.NumBullets\n\t\t\t\t\t\t\t+ \" Remaining health: \" +pl.Health\n\t\t\t\t\t\t\t+\" Number of runway enemies: \" + RunAwayEnemies\n\t\t\t\t\t\t\t+ \" Number of destroyed enemies: \" +DestroyedEnemies;\n\t\t\t\t \n\t\t\t\t \t Email = new EmailGUI(Data); \n\t\t\t\t \t \n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t /* else if (WinsState == true )\n\t\t\t\t {\n\t\t\t\t \t repaint(); \n\t\t\t\t \t //*******************stoip game here and send email with game details\n\t\t\t\t \t Data = \" Number of rockets remaining: \" + pl.NumRockets +\",\" \n\t\t\t\t\t\t\t\t\t+ \" Number of bullets remaining: \" +pl.NumBullets+\",\"\n\t\t\t\t\t\t\t\t\t+ \" Remaining health: \" +pl.Health+\",\"\n\t\t\t\t\t\t\t\t\t+ \" Number of destroyed enemies: \" +DestroyedEnemies+\",\"\n\t\t\t\t\t\t\t\t\t+\" Number of runway enemies: \" + RunAwayEnemies;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t \n\t\t\t\t\t\t \t Email = new EmailGUI(Data); \n\t\t\t\t\t\t \t \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\t\n\t\t\t//mouse listener for mouse input \n\t\t\taddMouseListener(new MouseListener()\n\t\t\t{\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t//actions performed when mouse button 1 is pressed \t\n\t\t\t\tif (e.getButton() == MouseEvent.BUTTON1)\n\t\t\t\t{\n\t\t\t\t\tif (pl.NumBullets > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\t\t//creates shoot and adds the to the list\n\t\t\t\t\t\t\tpl.Shoot(); \n\t\t\t\t\t\t\tBulletFired = true; \n\t\t\t\t\t\t\tbul = new Bullet(pl.GetXCoord() + 240,pl.GetYCoord() + 70); \n\t\t\t\t\t\t\tBulletList.add(bul); \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (pl.NumBullets <= 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tGameOn = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//actions performed when mouse button 2 is pressed \t\n\t\t\t\t\t if (e.getButton() == MouseEvent.BUTTON3)\n\t\t\t\t\t{\n\n\t\t\t\t\t\tif (pl.NumRockets > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//creates rockets and adds the to the list\n\t\t\t\t\t\t\tpl.FireRocket(); \n\t\t\t\t\t\t\tRocketFired = true; \n\t\t\t\t\t\t\trock = new Rocket(pl.GetXCoord() + 200,pl.GetYCoord() + 60); \n\t\t\t\t\t\t\tRocketList.add(rock); \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void mousePressed(MouseEvent e) {\t\t\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}); \n\t\t\n\t\t}", "@Override\n public void update(GameContainer gc, double deltaTime) {\n if (player.collidesWith(player2.getEllipse())) {\n player.setCanMove(false);\n } else {\n player.setCanMove(true);\n }\n\n if (player.canMove()) {\n player.move(deltaTime);\n updateCamera((int) player.getX() + player.getWidth() / 2\n - gc.getCamera().getViewportSizeX() / 2,\n (int) player.getY() + player.getHeight() / 2\n - gc.getCamera().getViewportSizeY() / 2);\n }\n\n if (player2.canMove()) {\n player2.moveP2(deltaTime);\n }\n }", "public void updatePosition() {\n\n this.x = this.temp_x;\n this.y = this.temp_y;\n this.ax = 0;\n this.ay = 0;\n\t\tthis.axplusone = 0;\n this.ayplusone = 0;\n \n }", "public void update()\n {\n long elapsed = (System.nanoTime()-startTime)/1000000;\n if(elapsed>100)\n {\n hard += 20; // increase difficulty\n score = Dynamics.getPosition();\n startTime = System.nanoTime();\n }\n dx = (int)Dynamics.getVelocityX();\n\n animation.update();\n x += dx;\n if(x < 0){\n x = 0;\n } else if (x+width > GamePanel.WIDTH){\n x = GamePanel.WIDTH-width;\n }\n\n }", "@Override\n public void update(){\n super.update();\n if(getPositionY() < -2.f){\n setAngleXYDeltaTheta(0.0f);\n setAngleXY(0.0f);\n setPositionY(1.0f);\n setDy(0.0f);\n setDx(0.0f);\n setInPlay(true);\n }\n }", "private void updatePosition(){\n updateXPosition(true);\n updateYPosition(true);\n }", "@Override\r\n\tpublic void update() {\n\t\tListIterator<Player> it = players.listIterator();\r\n\t\twhile(it.hasNext()){\r\n\t\t\tit.next().update();\r\n\t\t}\r\n\t\t// Logica del juego, etc\r\n\t\tcontrolMenu();\r\n\t}", "@Override\n public void updateEnergy(int p, Racer player) {\n\n super.updateEnergy(p, player);\n player.setEnergy(player.getEnergy() * 2);\n }", "public void update(boolean updateWorld) {\n println(\"GUI\", \"Updating the UI...\");\n Player p = ToF.getWorld().getPlayer();\n \n if(updateWorld)\n ToF.getWorld().nextTick();\n \n move(p, NORTH, (Shape) MoveNorth);\n move(p, SOUTH, (Shape) MoveSouth);\n move(p, EAST, (Shape) MoveEast);\n move(p, WEST, (Shape) MoveWest);\n move(p, UP, ButtonUpstairs);\n move(p, DOWN, ButtonDownstairs);\n updateMap();\n updateBars();\n updateInventory();\n \n if(ToF.getWorld().getPlayer().isDead())\n ifLose();\n \n UnderAttack.setVisible(ToF.getWorld().getPlayer().getOpponent().isPresent());\n UnderAttack.setText(\"Under Attack \" + ToF.getWorld().selectEntities(\n e -> ToF.getWorld().getPlayer().getLocation().equals(e.getLocation())\n ).count());\n if(p.getOpponent().isPresent()){\n ToF.getWorld().selectEntities(\n e -> ToF.getWorld().getPlayer().getLocation().equals(e.getLocation())\n ).forEach(e -> ToF.getWorld().newMessage(new Message()\n .add(\"Your opponent\")\n .add(e.getName())\n .add(\"has\")\n .add(e.getHealthBar().getCurrent() + \"HP\"))\n );\n }\n \n if(ToF.getWorld().isFullyExplored())\n ifWin();\n \n Message msg;\n while((msg = ToF.getWorld().getNextMessage()) != null){\n Text.setText(msg.toStringSimple() + \"\\n\" + Text.getText()\n .substring(0, min(1000, Text.getText().length())));\n }\n }", "public void updatePosition(){\n\t\t//maps the position to the closest \"grid\"\n\t\tif(y-curY>=GameSystem.GRID_SIZE/2){\n\t\t\tcurY=curY+GameSystem.GRID_SIZE;\n\t\t\tyGridNearest++;\n\t\t}\n\t\telse if(curX-x>=GameSystem.GRID_SIZE/2){\n\t\t\tcurX=curX-GameSystem.GRID_SIZE;\n\t\t\txGridNearest--;\n\t\t}\n\t\telse if(x-curX>=GameSystem.GRID_SIZE/2){\n\t\t\tcurX=curX+GameSystem.GRID_SIZE;\n\t\t\txGridNearest++;\n\t\t}\n\t\telse if(curY-y>=GameSystem.GRID_SIZE/2){\n\t\t\tcurY=curY-GameSystem.GRID_SIZE;\n\t\t\tyGridNearest--;\n\t\t}\n\t\t//sets the last completely arrived location grid\n\t\tif(y-yTemp>=GameSystem.GRID_SIZE){\n\t\t\tyTemp=yTemp+GameSystem.GRID_SIZE;\n\t\t\ty=yTemp;\n\t\t\tlastY++;\n\t\t}\n\t\telse if(xTemp-x>=GameSystem.GRID_SIZE){\n\t\t\txTemp=xTemp-GameSystem.GRID_SIZE;\n\t\t\tx=xTemp;\n\t\t\tlastX--;\n\t\t}\n\t\telse if(x-xTemp>=GameSystem.GRID_SIZE){\n\t\t\txTemp=xTemp+GameSystem.GRID_SIZE;\n\t\t\tx=xTemp;\n\t\t\tlastX++;\n\t\t}\n\t\telse if(yTemp-y>=GameSystem.GRID_SIZE){\n\t\t\tyTemp=yTemp-GameSystem.GRID_SIZE;\n\t\t\ty=yTemp;\n\t\t\tlastY--;\n\t\t}\n\t\t//only updates nextX and nextY when the move buttons are being pressed down\n\t\t/*\n\t\tif(movable){\n\t\t\tif(direction.equals(\"right\")){\n\t\t\t\t\tnextX=lastX+1;\n\t\t\t\t\tnextY=lastY;\n\t\t\t}\n\t\t\telse if(direction.equals(\"left\")){\n\t\t\t\tnextX=lastX-1;\n\t\t\t\tnextY=lastY;\n\t\t\t}\n\t\t\telse if(direction.equals(\"up\")){\n\t\t\t\tnextY=lastY-1;\n\t\t\t\tnextX=lastX;\n\t\t\t}\n\t\t\telse if(direction.equals(\"down\")){\n\t\t\t\tnextY=lastY+1;\n\t\t\t\tnextX=lastX;\n\t\t\t}\n\t\t}\n\t\t*/\n\t\t\n\t}", "private static void updateOnePlayerPosition(int change, Player player, LifeArea lifeArea) {\n if ((player.getGlobalPosition() + change) >= 0) {\n player.setGlobalPosition(player.getGlobalPosition() + change);\n } else {\n player.setGlobalPosition(0);\n }\n // Update lifeArea position\n player.setLifeAreasPosition(player.getLifeAreasPosition()[lifeArea.ordinal()] + change, lifeArea);\n\n\n }", "@Override\n\tpublic void update() {\n\t\tcanBuild = true;\n\t\tfor (Ship s : SceneManager.sm.currSector.ships) {\n\t\t\tif (!s.isPlayer) {\n\t\t\t\tif (s.cm.distanceTo(p.cm) < 2500) {\n\t\t\t\t\tcanBuild = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (SceneManager.sm.endSector.clear && SceneManager.sm.currSector.pos.isSame(SceneManager.sm.endSector.pos)) {\n\t\t\tSystem.out.println(\"Game WON\");\n\t\t\tthis.setActive(false);\n\t\t\tSceneManager.ws.setActive(true);\n\t\t}\n\t\tif (p.destroyed) {\n\t\t\tSystem.out.println(\"Game LOST\");\n\t\t\tthis.setActive(false);\n\t\t\tSceneManager.ls.setActive(true);\n\t\t}\n\n\t\tshipYard.update();\n\t\tstarMap.update();\n\n\t\t// TODO remove before flight: to draw where mouse is - temp\n\t\t// if (InputManager.mouse[2]) {\n\t\t// System.out.println(InputManager.mPos.toString());\n\t\t// }\n\n\t\tif (InputManager.keys[81])\n\t\t\tp.cmdRotate(false);\n\t\tif (InputManager.keys[69])\n\t\t\tp.cmdRotate(true);\n\t\tif (InputManager.keys[87])\n\t\t\tp.cmdMove(0, 1);\n\t\tif (InputManager.keys[83])\n\t\t\tp.cmdMove(2, 1);\n\t\tif (InputManager.keys[65])\n\t\t\tp.cmdMove(3, 1);\n\t\tif (InputManager.keys[68])\n\t\t\tp.cmdMove(1, 1);\n\t\tif (InputManager.keys[38]) {\n\t\t\tCamera.yOff += 10 * (1 / Camera.scale);\n\t\t\tcamFocus = null;\n\t\t\teyeFocused = false;\n\t\t}\n\t\tif (InputManager.keys[40]) {\n\t\t\tCamera.yOff -= 10 * (1 / Camera.scale);\n\t\t\tcamFocus = null;\n\t\t\teyeFocused = false;\n\t\t}\n\t\tif (InputManager.keys[39]) {\n\t\t\tcamFocus = null;\n\t\t\teyeFocused = false;\n\t\t\tCamera.xOff -= 10 * (1 / Camera.scale);\n\t\t}\n\t\tif (InputManager.keys[37]) {\n\t\t\tcamFocus = null;\n\t\t\teyeFocused = false;\n\t\t\tCamera.xOff += 10 * (1 / Camera.scale);\n\t\t}\n\n\t\t// key to go to build area - b\n\t\tif (canBuild && InputManager.keysReleased[66] || shipYard.clicked) {\n\t\t\tswtichToBuild();\n\t\t}\n\t\tif (InputManager.keysReleased[77] || starMap.clicked) {\n\t\t\tswtichToStarMap();\n\t\t}\n\t\t\n\t\t// key to select a ship - no use atm\n\t\tif (InputManager.mouse[1]) {\n\t\t\t//selected = SceneManager.sm.currSector.getClickShip();\n\t\t\t// now have a ship selected\n\t\t}\n\t\t\n\t\tif(InputManager.keysReleased[32]) {\n\t\t\tcamFocus = p.cm;\n\t\t}\n\n\t\t// key to move the camera to a ship or area\n\t\tif (InputManager.mouseReleased[2]) {\n\t\t\teyeFocused = false;\n\t\t\tif(SceneManager.sm.currSector.getClickShip() != null)\n\t\t\t{\n\t\t\t\tcamFocus = SceneManager.sm.currSector.getClickShip().cm;\n\t\t\t}else if(Camera.toScreen(eyeLoc).distanceTo(InputManager.mPos) < 40){\n\t\t\t\tcamFocus = eyeLoc;\n\t\t\t\teyeFocused = true;\n\t\t\t}else {\n\t\t\t\tcamFocus = Camera.toMap(InputManager.mPos.x, InputManager.mPos.y);\n\t\t\t}\n\t\t}\n\t\tif (partTarget != null && partTarget.health <= 0)\n\t\t\tpartTarget = null;\n\n\t\tif (partTarget == null && target != null)\n\t\t\tp.shoot(target);\n\n\t\tif (partTarget == null && target == null)\n\t\t\tp.ceaseFire();\n\n\t\tif (target != null && InputManager.mouseReleased[3] && !target.destroyed) {\n\t\t\tpartTarget = SceneManager.sm.currSector.getClickShipPart(target);\n\t\t\tp.shoot(partTarget);\n\t\t}\n\n\t\tif (InputManager.mouseReleased[3]) {\n\t\t\ttarget = SceneManager.sm.currSector.getClickShip();\n\t\t\tif (target != null && partTarget == null) {\n\t\t\t\tp.shoot(target);\n\t\t\t}\n\t\t}\n\t\tif (target != null && (target.destroyed || target.isPlayer)) {\n\t\t\ttarget = null;\n\t\t\tpartTarget = null;\n\t\t\tp.ceaseFire();\n\t\t}\n\n\t\tif (camFocus != null)\n\t\t\tCamera.focus(camFocus);\n\t\t// if(selected != null) selected.vel.print();\n\n\t\tSceneManager.sm.currSector.update();\n\t}", "public void update(long delta){\n \n if(placement <= -1000){\n placement = zPosition;\n }\n placement -= 5;\n \n \n }", "public void changePlayerPixels() {\n //change the player point2pixels\n if (!playerFlag) {\n game.getPlayer().setPixels(convertor.gps2Pixels(game.getPlayer().getPoint()));\n Point3D point = new Point3D(game.getPlayer().getPixels()[0] , game.getPlayer().getPixels()[1]);\n GraphNode playerNode = new GraphNode(point);\n vertices.add(playerNode);\n\n }\n\n else {\n Point3D point = new Point3D(game.getPlayer().getPixels()[0] , game.getPlayer().getPixels()[1]);\n GraphNode playerNode = new GraphNode(point);\n vertices.add(playerNode);\n }\n\n playerFlag = true;\n\n }", "public void update() {\n z += speed; // increase z by speed\n if (z > 750) { z = -5000; reset(); } // if beyond the camera, reset() and start again\n transparency = z<-2500?map(z, -5000, -2500, 0, 255):255; // far away slowly increase the transparency, within range is fully opaque\n }", "public void updatePlayerXPos(){\n\t\tif(goRight&&Player.getxPlayerLoc()<=(screenWidth - (Player.getPlayerImage().getWidth()* Player.getPlayerScale() ) ) ){\n\t\t\tPlayer.updateXPos(true);\n\t\t\tPlayer.setPlayerImage(true);\n\t\t\t\n\t\t}\n\t\tif(goLeft&&Player.getxPlayerLoc() >=( (Player.getPlayerImage().getWidth() / 2) * Player.getPlayerScale() ) ){\n\t\t\tPlayer.updateXPos(false);\n\t\t\tPlayer.setPlayerImage(false);\n\t\t}\n\t}", "void updatePosition() {\n if (gameScreen.cursorIsOnLeft()) \n {\n // set the panel's rightmost edge to be 1/12th from the edge\n // set the panel's bottommost edge to be 1/6th from the edge\n setLocation(\n gameScreen.getScreenWidth() * 11/12 - getWidth(), \n gameScreen.getScreenHeight() * 5/6 - getHeight());\n }\n else // Otherwise the cursor must be on the right half of the screen\n {\n // set the panel's leftmost edge to be 1/12th from the edge\n // set the panel's bottommost edge to be 1/6th from the edge\n setLocation(\n gameScreen.getScreenWidth() * 1/12, \n gameScreen.getScreenHeight() * 5/6 - getHeight());\n }\n }", "public void onUpdateTimerTick() {\r\n\t\tx = x+dx;\r\n\t\ty = y+dy;\r\n\t\tgame.updateWorld();\r\n\r\n\t}", "public void update(){\n velX *= damp;\n velY *= damp;\n posX += velX;\n posY += velY;\n }", "public void update()\n\t{\n\t\tif(currentState == moving)\n\t\t{\n\t\t\tx += xSpeed;\n\t\t\ty += ySpeed;\n\t\t\t\n\t\t\tif(x < 0 || x > world.getSIMULATION_WIDTH() - individualSize)\n\t\t\t\trandomizeDirection();\n\t\t\tif(y < 0 || y > world.getSIMULATION_HEIGHT() - individualSize)\n\t\t\t\trandomizeDirection();\n\t\t\t\n\t\t\tif(x < 0)\n\t\t\t\tx = 0;\n\t\t\tif(x > world.getSIMULATION_WIDTH() - individualSize)\n\t\t\t\tx = world.getSIMULATION_WIDTH() - individualSize;\n\t\t\t\n\t\t\tif(y < 0)\n\t\t\t\ty = 0;\n\t\t\tif(y > world.getSIMULATION_HEIGHT() - individualSize)\n\t\t\t\ty = world.getSIMULATION_HEIGHT() - individualSize;\n\t\t}\n\t\tfor(PlayPauseTimer timer: timerList)\n\t\t\ttimer.update();\n\t\tworld.locationUpdate(this);\n\t}", "public void movePlayer(String nomeArq, int px, int py) {\r\n if(Main.player1.Vez()) {\r\n if(nomeArq.equals(Main.PLAYER_LEFT)){\r\n \tMain.player1.MudaLado(true,false);\r\n }\r\n else {\r\n \tMain.player1.MudaLado(false,true);\r\n } \r\n pos = Main.player1.Position();\r\n int x = pos[0]+px;\r\n int y = pos[1];\r\n double t = 0.1;\r\n int OrigemY = y;\r\n double g=10;\r\n if(andar.BatidaFrente(x,y,Main.player1.Size()[0]+1,Main.player1.Size()[1]+1)==false) {\r\n \tMain.player1.NovaPosition(x,y); \r\n }\r\n Main.Fase.repinta(); \r\n while(andar.temChao(x,y,Main.player1.Size()[0]+1,Main.player1.Size()[1]+1)==false && andar.Paredao((int)x,(int)y,Main.player1.Size()[0],Main.player1.Size()[1])==false)\r\n {\r\n \tMain.player1.NovaPosition(x,y);\r\n \tMain.Fase.repinta(); \r\n y = (int)(OrigemY - (0-(g * (t*t))/2.0));\r\n t = t + 0.1; \r\n }\r\n Main.Fase.repinta(); \r\n }\r\n else {\r\n if(nomeArq.equals(Main.PLAYER_LEFT)) {\r\n \tMain.player2.MudaLado(true,false);\r\n }\r\n else {\r\n \tMain.player2.MudaLado(false,true);\r\n } \r\n pos = Main.player2.Position();\r\n int x = pos[0]+px;\r\n int y = pos[1];\r\n double t = 0;\r\n int OrigemY = y;\r\n double g=10;\r\n if(andar.BatidaFrente(x,y,Main.player2.Size()[0]+1,Main.player2.Size()[1]+1)==false) {\r\n \tMain.player2.NovaPosition(x,y); \r\n }\r\n Main.Fase.repinta(); \r\n while(andar.temChao(x,y,Main.player2.Size()[0]+1,Main.player2.Size()[1]+1)==false && andar.Paredao((int)x,(int)y,Main.player2.Size()[0]+1,Main.player2.Size()[1]+1)==false)\r\n {\r\n \tMain.player2.NovaPosition(x,y);\r\n \tMain.Fase.repinta(); \r\n y = (int)(OrigemY - (0-(g * (t*t))/2.0));\r\n t = t + 0.1; \r\n }\r\n }\r\n }", "@SuppressWarnings(\"deprecation\")\n\tpublic void player_move(Player p) {\n\t\tif (w.getBlockAt(p.getLocation().add(0, -1, 0)).getType() == Material.PISTON_BASE) {\n\t\t\tp.setVelocity(new Vector(0, 0.75, 0));\n\t\t\tp.playSound(p.getLocation(), Sound.PISTON_EXTEND, 1, 1);\n\t\t} else \tif (w.getBlockAt(p.getLocation().add(0, -1, 0)).getType() == Material.PISTON_STICKY_BASE) {\n\t\t\tp.setVelocity(new Vector(0, 0.75, 0));\n\t\t\tp.playSound(p.getLocation(), Sound.PISTON_EXTEND, 1, 1);\n\t\t} else if (w.getBlockAt(p.getLocation()).getType() == Material.CARPET) {\n\t\t\tBlock b = w.getBlockAt(p.getLocation());\n\t\t\tsynchronized (timers) {\n\t\t\t\ttimers.put(b.getData(), 6);\n\t\t\t}\n\t\t\tgameTick();\n\t\t}\n\t}", "public void update() {\n vel.add(acc);\n vel.limit(max_vel);\n loc.add(vel);\n acc.mult(0);\n }", "private void updateJump()\n {\n\t\tif(isJumping && jumpKeyDown)\n\t\t{\n\t\t\tif(ySpeed > maxJumpSpeed)\n\t\t\t{\n\t \t\tySpeed -= jumpIncr;\n\t \t\tSystem.out.println(\" Player.updateJump() : \" + ySpeed);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\n \t\t\t\t\"updateJump() --> maximum jump speed reached : \" + ySpeed);\n\t\t\t\tisJumping = false;\n\t\t\t}\n\t\t}\n\t}", "private float getPlayerMove() {\r\n\t\treturn 1.0f / 5;\r\n\t}", "public void update(float deltaTime) {\n if (creationPoint.y != (int)(GameView.instance.groundLevel - height*3/4) || creationPoint.x != x+width/2){\n creationPoint.x = x+width/2-width/4;\n creationPoint.y = (int)(GameView.instance.groundLevel - height/2)+height/8;\n }\n\n\n if(isStanding) {\n\n /*System.out.println(creationPoint.x);\n System.out.println(GameView.instance.player.position.x);\n System.out.println(GameView.instance.player.position.x-creationPoint.x);\n System.out.println(GameView.instance.cameraSize*attackRange);*/\n\n tax();\n\n\n //=======================================================================================//\n\n //Buildings\n\n //=======================================================================================//\n\n\n grow();\n\n\n // = ======== == ==\n // = = == == ==\n // ===== == ====\n // = = == == ===\n\n if (inRange() && !surrender) {\n countdown+=GameView.instance.fixedDeltaTime;\n //System.out.println(countdown);\n float shootSpeed=4-lv;\n if (countdown > 1000*shootSpeed) {\n\n if (countdown > 1200*shootSpeed && attack == 0) {\n Attack();\n\n attack += 1;\n }\n\n if (countdown > 1400*shootSpeed && attack == 1) {\n Attack();\n\n attack += 1;\n }\n\n if (countdown > 1600*shootSpeed && attack == 2) {\n Attack();\n\n attack += 1;\n }\n\n if (countdown >= 1800*shootSpeed) {\n countdown = 0;\n attack = 0;\n }\n }\n }\n if ((Scene.instance.timeOfDay) / (Scene.instance.dayLength) > 0.6) {\n spawnedNPC = false;\n }\n if(!spawnedNPC) {\n //spawning thief\n if ((townFear > 20 && lv != 0 && (currentGold < maxGold / 2)) || (goldRate < 200 && lv != 0) && Scene.instance.day > 2) {\n GameView.instance.npc_pool.spawnThiefs(x, (int) GameView.instance.groundLevel, 1, this);\n }\n if(!surrender) {\n //spawning dragonslayer\n if (townFear > 30 && lv != 0) {\n GameView.instance.npc_pool.spawnDragonLayers(x, (int) GameView.instance.groundLevel, this);\n }\n\n //spawning wizard\n if (townFear > 35 && lv == 2 && !summonedWizard) {\n GameView.instance.npc_pool.spawnFarmers(x, (int) GameView.instance.groundLevel, this);\n summonedWizard = true;\n }\n }\n spawnedNPC = true;\n }\n\n if(!surrender) {\n if (townFear > surrenderFear) {\n surrender = true;\n flag.setSurrender(surrender);\n SoundEffects.instance.play(SoundEffects.TRIBUTE);\n }\n }\n else {\n if(townFear < surrenderFear/2) {\n surrender = false;\n flag.setSurrender(surrender);\n\n }\n }\n\n\n\n Flagposition(deltaTime);\n }\n else {\n buildingImage = SpriteManager.instance.getBuildingSprite(\"FortressRuin\");\n\n if(beenEmptied == false){\n GoldPool.instance.spawnGold(collider.centerX(), collider.centerY(),Math.min(currentGold,100*(lv+1)) );\n beenEmptied = true;\n }\n townFear = 0;\n }\n\n //==== ===== ===== = == ==== ============================\n //= = == = = = = == = = ============================\n //==== == ===== ===== == ==== ============================\n //= == ===== = = = == = == ============================\n repair(deltaTime);\n\n for(int i = 0; i < currentBuildingsLeft.size(); i++){\n currentBuildingsLeft.get(i).update(deltaTime);\n }\n\n for(int i = 0; i < currentBuildingsRight.size(); i++){\n currentBuildingsRight.get(i).update(deltaTime);\n }\n super.update(deltaTime);\n\n }", "@Override\n public void update(ArrayList<String> pressedKeys) {\n\n\n super.update(pressedKeys);\n// if(!backgroundMusic.play && x==0){\n// x=1;\n// backgroundMusic.playMusic(\"resources/oceanOperator.mp3\");\n// }\n\n if (state == STATE.MENU) {\n\n }\n\n //moveGameY(1);\n\n else if (state == STATE.GAME) {\n if (player != null && !player.isDead) {\n player.update(pressedKeys);\n }\n if (player.getLifeCount() <= 0) {\n complete = true;\n player.isDead = true;\n }\n\n\n if (transitionYCurrent < transitionY) {\n moveGameY(transitionYSpeed);\n transitionYCurrent += transitionYSpeed;\n }\n\n if(complete && !player.isDead){\n System.out.println(\"you won!\");\n state = STATE.COMPLETE;\n\n\n }\n\n if (player != null && !player.isDead) {\n// for (int i = 0; i < enemies.size(); i++) {\n// if (player.playerCollidesWith(enemies.get(i)) && enemies.get(i).dead == false && player.canGetHurt()) {\n// damageThePlayer();\n// }\n// }\n\n for (int i = 0; i < currentRoom.getSpikeList().size(); i++) {\n SpikeTile spikes = currentRoom.getSpikeList().get(i);\n if (player.feetCollideWith(spikes) && spikes.getStateName() == \"idle up\" && player.canGetHurt()) {\n damageThePlayer();\n }\n }\n\n\n if (player.playerCollidesWith(coin)) {\n coin.handleEvent(collidedEvent);\n myQuestManager.handleEvent(PickedUpEvent);\n }\n player.update();\n checkCollisions(player);\n\n\n for (int i = 0; i < player.playerBullets.size(); i++) {\n Bullet bul = player.playerBullets.get(i);\n bul.update(pressedKeys);\n if (bul.getShotTimer() >= bul.getShotCap()) {\n\n player.playerBullets.remove(i);\n }\n }\n\n TweenJuggler.getInstance().nextFrame();\n\n boolean pickpocketTrigger = false;\n for (int i = 0; i < enemies.size(); i++) {\n\n Enemy enemy = enemies.get(i);\n if (player.getHitBox().intersects(enemy.getPickpocketRect())) {\n pickpocketTrigger = true;\n pickpocketEnemy = enemy;\n }\n\n }\n pickpocket = pickpocketTrigger;\n if (!pickpocket)\n pickpocketEnemy = null;\n }\n if (pressedKeys.contains(KeyEvent.getKeyText(KeyEvent.VK_W))) {\n for (int i = 0; i < currentRoom.getDoors().size(); i++) {\n if (player.getHitBox().intersects(currentRoom.getDoors().get(i).getDoorCollider()) && currentRoom.getDoors().get(i).stateName == \"door_open\" && transitionPhase == false) {\n transitionPhase = true;\n currentRoom.fadeOut();\n queuedRoom = currentRoom.getDoors().get(i).getNextRoom();\n queuedRoom.fadeIn();\n transitionYCurrent = 0;\n enemies = new ArrayList<>();\n pressedKeys.remove(KeyEvent.getKeyText(KeyEvent.VK_W));\n }\n }\n\n }\n\n if (pressedKeys.contains(KeyEvent.getKeyText(KeyEvent.VK_E))) {\n if (pickpocket == true && pickpocketEnemy != null) {\n keyCount += pickpocketEnemy.pickpocketKeys();\n int knives = pickpocketEnemy.pickpocketKnives();\n knifeCount += knives;\n System.out.println(knives);\n// int n = rand.nextInt(3) + 1;\n// if (n == 1) {\n//\n// itemString = \"You found a knife!\";\n// } else if (n == 2) {\n// keyCount++;\n// itemString = \"You found a key!\";\n//\n// } else if (n == 3) {\n// itemString = \"No items found.\";\n// }\n }\n\n\n for (int i = 0; i < currentRoom.getDoors().size(); i++) {\n\n if (player.getHitBox().intersects(currentRoom.getDoors().get(i).getDoorCollider()) && currentRoom.getDoors().get(i).stateName == \"door_closed\") {\n if (keyCount > 0) {\n soundEffects.playSoundEffect(\"resources/chains.wav\",0);\n currentRoom.getDoors().get(i).setAnimationState(\"door_opening\", \"door_open\");\n itemString = \"Door unlocked\";\n keyCount--;\n } else {\n soundEffects.playMusic(\"resources/door_locked.wav\");\n }\n } else if (player.getHitBox().intersects(currentRoom.getDoors().get(i).getDoorCollider()) && currentRoom.getDoors().get(i).stateName == \"door_open\" && transitionPhase == false) {\n transitionPhase = true;\n currentRoom.fadeOut();\n queuedRoom = currentRoom.getDoors().get(i).getNextRoom();\n queuedRoom.fadeIn();\n transitionYCurrent = 0;\n enemies = new ArrayList<>();\n }\n }\n\n for (int i = 0; i < currentRoom.getChests().size(); i++) {\n TreasureChest chest = currentRoom.getChests().get(i);\n if (player.feetCollideWith(chest) && chest.getStateName() == \"closed\") {\n chest.setAnimationState(\"open\", \"\");\n if (chest.getItem().equals(\"key\")) {\n keyCount++;\n } else if (chest.getItem().equals(\"knife\")) {\n knifeCount++;\n }\n }\n }\n\n\n pressedKeys.remove(KeyEvent.getKeyText(KeyEvent.VK_E));\n }\n\n if (pressedKeys.contains(KeyEvent.getKeyText(KeyEvent.VK_P))) {\n if (complete == true) {\n removeAll();\n complete = false;\n currentLevel = 0;\n\n\n tutorial = new TutorialLevel1(\"Tutorial\");\n tutorial.run();\n addChild(tutorial);\n\n\n myLevel = new Level0(\"Room1\");\n myLevel.run();\n addChild(myLevel);\n\n\n myLevel1 = new Level1(\"Room2\");\n myLevel1.run();\n myLevel1.hide();\n addChild(myLevel1);\n\n myLevel2 = new ahmedslevel(\"Room3\", player);\n myLevel2.run();\n myLevel2.hide();\n addChild(myLevel2);\n\n myLevel3 = new BrighamLevel(\"Room4\");\n myLevel3.run();\n myLevel3.hide();\n addChild(myLevel3);\n\n level4 = new AlternatingSpikesLevel(\"Room6\");\n level4.run();\n level4.hide();\n addChild(level4);\n\n\n bossLevel = new BossLevel(\"Room5\", player);\n bossLevel.run();\n bossLevel.hide();\n addChild(bossLevel);\n\n\n tutorial.mapDoorToRoom(0,myLevel);\n myLevel.mapDoorToRoom(0, myLevel1);\n myLevel1.mapDoorToRoom(0, myLevel2);\n myLevel2.mapDoorToRoom(0, myLevel3);\n myLevel3.mapDoorToRoom(0, level4);\n level4.mapDoorToRoom(0, bossLevel);\n currentRoom = tutorial;\n\n enemies = currentRoom.enemies;\n\n player.isDead = false;\n player.setLifeCount(3);\n player.setPositionX(550);\n player.setPositionY(700);\n knifeCount = 4;\n keyCount = 0;\n backgroundMusic.stop();\n backgroundMusic.playSoundEffect(\"resources/oceanOperator.wav\", 100);\n } else {\n state = STATE.PAUSE;\n\n }\n }\n for (int i = 0; i < enemies.size(); i++) {\n Enemy currentEnemy = enemies.get(i);\n currentEnemy.update();\n if (!currentEnemy.dead) {\n if (currentEnemy.enemyBullet != null) {\n currentEnemy.enemyBullet.update(pressedKeys);\n if (currentEnemy.enemyBullet.getShotTimer() >= currentEnemy.enemyBullet.getShotCap()) {\n currentEnemy.enemyBullet = null;\n }\n }\n if (currentEnemy.isInView(player, currentRoom.coverList)) {\n// System.out.println(currentRoom.coverList.get(0));\n if (complete == false) {\n if (currentEnemy.enemyBullet == null) {\n currentEnemy.enemyBullet = new Bullet(\"bullet\", \"knife.png\", 0.4);\n currentEnemy.enemyBullet.setStart(currentEnemy.getPositionX() + currentEnemy.getUnscaledWidth() / 2, currentEnemy.getPositionY() + currentEnemy.getUnscaledHeight() / 2);\n currentEnemy.enemyBullet.setEnd(player.getPositionX(), player.getPositionY());\n TweenTransitions enemyBulletPath = new TweenTransitions(\"linearTransition\");\n Tween enemyBulletmovement = new Tween(currentEnemy.enemyBullet, enemyBulletPath);\n enemyBulletmovement.animate(TweenableParams.X, currentEnemy.enemyBullet.startValX, currentEnemy.enemyBullet.endValX, 0.4);\n enemyBulletmovement.animate(TweenableParams.Y, currentEnemy.enemyBullet.startValY, currentEnemy.enemyBullet.endValY, 0.4);\n TweenJuggler.getInstance().add(enemyBulletmovement);\n currentEnemy.handleEvent(throwKnife);\n }\n }\n if (currentEnemy.enemyBullet != null) {\n// System.out.println(currentEnemy.enemyBullet.getShotTimer());\n if (currentEnemy.enemyBullet.collidesWith(player) && player.canGetHurt()) {\n damageThePlayer();\n currentEnemy.enemyBullet = null;\n break;\n }\n for (int j = 0; j < currentRoom.collisionArray.size(); j++) {\n if (currentEnemy.enemyBullet.collidesWith(currentRoom.collisionArray.get(j))) {\n currentEnemy.enemyBullet = null;\n break;\n }\n }\n\n }\n }\n\n\n for (int j = 0; j < player.playerBullets.size(); j++) {\n Bullet bul = player.playerBullets.get(j);\n// for (int k = 0; k < currentRoom.collisionArray.size(); k++) {\n// if (bul.collidesWith(currentRoom.collisionArray.get(k))) {\n// player.playerBullets.remove(j);\n// break;\n// }\n// }\n if (bul != null) {\n if (bul.collidesWith(enemies.get(i))) {\n enemies.get(i).dead = true;\n enemies.get(i).enemyBullet = null;\n if (enemies.get(i).getStateName().contains(\"right\")) {\n enemies.get(i).setDelay(90);\n enemies.get(i).setAnimationState(\"dying right\", \"dead right\");\n } else {\n enemies.get(i).setDelay(90);\n enemies.get(i).setAnimationState(\"dying left\", \"dead left\");\n }\n if (player.playerBullets.size() > j)\n player.playerBullets.remove(j);\n }\n\n }\n }\n }\n }\n\n for (int j = 0; j < player.playerBullets.size(); j++) {\n Bullet bul = player.playerBullets.get(j);\n for (int k = 0; k < currentRoom.collisionArray.size(); k++) {\n if (bul.collidesWith(currentRoom.collisionArray.get(k))) {\n player.playerBullets.remove(j);\n break;\n }\n }\n }\n\n currentRoom.update();\n\n if (queuedRoom != null) {\n queuedRoom.update();\n\n if (queuedRoom.getDoneFading() && currentRoom.getDoneFading()) {\n\n queuedRoom.setDoneFading(false);\n currentRoom.setDoneFading(false);\n if(queuedRoom == bossLevel){\n backgroundMusic.stop();\n bossLevel.intro();\n }\n currentRoom = queuedRoom;\n enemies = currentRoom.enemies;\n queuedRoom = null;\n transitionPhase = false;\n currentQuestObjective = 0;\n }\n }\n }\n if (keyCount > 0){\n currentQuestObjective = 1;\n }\n else if(currentRoom == bossLevel){\n currentQuestObjective = 2;\n }\n\n if(bossLevel != null) {\n if (bossLevel.endgame == true) {\n state = STATE.COMPLETE;\n System.out.println(\"you won!\");\n quitButton.setPositionX(300);\n\n }\n }\n }", "public void update(float delta) {\n world.step(1/60f, 6, 2);\n\n player.setGravityScale(2);\n\n inputUpdate(delta);\n cameraUpdate(delta);\n }", "@Override\n\tpublic boolean updatePos(Physical_passive map) {\n\t\tupdate_animSpeed();\n\t\t// if (!map.getPhysicalRectangle().contains(getPhysicalShape()))\n\t\t// return false;\n\t\tif (!isDead()) {\n\t\t\tResolveUnreleasedMovements();\n\t\t\tgetWeapon().update();\n\t\t\tupdatePush();\n\t\t\t/*\n\t\t\t * if (!isBlock_down()) { // Por lo visto esto controla el salto if\n\t\t\t * (getJumpTTL() != 0) { moveJump(); } else // Y este 3 es la\n\t\t\t * gravedad., lo paso a un metodo de actor // para decirle q empiece\n\t\t\t * a caer fall(); // ; }\n\t\t\t */\n\t\t\t// Aqui es donde realmente cambiamos la posicion una vez calculado\n\t\t\t// donde va a ir.\n\t\t\t// updateLegsRotation(getSpeed().add(getPosition()));\n\t\t\tgetLegs().setLocation(new Point((int) getPosition().x(), (int) getPosition().y()));\n\t\t\tsetPosition(getPosition().add(getSpeed().add(getPush())));\n\t\t\tgetTorax().setLocation(new Point((int) getPosition().x(), (int) getPosition().y()));\n\t\t\t// setPosition(getPosition().add(getSpeed().add(getPush()))); //\n\t\t\t// CAmbiado;\n\t\t\tLine2D line = new Line2D.Float((float) getKillTracer().getTrace().getLine().getX1(),\n\t\t\t\t\t(float) getKillTracer().getTrace().getLine().getY1(), (float) getSpeed().x(),\n\t\t\t\t\t(float) getSpeed().y());\n\t\t\tgetKillTracer().getTrace().setLine(line);\n\t\t\tArrayList<Entity> hits = getKillTracer().getCollision(getMap());\n\t\t\tfor (Entity ent : hits) {\n\t\t\t\tif (ent instanceof Player && ent != this) {\n\t\t\t\t\tPlayer plent = (Player) ent;\n\t\t\t\t\tplent.die();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t\t\n\t}", "public void updateVelocity(){\r\n if (getPosition().x <= 0 || getPosition().x >= GameBoard.MAX_X) {\r\n setVelocity(getVelocity().add(getVelocity().mul(reverse)));\r\n }\r\n }", "@Override\n\tpublic void update() {\n\t\t\n\t\tif(!this.explShowing)\n\t\t{\n\t\t\tx+= dx;\n\t\t\ty+= dy;\n\t\n\t\t\tif(x < 0)\n\t\t\t{\n\t\t\t\tx = 0;\n\t\t\t\tdx = dx *-1;\n\t\t\t}\n\t\t\telse\n\t\t\tif(x + w > MainGame.getInstance().X_WORLD_END)\n\t\t\t{\n\t\t\t\tx = MainGame.getInstance().X_WORLD_END - w ;\n\t\t\t\tdx = dx *-1;\t\n\t\t\t}\n\t\n\t\t\tif(y < 0)\n\t\t\t{\n\t\t\t\tthis.reset();\n\t\t\t}\n\t\t\telse\n\t\t\tif(y + h > MainGame.getInstance().Y_WORLD_END)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tthis.reset();\n\t\t\t}\n\t\t}\n\t\t\n\t\ts.update();\n\t\n\t\tif(this.explShowing)\n\t\t{\n\t\t\tif(expl.isHasFinished())\n\t\t\t{\n\t\t\t\texplShowing = false;\n\t\t\t\ts = this.normalImage;\n\t\t\t\tthis.x = this.xStart;\n\t\t\t\tthis.y = this.yStart;\n\t\t\t\ts.setX(this.xStart);\n\t\t\t\ts.setY(this.yStart);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//s.setX(x);\n\t\t//s.setY(y);\n\t\t\n\t\tthis.rect.setFrame(getX(),getY(),getW(),getH());\t\n\t}", "public void inputUpdate(float delta) {\n int horiztonalForce = 0;\n\n if (Gdx.input.isKeyPressed(Input.Keys.LEFT) || Gdx.input.isKeyPressed(Input.Keys.A)) {\n horiztonalForce += -1;\n }\n if (Gdx.input.isKeyPressed(Input.Keys.RIGHT) || Gdx.input.isKeyPressed(Input.Keys.D)) {\n horiztonalForce += 1;\n }\n\n if (Gdx.input.isKeyJustPressed(Input.Keys.UP) ||\n Gdx.input.isKeyJustPressed(Input.Keys.SPACE)) {\n player.applyForceToCenter(0, 300, false); // apply 300N upwards\n }\n\n player.setLinearVelocity(horiztonalForce * 5, player.getLinearVelocity().y);\n }", "void setPlayerYRelative(int y) {\n }", "@Override\r\n public void updateMixer() {\n playerPosition = mixer.getGlobalCoordinates();\r\n playerOrientation = mixer.getGlobalOrientation();\r\n }", "public void update()\r\n\t{\r\n\t\tAndroidGame.camera.update(grid, player);\r\n\t\tplayer.update(grid);\r\n\t\tplayButton.update(player, grid);\r\n\t\tmenu.update(grid);\r\n\t\tgrid.update();\r\n\t\tif(grid.hasKey())\r\n\t\t\tgrid.getKey().update(player, grid.getFinish());\r\n\t\tif(levelEditingMode)//checking if the make button is clicked\r\n\t\t{\r\n\t\t\tif(makeButton.getBoundingRectangle().contains(Helper.PointerX(), Helper.PointerY()))\r\n\t\t\t{\r\n\t\t\t\tgrid.makeLevel();\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tdoorBubble.update();\r\n\t\t\tif(hasKey)\r\n\t\t\t\tkeyBubble.update();\r\n\t\t}\r\n\t}", "public void update()\n\t{\n\t\t// Place this GameCanvas at the proper location and size\n\t\tthis.setBounds(0, 0, game.getWindow().getWidth(), game.getWindow().getHeight());\n\t\t\n\t\tif (timeCount > game.getFps())\n\t\t\ttimeCount = 0;\n\t\t\n\t\ttimeCount++;\n\t}", "public void update(){\n\t\ttime += System.currentTimeMillis() - lastTime;\n\t\tlastTime = System.currentTimeMillis();\n\t\t\n\t\t/*fin quando il tempo Ŕ maggiore della velocita incrementa gli indici*/\n\t\tif(time > velocity){\n\t\t\tindex++;\n\t\t\ttime = 0;\n\t\t\tif(index >= animation_frame.length)\n\t\t\t\t{\n\t\t\t\t\tindex = 0;\n\t\t\t\t}\n\t\t}\n\t}", "public void onUpdate()\n {\n super.onUpdate();\n this.jumpMovementFactor = 0.0F;\n this.renderYawOffset = this.rotationPitch = this.rotationYaw = 0.0F;\n\n if (this.target != null && this.target instanceof EntityLiving)\n {\n EntityLiving var1 = (EntityLiving) this.target;\n\n if (var1.getHealth() <= 0 || !this.canEntityBeSeen(var1))\n {\n this.target = null;\n this.stop();\n this.moveTimer = 0;\n return;\n }\n } else\n {\n if (this.target != null && this.target.isDead)\n {\n this.target = null;\n this.stop();\n this.moveTimer = 0;\n return;\n }\n\n if (this.target == null)\n {\n this.target = this.worldObj.getClosestPlayerToEntity(this, -1.0D);\n\n if (this.target == null)\n {\n this.target = null;\n this.stop();\n this.moveTimer = 0;\n\n if (!this.worldObj.isRemote)\n {\n this.setDead();\n }\n\n return;\n }\n }\n }\n\n if (this.posX == (double) this.getOrgX() && this.posY == (double) this.getOrgY() && this.posZ == (double) this.getOrgZ())\n {\n if (!this.isReformed())\n {\n this.setReformed(true);\n }\n\n this.stop();\n this.moveTimer = 0;\n }\n\n if (this.slider == null)\n {\n Vec3 var16 = Vec3.createVectorHelper(this.posX, this.posY, this.posZ);\n Vec3 var2 = Vec3.createVectorHelper(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);\n MovingObjectPosition var18 = this.worldObj.rayTraceBlocks(var16, var2);\n var16 = Vec3.createVectorHelper(this.posX, this.posY, this.posZ);\n var2 = Vec3.createVectorHelper(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);\n\n if (var18 != null)\n {\n var2 = Vec3.createVectorHelper(var18.hitVec.xCoord, var18.hitVec.yCoord, var18.hitVec.zCoord);\n }\n\n if (!this.worldObj.isRemote)\n {\n Object var4 = null;\n List var15 = this.worldObj.getEntitiesWithinAABBExcludingEntity(this, this.boundingBox.addCoord(this.motionX, this.motionY, this.motionZ).expand(4.0D, 4.0D, 4.0D));\n double var6 = 0.0D;\n\n for (int var8 = 0; var8 < var15.size(); ++var8)\n {\n Entity var9 = (Entity) var15.get(var8);\n\n if (var9.canBeCollidedWith() && var9 != this)\n {\n float var10 = 0.3F;\n\n if (var9 instanceof EntitySlider)\n {\n this.slider = (EntitySlider) var9;\n var18 = null;\n }\n\n AxisAlignedBB var11 = var9.boundingBox.expand((double) var10, (double) var10, (double) var10);\n MovingObjectPosition var12 = var11.calculateIntercept(var16, var2);\n\n if (var12 != null)\n {\n double var13 = var16.distanceTo(var12.hitVec);\n\n if (var13 < var6 || var6 == 0.0D)\n {\n var6 = var13;\n }\n }\n }\n }\n }\n\n if (this.slider == null || this.slider.isDead)\n {\n this.target = null;\n this.stop();\n this.moveTimer = 0;\n\n if (!this.worldObj.isRemote)\n {\n this.setDead();\n }\n }\n } else if (this.slider.target != this.target)\n {\n this.target = null;\n this.stop();\n this.moveTimer = 0;\n\n if (!this.worldObj.isRemote)\n {\n this.setDead();\n }\n } else\n {\n this.fallDistance = 0.0F;\n double var17;\n double var5;\n double var3;\n\n if (this.gotMovement)\n {\n if (this.isCollided)\n {\n var17 = this.posX - 0.5D;\n var3 = this.boundingBox.minY + 0.75D;\n var5 = this.posZ - 0.5D;\n\n if (this.crushed)\n {\n this.worldObj.playSoundEffect(this.posX, this.posY, this.posZ, \"random.explode\", 3.0F, (0.625F + (this.worldObj.rand.nextFloat() - this.worldObj.rand.nextFloat()) * 0.2F) * 0.7F);\n this.worldObj.playSoundAtEntity(this, \"aeboss.slider.collide\", 2.5F, 1.0F / (this.rand.nextFloat() * 0.2F + 0.9F));\n }\n\n this.stop();\n } else\n {\n if (this.speedy < 2.0F)\n {\n this.speedy += 0.035F;\n }\n\n this.motionX = 0.0D;\n this.motionY = 0.0D;\n this.motionZ = 0.0D;\n\n if (this.direction == 0)\n {\n this.motionY = (double) this.speedy;\n\n if (this.boundingBox.minY > (this.reform ? (double) this.getOrgY() : this.target.boundingBox.minY + 0.35D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n } else if (this.direction == 1)\n {\n this.motionY = (double) (-this.speedy);\n\n if (this.boundingBox.minY < (this.reform ? (double) this.getOrgY() : this.target.boundingBox.minY - 0.25D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n } else if (this.direction == 2)\n {\n this.motionX = (double) this.speedy;\n\n if (this.posX > (this.reform ? (double) this.getOrgX() - 1.0D : this.target.posX + 0.125D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n } else if (this.direction == 3)\n {\n this.motionX = (double) (-this.speedy);\n\n if (this.posX < (this.reform ? (double) this.getOrgX() - 1.0D : this.target.posX - 0.125D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n } else if (this.direction == 4)\n {\n this.motionZ = (double) this.speedy;\n\n if (this.posZ > (this.reform ? (double) this.getOrgZ() - 1.0D : this.target.posZ + 0.125D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n } else if (this.direction == 5)\n {\n this.motionZ = (double) (-this.speedy);\n\n if (this.posZ < (this.reform ? (double) this.getOrgZ() - 1.0D : this.target.posZ - 0.125D))\n {\n this.stop();\n this.moveTimer = 8;\n }\n }\n }\n } else\n {\n this.motionY = 0.0D;\n\n if (this.moveTimer > 0)\n {\n --this.moveTimer;\n this.motionX = 0.0D;\n this.motionY = 0.0D;\n this.motionZ = 0.0D;\n } else\n {\n var17 = Math.abs(this.posX - (this.reform ? (double) this.getOrgX() : this.target.posX));\n var3 = Math.abs(this.boundingBox.minY - (this.reform ? (double) this.getOrgY() : this.target.boundingBox.minY));\n var5 = Math.abs(this.posZ - (this.reform ? (double) this.getOrgZ() : this.target.posZ));\n\n if (var17 > var5)\n {\n this.direction = 2;\n\n if (this.posX > (this.reform ? (double) this.getOrgX() - 1.0D : this.target.posX))\n {\n this.direction = 3;\n }\n } else\n {\n this.direction = 4;\n\n if (this.posZ > (this.reform ? (double) this.getOrgZ() - 1.0D : this.target.posZ))\n {\n this.direction = 5;\n }\n }\n\n if (var3 > var17 && var3 > var5 || var3 > 0.25D && this.rand.nextInt(5) == 0)\n {\n this.direction = 0;\n\n if (this.posY > (this.reform ? (double) this.getOrgY() : this.target.posY))\n {\n this.direction = 1;\n }\n }\n\n this.gotMovement = true;\n }\n }\n\n if (this.harvey > 0.01F)\n {\n this.harvey *= 0.8F;\n }\n }\n }", "@Override\r\n\tpublic void update(Player unitPlayer, double dX, double dY) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tthis.setXPos(this.getXPos()+dX);\r\n\t\tthis.setYPos(this.getYPos()+dY);\r\n\t\t\r\n\t\tifAttackedByPlayer(unitPlayer);\r\n\t\tattackPlayer(unitPlayer);\r\n\t\tcheckHealth(unitPlayer);\r\n\t}", "private void updateBit() {\r\n float frameTime = 10f;\r\n xVel += (xAccel * frameTime);\r\n yVel += (yAccel * frameTime);\r\n\r\n float xS = (xVel / 20) * frameTime; //PROVIDE THE ANGULE OF THE POSITION\r\n float yS = (yVel / 20) * frameTime; // WITH LESS DENOMINADOR THE BALL MOVE IS MORE DIFFICULT\r\n\r\n xPos -= xS;\r\n yPos -= yS;\r\n\r\n if (xPos > xMax) {\r\n xPos = xMax;\r\n } else if (xPos < 0) {\r\n xPos = 0;\r\n }\r\n\r\n if (yPos > yMax) {\r\n yPos = yMax;\r\n } else if (yPos < 0) {\r\n yPos = 0;\r\n }\r\n\r\n\r\n }", "public void move ()\n\t{\n\t\t//Let's try this...\n\t\tchangeFallSpeed (turnInt);\n\t\t\n\t\t\n\t\tsetX_Pos (getX_Pos () + getHSpeed ());\t//hSpeed is added onto x_pos\n\t\t//The xDimensions are updated by having hSpeed added onto them.\n\t\txDimension1 += getHSpeed ();\n\t\txDimension2 += getHSpeed ();\n\t\txDimension3 += getHSpeed ();\n\t\t\n\t\t//The if statement below ensures that the PaperAirplane does not move\n\t\t//after reaching the 300 y point. The walls around the PaperAirplane,\n\t\t//however, start to move up, creating the illusion that the\n\t\t//PaperAirplane is still falling.\n\t\tif (getY_Pos () < 300)\n\t\t{\n\t\t\tsetY_Pos (getY_Pos () + getVSpeed ());//vSpeed is added onto y_pos\n\t\t\t//The yDimensions are updated by having vSpeed added onto them.\n\t\t\tyDimension1 += getVSpeed ();\n\t\t\tyDimension2 += getVSpeed ();\n\t\t\tyDimension3 += getVSpeed ();\n\t\t}\n\t}", "@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 }", "public synchronized void update(float dt) {\n\t\tbackground.update(dt);\n\t\tif (mode == Values.NO_MODE_IS_SELECTED) {\n\t\t\tfloat x = player.pos[Values.X];\n\t\t\tfloat y = player.pos[Values.Y];\n\n\t\t\tif (x < 0 || x > backgroundWidth || y < 0 || y > backgroundHeight) {\n\t\t\t\tif (!checkDoors(holeDoors, player.direction)) {\n\t\t\t\t\tOrganizer.getOrganizer().deleteSuspended();\n\t\t\t\t\texit();\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tcheckGameInput(dt);\n\t\t\tplayer.update(dt);\n\t\t}\n\t\tcheckVillagers(dt);\n\t\tsuper.update(dt);\n\t}", "@Test\n\tpublic void testPlayerMovement() {\n\t\tEngine engine = new Engine(20);\n\t\tint x = engine.getMoveableObject(0).getX() + engine.getMoveableObject(0).getDisplacement().getXDisplacement();\n\t\tint y = engine.getMoveableObject(0).getY() + engine.getMoveableObject(0).getDisplacement().getYDisplacement();\n\t\tengine.update();\n\t\tassertEquals(\"failure - player's next x coordinate is not correct\", x, engine.getMoveableObject(0).getX(), 0.0);\n\t\tassertEquals(\"failure - player's next y coordinate is not correct\", y, engine.getMoveableObject(0).getY(), 0.0);\n\t}", "@Override\n public void update(@NotNull GameVariables variables) {\n if (variables.getStep() % variables.getEnemyMovementDelay() == 0) {\n super.setCoordinates(x(), y() + variables.getEnemySpeed());\n }\n }", "public void move() {\n\t\tdouble xv = 0;\r\n\t\tdouble yv = 0;\r\n\t\t//this method allows the entity to hold both up and down (or left and right) and not move. gives for smooth direction change and movement\r\n\t\tif (moveRight) {\r\n\t\t\txv+=getSpeed();\r\n\t\t\torientation = Orientation.EAST;\r\n\t\t}\r\n\t\tif (moveLeft) {\r\n\t\t\txv-=getSpeed();\r\n\t\t\torientation = Orientation.WEST;\r\n\t\t}\r\n\t\tif (moveUp)\r\n\t\t\tyv-=getSpeed();\r\n\t\tif (moveDown)\r\n\t\t\tyv+=getSpeed();\r\n\t\tif (!doubleEquals(xv,0) || !doubleEquals(yv,0)) {\r\n\t\t\t((Player)this).useMana(0.1);\r\n\t\t\tImageIcon img = new ImageIcon(\"lib/assets/images/fireball.png\");\r\n\t\t\tBufferedImage image = new BufferedImage(32,32,BufferedImage.TYPE_INT_ARGB);\r\n\t\t\tGraphics g = image.getGraphics();\r\n\t\t\tg.drawImage(img.getImage(), 0, 0, image.getWidth(), image.getHeight(), null);\r\n\t\t\tColor n = loop[ind%loop.length];\r\n\t\t\tind++;\r\n\t\t\timage = ImageProcessor.scaleToColor(image, n);\r\n\t\t\t//PopMessage.addPopMessage(new PopMessage(image,getX(),getY()));\r\n\t\t}\r\n\t\telse\r\n\t\t\t((Player)this).useMana(-0.1);\r\n\t\tmove(xv,yv);\r\n\t}" ]
[ "0.698386", "0.6872721", "0.6817059", "0.67564183", "0.67164564", "0.6704547", "0.670159", "0.6655917", "0.66554445", "0.6598844", "0.6543748", "0.65361917", "0.65307736", "0.6515315", "0.65130585", "0.650338", "0.64632785", "0.6421878", "0.6408887", "0.6384842", "0.63503844", "0.63420194", "0.633049", "0.6302273", "0.6297375", "0.62770313", "0.62761265", "0.6269615", "0.6268553", "0.62550473", "0.6245818", "0.6200193", "0.6191276", "0.6188668", "0.6166277", "0.614287", "0.6133584", "0.6128354", "0.61195666", "0.6111576", "0.6094469", "0.608639", "0.6081342", "0.6075871", "0.6038941", "0.60375935", "0.60375935", "0.6033499", "0.6031805", "0.6023271", "0.6022768", "0.60134995", "0.6006073", "0.60051745", "0.6004491", "0.5991563", "0.599021", "0.5989877", "0.59869146", "0.59829015", "0.5981494", "0.5976924", "0.5975556", "0.5975441", "0.5964809", "0.59629184", "0.5958257", "0.5958181", "0.59571075", "0.595646", "0.5952088", "0.5945408", "0.5943009", "0.59418726", "0.5941692", "0.59367526", "0.59322023", "0.59258723", "0.5924713", "0.59167403", "0.5915451", "0.59100646", "0.5909538", "0.59055084", "0.5903923", "0.5903614", "0.59035355", "0.59023434", "0.5899751", "0.5896635", "0.5894539", "0.589333", "0.58902884", "0.5888473", "0.5887998", "0.58835", "0.5882487", "0.58814776", "0.5872923", "0.5866536" ]
0.648422
16
Gets the hiX property (double) value.
public double getHiX() { return fieldHiX; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double hi() {\n return hi;\n }", "public String getXh() {\n return xh;\n }", "public double getXValue(){\r\n\t\treturn ((Double)(super.xValue) ).doubleValue();\r\n\t}", "public double getX() {\n return x;\r\n }", "public double getX() {\r\n return x;\r\n }", "public double getX(){\n\t\treturn x;\n\t}", "public final double getX() {\n return x;\n }", "public double getX() { return x; }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x;\n }", "public double getX() {\n return x;\n }", "public double getX() {\n return x;\n }", "public double getX() {\n return x;\n }", "public double getX() {\n return x;\n }", "public double getX() {\n return x;\n }", "public double getX() {\n return x;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "double getX(){\r\n\t\treturn x;\r\n\t}", "public final double getX() {\n return x;\n }", "public double getX() {\n\t\treturn x;\n\t}", "public double getX() {\n\t\treturn x;\n\t}", "public double getX() {\n\t\treturn x;\n\t}", "public double getX() {\n\t\treturn x;\n\t}", "public double getX() {\n\t\treturn x;\n\t}", "public double getX() {\n\t\treturn x;\n\t}", "public double getX() {\n\t\treturn x;\n\t}", "public double getX()\n {\n return x;\n }", "public double getX() {\n\t\t\treturn x;\n\t\t}", "public double getX()\n\t{\n\t\treturn x;\n\t}", "public double getX() {\n\t\t\t\treturn x;\n\t\t\t}", "public double getX() {\r\n return this.x;\r\n }", "public double getX() {\n return this.x;\n }", "public double getX() {\n return this.x;\n }", "public double getX() {\n return this.x;\n }", "public double getX() {\n return this.x;\n }", "float getX();", "float getX();", "float getX();", "float getX();", "float getX();", "float getX();", "public double getX(){\r\n return x;\r\n }", "Float getX();", "public double getX();", "public final double getX()\n {\n return m_jso.getX();\n }", "double getX();", "double getX();", "double getX();", "double getX();", "double getX();", "double getX();", "double getX();", "double getX();", "double getX();", "double getX();", "public int getHealX()\n\t{\n\t\treturn m_healX;\n\t}", "public int getHorX() {\r\n return horX;\r\n }", "public static double getUnitHX(double x, double y) {\n return INVERSE_INNER_DIAMETER * x + y;\n }", "public double getX(){\n return x;\n }", "public double getHigh() { return high;}", "public double GetX(){\n return this._X;\n }", "public double getX(){\n return this.x;\n }", "@Basic\n\tpublic double getX() {\n\t\treturn this.x;\n\t}", "public int getX() {\n return (int) Math.round(x);\n }", "public static Double SmallX() {\n return SmallX;\n }", "public float getX() {\n return x_;\n }", "public double getHigh() {\n return high;\n }", "public float getX() {\r\n return x;\r\n }", "public float getX() {\n return this.x;\n }", "float getXEntry();", "public float getX() {\n return x_;\n }", "public Float getX() {\n return _x;\n }", "float getX() {\n return _x;\n }", "public double getX() {\r\n\t\t//throw new UnsupportedOperationException(\"TODO - implement\");\r\n\t\treturn pX;\r\n\t}", "public double getX() {\n\t\t//throw new UnsupportedOperationException(\"TODO - implement\");\n\t\treturn pX;\n\t}", "public float getX() {\n return x;\n }", "public float getX() {\n return x;\n }", "public float getX() {\n return x;\n }", "public double getX() {\r\n\t\t return this.xCoord;\r\n\t }", "double getx() {\n return this.x;\n }", "public SVGLength getX() {\n return x;\n }", "public Float getX() {\n\t\treturn x;\n\t}", "public double getX() {\n\t\treturn bassX;\n\t}", "public double getX() {\n return mX;\n }", "public float getX() {\r\n\t\treturn x;\r\n\t}" ]
[ "0.6784834", "0.6750269", "0.6715695", "0.6698794", "0.6657348", "0.6648927", "0.66446674", "0.6643698", "0.6612109", "0.6612109", "0.6612109", "0.6612109", "0.6612109", "0.6612109", "0.6612109", "0.66120714", "0.6611692", "0.66073185", "0.66073185", "0.66073185", "0.66073185", "0.66073185", "0.66073185", "0.66073185", "0.66064", "0.66064", "0.66064", "0.66064", "0.66064", "0.66064", "0.66064", "0.66064", "0.6603418", "0.65932834", "0.6586319", "0.6586319", "0.6586319", "0.6586319", "0.6586319", "0.6586319", "0.6586319", "0.6584561", "0.65823686", "0.6572437", "0.65711004", "0.65600085", "0.6554585", "0.6554585", "0.6554585", "0.6554585", "0.653326", "0.653326", "0.653326", "0.653326", "0.653326", "0.653326", "0.6529233", "0.65267015", "0.65253156", "0.6517176", "0.6497818", "0.6497818", "0.6497818", "0.6497818", "0.6497818", "0.6497818", "0.6497818", "0.6497818", "0.6497818", "0.6497818", "0.64889395", "0.64879966", "0.6479062", "0.6469801", "0.6462574", "0.6439154", "0.64318246", "0.64299285", "0.6417104", "0.6406699", "0.6404745", "0.6388823", "0.6386325", "0.6381988", "0.6378954", "0.63771796", "0.6373623", "0.6373041", "0.63723546", "0.6360593", "0.6359675", "0.6359675", "0.6359675", "0.6358947", "0.63495976", "0.63453436", "0.6344456", "0.631688", "0.6316424", "0.6316111" ]
0.711851
0
Gets the hiY property (double) value.
public double getHiY() { return fieldHiY; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getYValue(){\n return(yValue);\n }", "public final double getY() {\n return y;\n }", "public double getYValue(){\r\n\t\treturn ((Double)(super.yValue) ).doubleValue(); \r\n\t}", "public final double getY() {\n return y;\n }", "public int getY() {\n return (int) Math.round(y);\n }", "public Double getY() {\n\t\treturn y;\n\t}", "public double GetY(){\n return this._Y;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n\t\treturn y;\n\t}", "public double getY() {\n\t\treturn y;\n\t}", "public double getY() {\n\t\treturn y;\n\t}", "public double getY() {\n\t\treturn y;\n\t}", "public double getY() {\r\n return y;\r\n }", "public double getY() {\r\n return this.y;\r\n }", "public double getY() {\n return y;\r\n }", "public SVGLength getY() {\n return y;\n }", "public double getY() {\n return this.y;\n }", "public double getY() {\n return this.y;\n }", "public double getY() {\n return this.y;\n }", "public double getY()\n\t{\n\t\treturn y;\n\t}", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY();", "public double getY(){\n\t\treturn y;\n\t}", "public final double getY()\n {\n return m_jso.getY();\n }", "public double getY() {\n return y;\n }", "public double getY() {\n return y;\n }", "public double getY() {\n return y;\n }", "public double getY() {\n return y;\n }", "public double getY() {\n return y;\n }", "public double getY() {\n return y;\n }", "public double getY() {\n return mY;\n }", "public double getY() { return y; }", "public double getY()\n {\n return y;\n }", "public double getY() {\r\n\t\t return this.yCoord;\r\n\t }", "public static double getY() {\n return NetworkTableInstance.getDefault().getTable(\"limelight\").getEntry(\"ty\").getDouble(0);\n }", "Float getY();", "public double getY() {\n\t\treturn bassY;\n\t}", "@Basic\n\tpublic double getY() {\n\t\treturn this.y;\n\t}", "public double getY() {\r\n\t\t//throw new UnsupportedOperationException(\"TODO - implement\");\r\n\t\treturn pY;\r\n\t}", "public double getY() {\n return y;\n }", "public double getY() {\n\t\t//throw new UnsupportedOperationException(\"TODO - implement\");\n\t\treturn pY;\n\t}", "public double getY() {\r\n return this.dy;\r\n }", "public float getYHeight() {\n\t\treturn this.yHeight;\n\t}", "@Override\n\tpublic double getY() {\n\t\treturn y;\n\t}", "public float getPenY() {\n return pm.pen.getLevelValue(PLevel.Type.Y);\n }", "double getY();", "double getY();", "double getY();", "double getY();", "double getY();", "double getY();", "double getY();", "double getY();", "double getY();", "public static Double LargeY() {\n return LargeY;\n }", "protected Number getY() {\n return this.yCoordinate;\n }", "public double getY()\n\t\t{\n\t\t\treturn this.y[0];\n\t\t}", "public double getY()\n\t{\t\n\t\treturn y;\t\t\t\t\t\t\t\t\t\t\t\t// Return point's y-coordinate\n\t}", "public int getY(){\n\t\tif(!resetCoordinates()) return 10000;\n\t\treturn Math.round(robot.translation.get(1)/ AvesAblazeHardware.mmPerInch);\n\t}", "public double getY(){\r\n return y;\r\n }", "public double getyCoord() {\n\t\treturn yCoord;\n\t}", "public Float getY() {\n\t\treturn y;\n\t}", "public double getY(){\n return this.y;\n }", "float getY();", "float getY();", "float getY();", "float getY();", "float getY();", "float getY();", "public float getY() {\r\n\t\treturn y;\r\n\t}", "public Float getY() {\n return _y;\n }", "public float getY() {\n return y_;\n }", "public int getHealY()\n\t{\n\t\treturn m_healY;\n\t}", "public double getY() {\n\t\treturn point[1];\n\t}", "double getY(){\r\n\t\treturn y;\r\n\t}", "public double getY(){\n return y;\n }", "public float getY() {\n return this.y;\n }", "public float getY() {\n return y_;\n }", "public float getLimit_lin_y_upper() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 44);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 36);\n\t\t}\n\t}", "public int getHorY() {\r\n return horY;\r\n }", "public double y() {\r\n return this.y;\r\n }", "public float getY();", "public float getY();", "public double getYPixel()\n {\n return yPixel;\n }", "public float getY() {\n return this.y;\n }", "public double getMaxY() {\n\t\treturn my;\n\t}" ]
[ "0.72655463", "0.72644264", "0.72549933", "0.723897", "0.72019625", "0.7177236", "0.7168526", "0.71647465", "0.71646315", "0.71646315", "0.71646315", "0.71646315", "0.71646315", "0.71646315", "0.71646315", "0.7164184", "0.7164184", "0.7164184", "0.7164184", "0.71569705", "0.71527815", "0.71472573", "0.71443605", "0.7144191", "0.7144191", "0.7144191", "0.71436566", "0.71406084", "0.71406084", "0.71406084", "0.71406084", "0.71406084", "0.71402204", "0.71402204", "0.71402204", "0.7136539", "0.7130928", "0.7121541", "0.7104932", "0.7104932", "0.7104932", "0.7104932", "0.7104932", "0.7104932", "0.71042436", "0.70969284", "0.70814794", "0.70707256", "0.70696604", "0.7067792", "0.7066482", "0.7062824", "0.7061976", "0.70596045", "0.7037946", "0.70334625", "0.70243794", "0.7021697", "0.7020665", "0.70158505", "0.70158505", "0.70158505", "0.70158505", "0.70158505", "0.70158505", "0.70158505", "0.70158505", "0.70158505", "0.7013839", "0.699707", "0.69898975", "0.69896173", "0.69780135", "0.69754565", "0.6962969", "0.6942756", "0.6940113", "0.6920567", "0.6920567", "0.6920567", "0.6920567", "0.6920567", "0.6920567", "0.6915651", "0.690711", "0.69065493", "0.690081", "0.68881136", "0.6886571", "0.6877738", "0.68603927", "0.68597615", "0.68591285", "0.68490994", "0.68478847", "0.6847719", "0.6847719", "0.6846029", "0.68405336", "0.6838827" ]
0.6876471
90
Gets the hiZ property (double) value.
public double getHiZ() { return fieldHiZ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "float getZ();", "float getZ();", "float getZ();", "public final double getZ() {\n return z;\n }", "public final double getZ()\n {\n return m_jso.getZ();\n }", "public double getZ() {\r\n\t\treturn z;\t\r\n\t\t}", "public double getZ(){\n\t\treturn z;\n\t}", "public double getZ() {\r\n return z;\r\n }", "public double getZ() {\n\t\treturn z;\n\t}", "public double getZ() {\n\t\treturn z;\n\t}", "public static Double LargeZ() {\n return LargeZ;\n }", "@Override\n\tpublic double getZ() {\n\t\treturn z;\n\t}", "public double getZ() {\n\t\treturn point[2];\n\t}", "public float getZ() {\r\n return z;\r\n }", "Double getZLength();", "public static Double SmallZ() {\n return SmallZ;\n }", "public float getZ() {\n return z_;\n }", "public float getZ() {\n return z_;\n }", "public double getz0()\n\t{\n\t\treturn this.z0;\n\t}", "public Double z() {\n return z;\n }", "double getz() {\nreturn this.z;\n }", "@java.lang.Override\n public float getZ() {\n return z_;\n }", "@java.lang.Override\n public float getZ() {\n return z_;\n }", "public double getH();", "@java.lang.Override\n public float getZ() {\n return z_;\n }", "@java.lang.Override\n public float getZ() {\n return z_;\n }", "public double getZ() {\n return position.getZ();\n }", "double getZLength();", "public int getZ()\n {\n return zaxis;\n }", "public Float getZwsalary() {\n return zwsalary;\n }", "double getZ() { return pos[2]; }", "public static double getZFromFeH(double feH) {\n\t\treturn 0.0;\n\t}", "public int getZ() {\n\t\treturn -150;\n\t}", "public int getZ() {\r\n return z;\r\n }", "public int getZ() {\n\t\treturn z;\n\t}", "public float getZ()\n {\n return fz;\n }", "public int getZ() {\n return Z;\n }", "public int getZ() {\n return z;\n }", "public double getH() {\n return h;\n }", "public double getH() {\n return h;\n }", "public double Z_r() {\r\n \t\treturn getZ();\r\n \t}", "public int getZ() {\n return Z;\n }", "float getH() {\n return _h;\n }", "public double getHigh() {\n return high;\n }", "public float approach_z_GET()\n { return (float)(Float.intBitsToFloat((int) get_bytes(data, 49, 4))); }", "float getAccZ();", "int getZ();", "int getZ();", "int getZ();", "public double getH_() {\n\t\treturn h_;\n\t}", "public double getLoZ() {\r\n\treturn fieldLoZ;\r\n}", "public float approach_z_GET()\n { return (float)(Float.intBitsToFloat((int) get_bytes(data, 48, 4))); }", "public double hi() {\n return hi;\n }", "public float getLimit_lin_z_upper() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 52);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 44);\n\t\t}\n\t}", "public double getDeltaZ() {\n return deltaZ;\n }", "public double getHigh() { return high;}", "public final int getZOff() {\r\n\t\treturn zOff;\r\n\t}", "public double getDeltaZ() {\n return deltaZ;\n }", "public double getDeltaZ() {\n return deltaZ;\n }", "public double getZFactor() {\r\n\t\treturn z_factor;\r\n\t}", "public double getGz() {\n return mGz;\n }", "public Float getZbjg() {\n return zbjg;\n }", "public Double z() {\n return this.f917a.getAsDouble(\"CFG_LOCATION_LATITUDE\");\n }", "public double getModZ() {\n return (modZ != 0 ? ( modZ > 0 ? (modZ - RESTADOR) : (modZ + RESTADOR) ) : modZ);\n }", "public Double getDz();", "@Override\n\tpublic int getZ() {\n\t\treturn 1000;\n\t}", "public double getAccelZ() {\n return m_accelerometer.getZ();\n }", "abstract double getOrgZ();", "public int getHzyf() {\n\t\treturn this.hzyf;\n\t}", "public float bottom_clearance_GET()\n { return (float)(Float.intBitsToFloat((int) get_bytes(data, 28, 4))); }", "public int getZSize() {\n\t\treturn (highPoint.getBlockZ() - lowPoint.getBlockZ()) + 1;\n\t}", "public Float getHoatts() {\r\n return hoatts;\r\n }", "double setz(double z) {\nreturn this.z;\n }", "@Override\n public int getZ() {\n return (int) claim.getZ();\n }", "public float getLimit_ang_z_upper() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 76);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 68);\n\t\t}\n\t}", "@Override\n\tpublic double getZLoc() {\n\t\tdouble side = Math.sqrt(getMySize())/2;\n\t\treturn z-side;\n\t}", "public float altitude_monotonic_GET()\n { return (float)(Float.intBitsToFloat((int) get_bytes(data, 8, 4))); }", "godot.wire.Wire.Vector3 getZ();", "public float getAccZ() {\n return accZ_;\n }", "public double getHmag()\n\t{\n\t\tVectorN h = this.getH();\n\t\tdouble out = h.mag();\n\t\treturn out;\n\t}", "public b ho(boolean z) {\n return this.fHV.hp(z);\n }", "public java.math.BigDecimal getHigh() {\n return high;\n }", "public Float getHsupaUlThroughtput() {\n return hsupaUlThroughtput;\n }", "abstract double getDirZ();", "@Override\n\tpublic int getLowZ()\n\t{\n\t\treturn zoneZ1;\n\t}", "public float getLocalZ(){\n\t\treturn this.z;\n\t}", "public float getAccelZ() {\n return mAccelZ;\n }", "public double getAH() {\n\t\t\treturn archeight.get();\n\t\t}", "public final int zzb() {\n return this.zzx;\n }", "public final String zzhm() {\n AppMethodBeat.i(68614);\n String zzah = zzfv().zzah();\n zzex zzex = zzew.zzahq;\n if (zzah == null) {\n zzah = (String) zzex.get();\n AppMethodBeat.o(68614);\n return zzah;\n }\n zzah = (String) zzex.get(this.zzaet.zze(zzah, zzex.getKey()));\n AppMethodBeat.o(68614);\n return zzah;\n }", "public float getZ(){\n\t\tif(!isRoot()){\n\t\t\treturn getParent().getZ() + z;\n\t\t}else{\n\t\t\treturn z;\n\t\t}\n\t}", "public Float getHosucr() {\r\n return hosucr;\r\n }", "double getEndH();", "public float getAccZ() {\n return accZ_;\n }", "public int getZY() {\n\t\treturn zY;\n\t}", "public float max3DZ() {\n return Math.max(stop3D.z, start3D.z);\n }", "public void setZ(Double z);", "public Float getBhOhoatts() {\r\n return bhOhoatts;\r\n }", "public double getDz() {\n return dz;\n }", "public int getH() {\n\t\treturn this.H;\n\t}" ]
[ "0.7294864", "0.7294864", "0.7294864", "0.7217109", "0.7197006", "0.7190363", "0.71753687", "0.7168538", "0.7153166", "0.7153166", "0.70785546", "0.70539093", "0.6919321", "0.6905237", "0.68849653", "0.68762153", "0.68738115", "0.68612355", "0.6838625", "0.6814267", "0.6782552", "0.6777319", "0.6777319", "0.67604625", "0.6758692", "0.6758692", "0.671623", "0.6709043", "0.67050165", "0.66933036", "0.66864204", "0.6667879", "0.6658479", "0.6657669", "0.6644331", "0.6637557", "0.6635282", "0.6625608", "0.65875363", "0.65875363", "0.6542431", "0.65345895", "0.6527731", "0.65202874", "0.6515305", "0.64836794", "0.6473179", "0.6473179", "0.6473179", "0.64703166", "0.6469015", "0.645677", "0.64404285", "0.644022", "0.6430285", "0.64140326", "0.6406049", "0.639652", "0.639652", "0.6372945", "0.6358767", "0.6349894", "0.63483185", "0.6346807", "0.63376576", "0.6335636", "0.63293254", "0.63266647", "0.63233286", "0.6287987", "0.6244949", "0.6240229", "0.6232159", "0.62287724", "0.6227179", "0.61901957", "0.61718225", "0.614794", "0.61437196", "0.61310464", "0.612476", "0.61123407", "0.61107796", "0.61039174", "0.61010736", "0.60981923", "0.6088245", "0.60698354", "0.6063174", "0.6056103", "0.60394824", "0.602809", "0.6017936", "0.601738", "0.6012892", "0.5995824", "0.5967205", "0.596106", "0.5948209", "0.59437627" ]
0.74338406
0
Gets the loX property (double) value.
public double getLoX() { return fieldLoX; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double lo() {\n return lo;\n }", "public final double getX() {\n return x;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n\t\t\t\treturn x;\n\t\t\t}", "public final double getX() {\n return x;\n }", "public SVGLength getX() {\n return x;\n }", "public double getX() {\n\t\t\treturn x;\n\t\t}", "public double getX() {\n return x;\r\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\n return x_;\n }", "public double getX() {\r\n return x;\r\n }", "public double getX(){\n\t\treturn x;\n\t}", "public double getX() {\n\t\treturn x;\n\t}", "public double getX() {\n\t\treturn x;\n\t}", "public double getX() {\n\t\treturn x;\n\t}", "public double getX() {\n\t\treturn x;\n\t}", "public double getX() {\n\t\treturn x;\n\t}", "public double getX() {\n\t\treturn x;\n\t}", "public double getX() {\n\t\treturn x;\n\t}", "public double getX() {\n return x;\n }", "public double getX() {\n return x;\n }", "public double getX() {\n return x;\n }", "public double getX() {\n return x;\n }", "public double getX() {\n return x;\n }", "public double getX() {\n return x;\n }", "public double getX() {\n return x;\n }", "public double getX() {\r\n\t\t//throw new UnsupportedOperationException(\"TODO - implement\");\r\n\t\treturn pX;\r\n\t}", "public double getX() {\n return x;\n }", "public double getX() {\n\t\t//throw new UnsupportedOperationException(\"TODO - implement\");\n\t\treturn pX;\n\t}", "public double getX()\n\t{\n\t\treturn x;\n\t}", "public double GetX(){\n return this._X;\n }", "public double getX() {\r\n return this.x;\r\n }", "public double getX() {\n return this.x;\n }", "public double getX() {\n return this.x;\n }", "public double getX() {\n return this.x;\n }", "public double getX() {\n return this.x;\n }", "public double getX() {\n return mX;\n }", "double getX(){\r\n\t\treturn x;\r\n\t}", "public double getX() { return x; }", "public double getX()\n {\n return x;\n }", "@Basic\n\tpublic double getX() {\n\t\treturn this.x;\n\t}", "public double getX(){\r\n return x;\r\n }", "public final double getX()\n {\n return m_jso.getX();\n }", "public static double getX() {\n return NetworkTableInstance.getDefault().getTable(\"limelight\").getEntry(\"tx\").getDouble(0);\n }", "public double getL() {\n return l;\n }", "public double getLoa() {\n\t\treturn _tempNoTiceShipMessage.getLoa();\n\t}", "public double getX() {\r\n\t\t return this.xCoord;\r\n\t }", "public double getX()\n\t\t{\n\t\t\treturn this.x[0];\n\t\t}", "public double getX();", "public double getX(){\n return x;\n }", "double getx() {\n return this.x;\n }", "public double getXValue(){\r\n\t\treturn ((Double)(super.xValue) ).doubleValue();\r\n\t}", "public double getX(){\n return this.x;\n }", "public double getLeft() {\n return this.xL;\n }", "double getX();", "double getX();", "double getX();", "double getX();", "double getX();", "double getX();", "double getX();", "double getX();", "double getX();", "double getX();", "public double getX() {\r\n return this.dx;\r\n }", "public int getLo() {\n return lo;\n }", "public double getX() {\n\t\treturn point[0];\n\t}", "public long getXlong(){\n return (long) x;\n }", "public double getX() {\n\t\tif (v == 0) {\n\t\t\treturn 0.0;\n\t\t} else {\n\t\t\treturn x;\n\t\t}\n\t}", "public double getX()\n\t{\n\t\treturn x;\t\t\t\t\t\t\t\t\t\t\t\t// Return point's x-coordinate\n\t}", "public double getXVel() {\n return this.xVel;\n }", "public double getX() {\n\t\treturn bassX;\n\t}", "public float getX() {\n return x_;\n }", "public static Double LargeX() {\n return LargeX;\n }", "public float getX() {\n return x_;\n }", "public double confidenceLo() {\r\n\t\treturn confidenceLo;\r\n\t}", "public double getX() {\n\t\treturn sens.getXPos();\n\t}", "public final double getX() { return location.getX(); }", "protected Number getX() {\n return this.xCoordinate;\n }", "public int getX() {\n return (int) Math.round(x);\n }", "public Float getX() {\n return _x;\n }", "@Override\n\tpublic float getX() {\n\t\treturn lilyPosX;\n\t}", "public double X_r() {\r\n \t\treturn getX();\r\n \t}", "abstract double getDirX();", "public double getXPOS()\n {\n \n return __XPOS;\n }", "public float getX() {\n return this.x;\n }", "public Double x() {\n return x;\n }" ]
[ "0.76365906", "0.71892744", "0.7140578", "0.7140578", "0.7140578", "0.7140578", "0.7140578", "0.7140578", "0.7140578", "0.7139456", "0.7128412", "0.7128142", "0.7113838", "0.71119577", "0.7101207", "0.7092724", "0.7092724", "0.7092724", "0.7092724", "0.7092724", "0.7092724", "0.7092724", "0.7092724", "0.70747197", "0.7057346", "0.7053047", "0.7053047", "0.7053047", "0.7053047", "0.7053047", "0.7053047", "0.7053047", "0.7027745", "0.7027745", "0.7027745", "0.7027745", "0.7027745", "0.7027745", "0.7027745", "0.70215386", "0.70215064", "0.70084643", "0.7003119", "0.69830316", "0.69787943", "0.6969622", "0.6969622", "0.6969622", "0.6969622", "0.6956921", "0.6945259", "0.69356525", "0.6933881", "0.68903196", "0.68560827", "0.6847632", "0.68456733", "0.68451846", "0.683675", "0.6834733", "0.6820594", "0.68129885", "0.6799632", "0.6791492", "0.67782676", "0.67605925", "0.67546767", "0.6728249", "0.6728249", "0.6728249", "0.6728249", "0.6728249", "0.6728249", "0.6728249", "0.6728249", "0.6728249", "0.6728249", "0.66717744", "0.6669948", "0.6608365", "0.6592497", "0.6587935", "0.6576899", "0.6565132", "0.6559517", "0.655872", "0.65493804", "0.6539256", "0.6531579", "0.6528159", "0.65230453", "0.65206355", "0.6474452", "0.6472329", "0.6470567", "0.64663815", "0.645903", "0.6454966", "0.64517057", "0.6446278" ]
0.7475222
1
Gets the loY property (double) value.
public double getLoY() { return fieldLoY; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double lo() {\n return lo;\n }", "public static double getY() {\n return NetworkTableInstance.getDefault().getTable(\"limelight\").getEntry(\"ty\").getDouble(0);\n }", "public double GetY(){\n return this._Y;\n }", "public final double getY() {\n return y;\n }", "public final double getY() {\n return y;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public Double getY() {\n\t\treturn y;\n\t}", "public SVGLength getY() {\n return y;\n }", "public static Double LargeY() {\n return LargeY;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public double getY() {\n return y_;\n }", "public final double getY()\n {\n return m_jso.getY();\n }", "public double getY() {\r\n\t\t//throw new UnsupportedOperationException(\"TODO - implement\");\r\n\t\treturn pY;\r\n\t}", "public double getY() {\n\t\t//throw new UnsupportedOperationException(\"TODO - implement\");\n\t\treturn pY;\n\t}", "public double getY()\n\t{\n\t\treturn y;\n\t}", "public double getY() {\n\t\treturn y;\n\t}", "public double getY() {\n\t\treturn y;\n\t}", "public double getY() {\n\t\treturn y;\n\t}", "public double getY() {\n\t\treturn y;\n\t}", "public double getY() {\n return mY;\n }", "public double getY() {\r\n return y;\r\n }", "public double getY() {\n return y;\r\n }", "public double getYValue(){\n return(yValue);\n }", "public double getY() {\n return y;\n }", "public double getY() {\n return y;\n }", "public double getY() {\n return y;\n }", "public double getY() {\n return y;\n }", "public double getY() {\n return y;\n }", "public double getY() {\n return y;\n }", "public double getY() {\r\n return this.y;\r\n }", "public double getY() {\n return this.y;\n }", "public double getY() {\n return this.y;\n }", "public double getY() {\n return this.y;\n }", "public double getY() {\n return y;\n }", "public double getYVel() {\n return this.yVel;\n }", "public double getY()\n {\n return y;\n }", "public double getYValue(){\r\n\t\treturn ((Double)(super.yValue) ).doubleValue(); \r\n\t}", "public double y() {\n return _y;\n }", "public double y() {\n return _y;\n }", "public double getY(){\n\t\treturn y;\n\t}", "public double y() {\r\n return this.y;\r\n }", "@Basic\n\tpublic double getY() {\n\t\treturn this.y;\n\t}", "public double getY()\n\t\t{\n\t\t\treturn this.y[0];\n\t\t}", "public double confidenceLo() {\r\n\t\treturn confidenceLo;\r\n\t}", "public double getY() { return y; }", "public Double y() {\n return y;\n }", "public double getY() {\n\t\treturn bassY;\n\t}", "public double getY()\n\t{\t\n\t\treturn y;\t\t\t\t\t\t\t\t\t\t\t\t// Return point's y-coordinate\n\t}", "public double getY() {\r\n\t\t return this.yCoord;\r\n\t }", "public double getLoa() {\n\t\treturn _tempNoTiceShipMessage.getLoa();\n\t}", "double getY(){\r\n\t\treturn y;\r\n\t}", "public double getMaxY() {\n\t\treturn my;\n\t}", "public double getY(){\r\n return y;\r\n }", "public double y() { return y; }", "public float getPenY() {\n return pm.pen.getLevelValue(PLevel.Type.Y);\n }", "public double getY() {\n\t\treturn point[1];\n\t}", "@Override\n\tpublic double getY() {\n\t\treturn y;\n\t}", "public double getL() {\n return l;\n }", "public double getY() {\r\n return this.dy;\r\n }", "public double getLymphocyticPercentage()\r\n \t{\r\n \t\treturn lymphocyticPercentage;\r\n \t}", "public double y() { return _y; }", "public double getY_vel() {\n return this.y_vel;\n }", "public double getY();", "public double getY(){\n return this.y;\n }", "public double getY(){\n return y;\n }", "double gety() {\nreturn this.y;\n }", "public double getyCoord() {\n\t\treturn yCoord;\n\t}", "public double Y_r() {\r\n \t\treturn getY();\r\n \t}", "public int getDiffY() {\n\t\t\treturn diffY;\n\t\t}", "double getY();", "double getY();", "double getY();", "double getY();", "double getY();", "double getY();", "double getY();", "double getY();", "double getY();", "public double getyChange() {\n\t\treturn yChange;\n\t}", "public float getY() {\n return y_;\n }", "protected Number getY() {\n return this.yCoordinate;\n }", "public float getTiltY() {\n return pm.pen.getLevelValue(PLevel.Type.TILT_Y);\n }", "public double confidenceLo() {\n\t\treturn confidenceLow;\n\t}", "public Float getY() {\n return _y;\n }", "public int getY() {\n return (int) Math.round(y);\n }", "public long getYlong(){\n return (long) y;\n }", "public double getPY(){\n\t\treturn previousY;\n\t}" ]
[ "0.7540483", "0.7407748", "0.7393327", "0.73804814", "0.73286355", "0.73083115", "0.730822", "0.730822", "0.730822", "0.730822", "0.730822", "0.730822", "0.730822", "0.72943944", "0.72764635", "0.72720695", "0.7262146", "0.7262146", "0.7262146", "0.7262146", "0.7262146", "0.7261147", "0.7261147", "0.7261147", "0.72581273", "0.72563267", "0.72452176", "0.7219073", "0.7212481", "0.7212481", "0.7212481", "0.7212481", "0.7205902", "0.72034687", "0.7193447", "0.71874267", "0.7157695", "0.7157695", "0.7157695", "0.7157695", "0.7157695", "0.7157695", "0.7152401", "0.7133894", "0.7133894", "0.7133894", "0.7132799", "0.7115823", "0.7110899", "0.71074665", "0.7103376", "0.7103376", "0.71031046", "0.708699", "0.707968", "0.7052502", "0.7044994", "0.70393294", "0.7038064", "0.7022572", "0.7007651", "0.70059127", "0.70025074", "0.69557774", "0.6943001", "0.69349134", "0.6925155", "0.6908699", "0.68991566", "0.68846536", "0.688352", "0.68783003", "0.68766665", "0.68707484", "0.68599546", "0.68515134", "0.6850856", "0.6843141", "0.6798405", "0.6779782", "0.6775533", "0.67617387", "0.675491", "0.675491", "0.675491", "0.675491", "0.675491", "0.675491", "0.675491", "0.675491", "0.675491", "0.6748569", "0.6742587", "0.6731477", "0.67261297", "0.6717929", "0.67163694", "0.6713944", "0.66997516", "0.66940475" ]
0.7414283
1
Gets the loZ property (double) value.
public double getLoZ() { return fieldLoZ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double lo() {\n return lo;\n }", "public final double getZ() {\n return z;\n }", "public double getZ(){\n\t\treturn z;\n\t}", "public double getZ() {\r\n return z;\r\n }", "public double getZ() {\r\n\t\treturn z;\t\r\n\t\t}", "public double getZ() {\n\t\treturn z;\n\t}", "public double getZ() {\n\t\treturn z;\n\t}", "public final double getZ()\n {\n return m_jso.getZ();\n }", "public Double z() {\n return this.f917a.getAsDouble(\"CFG_LOCATION_LATITUDE\");\n }", "@Override\n\tpublic double getZ() {\n\t\treturn z;\n\t}", "public double getZ() {\n\t\treturn point[2];\n\t}", "public static Double LargeZ() {\n return LargeZ;\n }", "public double Z_r() {\r\n \t\treturn getZ();\r\n \t}", "public double getLoa() {\n\t\treturn _tempNoTiceShipMessage.getLoa();\n\t}", "Double getZLength();", "double getz() {\nreturn this.z;\n }", "float getZ();", "float getZ();", "float getZ();", "double getZ() { return pos[2]; }", "public Double z() {\n return z;\n }", "public double getL() {\n return l;\n }", "public double getZ() {\n return position.getZ();\n }", "public double getz0()\n\t{\n\t\treturn this.z0;\n\t}", "public Double getDz();", "public float getZ() {\n return z_;\n }", "public float getZ() {\r\n return z;\r\n }", "public float getZ() {\n return z_;\n }", "public double getDeltaZ() {\n return deltaZ;\n }", "public double getModZ() {\n return (modZ != 0 ? ( modZ > 0 ? (modZ - RESTADOR) : (modZ + RESTADOR) ) : modZ);\n }", "public double getDeltaZ() {\n return deltaZ;\n }", "public double getDeltaZ() {\n return deltaZ;\n }", "float getLte();", "@java.lang.Override\n public float getZ() {\n return z_;\n }", "@java.lang.Override\n public float getZ() {\n return z_;\n }", "@java.lang.Override\n public float getZ() {\n return z_;\n }", "@java.lang.Override\n public float getZ() {\n return z_;\n }", "double getZLength();", "public int getLo() {\n return lo;\n }", "abstract double getDirZ();", "public double getLoY() {\r\n\treturn fieldLoY;\r\n}", "public int getZ()\n {\n return zaxis;\n }", "public Float getZwsalary() {\n return zwsalary;\n }", "public double lhv(){\n return comp.getLHV() * (molarMass()/1000) * (1000/PhysicalProperties.MOLAR_VOLUME);\n }", "public int getZ() {\r\n return z;\r\n }", "public int getZ() {\n return Z;\n }", "public int getZ() {\n return z;\n }", "public double getAccelZ() {\n return m_accelerometer.getZ();\n }", "public int getZ() {\n\t\treturn z;\n\t}", "public double getAltitude() {\n return selv;\n }", "public float getLocalZ(){\n\t\treturn this.z;\n\t}", "public int getZ() {\n\t\treturn -150;\n\t}", "public double getDz() {\n return dz;\n }", "public float getLimit_lin_z_upper() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 52);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 44);\n\t\t}\n\t}", "public float getZ()\n {\n return fz;\n }", "public int getZ() {\n return Z;\n }", "public double getHiZ() {\r\n\treturn fieldHiZ;\r\n}", "public final int getZOff() {\r\n\t\treturn zOff;\r\n\t}", "public float getLimit_lin_z_lower() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 48);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 40);\n\t\t}\n\t}", "public double getLoX() {\r\n\treturn fieldLoX;\r\n}", "public double getZFactor() {\r\n\t\treturn z_factor;\r\n\t}", "public float altitude_monotonic_GET()\n { return (float)(Float.intBitsToFloat((int) get_bytes(data, 8, 4))); }", "public double getLageurDuMonde(){\n\t\treturn largeurDuMonde;\n\t}", "public static Double SmallZ() {\n return SmallZ;\n }", "double setz(double z) {\nreturn this.z;\n }", "public int getLoSign() {\n return loSign;\n }", "public float getDrz() {\r\n\t\treturn drz;\r\n\t}", "float getLt();", "public float max3DZ() {\n return Math.max(stop3D.z, start3D.z);\n }", "abstract double getOrgZ();", "@Override\n\tpublic double getZLoc() {\n\t\tdouble side = Math.sqrt(getMySize())/2;\n\t\treturn z-side;\n\t}", "@MavlinkFieldInfo(\n position = 8,\n unitSize = 2,\n signed = true,\n description = \"Ground Z Speed (Altitude, positive down)\"\n )\n public final int vz() {\n return this.vz;\n }", "godot.wire.Wire.Vector3 getZ();", "public Double getNzyl() {\n return nzyl;\n }", "public float approach_z_GET()\n { return (float)(Float.intBitsToFloat((int) get_bytes(data, 49, 4))); }", "public double getGz() {\n return mGz;\n }", "float getAccZ();", "public double confidenceLo() {\r\n\t\treturn confidenceLo;\r\n\t}", "public double getGyroAngleZ() {\n return m_gyro.getAngleZ();\n }", "double getLuong();", "public float getLimit_ang_z_lower() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 72);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 64);\n\t\t}\n\t}", "public static Double getltd(){\n // Log.e(\"LAT\",sharedPreferences.getString(USER_LTD, String.valueOf(0.0)));\n return Double.parseDouble(sharedPreferences.getString(USER_LTD, String.valueOf(0.0)));\n }", "@java.lang.Override\n public godot.wire.Wire.Vector3 getZ() {\n return z_ == null ? godot.wire.Wire.Vector3.getDefaultInstance() : z_;\n }", "public float approach_z_GET()\n { return (float)(Float.intBitsToFloat((int) get_bytes(data, 48, 4))); }", "public float getRotateZ() { return rotateZ; }", "public static double getY() {\n return NetworkTableInstance.getDefault().getTable(\"limelight\").getEntry(\"ty\").getDouble(0);\n }", "public float getZ(){\n\t\tif(!isRoot()){\n\t\t\treturn getParent().getZ() + z;\n\t\t}else{\n\t\t\treturn z;\n\t\t}\n\t}", "public double confidenceLo() {\n return this.mean() - this.stddev() * 1.96 / Math.sqrt(this.threshold.length);\n }", "public static double getYFromZ(double z) {\n\t\treturn 0.23 + 2.41 * z;\n\t}", "public Double getLoginPosZ() {\n\t\treturn this.loginPosZ;\n\t}", "public float getHlado() {\r\n return (this.lado);\r\n }", "public float getAccZ() {\n return accZ_;\n }", "int getZ();", "int getZ();", "int getZ();", "public void setZ(Double z);", "public synchronized double get() {\n return m_liftSpeed;\n }", "public double getVolga() {\r\n return volga;\r\n }", "public float getAccelZ() {\n return mAccelZ;\n }", "public float min3DZ() {\n return Math.min(stop3D.z, start3D.z);\n }" ]
[ "0.75489277", "0.72837216", "0.72311956", "0.7219708", "0.7207862", "0.7188533", "0.7188533", "0.7152101", "0.70643145", "0.70304286", "0.70176107", "0.6959989", "0.6887132", "0.6879818", "0.6869846", "0.6869464", "0.6867221", "0.6867221", "0.6867221", "0.68368566", "0.67852074", "0.6783926", "0.6778022", "0.67682654", "0.6758314", "0.6749295", "0.67368937", "0.6732772", "0.6710405", "0.6676078", "0.6672749", "0.6672749", "0.66055834", "0.6598505", "0.6598505", "0.65984696", "0.65984696", "0.6574261", "0.65667135", "0.64682734", "0.6420973", "0.6420505", "0.6404664", "0.63953155", "0.6382542", "0.6358443", "0.6357105", "0.63456774", "0.63379675", "0.6310881", "0.6308755", "0.63063675", "0.6299684", "0.6294241", "0.6278629", "0.62699133", "0.6258779", "0.625494", "0.62530106", "0.62526333", "0.62295145", "0.62187034", "0.6194819", "0.61933494", "0.6189125", "0.6186993", "0.6186359", "0.61860895", "0.61788464", "0.617003", "0.61615777", "0.61548775", "0.6150718", "0.6145861", "0.6138152", "0.613174", "0.6123651", "0.6111939", "0.61077195", "0.60667413", "0.6061202", "0.6046737", "0.60331404", "0.6032929", "0.59616065", "0.59583855", "0.59546715", "0.59511447", "0.5950404", "0.59450924", "0.59439504", "0.5943804", "0.59155566", "0.59155566", "0.59155566", "0.5915036", "0.591326", "0.5903761", "0.5877823", "0.5858157" ]
0.7556852
0
format : Year Month Day Hour Minute Second
public CTime() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String dateToString(int year, int month, int day, int hour, int minute, double seconds);", "public static String ShowDate(){\n Date date = new Date();\n SimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm:ss.SS a\");\n String HH_MM = sdf.format(date);\n return HH_MM;\n }", "public static String getYYYYMMDDHHMMSS()\r\n/* 56: */ {\r\n/* 57: 68 */ String nowTime = \"\";\r\n/* 58: 69 */ Date now = new Date();\r\n/* 59: 70 */ SimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMddHHmmss\");\r\n/* 60: 71 */ nowTime = formatter.format(now);\r\n/* 61: 72 */ return nowTime;\r\n/* 62: */ }", "private String getFormattedDate(Integer format) {\n Date date = new Date(format * 1000L);\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\");\n dateFormat.setTimeZone(TimeZone.getTimeZone(\"Etc/UTC\"));\n Log.e(\"time\",dateFormat.format(date));\n return dateFormat.format(date);\n }", "private String formatTime(LocalDateTime time){\n return time.getYear() + \"-\" + time.getMonthValue() + \"-\" + time.getDayOfMonth()\n + \" \" + time.getMinute() + \":\" + time.getSecond();\n }", "public static String FormatDate(int day, int month, int year) {\r\n String jour = Integer.toString(day);\r\n String mois = Integer.toString(month + 1);\r\n if (jour.length() == 1) {\r\n jour = \"0\" + jour;\r\n }\r\n\r\n if (mois.length() == 1) {\r\n mois = \"0\" + mois;\r\n }\r\n return jour + \"/\" + mois + \"/\" + Integer.toString(year);\r\n }", "public static String getDateString(int hour, int minute, int second, int month, int day, int year) {\n\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(month);\n stringBuilder.append(\"/\");\n stringBuilder.append(day);\n stringBuilder.append(\"/\");\n stringBuilder.append(year);\n stringBuilder.append(\" \");\n stringBuilder.append(hour);\n stringBuilder.append(\":\");\n stringBuilder.append(minute);\n stringBuilder.append(\":\");\n stringBuilder.append(second);\n return stringBuilder.toString();\n\n }", "private String prettyTime() {\n String[] dt = time.split(\"T\");\n String[] ymd = dt[0].split(\"-\");\n String[] hms = dt[1].split(\":\");\n\n int hour = Integer.parseInt(hms[0]);\n\n String date = getMonth(Integer.parseInt(ymd[1])) + \" \" + ymd[2] + \", \" + ymd[0];\n String time = (hour > 12 ? hour - 12 : hour) + \":\" + hms[1] + \":\" + hms[2].substring(0, hms[2].indexOf(\".\"));\n return date + \" at \" + time;\n }", "public static String getDateAndTime() {\n Calendar JCalendar = Calendar.getInstance();\n String JMonth = JCalendar.getDisplayName(Calendar.MONTH, Calendar.SHORT, Locale.UK);\n String JDate = JCalendar.getDisplayName(Calendar.DATE, Calendar.LONG, Locale.UK);\n String JHour = JCalendar.getDisplayName(Calendar.HOUR, Calendar.LONG, Locale.UK);\n String JSec = JCalendar.getDisplayName(Calendar.SECOND, Calendar.LONG, Locale.UK);\n\n return JDate + \"th \" + JMonth + \"/\" + JHour + \".\" + JSec + \"/24hours\";\n }", "public static String getYYYYMMDD()\r\n/* 65: */ {\r\n/* 66: 81 */ String nowTime = \"\";\r\n/* 67: 82 */ Date now = new Date();\r\n/* 68: 83 */ SimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMdd\");\r\n/* 69: 84 */ nowTime = formatter.format(now);\r\n/* 70: 85 */ return nowTime;\r\n/* 71: */ }", "private String getTimeFormat() {\r\n return mData.getConfiguration(\"x-labels-time-format\", \"yyyy-MM-dd\");\r\n }", "public String getTimestamp() \n{\n Calendar now = Calendar.getInstance();\n return String.format(\"20%1$ty-%1$tm-%1$td_%1$tHh%1$tMm%1$tSs\", now);\n}", "public static String getHHMM()\r\n/* 74: */ {\r\n/* 75: 94 */ String nowTime = \"\";\r\n/* 76: 95 */ Date now = new Date();\r\n/* 77: 96 */ SimpleDateFormat formatter = new SimpleDateFormat(\"HH:mm\");\r\n/* 78: 97 */ nowTime = formatter.format(now);\r\n/* 79: 98 */ return nowTime;\r\n/* 80: */ }", "public String getDate(){\n String d=\"\";\n String m=\"\";\n if(day<10){\n d=0+(String.valueOf(day));\n }\n else{\n d=String.valueOf(day);\n }\n\n if(month<10){\n m=0+(String.valueOf(month));\n }\n else{\n m=String.valueOf(month);\n }\n //returning day/month/year\n return (d+\"/\"+m+\"/\"+String.valueOf(year));\n }", "protected String date(String format, double time) {\n\t\treturn new java.util.Date((long)(time*1000)).toString();\n\t}", "public static void main(String[] args)\r\n/* 96: */ {\r\n/* 97:104 */ SimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n/* 98:105 */ String qiandaotime = df.format(new Date());\r\n/* 99:106 */ System.out.println(qiandaotime);\r\n/* 100: */ }", "public static String create(int year, int month, int date, int hour,\r\n\t\t\tint minute, int second) {\r\n\t\tCalendar dateTime = createCalendar(year, month, date, hour, minute,\r\n\t\t\t\tsecond);\r\n\t\treturn YYYY_MMT_DD_T_HH_MM_SS_FORMATTER.format(dateTime.getTime());\r\n\t}", "String formatTime(int time) {\r\n\t\tint h = time / 3600;\r\n\t\ttime %= 3600;\r\n\t\tint m = time / 60;\r\n\t\ttime %= 60;\r\n\t\tint s = time;\r\n\t\treturn String.format(\"%02d:%02d:%02d\", h, m, s);\r\n\t}", "public static void printYearsAndDays(long minutes) {\n if (minutes < 0) System.out.println(\"Invalid Value\");\n else {\n int year = (int) minutes / 525600;\n int days = (int) (minutes % 525600) / 1440;\n System.out.printf(\"%d min = %d y and %d d%n\", minutes, year, days);\n }\n }", "public static String getTime(int second) {\n if (second < 10) {\n return \"00:00:0\" + second;\n }\n if (second < 60) {\n return \"00:00:\" + second;\n }\n if (second < 3600) {\n int minute = second / 60;\n second = second - minute * 60;\n if (minute < 10) {\n if (second < 10) {\n return \"00:\" + \"0\" + minute + \":0\" + second;\n }\n return \"00:\" + \"0\" + minute + \":\" + second;\n }\n if (second < 10) {\n return \"00:\" + minute + \":0\" + second;\n }\n return \"00:\" + minute + \":\" + second;\n }\n int hour = second / 3600;\n int minute = (second - hour * 3600) / 60;\n second = second - hour * 3600 - minute * 60;\n if (hour < 10) {\n if (minute < 10) {\n if (second < 10) {\n return \"0\" + hour + \":0\" + minute + \":0\" + second;\n }\n return \"0\" + hour + \":0\" + minute + \":\" + second;\n }\n if (second < 10) {\n return \"0\" + hour + \":\" + minute + \":0\" + second;\n }\n return \"0\" + hour + \":\" + minute + \":\" + second;\n }\n if (minute < 10) {\n if (second < 10) {\n return hour + \":0\" + minute + \":0\" + second;\n }\n return hour + \":0\" + minute + \":\" + second;\n }\n if (second < 10) {\n return hour + \":\" + minute + \":0\" + second;\n }\n return hour + \":\" + minute + \":\" + second;\n }", "public String toString()\n {\n return String.format(\"%d:%02d:%02d %s %d/%d/%d\", \n ((getHour() == 0 || getHour() == 12) ? 12 : getHour() % 12),\n getMinute(), getSecond(), (getHour() < 12 ? \"AM\" : \"PM\"), \n \tmonth, day, year);\n }", "String timeStamp() {\n\n\t\tCalendar now = Calendar.getInstance();\n\n\t\t String y = String.valueOf(now.get(now.YEAR));\n\t\t String mo = String.valueOf(now.get(now.MONTH)+1);\n\t\t String d = String.valueOf(now.get(now.DAY_OF_MONTH));\n\t\t String h = String.valueOf(now.get(now.HOUR_OF_DAY));\n\t\t String m = String.valueOf(now.get(now.MINUTE));\n\t\t String s = String.valueOf(now.get(now.SECOND));\n\t\t String ms = String.valueOf(now.get(now.MILLISECOND));\n\n\n\t return h + m + s + ms;\n\n\n\n }", "private String formatTime(int seconds){\n return String.format(\"%02d:%02d\", seconds / 60, seconds % 60);\n }", "private String TimeConversion() {\n\n int hours, minutes, seconds, dayOfWeek, date, month, year;\n\n seconds = ((raw[27] & 0xF0) >> 4) + ((raw[28] & 0x03) << 4);\n minutes = ((raw[28] & 0xFC) >> 2);\n hours = (raw[29] & 0x1F);\n dayOfWeek = ((raw[29] & 0xE0) >> 5);\n date = (raw[30]) & 0x1F;\n month = ((raw[30] & 0xE0) >> 5) + ((raw[31] & 0x01) << 3);\n year = (((raw[31] & 0xFE) >> 1) & 255) + 2000;\n\n\n\n return hR(month) + \"/\" + hR(date) + \"/\" + year + \" \" + hR(hours) + \":\" + hR(minutes) + \":\" + hR(seconds) + \":00\";\n }", "public void mostrarHora(String formato){\n Date objDate = new Date();\n SimpleDateFormat objSDF = new SimpleDateFormat(formato);\n //este sera el resultado de la fechas\n fecha=objSDF.format(objDate);\n }", "private String formatTime(final long time) {\n if ( time == 0 ) {\n return \"-\";\n }\n if ( time < 1000 ) {\n return time + \" ms\";\n } else if ( time < 1000 * 60 ) {\n return time / 1000 + \" secs\";\n }\n final long min = time / 1000 / 60;\n final long secs = (time - min * 1000 * 60);\n return min + \" min \" + secs / 1000 + \" secs\";\n }", "public String getTime(){\n String mt=\"\";\n String hr=\"\";\n if(minute<10){\n mt=0+(String.valueOf(minute));\n }\n\n else{\n mt=String.valueOf(minute);\n }\n\n if(hour<10){\n hr=0+(String.valueOf(hour));\n }\n else{\n hr=String.valueOf(hour);\n }\n //return hour:minute\n return (hr+\":\"+mt);\n }", "public String getDateHourRepresentation()\n\t{\n\t\tchar[] charArr = new char[13];\n\t\tcharArr[2] = charArr[5] = charArr[10] = '/';\n\t\tint day = m_day;\n\t\tint month = m_month;\n\t\tint year = m_year;\n\t\tint hour = m_hour;\n\t\tfor(int i = 0; i < 2; i++)\n\t\t{\n\t\t\tcharArr[1 - i] = Character.forDigit(day % 10, 10);\n\t\t\tcharArr[4 - i] = Character.forDigit(month % 10, 10);\n\t\t\tcharArr[12 - i] = Character.forDigit(hour % 10, 10);\n\t\t\tday /= 10;\n\t\t\tmonth /= 10;\n\t\t\thour /=10;\n \t\t}\n\t\tfor(int i = 0; i < 4; i++)\n\t\t{\n\t\t\tcharArr[9 - i] = Character.forDigit(year % 10, 10);\n\t\t\tyear /= 10;\n\t\t}\n\t\treturn new String(charArr);\n\t}", "public String getTimeString() {\n int hour = date.get(Calendar.HOUR);\n int minute = date.get(Calendar.MINUTE);\n\n String AM_PM = \"PM\";\n if (date.get(Calendar.AM_PM) == Calendar.AM) AM_PM = \"AM\";\n\n String hour_fixed = String.valueOf(hour);\n if (hour == 0) hour_fixed = \"12\";\n\n String minute_fixed = String.valueOf(minute);\n while (minute_fixed.length() < 2) {\n minute_fixed = \"0\" + minute_fixed;\n }\n\n return hour_fixed + \":\" + minute_fixed + ' ' + AM_PM;\n }", "public String formatTime() {\n if ((myGameTicks / 16) + 1 != myOldGameTicks) {\n myTimeString = \"\";\n myOldGameTicks = (myGameTicks / 16) + 1;\n int smallPart = myOldGameTicks % 60;\n int bigPart = myOldGameTicks / 60;\n myTimeString += bigPart + \":\";\n if (smallPart / 10 < 1) {\n myTimeString += \"0\";\n }\n myTimeString += smallPart;\n }\n return (myTimeString);\n }", "public void formatoTiempo() {\n String segundos, minutos, hora;\n\n hora = hrs < 10 ? String.valueOf(\"0\" + hrs) : String.valueOf(hrs);\n\n minutos = min < 10 ? String.valueOf(\"0\" + min) : String.valueOf(min);\n\n jLabel3.setText(hora + \" : \" + minutos + \" \" + tarde);\n }", "public String toString()\n {\n String str = \"\";\n\n if (day < 10)\n {\n str += \"0\";\n }\n str += day + \"/\";\n\n if (month < 10)\n {\n str += \"0\";\n }\n str += month + \"/\";\n\n str += year + \"; \";\n\n if (hour < 10)\n {\n str += \"0\";\n }\n str += hour + \":\";\n\n if (minute < 10)\n {\n str += \"0\";\n }\n str += minute;\n\n return str;\n }", "private static String dateChange(int time) {\n int hour = time / 3600;\n time %= 3600;\n int minute = time / 60;\n int second = time % 60;\n\n String strHour = hour > 9 ? String.valueOf(hour) : \"0\" + hour;\n String strMinute = minute > 9 ? String.valueOf(minute) : \"0\" + minute;\n String strSecond = second > 9 ? String.valueOf(second) : \"0\" + second;\n\n return String.join(\":\", strHour, strMinute, strSecond);\n }", "private String makeDateString(int day, int month, int year) {\n String str_month = \"\" + month;\n String str_day = \"\" + day;\n if (month < 10) {\n str_month = \"0\" + month;\n }\n if (day < 10) {\n str_day = \"0\" + day;\n }\n return year + \"-\" + str_month + \"-\" + str_day;\n }", "public String getTime() {\n String pattern = \"yyyy-MM-dd HH:mm:ss\";\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\n\n String date = simpleDateFormat.format(new Date());\n return date;\n }", "public String printYearsAndDays(long minutes) {\n\t\t// TODO Write an implementation for this method declaration\n\t\tlong years;\n\t\tlong days;\n\t\tString result;\n\t\tyears = minutes / 525600;\n\t\tdays = (minutes % 525600) / (60*24);\n\n\t\tresult = Long.toString(minutes) + \" min\" + \" = \" + Long.toString(years) + \" y \" + \"and \" + Long.toString(days) + \" d\";\n\t\t//System.out.println(result);\n\t\treturn result;\n\t}", "public String getTimeAndDate() {\n\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"dd MMM hh:mm\");\n\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\tString dateAndTime = dateFormat.format(cal.getTime());\n\t\t\treturn dateAndTime;\n\t\t}", "public String getTime() {\n return String.format(\"%02d\", hours) + \":\" + String.format(\"%02d\", minutes);\n }", "public String toString() {\n return String.format(\"%02d:%02dZ%02d%s%d\", hour, minute, day, months[month - 1], year);\n }", "public static SimpleDateFormat getHourFormat() {\n return new SimpleDateFormat(\"HH:mm\");\n }", "public String toString() {\r\n\t\treturn String.format(\"%02d/%02d/%02d\", month, day, year);\r\n\r\n\t}", "public String getCurrentDateTimeHourMinSec() {\n\t\t\t\t// DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t\t// need to change after the date format is decided\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}", "public static void main(String[] args) {\n\n Calendar calendar = Calendar.getInstance();\n calendar.set(2003,7,31);\n calendar.set(Calendar.MONTH,8);\n// Date time1 = calendar.getTime();\n calendar.set(Calendar.DATE,5);\n Date time = calendar.getTime();\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n String format = simpleDateFormat.format(time);\n System.out.println(format);\n }", "private static String getTime() {\n\t\tDate getDate = new Date();\n\t\tString timeFormat = \"M/d/yy hh:mma\";\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(timeFormat);\n\t\treturn \"[\" + sdf.format(getDate) + \"]\\t\";\n\t}", "public String getGUITimestampFormat();", "String getTime(){\n\t\tCalendar c = Calendar.getInstance();\n int mseconds = c.get(Calendar.MILLISECOND);\n String currentDateandTime = mDateFormat.format(new Date()) + String.format(\"-%04d\", mseconds);\n \n return currentDateandTime;\n\t}", "public static String Milisec2DDMMYYYY(long ts) {\n\t\tif (ts == 0) {\n\t\t\treturn \"\";\n\t\t} else {\n\t\t\tjava.util.Calendar calendar = java.util.Calendar.getInstance();\n\t\t\tcalendar.setTime(new java.util.Date(ts));\n\n\t\t\tString strTemp = Integer.toString(calendar\n\t\t\t\t\t.get(calendar.DAY_OF_MONTH));\n\t\t\tif (calendar.get(calendar.DAY_OF_MONTH) < 10) {\n\t\t\t\tstrTemp = \"0\" + strTemp;\n\t\t\t}\n\t\t\tif (calendar.get(calendar.MONTH) + 1 < 10) {\n\t\t\t\treturn strTemp + \"/0\" + (calendar.get(calendar.MONTH) + 1)\n\t\t\t\t\t\t+ \"/\" + calendar.get(calendar.YEAR);\n\t\t\t} else {\n\t\t\t\treturn strTemp + \"/\" + (calendar.get(calendar.MONTH) + 1) + \"/\"\n\t\t\t\t\t\t+ calendar.get(calendar.YEAR);\n\t\t\t}\n\t\t}\n\t}", "public static String getDateString(){\n\t\t\tCalendar now = Calendar.getInstance();\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd__HH-mm-ss\");\n\t\t\treturn sdf.format(now.getTime());\n\t }", "public String getTimeString() {\n DateFormat format = new SimpleDateFormat(\"HH:mm\");\n return format.format(mDate);\n }", "void milestone4(int inputSeconds){\n int days = inputSeconds / 86400;\n int seconds = inputSeconds % 86400;\n int hours = seconds / 3600;\n seconds = seconds % 3600;\n int minutes = seconds / 60;\n seconds = seconds % 60;\n\n System.out.println(\"Day/s: \" + days);\n System.out.println(\"Hour/s: \" + hours);\n System.out.println(\"Minute/s: \" + minutes);\n System.out.println(\"Second/s: \" + seconds);\n }", "private static void m1() {\n\n String d = \"2019/03/22 10:00-11:00\";\n DateFormat df = new SimpleDateFormat(\"yyyy/MM/dd HH:mm-HH:mm\");\n try {\n Date parse = df.parse(d);\n System.out.println(df.format(parse));\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "public String getFormatedTime() {\n DateFormat displayFormat = new SimpleDateFormat(\"HH:mm\", Locale.GERMAN);\n return displayFormat.format(mEvent.getTime());\n }", "public static String formatTime(long time) {\n long tmp = time;\n int hour = (int) (time / 3600);\n tmp -= hour * 3600;\n int min = (int) (tmp / 60);\n int sec = (int) (tmp - min * 60);\n\n String hourText = hour < 10 ? \"0\" + hour : \"\" + hour;\n String minText = min < 10 ? \"0\" + min : \"\" + min;\n String secText = sec < 10 ? \"0\" + sec : \"\" + sec;\n\n\n return hourText + \":\" + minText + \":\" + secText;\n }", "private static String timeFormat(long t, String format) {\n SimpleDateFormat sdf = new SimpleDateFormat(format, Locale.US);\n try {sdf.setTimeZone(TimeZone.getTimeZone(\"UTC\"));} catch (Exception e) {}\n return sdf.format(new Date(t));\n }", "@NotNull\n public static String formatDateShort(@NotNull Context context, int year, int month, int day) {\n return context.getString(R.string.short_date_format, month + 1, day, year);\n }", "private String getDateTime() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"[yyyy/MM/dd - HH:mm:ss]\");\n return sdf.format(new Date());\n }", "public String timeFormatter(int hour, int min) {\n String minString = String.valueOf(min);\n String amOrPm = \"AM\";\n if (hour > 12) {\n hour -= 12;\n amOrPm = \"PM\";\n }\n if (minString.length() < 2) {\n minString = \"0\" + minString;\n }\n return (String.valueOf(hour) + \":\" + minString + \" \" + amOrPm);\n\n }", "public static String create(int year, int month, int date, int hour,\r\n\t\t\tint minute) {\r\n\t\tCalendar dateTime = createCalendar(year, month, date, hour, minute);\r\n\t\treturn YYYY_MMT_DD_T_HH_MM_FORMATTER.format(dateTime.getTime());\r\n\t}", "private String getDateTime() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"[yyyy/MM/dd - HH:mm:ss]\");\n return sdf.format(new Date());\n }", "private String getDateTime() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"[yyyy/MM/dd - HH:mm:ss]\");\n return sdf.format(new Date());\n }", "public static String getNowTimeHHMM() {\n\t\tSimpleDateFormat timeFormat = new SimpleDateFormat(\"HH:mm\");\n\t\treturn timeFormat.format(new Date());\n\t}", "private String getDate() {\n\t\tSimpleDateFormat parseFormat = new SimpleDateFormat(\"hh:mm a\");\n\t\tDate date = new Date();\n\t\tString s = parseFormat.format(date);\n\t\treturn s;\n\t}", "public String retornaHora(){\n\t\tCalendar calendar = new GregorianCalendar();\n\t\tSimpleDateFormat hora = new SimpleDateFormat(\"HH\");\n\t\tSimpleDateFormat minuto = new SimpleDateFormat(\"mm\");\n\t\tDate date = new Date();\n\t\tcalendar.setTime(date);\n\t\treturn hora.format(calendar.getTime()) + \"h\" + minuto.format(calendar.getTime());\n\t}", "public String getTimeInString() {\n int minutes = (time % 3600) / 60;\n int seconds = time % 60;\n String timeString = String.format(\"%02d:%02d\", minutes, seconds);\n\n return timeString;\n }", "private static String time() throws Exception {\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"HH-mm-ss \");\n\t\t// get current date time with Date()\n\t\tDate date = new Date();\n\t\t// Now format the date\n\t\tString date1 = dateFormat.format(date);\n\t\t// System.out.println(date1);\n\t\treturn date1;\n\t}", "public String getTime() {\n boolean pastNoon = hour >= 12;\n if(pastNoon && hour == 12) {\n return hour + \"pm\";\n }\n else if(pastNoon) {\n return (hour - 12) + \"pm\";\n }\n else if(hour == 0) {\n return \"12am\";\n }\n else {\n return hour + \"am\";\n }\n }", "private String getDate(int year, int month, int day) {\n return new StringBuilder().append(month).append(\"/\")\n .append(day).append(\"/\").append(year).toString();\n }", "static String timeConversion(String s) {\n /*\n * Write your code here.\n */\n String res = \"\";\n String hrs = s.substring(0, 2);\n String min = s.substring(3, 5);\n String sec = s.substring(6, 8);\n String ampm = s.substring(8);\n int hr = Integer.parseInt(hrs);\n if((ampm.equalsIgnoreCase(\"PM\")) && (hr != 12)) {\n hr += 12;\n if(hr >= 24) {\n hr = 24 - hr;\n }\n }\n else if(ampm.equalsIgnoreCase(\"AM\")) {\n if(hr == 12) {\n hr = 0;\n }\n }\n if(hr < 10) {\n res = res + \"0\" + Integer.toString(hr);\n }\n else {\n res += Integer.toString(hr);\n }\n res = res +\":\" +min +\":\" + sec;\n return res;\n }", "java.lang.String getTime();", "public static String getTimeString() {\n SimpleDateFormat formatter = new SimpleDateFormat(\"EEE MMM dd HH:mm:ss yyyy\");\n return formatter.format(new java.util.Date());\n }", "public String DateFormatted(){\n\t\tSimpleDateFormat simDate = new SimpleDateFormat(\"E, dd/MM/yy hh:mm:ss a\");\n\t\treturn simDate.format(date.getTime());\n\t}", "public static String formatTime(int seconds){\n\t\tTimeZone tz = TimeZone.getTimeZone(\"UTC\");\n\t SimpleDateFormat df = new SimpleDateFormat(\"HH:mm:ss\");\n\t df.setTimeZone(tz);\n\t return df.format(new Date((long)(seconds * 1000)));\n\t}", "public String toString() {\n return String.format(\"%d: %02d: %02d %s\",\n ((hour == 0 || hour == 12) ? 12 :hour % 12 ),\n minutes, seconds, (hour < 12 ? \"AM\" : \"PM\"));\n\n }", "private String intTime(long l){\r\n String s=\"\";\r\n s+=(char)(((l/1000)/60)+'0')+\":\"+(char)((((l/1000)%60)/10)+'0')+(char)((((l/1000)%60)%10)+'0'); \r\n return s;\r\n }", "public String FormatTime(int hour, int minute) {\n\n String time;\n time = \"\";\n String formattedMinute;\n\n if (minute / 10 == 0) {\n formattedMinute = \"0\" + minute;\n } else {\n formattedMinute = \"\" + minute;\n }\n\n\n if (hour == 0) {\n time = \"12\" + \":\" + formattedMinute + \" AM\";\n } else if (hour < 12) {\n time = hour + \":\" + formattedMinute + \" AM\";\n } else if (hour == 12) {\n time = \"12\" + \":\" + formattedMinute + \" PM\";\n } else {\n int temp = hour - 12;\n time = temp + \":\" + formattedMinute + \" PM\";\n }\n\n\n return time;\n }", "public static String timestamp(){\n\t\tDate date = new Date();\n\t\tDateFormat hourdateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss \");\n\t\treturn hourdateFormat.format(date);\n\t}", "public StringBuffer format(long t_sec, StringBuffer toAppendTo, FieldPosition pos){\n\t\tlong t_l = 1000 * t_sec;\n\t\treturn dateFormat.format(new java.util.Date(t_l), toAppendTo, pos);\n\t}", "private String formatCalendar(Calendar c)\r\n\t{\n\t\t\tDate tasktime = c.getTime(); \r\n\t\t\r\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"MMMMM d yyyy\"); \r\n\t \r\n\t\treturn df.format(tasktime); \r\n\t}", "public static String formatSeconds(int seconds) {\n SimpleDateFormat sf = new SimpleDateFormat(\"m:ss\");\n Date date = new Date(seconds*1000);\n return sf.format(date);\n }", "private static String getTimeStamp()\r\n\t{\r\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd_HH.mm.ss\");\r\n\t\tDate date = new Date();\r\n\t\treturn dateFormat.format(date);\r\n\t}", "public String getDate()\n {\n return day + \"/\" + month + \"/\" + year;\n }", "public String getTimeStamp() {\n Calendar instance = Calendar.getInstance();\n SimpleDateFormat sdf = new SimpleDateFormat(\"MMM-dd-yyyy-HH:mm:ss:ms\");\n return sdf.format(instance.getTime());\n }", "public static String getPrintToTextTime() {\n @SuppressLint(\"SimpleDateFormat\") SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n return sdf.format(System.currentTimeMillis());\n }", "public String getCurrentTimeHourMinSec() {\n\t\t\t\t// DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t\t// need to change after the date format is decided\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"HH:mm:ss\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}", "public String toString() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t // 4\n\t\tString hours = String.format(\"%02d\", this.hours);\n\t\tString minutes = String.format(\"%02d\", this.minutes);\n\t\tString seconds = String.format(\"%05.2f\", this.seconds);\n\n\t\tString time = hours + \":\" + minutes + \":\" + seconds;\n\t\treturn time;\n\t}", "public String Formatting(){\n\t\t\t return String.format(\"%03d-%02d-%04d\", getFirstSSN(),getSecondSSN(),getThirdSSN());\n\t\t }", "public static String longToYYYYMMDDHHMM(long longTime)\r\n/* 157: */ {\r\n/* 158:232 */ SimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMdd HH:mm\");\r\n/* 159:233 */ Date strtodate = new Date(longTime);\r\n/* 160:234 */ return formatter.format(strtodate);\r\n/* 161: */ }", "static String timeConversion1(String s) {\n String[] timeSplit = s.split(\":\");\n String hours = timeSplit[0];\n String minutes = timeSplit[1];\n String seconds = timeSplit[2].substring(0, 2);\n String ampm = timeSplit[2].substring(2);\n\n int hour = Integer.parseInt(hours);\n\n int differential = 0;\n if (\"PM\".equals(ampm) && hour != 12) {\n differential = 12;\n }\n\n\n hour += differential;\n hour = hour % 24;\n\n hours = String.format(\"%02d\", hour);\n\n return hours + \":\" + minutes + \":\" + seconds;\n\n }", "public static String time_str(double t) {\n int hours = (int) t/3600;\n int rem = (int) t - hours*3600;\n int mins = rem / 60;\n int secs = rem - mins*60;\n return String.format(\"%02d:%02d:%02d\", hours, mins, secs);\n //return hoursMinutesSeconds(t);\n }", "public static String convertMilliSecondsToDateFormat(long milliSeconds) {\n String dateFormat = \"MMM-dd hh:mm:ss a\";\n SimpleDateFormat formatter = new SimpleDateFormat(dateFormat, Locale.US);\n // Create a calendar object that will convert the date and time value in milliseconds to date.\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(milliSeconds);\n\n\n SimpleDateFormat mnthFormat = new SimpleDateFormat(\"MMM\", Locale.US);\n String month = mnthFormat.format(calendar.getTime());\n\n SimpleDateFormat formatDayOfMonth = new SimpleDateFormat(\"d\", Locale.US);\n int day = Integer.parseInt(formatDayOfMonth.format(calendar.getTime()));\n String daySuffix = getDayOfMonthSuffix(day);\n\n SimpleDateFormat timeFormat = new SimpleDateFormat(\"hh:mm:ss a\", Locale.US);\n String timeStr = timeFormat.format(calendar.getTime());\n\n\n// return formatter.format(calendar.getTime());\n\n return month + \" \" + day + daySuffix + \" \" + timeStr;\n }", "public static String timeStamp()\n {\n DateFormat format = new SimpleDateFormat(\"ddMMyyHHmmSS\");\n return format.format(new Date());\n }", "public String getYYYYMMDDhhmmssTime(Long time) {\n\t\tString result = \"\";\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"YYYYMMDDhhmmss\");\n\t\tresult = sdf.format(new Date(time));\n\t\treturn result;\n\t}", "public static void main(String[] args) {\n System.out.println(new Date().getTime());\n\n // 2016-12-16 11:48:08\n Calendar calendar = Calendar.getInstance();\n calendar.set(2016, 11, 16, 12, 0, 1);\n System.out.println(calendar.getTime());\n Date date=new Date();\n SimpleDateFormat simpleDateFormat=new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n System.out.println(simpleDateFormat.format(date));\n\n\n }", "private static String getDate() {\n return new SimpleDateFormat(\"yyyyMMddHHmmss\").format\n (new Date(System.currentTimeMillis()));\n }", "static String getTime(int time) {\r\n\t\tint hours = time / 60;\r\n\t\tint minutes = time % 60;\r\n\r\n\t\tString ampm;\r\n\t\tif (time >= 720) ampm = \"PM\";\r\n\t\telse ampm = \"AM\";\r\n\r\n\t\treturn (String.format(\"%d:%02d%s\", hours, minutes, ampm));\r\n\t}", "private static String getStamp() {\n\t\t\t return new SimpleDateFormat(\"yyyyMMddHHmmss\").format(new Date());\r\n\t\t}", "public String toString()\r\n {\r\n DecimalFormat twoDigits = new DecimalFormat( \"00\" );\r\n\r\n return ( this.getHour() == 12 || this.getHour() == 0 ?\r\n 12 : this.getHour() % 12 ) + \":\" +\r\n twoDigits.format( this.getMinute() ) + \":\" +\r\n twoDigits.format( this.getSecond() ) +\r\n ( this.getHour() < 12 ? \" AM\" : \" PM\" );\r\n }", "private String getDate()\r\n\t{\r\n\t\tCalendar cal = Calendar.getInstance();\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\r\n\t\treturn sdf.format(cal.getTime());\r\n\t}", "private String createTimeString(int value)\n\t {\n\t\tif(value<0){\n\t\t\treturn \"00:00:00,000\";\n\t\t}\n\t int sec = value % 60;\n\t int min = (value / 60) % 60;\n\t int hr = value / 3600;\n\t String fmtHr = \"\"+hr;\n\t String fmtMin = \"\"+min;\n\t String fmtSec = \"\" + sec;\n\t if(hr<10){\n\t \tfmtHr = \"0\"+hr;\n\t }\n\t if(min<10){\n\t \tfmtMin = \"0\"+min;\n\t }\n\t if(sec<10){\n\t \tfmtSec = \"0\"+sec;\n\t }\n\n\t return fmtHr+\":\"+fmtMin+\":\"+fmtSec+\",\"+\"000\";\n\t }", "private String currentTime()\t{\n\t\tCalendar c = Calendar.getInstance(); \n\n\t\tString seconds;\n\t\tif(c.get(Calendar.SECOND) < 10)\t{\n\t\t\tseconds = \"0\"+Integer.toString(c.get(Calendar.SECOND));\n\t\t} else {\n\t\t\tseconds = Integer.toString(c.get(Calendar.SECOND));\n\t\t}\n\n\t\tString minutes;\n\t\tif(c.get(Calendar.MINUTE) < 10)\t{\n\t\t\tminutes = \"0\"+Integer.toString(c.get(Calendar.MINUTE));\n\t\t} else {\n\t\t\tminutes = Integer.toString(c.get(Calendar.MINUTE));\n\t\t}\n\n\t\tString hours;\n\t\tif(c.get(Calendar.HOUR_OF_DAY) < 10)\t{\n\t\t\thours = \"0\"+Integer.toString(c.get(Calendar.HOUR_OF_DAY));\n\t\t} else {\n\t\t\thours = Integer.toString(c.get(Calendar.HOUR_OF_DAY));\n\t\t}\n\n\t\tString day;\n\t\tif(c.get(Calendar.DATE) < 10)\t{\n\t\t\tday = \"0\"+Integer.toString(c.get(Calendar.DATE));\n\t\t} else {\n\t\t\tday = Integer.toString(c.get(Calendar.DATE));\n\t\t}\n\n\t\tString month;\n\t\tif((c.get(Calendar.MONTH)+1) < 10)\t{\n\t\t\tmonth = \"0\"+Integer.toString(c.get(Calendar.MONTH)+1);\n\t\t} else {\n\t\t\tmonth = Integer.toString(c.get(Calendar.MONTH)+1);\n\t\t}\n\n\t\tString year;\n\t\tif(c.get(Calendar.YEAR) < 10)\t{\n\t\t\tyear = \"0\"+Integer.toString(c.get(Calendar.YEAR));\n\t\t} else {\n\t\t\tyear = Integer.toString(c.get(Calendar.YEAR));\n\t\t}\n\n\t\treturn day+\"/\"+month+\"/\"+year + \" \"+hours+\":\"+minutes+\":\"+seconds;\t\n\t}", "public String dar_hora(){\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"HH:mm:ss\");\n return dateFormat.format(date).toString();\n }" ]
[ "0.7209465", "0.64241767", "0.64111763", "0.6386698", "0.63421553", "0.6298393", "0.62508684", "0.62083906", "0.61918825", "0.6142187", "0.6069829", "0.60690534", "0.5986246", "0.5982696", "0.59751844", "0.5934873", "0.5911469", "0.5875371", "0.5870605", "0.5850235", "0.58464426", "0.5843309", "0.58412266", "0.58249557", "0.5812478", "0.5796986", "0.5796822", "0.57280505", "0.5686308", "0.56805104", "0.56717634", "0.566596", "0.56607044", "0.56480795", "0.564537", "0.5642444", "0.56421816", "0.56418073", "0.5640614", "0.5639439", "0.5635234", "0.5626353", "0.5624313", "0.5620856", "0.5620421", "0.56199276", "0.5619809", "0.5617394", "0.55956554", "0.5594911", "0.55901337", "0.55805105", "0.5577809", "0.5573007", "0.55677027", "0.5564007", "0.55610293", "0.5552307", "0.55509186", "0.55509186", "0.55488086", "0.5544563", "0.55411714", "0.5540607", "0.5540323", "0.5538996", "0.5538968", "0.55384624", "0.5533864", "0.55258995", "0.5523503", "0.5519543", "0.5518738", "0.5514861", "0.55148536", "0.55085635", "0.55016965", "0.5494116", "0.5492838", "0.5490969", "0.54876906", "0.54826313", "0.5481693", "0.54806954", "0.5480231", "0.547876", "0.54776", "0.5477339", "0.5476867", "0.5471181", "0.54694074", "0.5454873", "0.54547554", "0.5447437", "0.5439409", "0.54357696", "0.54319954", "0.5429663", "0.5423666", "0.54208434", "0.54118574" ]
0.0
-1
// the work that I will implement in this will work every where
public static void main(String[] args) { CTime a = new CTime(2013,15,28,13,24,56); CTime b = new CTime(2013,0,28,13,24,55); a.getTimeVerbose(); a.getTime(); a.compare(b); a.setTime(2014,8,16,13,24,55); a.getTime(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void poetries() {\n\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tprotected void logic() {\n\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 comer() \r\n\t{\n\t\t\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "private void strin() {\n\n\t}", "public void method_4270() {}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "private FlyWithWings(){\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public abstract void mo70713b();", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public abstract void mo56925d();", "protected void mo6255a() {\n }", "@Override\r\n\tprotected void doF6() {\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 abstract void mo27385c();", "private void m50366E() {\n }", "public void mo38117a() {\n }", "public final void mo51373a() {\n }", "private static void iterator() {\n\t\t\r\n\t}", "public void redibujarAlgoformers() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\n\tpublic void apply() {\n\t\t\n\t}", "protected void additionalProcessing() {\n\t}", "private void getStatus() {\n\t\t\n\t}", "public abstract void mo27386d();", "public void mo21877s() {\n }", "public void mo4359a() {\n }", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\t\t\tpublic void worked(int work) {\n\t\t\t\t\n\t\t\t}", "public abstract void mo6549b();", "protected OpinionFinding() {/* intentionally empty block */}", "@Override\n\tpublic void einkaufen() {\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 protected void prot() {\n }", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\r\n\tprotected void compute() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tprotected void prepare() {\n\t\t\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "protected abstract void work();", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "public void mo21793R() {\n }", "@Override\n\tpublic void processing() {\n\n\t}", "public void mo21785J() {\n }", "@Override\r\n\tprotected void prepare()\r\n\t{\r\n\r\n\t}", "public void mo12628c() {\n }", "public abstract void mo2624j();", "private void level7() {\n }", "public void mo21779D() {\n }", "public abstract void mo30696a();", "public void mo3376r() {\n }", "private void init() {\n\n\t}", "public void mo6081a() {\n }", "public abstract void mo35054b();", "public void logic(){\r\n\r\n\t}", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "protected boolean func_70041_e_() { return false; }", "@Override\n public void preprocess() {\n }", "public void baocun() {\n\t\t\n\t}", "@Override\n\tpublic void myWork() {\n\t\t\n\t}", "private Rekenhulp()\n\t{\n\t}", "public void mo21794S() {\n }", "public void mo9848a() {\n }", "abstract int pregnancy();", "private void searchFunction() {\n\t\t\r\n\t}", "public void mo21782G() {\n }", "public void mo21791P() {\n }" ]
[ "0.6130698", "0.607629", "0.607597", "0.6064385", "0.6063151", "0.60412365", "0.5977897", "0.5968984", "0.5963748", "0.5955384", "0.5927408", "0.592559", "0.5914109", "0.5905195", "0.5860881", "0.5860881", "0.5817293", "0.57981855", "0.57957226", "0.57913786", "0.5790735", "0.57726794", "0.5758439", "0.5750634", "0.57276887", "0.5698678", "0.56952035", "0.5679533", "0.5666591", "0.56624424", "0.56614405", "0.56383985", "0.5637123", "0.56281674", "0.56183606", "0.56155217", "0.5608522", "0.5607943", "0.56066245", "0.5591891", "0.5579185", "0.5572458", "0.5572223", "0.5552736", "0.5525092", "0.5524101", "0.55125296", "0.5512503", "0.5507561", "0.55021834", "0.5494995", "0.5478946", "0.5478904", "0.5474263", "0.54709893", "0.54651636", "0.5463879", "0.54605085", "0.5451827", "0.5450746", "0.5446169", "0.54421633", "0.54421633", "0.5440475", "0.54203403", "0.54168576", "0.54007924", "0.5399393", "0.5397692", "0.5397692", "0.5396087", "0.5390273", "0.5390273", "0.5387279", "0.5382181", "0.5379562", "0.53589386", "0.53579587", "0.5351663", "0.5348858", "0.53475946", "0.5345352", "0.5342609", "0.53359514", "0.53341585", "0.53328127", "0.53234696", "0.5318517", "0.5307457", "0.5305926", "0.5304909", "0.5303724", "0.5300142", "0.52982694", "0.5290397", "0.5290351", "0.5289006", "0.5288007", "0.5287078", "0.52842337", "0.52781916" ]
0.0
-1
Creates new form Inicio
public Inicio() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void create(Formulario form){\n daoFormulario.create(form);\n }", "public creacionempresa() {\n initComponents();\n mostrardatos();\n }", "public frmAfiliado() {\n initComponents();\n \n }", "public FormInserir() {\n initComponents();\n }", "@Command\n\tpublic void nuevoAnalista(){\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\n\n\t\t//parametros.put(\"recordMode\", \"NEW\");\n\t\tllamarFormulario(\"formularioAnalistas.zul\", null);\n\t}", "public FrmInicioSesion() {\n initComponents();\n\n }", "public SalidaCajaForm() {\n\t\tinicializarComponentes();\n }", "private void iniciaFrm() {\n statusLbls(false);\n statusBtnInicial();\n try {\n clientes = new Cliente_DAO().findAll();\n } catch (Exception ex) {\n Logger.getLogger(JF_CadastroCliente.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "protected void nuevo(){\n wp = new frmEspacioTrabajo();\n System.runFinalization();\n inicializar();\n }", "public GestaoFormando() {\n \n initComponents();\n listarEquipamentos();\n listarmapainscritos();\n }", "public Inicio() {\n initComponents();\n iniciarModelos();\n }", "public VistaInicio() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public frm_tutor_subida_prueba() {\n }", "@GetMapping(value = \"/create\") // https://localhost:8080/etiquetasTipoDisenio/create\n\tpublic String create(Model model) {\n\t\tetiquetasTipoDisenio etiquetasTipoDisenio = new etiquetasTipoDisenio();\n\t\tmodel.addAttribute(\"title\", \"Registro de una nuev entrega\");\n\t\tmodel.addAttribute(\"etiquetasTipoDisenio\", etiquetasTipoDisenio); // similar al ViewBag\n\t\treturn \"etiquetasTipoDisenio/form\"; // la ubicacion de la vista\n\t}", "public FormularioCliente() {\n initComponents();\n }", "public Formulario() {\n initComponents();\n }", "protected void creaPagine() {\n Pagina pag;\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* crea la pagina e aggiunge campi e pannelli */\n pag = this.addPagina(\"generale\");\n\n pan = PannelloFactory.orizzontale(this);\n pan.add(Cam.data);\n pan.add(Cam.importo.get());\n pan.add(Cam.note.get());\n pag.add(pan);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public String nuevo() {\n\n\t\tLOG.info(\"Submitado formulario, accion nuevo\");\n\t\tString view = \"/alumno/form\";\n\n\t\t// las validaciones son correctas, por lo cual los datos del formulario estan en\n\t\t// el atributo alumno\n\n\t\t// TODO simular index de la bbdd\n\t\tint id = this.alumnos.size();\n\t\tthis.alumno.setId(id);\n\n\t\tLOG.debug(\"alumno: \" + this.alumno);\n\n\t\t// TODO comprobar edad y fecha\n\n\t\talumnos.add(alumno);\n\t\tview = VIEW_LISTADO;\n\t\tmockAlumno();\n\n\t\t// mensaje flash\n\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\n\t\tExternalContext externalContext = facesContext.getExternalContext();\n\t\texternalContext.getFlash().put(\"alertTipo\", \"success\");\n\t\texternalContext.getFlash().put(\"alertMensaje\", \"Alumno \" + this.alumno.getNombre() + \" creado con exito\");\n\n\t\treturn view + \"?faces-redirect=true\";\n\t}", "public frmPrincipal() {\n initComponents(); \n inicializar();\n \n }", "public CadastroProdutoNew() {\n initComponents();\n }", "public CrearPedidos() {\n initComponents();\n }", "public Form_soal() {\n initComponents();\n tampil_soal();\n }", "public registro() {\n initComponents();\n }", "@Override\r\n\tprotected void agregarObjeto() {\r\n\t\t// opcion 1 es agregar nuevo justificativo\r\n\t\tthis.setTitle(\"PROCESOS - PERMISOS INDIVIDUALES (AGREGANDO)\");\r\n\t\tthis.opcion = 1;\r\n\t\tactivarFormulario();\r\n\t\tlimpiarTabla();\r\n\t\tthis.panelBotones.habilitar();\r\n\t}", "@GetMapping(\"/producto/nuevo\")\n\tpublic String nuevoProductoForm(Model model) {\n\t\tmodel.addAttribute(\"producto\", new Producto());\n\t\treturn \"app/producto/form\";\n\t}", "public ViewCreatePagamento() {\n initComponents();\n clientesDAO cDAO = DaoFactory.createClientesDao(); \n matriculaDAO mDAO = DaoFactory.createMatriculaDao();\n \n cmbIDClientes.addItem(null);\n cDAO.findAll().forEach((p) -> {\n cmbIDClientes.addItem(p.getNome());\n });\n \n \n txtDataAtual.setText(DateFormat.getDateInstance().format(new Date()));\n }", "private void addInstituicao() {\n\n if (txtNome.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Campo Nome Invalido\");\n txtNome.grabFocus();\n return;\n } else if (txtNatureza.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Campo Natureza Invalido\");\n txtNatureza.grabFocus();\n return;\n }\n if ((instituicao == null) || (instituicaoController == null)) {\n instituicao = new Instituicao();\n instituicaoController = new InstituicaoController();\n }\n instituicao.setNome(txtNome.getText());\n instituicao.setNatureza_administrativa(txtNatureza.getText());\n if (instituicaoController.insereInstituicao(instituicao)) {\n limpaCampos();\n JOptionPane.showMessageDialog(null, \"Instituicao Cadastrada com Sucesso\");\n }\n }", "public frmTelaVendas() {\n initComponents();\n this.carrinho = new CarrinhoDeCompras();\n listaItens.setModel(this.lista);\n }", "public FrmInsertar() {\n initComponents();\n }", "private void azzeraInsertForm() {\n\t\tviewInserimento.getCmbbxTipologia().setSelectedIndex(-1);\n\t\tviewInserimento.getTxtFieldDataI().setText(\"\");\n\t\tviewInserimento.getTxtFieldValore().setText(\"\");\n\t\tviewInserimento.getTxtFieldDataI().setBackground(Color.white);\n\t\tviewInserimento.getTxtFieldValore().setBackground(Color.white);\n\t}", "public vistaEjemplo() {\n initComponents();\n con=new Conexion();\n data = new Datas(con);\n usuario = new Usuario();\n jTApellido.setEnabled(false);\n jTMail.setEnabled(false);\n jTNombre.setEnabled(false);\n jTPassword.setEnabled(false);\n JdcFechaDeEntrada.setEnabled(false);\n jBPdf.setEnabled(false);\n }", "public CrearQuedadaVista() {\n }", "private void initFormulario() {\n btnCadastro = findViewById(R.id.btnCadastro);\n editNome = findViewById(R.id.editNome);\n editEmail = findViewById(R.id.editEmail);\n editSenhaA = findViewById(R.id.editSenha);\n editSenhaB = findViewById(R.id.editSenhaB);\n chTermo = findViewById(R.id.chTermos);\n isFormOk = false;\n }", "public frmVenda() {\n initComponents();\n }", "public FrmCrearFotoEmpresa() {\n initComponents();\n }", "FORM createFORM();", "public void iniciar() {\n\t\tcrearElementos();\n\t\tcrearVista();\n\n\t}", "public frmCliente() {\n initComponents();\n CargarProvinciasRes();\n CargarProvinciasTra();\n ManejadorCliente objCli = new ManejadorCliente();\n }", "public FrmNuevoEmpleado() {\n initComponents();\n }", "public FormFuncionario(FormMenu telaPai) {\n initComponents();\n this.telaPai = telaPai;\n\n txtNome.setText(\"Nome\");\n lblNome.setVisible(false);\n txtSobrenome.setText(\"Sobrenome\");\n lblSobrenome.setVisible(false);\n campoMensagem.setVisible(false);\n lblMensagem.setVisible(false);\n\n }", "private void criaInterface() {\n\t\tColor azul = new Color(212, 212, 240);\n\n\t\tpainelMetadado.setLayout(null);\n\t\tpainelMetadado.setBackground(azul);\n\n\t\tmetadadoLabel = FactoryInterface.createJLabel(10, 3, 157, 30);\n\t\tpainelMetadado.add(metadadoLabel);\n\n\t\tbotaoAdicionar = FactoryInterface.createJButton(520, 3, 30, 30);\n\t\tbotaoAdicionar.setIcon(FactoryInterface.criarImageIcon(Imagem.ADICIONAR));\n\t\tbotaoAdicionar.setToolTipText(Sap.ADICIONAR.get(Sap.TERMO.get()));\n\t\tpainelMetadado.add(botaoAdicionar);\n\n\t\tbotaoEscolha = FactoryInterface.createJButton(560, 3, 30, 30);\n\t\tbotaoEscolha.setIcon(FactoryInterface.criarImageIcon(Imagem.VOLTAR_PRETO));\n\t\tbotaoEscolha.setToolTipText(Sap.ESCOLHER.get(Sap.TERMO.get()));\n\t\tbotaoEscolha.setEnabled(false);\n\t\tpainelMetadado.add(botaoEscolha);\n\n\t\talterarModo(false);\n\t\tatribuirAcoes();\n\t}", "public frmPesquisaServico() {\n initComponents();\n listarServicos();\n }", "public FrmCrearEmpleado() {\n initComponents();\n tFecha.setDate(new Date());\n }", "public frmUsuarios() {\n initComponents();\n mostrar(\"\");\n inhabilitar();\n }", "public Inicio()\n { \n super(600, 400, 1);\n prepararInicio();\n\n }", "public FormularioPregunta() {\n initComponents();\n \n setLocationRelativeTo(this);\n }", "public ingresarDatos() {\n initComponents();\n Validacion();\n \n }", "public InicioPrincipal() {\n initComponents();\n }", "public ingresar_Sistema() {\n initComponents();\n }", "@RequestMapping(\"enviar\")\n\tpublic String abrirForm() {\n\t\treturn \"contato/form\";\n\t}", "public Gui_lectura_consumo() {\n initComponents();\n centrarform();\n consumo_capturado.setEditable(false);\n limpiarCajas();\n \n \n }", "public ServerskaForma() {\n initComponents();\n \n \n \n }", "public FormCadastroAutomovel() {\n initComponents();\n }", "public Inventario() {\n initComponents();\n }", "public FormPpal() {\n initComponents();\n setIconImage(Toolkit.getDefaultToolkit().getImage(this.getClass().getResource(\"Imagenes/icon.png\")));\n setLocationRelativeTo(null);\n setTitle(\"Men\\372 principal\");\n setResizable(false);\n formBackUp = null;\n formBuscador = null;\n fb1 = null;\n fb2 = null;\n formListado = null;\n conn = new Conn();\n pacientesCumpleanos = new LinkedList();\n pacientesControl = new LinkedList();\n cargarCumpleanos();\n cargarControlesHoy();\n }", "public Ventaform() {\n initComponents();\n }", "public FrmAbmAfiliado() {\n initComponents();\n }", "public frmSecoes(int cod) {\n initComponents();\n bd = new BD();\n secaodao = new SecaoDAO();\n secoes = secaodao.Abrir(cod);\n secoesapagar = new LinkedList<>();\n adicionasecaotable();\n }", "public FormPermisos() {\n initComponents();\n setLocationRelativeTo(null);\n setTitle(\"INTERFACE-PERMISOS\");\n }", "@FXML\n public void newMedico() {\n new MedicoPaneCadastroController().abrirJanela(\"./View/MedicoPaneCadastro.fxml\", \"Novo Médico\", null);\n populaTabela();\n\n }", "public frmMantEmpresas() {\n initComponents();\n this.presentarDatos();\n ClaseUtil.activarComponente(jPanelDatos, false);\n ClaseUtil.activarComponente(jPanelTabla, true);\n ClaseUtil.activarComponente(jPanelAcciones, false);\n }", "public JFrmPagoCuotaAnulacion() {\n setTitle(\"JFrmPagoCuotaAnulacion\");\n initComponents();\n }", "public Informacion() {\n initComponents();\n }", "public frmPessoa() {\n initComponents();\n }", "public DCrearDisco( InterfazDiscotienda id ){\r\n super( id, true );\r\n principal = id;\r\n\r\n panelDatos = new PanelCrearDisco( );\r\n panelBotones = new PanelBotonesDisco( this );\r\n\r\n getContentPane( ).add( panelDatos, BorderLayout.CENTER );\r\n getContentPane( ).add( panelBotones, BorderLayout.SOUTH );\r\n\r\n setTitle( \"Crear Disco\" );\r\n pack();\r\n }", "public Menu() {\r\n \r\n ingresaVehiculo (); \r\n }", "@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}", "public frmOrdenacao() {\n initComponents();\n setResizable(false);\n ordenacaoControle = new OrdenacaoControle();\n }", "public tambah() {\n initComponents();\n }", "private void newProject()\n\t{\n\t\tnew FenetreCreationProjet();\n\t}", "public FrmFerramentas() throws IOException {\n initComponents();\n SelecionaLocal();\n //PreencheLook();\n }", "public void crear() {\n con = new Conexion();\n con.setInsertar(\"insert into lenguajes_programacion (nombre, fecha_creacion, estado) values ('\"+this.getNombre()+\"', '\"+this.getFecha_creacion()+\"', 'activo')\");\n }", "public FormContasFinanceiras(String idUsuario) {\n initComponents();\n \n setPaginacao(0);\n \n setWhere(\"\");\n btAnterior.setEnabled(false);\n \n MontarTabela(\"\");\n \n //colocar a janela no meio da tela\n this.setLocationRelativeTo(null);\n \n lbUsuarioNome.setText(cb.getUsuarioNome(idUsuario));\n \n GetConfig gc = new GetConfig();\n this.setIconImage(gc.getIco());\n \n //visual Windows\n try{\n UIManager.setLookAndFeel(\"com.sun.java.swing.plaf.windows.WindowsLookAndFeel\");\n SwingUtilities.updateComponentTreeUI(this);\n }catch(Exception e){\n e.printStackTrace();\n }\n \n lbMsg.setText(getMensagem());\n \n }", "public Registro() {\n initComponents();\n }", "public Registro() {\n initComponents();\n }", "public Inicio() {\n initComponents();\n setVisible(true);\n \n }", "public Inicio() {\n initComponents();\n setIconImage(new ImageIcon(getClass().getResource(\"/imagenes/iconogira.png\")).getImage());\n this.setLocationRelativeTo(null);\n this.setTitle(\"GIIA\");\n \n DefaultListModel<String> model = new DefaultListModel<>();\n jListIntegrantes.setModel(model);\n jTextFieldMediaTiempoEst.setEditable(false);\n jTextFieldMediaTiempoReal.setEditable(false);\n }", "public FormUtama() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n pnlMemoria.setBackground(Color.GRAY);\n g = pnlMemoria.getGraphics();\n pnlMemoria.paintComponents(g);\n txtTablaProcesos.setEditable(false);\n listProcesos.setModel(procesos_en_disco);\n Proceso proceso = new Proceso(\"Sistema Operativo\");\n proceso.start();\n }", "private void inicializarFicha(){\n \tTypeface tfBubleGum = Util.fontBubblegum_Regular(this);\n \tTypeface tfBenton = Util.fontBenton_Boo(this);\n \tTypeface tfBentonBold = Util.fontBenton_Bold(this);\n\t\tthis.txtNombre.setTypeface(tfBubleGum);\n\t\tthis.txtDescripcion.setTypeface(tfBenton);\n\t\tthis.lblTitulo.setTypeface(tfBentonBold);\n \tpanelCargando.setVisibility(View.GONE);\n \t\n \t//cargar los datos de las informaciones\n \tif(DataConection.hayConexion(this)){\n \t\tpanelCargando.setVisibility(View.VISIBLE);\n \t\tInfo.infosInterface = this;\n \t\tInfo.cargarInfo(this.app, this.paramIdItem);\n \t}else{\n \t\tUtil.mostrarMensaje(\n\t\t\t\t\tthis, \n\t\t\t\t\tgetResources().getString(R.string.mod_global__sin_conexion_a_internet), \n\t\t\t\t\tgetResources().getString(R.string.mod_global__no_dispones_de_conexion_a_internet) );\n \t}\n }", "public void mostrarTodo() {\n if (formListado != null) {\n formListado.dispose();\n }\n formListado = new FormListado();\n formListado.cargarTodo();\n formListado.setVisible(true);\n }", "@GetMapping(\"/createRegistro\")\n\tpublic String crearValidacion(Model model) {\n\t\tList<Barrio> localidades = barrioService.obtenerBarrios();\n\t\tmodel.addAttribute(\"localidades\",localidades);\n\t\tmodel.addAttribute(\"persona\",persona);\n\t\tmodel.addAttribute(\"validacion\",validacion);\n\t\tmodel.addAttribute(\"registro\",registro);\n\t\tmodel.addAttribute(\"barrio\",barrio);\n\t\treturn \"RegistroForm\";\n\t}", "public ProfilsFIForm() {\r\n\t\tsuper();\r\n\t}", "public TelaRegistroVendas() {\n initComponents();\n }", "private void nuevaLiga() {\r\n\t\tif(Gestion.isModificado()){\r\n\t\t\tint opcion = JOptionPane.showOptionDialog(null, \"¿Desea guardar los cambios?\", \"Nueva Liga\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null,null, null);\r\n\t\t\tswitch(opcion){\r\n\t\t\tcase JOptionPane.YES_OPTION:\r\n\t\t\t\tguardar();\r\n\t\t\t\tbreak;\r\n\t\t\tcase JOptionPane.NO_OPTION:\r\n\t\t\t\tGestion.reset();\r\n\t\t\t\tbreak;\r\n\t\t\tcase JOptionPane.CANCEL_OPTION:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t\tGestion.reset();\r\n\t\tfrmLigaDeFtbol.setTitle(\"Liga de Fútbol\");\r\n\t}", "public CrearCuenta(UsuarioVO usu) {\r\n\t\tsuper();\r\n\t\tlogger.trace(\"Constructor CrearCuenta\");\r\n\t\tinitialize();\r\n\t\tthis.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tusuario = usu;\r\n\t}", "public GestionarRegistro() {\n initComponents();\n this.setLocationRelativeTo(null);\n d = new Donante();\n v = new Validacion();\n a=new Archivos();\n \n // r=new RegistroDonanteApto();\n\n }", "private void inicialize() {\n\t\t\n\t\t/**\n\t\t * Labels e textField of the page:\n\t\t * Nome\n\t\t * Descrição\n\t\t */\n\n\t\tJLabel lblNome = new JLabel(\"Nome\");\n\t\tlblNome.setBounds(5, 48, 86, 28);\n\t\tlblNome.setFont(new Font(\"Dubai Light\", Font.PLAIN, 13));\n\t\tcontentPanel.add(lblNome);\n\t\t\n\t\tJLabel lblDescricao = new JLabel(\"Descrição\");\n\t\tlblDescricao.setBounds(5, 117, 86, 51);\n\t\tlblDescricao.setFont(new Font(\"Dubai Light\", Font.PLAIN, 13));\n\t\tcontentPanel.add(lblDescricao);\n\t\t\n\t\ttextFieldNome = new JTextField();\n\t\ttextFieldNome.setBounds(103, 45, 290, 35);\n\t\ttextFieldNome.setFont(new Font(\"Dubai Light\", Font.PLAIN, 13));\n\t\ttextFieldNome.setColumns(10);\n\t\tcontentPanel.add(textFieldNome);\n\t\t\n\t\ttextFieldDescricao = new JTextArea();\n\t\ttextFieldDescricao.setBackground(Color.WHITE);\n\t\ttextFieldDescricao.setLineWrap(true);\n\t\ttextFieldDescricao.setBounds(101, 118, 290, 193);\n\t\ttextFieldDescricao.setFont(new Font(\"Dubai Light\", Font.PLAIN, 13));\n\t\ttextFieldDescricao.setColumns(10);\n\t\tcontentPanel.add(textFieldDescricao);\n\n\t\t/**\n\t\t * Confirmation panel\n\t\t * Confirmation button\n\t\t * Cancellation button\n\t\t */\n\n\t\tpainelConfirmacaoSetup();\n\t}", "public FormularioP() {\n initComponents();\n }", "public crud_empleados() {\n initComponents();\n txt_usuario1.setEditable(false);\n Mostrar();\n \n\n\n }", "public NewConsultasS() {\n initComponents();\n limpiar();\n bloquear();\n }", "@GetMapping(\"/cliente/new\")\n\tpublic String newCliente(Model model) {\n\t\tmodel.addAttribute(\"cliente\", new Cliente());\n\t\tControllerHelper.setEditMode(model, false);\n\t\t\n\t\t\n\t\treturn \"cadastro-cliente\";\n\t\t\n\t}", "public AfiliadoVista() {\r\n }", "public Vehiculo() {\r\n }", "public RegistroCamas() {\n initComponents();\n }", "public TelaCadastrarProduto() {\n initComponents();\n entidade = new Produto();\n setRepositorio(RepositorioBuilder.getProdutoRepositorio());\n grupo.add(jRadioButton1);\n grupo.add(jRadioButton2);\n }", "public VistaUsuarioContenido() {\n initComponents();\n }", "public InvoiceCreate() {\n initComponents();\n }" ]
[ "0.6993054", "0.6985426", "0.6954153", "0.681345", "0.67655253", "0.676181", "0.6758866", "0.6717438", "0.6688648", "0.66685706", "0.6632749", "0.66263914", "0.659723", "0.65587", "0.6557283", "0.65562373", "0.65447265", "0.6527449", "0.65252644", "0.651884", "0.65077907", "0.64807117", "0.6478056", "0.64719164", "0.6469142", "0.6451688", "0.64458203", "0.6443313", "0.6429789", "0.6424437", "0.6414422", "0.638743", "0.63838476", "0.6381794", "0.6377559", "0.6373784", "0.6364563", "0.6361796", "0.63590175", "0.63540876", "0.6349642", "0.6341796", "0.6340558", "0.63196754", "0.6310482", "0.6306292", "0.63024276", "0.62916905", "0.6289986", "0.62860894", "0.6274702", "0.6260706", "0.6260422", "0.62517154", "0.62479866", "0.624035", "0.6239099", "0.6235084", "0.62316835", "0.62226224", "0.62173516", "0.6214953", "0.62022084", "0.6199867", "0.61996996", "0.6195644", "0.619214", "0.61842054", "0.6171798", "0.6171418", "0.6162343", "0.6157738", "0.615616", "0.6153792", "0.61524713", "0.61524713", "0.6151148", "0.6149359", "0.6140094", "0.6137096", "0.61317796", "0.612641", "0.6116244", "0.61087364", "0.6102667", "0.60909194", "0.608882", "0.60883915", "0.60852593", "0.6080268", "0.6075967", "0.6072266", "0.60624564", "0.6051616", "0.60422343", "0.6041618", "0.60397553", "0.603562", "0.6031438" ]
0.6400695
32
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); jPanel3 = new javax.swing.JPanel(); jMenuBar1 = new javax.swing.JMenuBar(); jMenu1 = new javax.swing.JMenu(); jMenu2 = new javax.swing.JMenu(); jMenu3 = new javax.swing.JMenu(); jMenu6 = new javax.swing.JMenu(); jMenu5 = new javax.swing.JMenu(); jMenu4 = new javax.swing.JMenu(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jPanel1.setBackground(new java.awt.Color(102, 102, 102)); jPanel1.setForeground(new java.awt.Color(255, 255, 255)); jLabel1.setFont(new java.awt.Font("Times New Roman", 3, 36)); // NOI18N jLabel1.setForeground(new java.awt.Color(255, 255, 255)); jLabel1.setText(" CADASTRO ONLINE"); jPanel3.setBackground(new java.awt.Color(255, 255, 255)); jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Inicio", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Times New Roman", 3, 18), new java.awt.Color(0, 0, 0))); // NOI18N javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); jPanel3.setLayout(jPanel3Layout); jPanel3Layout.setHorizontalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 762, Short.MAX_VALUE) ); jPanel3Layout.setVerticalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 304, Short.MAX_VALUE) ); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(176, 176, 176) .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 398, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap(20, Short.MAX_VALUE)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jMenu1.setText("Inicio"); jMenu1.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseEntered(java.awt.event.MouseEvent evt) { jMenu1MouseEntered(evt); } }); jMenuBar1.add(jMenu1); jMenu2.setText("Editar"); jMenuBar1.add(jMenu2); jMenu3.setText("Cadastro"); jMenu3.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { jMenu3MouseClicked(evt); } }); jMenuBar1.add(jMenu3); jMenu6.setText("Consulta de Clientes"); jMenuBar1.add(jMenu6); jMenu5.setText("Login"); jMenuBar1.add(jMenu5); jMenu4.setText("Banco de Cadastro"); jMenuBar1.add(jMenu4); setJMenuBar(jMenuBar1); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 824, Short.MAX_VALUE) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 427, Short.MAX_VALUE) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public PatientUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Magasin() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public kunde() {\n initComponents();\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public frmVenda() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public CovidGUI(){\n initComponents();\n }" ]
[ "0.73206544", "0.7291311", "0.7291311", "0.7291311", "0.7286492", "0.7249181", "0.7213362", "0.72085494", "0.71965617", "0.7190475", "0.7184897", "0.7159234", "0.71483016", "0.7094075", "0.7081491", "0.70579433", "0.6987627", "0.69776064", "0.69552463", "0.69549114", "0.69453007", "0.69439274", "0.69369227", "0.6932056", "0.6927733", "0.6925948", "0.69254535", "0.69121534", "0.6911907", "0.6894101", "0.6892413", "0.68919593", "0.6891924", "0.6889863", "0.6884052", "0.6883223", "0.688166", "0.68787736", "0.68764126", "0.68745583", "0.68721986", "0.68595314", "0.685675", "0.68565613", "0.6855288", "0.6854687", "0.6854457", "0.685303", "0.685303", "0.68448347", "0.6837389", "0.6837193", "0.6829965", "0.6829964", "0.68275386", "0.68249714", "0.6823691", "0.6818224", "0.68173605", "0.6811417", "0.6809674", "0.680964", "0.6809329", "0.68085754", "0.6802194", "0.67955625", "0.67938477", "0.6793322", "0.679176", "0.67900634", "0.6789749", "0.67888486", "0.6781942", "0.6767308", "0.6766431", "0.6765252", "0.67573947", "0.6756327", "0.6753509", "0.67520833", "0.6741834", "0.6740361", "0.6737793", "0.67370224", "0.6734898", "0.6727867", "0.6727453", "0.67214817", "0.6716735", "0.67162156", "0.6715855", "0.6709997", "0.6707508", "0.67042965", "0.6702483", "0.67014945", "0.67007315", "0.6699097", "0.669545", "0.6692102", "0.6690473" ]
0.0
-1
Construct parameters stored in the given map.
public Parameters(Map<String, String[]> map) { requireNonNull(map, "Parameters map not speicifed"); this.store = new ParametersMap(map); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ParamMap createParamMap();", "public Parameterized(Map<String, String> parameters) {\n setParameters(parameters);\n }", "void setParameters(Map<String, String[]> parameters);", "@Override\n public void setParameterMap(Map arg0) {\n\n }", "private Map<String,Object> buildParamsMap(Map<String, Object> map, HostelDTO hostelDTO){\r\n\t\tmap.put(\"hostelName\", hostelDTO.getHostelName());\r\n\t\tmap.put(\"adrStreet\", hostelDTO.getAdrStreet());\r\n\t\tmap.put(\"adrCity\", hostelDTO.getAdrCity());\r\n\t\tmap.put(\"adrState\", hostelDTO.getAdrState());\r\n\t\tmap.put(\"adrPostalCode\", hostelDTO.getAdrPostalCode());\r\n\t\tmap.put(\"adrCountry\", hostelDTO.getAdrCountry());\r\n\t\tmap.put(\"phone\", hostelDTO.getPhone());\r\n\t\tmap.put(\"email\", hostelDTO.getEmail());\r\n\t\tmap.put(\"facebook\", hostelDTO.getFacebook());\r\n\t\tmap.put(\"web\", hostelDTO.getWeb());\r\n\t\tmap.put(\"checkInTime\", hostelDTO.getCheckInTime());\r\n\t\tmap.put(\"checkOutTime\", hostelDTO.getCheckOutTime());\r\n\t\tmap.put(\"smoking\", hostelDTO.getSmoking());\r\n\t\tmap.put(\"alcohol\", hostelDTO.getAlcohol());\r\n\t\tmap.put(\"orderCancellationHoursLimit\", hostelDTO.getOrderCancellationHoursLimit());\r\n\t\tmap.put(\"cancellationFeePercant\", hostelDTO.getCancellationFeePercant());\t\r\n\t\treturn map;\r\n\t}", "ParamMapEntry createParamMapEntry();", "private DependencyManager(Map<TypedKey<?>, Object> inputs)\n\t{\n\t\tmap.putAll(inputs);\n\t}", "@SuppressWarnings(\"unchecked\")\n public ParametersImpl(Map<String, Object> parameters) {\n parameters.forEach((parameterName, parameterValues) -> {\n if (parameterValues == null) {\n String nullValuedParameters = parameters\n .entrySet()\n .stream()\n .filter(entry -> isNull(entry.getValue()))\n .map(Entry::getKey)\n .sorted()\n .collect(joining(\", \"));\n throw new IllegalArgumentException(String.format(\n \"parameters must not have null values: %s\",\n nullValuedParameters));\n }\n\n this.parameters.put(parameterName, (V) parameterValues);\n });\n }", "public URIParameters(Map<String, String[]> parameters) {\r\n this._parameters = new HashMap<String, String[]>(parameters);\r\n }", "public Query initParams(Map<String, String> params) {\n if (MapUtil.isNotEmpty(params)) {\n for (Map.Entry<String, String> entry : params.entrySet()) {\n addParam(entry.getKey(), entry.getValue());\n }\n }\n return this;\n }", "void setParameters(Map<String, Object> propertyValues);", "public void buildMap(){\n this.map = new HashMap<String, String>();\n map.put(\"user\", \"user\");\n map.put(\"pw\", \"pass\");\n map.put(\"quit\", \"quit\");\n map.put(\"features\", \"feat\");\n map.put(\"cd\", \"cwd\");\n map.put(\"dir\", \"list\");\n map.put(\"get\", \"retr\");\n }", "public SocketParams(Map<String, String> source) {\n init();\n\n for(Map.Entry<String, String> entry : source.entrySet()) {\n put(entry.getKey(), entry.getValue());\n }\n }", "Map<String, String[]> getParameterMap();", "private MapTransformer(Map map) {\n super();\n iMap = map;\n }", "void add( Map< String, Object > paramMap );", "public void init(Map<String, String> configuration);", "public void putInMap(Map<String, Object> paramMap) {\n\t\tparamMap.put(\"wms_cre_credit_service_type_id\", this.wms_cre_credit_service_type_id);\n\t\tparamMap.put(\"wms_cre_credit_head_id\", this.wms_cre_credit_head_id);\n\t\tparamMap.put(\"pre_wms_cre_credit_head_id\", this.pre_wms_cre_credit_head_id);\n\t\tparamMap.put(\"old_wms_cre_credit_head_id\", this.old_wms_cre_credit_head_id);\n\t\tparamMap.put(\"wms_cre_credit_notary_warn_id\", this.wms_cre_credit_notary_warn_id);\n\t\tparamMap.put(\"pre_wms_cre_credit_notary_warn_id\", this.pre_wms_cre_credit_notary_warn_id);\n\t\tparamMap.put(\"old_wms_cre_credit_notary_warn_id\", this.old_wms_cre_credit_notary_warn_id);\n\t\tparamMap.put(\"bill_code\", this.bill_code);\n\t\tparamMap.put(\"operating_time\", this.operating_time);\n\t\tparamMap.put(\"operating_time_str\", this.operating_time_str);\n\t\tparamMap.put(\"the_number\", this.the_number);\n\t\tparamMap.put(\"create_user_id\", this.create_user_id);\n\t\tparamMap.put(\"create_user_name\", this.create_user_name);\n\t\tparamMap.put(\"create_timestamp\", this.create_timestamp);\n\t\tparamMap.put(\"create_timestamp_str\", this.create_timestamp_str);\n\t\tparamMap.put(\"last_update_user_id\", this.last_update_user_id);\n\t\tparamMap.put(\"last_update_timestamp\", this.last_update_timestamp);\n\t\tparamMap.put(\"last_update_timestamp_str\", this.last_update_timestamp_str);\n\t\tparamMap.put(\"enable_flag\", this.enable_flag);\n\t\tparamMap.put(\"isExcludePKFlag\", this.isExcludePKFlag);\n\t}", "public Map getParameters();", "public ConfigurationHolderImpl(Map<String, String> map) {\n this(map, null);\n }", "public Map<String, AccessPoint> createParameters() {\r\n\t\tMap<String, AccessPoint> pm = new TreeMap<String, AccessPoint>();\r\n\t\tpm.put(\"vcNumber\", new MutableFieldAccessPoint(\"vcNumber\", this));\r\n\t\treturn pm;\r\n\t}", "@Override\n public void init(HashMap<String, Object> map) {\n this.title = (String) map.get(\"title\");\n this.url = (String) map.get(\"url\");\n }", "public MapBuilder() {\r\n map = new Map();\r\n json = new Gson();\r\n }", "public void putInMap(Map<String, Object> paramMap)\n {\n paramMap.put(\"wms_cre_rev_info_comp_id\", this.wms_cre_rev_info_comp_id);\n paramMap.put(\"wms_cre_credit_head_id\", this.wms_cre_credit_head_id);\n paramMap.put(\"wms_cre_credit_line_customer_change_head_id\", this.wms_cre_credit_line_customer_change_head_id);\n paramMap.put(\"has_enterprise\", this.has_enterprise);\n paramMap.put(\"enterprise_reason\", this.enterprise_reason);\n paramMap.put(\"company_type\", this.company_type);\n paramMap.put(\"register_money\", this.register_money);\n paramMap.put(\"operation_state\", this.operation_state);\n paramMap.put(\"date_of_issue\", this.date_of_issue);\n paramMap.put(\"date_of_issue_str\", this.date_of_issue_str);\n paramMap.put(\"issue_begin_date\", this.issue_begin_date);\n paramMap.put(\"issue_begin_date_str\", this.issue_begin_date_str);\n paramMap.put(\"issue_end_date\", this.issue_end_date);\n paramMap.put(\"issue_end_date_str\", this.issue_end_date_str);\n paramMap.put(\"shareholders_num\", this.shareholders_num);\n paramMap.put(\"way_of_contribution\", this.way_of_contribution);\n paramMap.put(\"is_inspection\", this.is_inspection);\n paramMap.put(\"is_same_organ_code\", this.is_same_organ_code);\n paramMap.put(\"is_inspection_organ_code\", this.is_inspection_organ_code);\n paramMap.put(\"is_same_other\", this.is_same_other);\n paramMap.put(\"is_taxpayer\", this.is_taxpayer);\n paramMap.put(\"pay_taxes_status\", this.pay_taxes_status);\n paramMap.put(\"comp_remark\", this.comp_remark);\n }", "public JexlEvalContext(Map<String, Object> map) {\n this.vars = map == EMPTY_MAP ? new MapContext() : new MapContext(map);\n this.ns = null;\n }", "public AgentBuilderDictionary(Map m) {\n\t\tsuper(m);\n\t}", "public void init(Map<String, String> pParams, Application pApp) throws Exception;", "public static Builder createParameters(Map<String, String> parameters) {\n return builder().setType(Type.PARAMETERS).setParameters(parameters);\n }", "Map<ParameterKeys, Object> process(final Map<ParameterKeys, Object> params) throws NullPointerException, IllegalArgumentException;", "public abstract void configureBean(Map<String, String[]> requestParamsMap);", "public void toMap(HashMap<String, String> map, String prefix) {\n this.setParamSimple(map, prefix + \"BusinessCodeName\", this.BusinessCodeName);\n this.setParamSimple(map, prefix + \"ProductCodeName\", this.ProductCodeName);\n this.setParamSimple(map, prefix + \"PayModeName\", this.PayModeName);\n this.setParamSimple(map, prefix + \"ProjectName\", this.ProjectName);\n this.setParamSimple(map, prefix + \"RegionName\", this.RegionName);\n this.setParamSimple(map, prefix + \"ZoneName\", this.ZoneName);\n this.setParamSimple(map, prefix + \"ResourceId\", this.ResourceId);\n this.setParamSimple(map, prefix + \"ResourceName\", this.ResourceName);\n this.setParamSimple(map, prefix + \"ActionTypeName\", this.ActionTypeName);\n this.setParamSimple(map, prefix + \"OrderId\", this.OrderId);\n this.setParamSimple(map, prefix + \"BillId\", this.BillId);\n this.setParamSimple(map, prefix + \"PayTime\", this.PayTime);\n this.setParamSimple(map, prefix + \"FeeBeginTime\", this.FeeBeginTime);\n this.setParamSimple(map, prefix + \"FeeEndTime\", this.FeeEndTime);\n this.setParamArrayObj(map, prefix + \"ComponentSet.\", this.ComponentSet);\n this.setParamSimple(map, prefix + \"PayerUin\", this.PayerUin);\n this.setParamSimple(map, prefix + \"OwnerUin\", this.OwnerUin);\n this.setParamSimple(map, prefix + \"OperateUin\", this.OperateUin);\n this.setParamArrayObj(map, prefix + \"Tags.\", this.Tags);\n this.setParamSimple(map, prefix + \"BusinessCode\", this.BusinessCode);\n this.setParamSimple(map, prefix + \"ProductCode\", this.ProductCode);\n this.setParamSimple(map, prefix + \"ActionType\", this.ActionType);\n this.setParamSimple(map, prefix + \"RegionId\", this.RegionId);\n this.setParamSimple(map, prefix + \"ProjectId\", this.ProjectId);\n this.setParamArraySimple(map, prefix + \"PriceInfo.\", this.PriceInfo);\n this.setParamObj(map, prefix + \"AssociatedOrder.\", this.AssociatedOrder);\n this.setParamSimple(map, prefix + \"Formula\", this.Formula);\n this.setParamSimple(map, prefix + \"FormulaUrl\", this.FormulaUrl);\n\n }", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\r\n\tprivate static Map<String,String> buildFormFieldMap(Map parameterMap) {\r\n\t\tMap<String,String> formFieldMap = new HashMap<String,String>();\r\n\r\n\t\tif (parameterMap != null) {\r\n\t\t\tIterator<String> i = parameterMap.keySet().iterator();\r\n\t\t\twhile (i.hasNext()) {\r\n\t\t\t\tString key = i.next();\r\n\t\t\t\tString[] values = (String[]) parameterMap.get(key);\r\n\t\t\t\tif (values != null && values.length > 0) {\r\n\t\t\t\t\tformFieldMap.put(key, values[0]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn formFieldMap;\r\n\t}", "public MapGenerator(GameMap map) {\n\n gameMap = map;\n setGuiHashMap();\n firstCountryFlag=true;\n validator = new MapValidator(gameMap);\n }", "public void toMap(HashMap<String, String> map, String prefix) {\n this.setParamSimple(map, prefix + \"Id\", this.Id);\n this.setParamSimple(map, prefix + \"Cluster\", this.Cluster);\n this.setParamSimple(map, prefix + \"Name\", this.Name);\n this.setParamSimple(map, prefix + \"Runtime\", this.Runtime);\n this.setParamSimple(map, prefix + \"ModelUri\", this.ModelUri);\n this.setParamSimple(map, prefix + \"Cpu\", this.Cpu);\n this.setParamSimple(map, prefix + \"Memory\", this.Memory);\n this.setParamSimple(map, prefix + \"Gpu\", this.Gpu);\n this.setParamSimple(map, prefix + \"GpuMemory\", this.GpuMemory);\n this.setParamSimple(map, prefix + \"CreateTime\", this.CreateTime);\n this.setParamSimple(map, prefix + \"UpdateTime\", this.UpdateTime);\n this.setParamSimple(map, prefix + \"ScaleMode\", this.ScaleMode);\n this.setParamObj(map, prefix + \"Scaler.\", this.Scaler);\n this.setParamObj(map, prefix + \"Status.\", this.Status);\n this.setParamSimple(map, prefix + \"AccessToken\", this.AccessToken);\n this.setParamSimple(map, prefix + \"ConfigId\", this.ConfigId);\n this.setParamSimple(map, prefix + \"ConfigName\", this.ConfigName);\n this.setParamSimple(map, prefix + \"ServeSeconds\", this.ServeSeconds);\n this.setParamSimple(map, prefix + \"ConfigVersion\", this.ConfigVersion);\n this.setParamSimple(map, prefix + \"ResourceGroupId\", this.ResourceGroupId);\n this.setParamArrayObj(map, prefix + \"Exposes.\", this.Exposes);\n this.setParamSimple(map, prefix + \"Region\", this.Region);\n this.setParamSimple(map, prefix + \"ResourceGroupName\", this.ResourceGroupName);\n this.setParamSimple(map, prefix + \"Description\", this.Description);\n this.setParamSimple(map, prefix + \"GpuType\", this.GpuType);\n this.setParamSimple(map, prefix + \"LogTopicId\", this.LogTopicId);\n\n }", "public void setParameters(Map<String, String> parameters) throws IOException {\r\n if (parameters == null)\r\n return;\r\n for (Iterator i = parameters.entrySet().iterator(); i.hasNext();) {\r\n Map.Entry entry = (Map.Entry) i.next();\r\n setParameter(entry.getKey().toString(), entry.getValue());\r\n }\r\n }", "public abstract MapItem createMapItem(Object[] parameters) throws Exception;", "public void setParameterMap(Map parametersMap)\r\n {\r\n // create a new HashMap\r\n this.parameters = new HashMap(parametersMap.size());\r\n\r\n // copy the parameters\r\n addParameterMap(parametersMap);\r\n }", "protected List<NameValuePair> buildRequestParameters(final Map<String, Object> paramMap) {\n\t\tList<NameValuePair> paramList = new ArrayList<NameValuePair>();\n\n\t\tif (paramMap != null && paramMap.size() > 0) {\n\t\t\tfor (final String var : paramMap.keySet()) {\n\t\t\t\tString paramStr = getStringValue(paramMap.get(var));\n \n\t\t\t\tif (paramStr != null && requestFields.contains(var)) {\n\t\t\t\t\tparamList.add(new BasicNameValuePair(var, paramStr));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn paramList;\n\t}", "public void buildMap(){\n map =mapFactory.createMap(level);\n RefLinks.SetMap(map);\n }", "private VariableMap getParamMappingAsVariableMap() {\n paramValueEncodings.put(fileNameToIndex.keySet().toString(), \" FileNames\");\n paramValueEncodings.put(functionNameToIndex.keySet().toString(), \" FunctionNames\");\n paramValueEncodings.put(typeToIndex.keySet().toString(), \" Types\");\n\n VariableMap preInversedMap = new VariableMap(paramValueEncodings);\n ImmutableMap<String, String> inversedMap = preInversedMap.getNewNameToOriginalNameMap();\n return new VariableMap(inversedMap);\n }", "public HashMap(Map<? extends K,? extends V> map) {\r\n\t\tthis();\r\n\t\tthis.putAll(map);\r\n\t}", "public MapCalculator(ZanMinimap minimap) {\n \t\tmap = minimap.map;\n \t}", "public static Subject createWithMap(HashMap<String, String> map) {\n if (map.containsKey(MAP_ITEM_ID)) {\n Subject subject = SubjectManipulator.createItem(map);\n SubjectManipulator.add(subject);\n return subject;\n } else if (map.containsKey(MAP_CUSTOMER_ID)) {\n Subject subject = SubjectManipulator.createCustomer(map);\n SubjectManipulator.add(subject);\n return subject;\n } else if (map.containsKey(MAP_CATEGORY_ID)) {\n Subject subject = SubjectManipulator.createCategory(map);\n SubjectManipulator.add(subject);\n return subject;\n } else {\n LOGGER.warning(\"The map you gave was not valid, please make sure you haven't edited the map_id fields.\");\n return null;\n }\n }", "public void toMap(HashMap<String, String> map, String prefix) {\n this.setParamSimple(map, prefix + \"Id\", this.Id);\n this.setParamSimple(map, prefix + \"Title\", this.Title);\n this.setParamSimple(map, prefix + \"Name\", this.Name);\n this.setParamSimple(map, prefix + \"Type\", this.Type);\n this.setParamSimple(map, prefix + \"Description\", this.Description);\n this.setParamSimple(map, prefix + \"Schema\", this.Schema);\n this.setParamSimple(map, prefix + \"CmsProject\", this.CmsProject);\n this.setParamSimple(map, prefix + \"PkgId\", this.PkgId);\n this.setParamSimple(map, prefix + \"SchemaVersion\", this.SchemaVersion);\n this.setParamSimple(map, prefix + \"CreatorId\", this.CreatorId);\n this.setParamSimple(map, prefix + \"CreatedAt\", this.CreatedAt);\n this.setParamSimple(map, prefix + \"UpdatedAt\", this.UpdatedAt);\n this.setParamSimple(map, prefix + \"EnvId\", this.EnvId);\n this.setParamSimple(map, prefix + \"DataSourceVersion\", this.DataSourceVersion);\n this.setParamArrayObj(map, prefix + \"AppUsageList.\", this.AppUsageList);\n this.setParamSimple(map, prefix + \"PublishedAt\", this.PublishedAt);\n this.setParamArraySimple(map, prefix + \"ChildDataSourceIds.\", this.ChildDataSourceIds);\n this.setParamSimple(map, prefix + \"Fun\", this.Fun);\n this.setParamSimple(map, prefix + \"ScfStatus\", this.ScfStatus);\n this.setParamSimple(map, prefix + \"Methods\", this.Methods);\n this.setParamArraySimple(map, prefix + \"ChildDataSourceNames.\", this.ChildDataSourceNames);\n this.setParamSimple(map, prefix + \"IsNewDataSource\", this.IsNewDataSource);\n this.setParamSimple(map, prefix + \"ViewId\", this.ViewId);\n this.setParamSimple(map, prefix + \"Configuration\", this.Configuration);\n this.setParamSimple(map, prefix + \"TemplateCode\", this.TemplateCode);\n this.setParamSimple(map, prefix + \"Source\", this.Source);\n this.setParamSimple(map, prefix + \"PublishVersion\", this.PublishVersion);\n this.setParamSimple(map, prefix + \"PublishViewId\", this.PublishViewId);\n this.setParamSimple(map, prefix + \"SubType\", this.SubType);\n this.setParamSimple(map, prefix + \"AuthStatus\", this.AuthStatus);\n this.setParamObj(map, prefix + \"AuthInfo.\", this.AuthInfo);\n\n }", "public ShakeMap(String fp, String parameter) {\r\n\t\tsuper(fp);\r\n\t\tthis.parameter = parameter;\r\n\t}", "public void toMap(HashMap<String, String> map, String prefix) {\n this.setParamObj(map, prefix + \"Application.\", this.Application);\n this.setParamSimple(map, prefix + \"TaskName\", this.TaskName);\n this.setParamSimple(map, prefix + \"TaskInstanceNum\", this.TaskInstanceNum);\n this.setParamObj(map, prefix + \"ComputeEnv.\", this.ComputeEnv);\n this.setParamSimple(map, prefix + \"EnvId\", this.EnvId);\n this.setParamObj(map, prefix + \"RedirectInfo.\", this.RedirectInfo);\n this.setParamObj(map, prefix + \"RedirectLocalInfo.\", this.RedirectLocalInfo);\n this.setParamArrayObj(map, prefix + \"InputMappings.\", this.InputMappings);\n this.setParamArrayObj(map, prefix + \"OutputMappings.\", this.OutputMappings);\n this.setParamArrayObj(map, prefix + \"OutputMappingConfigs.\", this.OutputMappingConfigs);\n this.setParamArrayObj(map, prefix + \"EnvVars.\", this.EnvVars);\n this.setParamArrayObj(map, prefix + \"Authentications.\", this.Authentications);\n this.setParamSimple(map, prefix + \"FailedAction\", this.FailedAction);\n this.setParamSimple(map, prefix + \"MaxRetryCount\", this.MaxRetryCount);\n this.setParamSimple(map, prefix + \"Timeout\", this.Timeout);\n this.setParamSimple(map, prefix + \"MaxConcurrentNum\", this.MaxConcurrentNum);\n this.setParamSimple(map, prefix + \"RestartComputeNode\", this.RestartComputeNode);\n this.setParamSimple(map, prefix + \"ResourceMaxRetryCount\", this.ResourceMaxRetryCount);\n\n }", "Statement setParameters(Map<String, Object> params);", "InfiniteMap<K,V> build(MapTypes type);", "public abstract HashMap<String, String> generateParameterMap(String snpName,\n List<ModelOption> modelOptions,\n DbSnpSourceOption dbSnpOption,\n GeneSourceOption geneSourceOption,\n int basePairRadius);", "public JbootVoModel set(Map<String, Object> map) {\n super.putAll(map);\n return this;\n }", "private void placesInit()\n {\n\n for(Map.Entry<String,Place> placeEntry: placesMap.entrySet())\n {\n addPlace(placeEntry.getKey(),placeEntry.getValue());\n }\n\n }", "private void initParameters() {\n Annotation[][] paramsAnnotations = method.getParameterAnnotations();\n for (int i = 0; i < paramsAnnotations.length; i++) {\n if (paramsAnnotations[i].length == 0) {\n contentBuilder.addUnnamedParam(i);\n } else {\n for (Annotation annotation : paramsAnnotations[i]) {\n Class<?> annotationType = annotation.annotationType();\n if (annotationType.equals(PathParam.class)\n && pathBuilder != null) {\n PathParam param = (PathParam) annotation;\n pathBuilder.addParam(param.value(), i);\n } else if (annotationType.equals(QueryParam.class)) {\n QueryParam param = (QueryParam) annotation;\n queryBuilder.addParam(param.value(), i);\n } else if (annotationType.equals(HeaderParam.class)) {\n HeaderParam param = (HeaderParam) annotation;\n headerBuilder.addParam(param.value(), i);\n } else if (annotationType.equals(NamedParam.class)) {\n NamedParam param = (NamedParam) annotation;\n contentBuilder.addNamedParam(param.value(), i);\n } else {\n contentBuilder.addUnnamedParam(i);\n }\n }\n }\n }\n }", "@Override\n public HashMap<String, List<String>> initializeMapping(HashMap<String, List<String>> mapping) {\n mapping.put(\"xEncoder\", Arrays.asList(\"outtakeMotor1\", \"outtake1\"));\n mapping.put(\"yEncoder\", Arrays.asList(\"wobbleMotor\"));\n\n return mapping;\n }", "public void toMap(HashMap<String, String> map, String prefix) {\n this.setParamSimple(map, prefix + \"ClusterId\", this.ClusterId);\n this.setParamSimple(map, prefix + \"ClusterName\", this.ClusterName);\n this.setParamSimple(map, prefix + \"ClusterType\", this.ClusterType);\n this.setParamSimple(map, prefix + \"ClusterTag\", this.ClusterTag);\n this.setParamSimple(map, prefix + \"Zone\", this.Zone);\n this.setParamSimple(map, prefix + \"Network\", this.Network);\n this.setParamSimple(map, prefix + \"MaxConn\", this.MaxConn);\n this.setParamSimple(map, prefix + \"MaxInFlow\", this.MaxInFlow);\n this.setParamSimple(map, prefix + \"MaxInPkg\", this.MaxInPkg);\n this.setParamSimple(map, prefix + \"MaxOutFlow\", this.MaxOutFlow);\n this.setParamSimple(map, prefix + \"MaxOutPkg\", this.MaxOutPkg);\n this.setParamSimple(map, prefix + \"MaxNewConn\", this.MaxNewConn);\n this.setParamSimple(map, prefix + \"HTTPMaxNewConn\", this.HTTPMaxNewConn);\n this.setParamSimple(map, prefix + \"HTTPSMaxNewConn\", this.HTTPSMaxNewConn);\n this.setParamSimple(map, prefix + \"HTTPQps\", this.HTTPQps);\n this.setParamSimple(map, prefix + \"HTTPSQps\", this.HTTPSQps);\n this.setParamSimple(map, prefix + \"ResourceCount\", this.ResourceCount);\n this.setParamSimple(map, prefix + \"IdleResourceCount\", this.IdleResourceCount);\n this.setParamSimple(map, prefix + \"LoadBalanceDirectorCount\", this.LoadBalanceDirectorCount);\n this.setParamSimple(map, prefix + \"Isp\", this.Isp);\n this.setParamObj(map, prefix + \"ClustersZone.\", this.ClustersZone);\n this.setParamSimple(map, prefix + \"ClustersVersion\", this.ClustersVersion);\n this.setParamSimple(map, prefix + \"DisasterRecoveryType\", this.DisasterRecoveryType);\n\n }", "void init (Map<String, String> conf) throws ConfigException;", "private void assignFields(HashMap<String, String> map) {\n driver = map.get(\"driver\");\n address = \"jdbc:mysql://\" + map.get(\"address\");\n username = map.get(\"username\");\n password = map.get(\"password\");\n timeOut = map.get(\"timeout\");\n dbName = map.get(\"dbname\");\n }", "@Override\n\tprotected void generateParams(HashMap<String, String> map) {\n\t\tmap.put(\"vuid\", vUid);\n\t\tif(page>0)map.put(\"page\", \"\"+page);\n\t\tif(size>0)map.put(\"size\", \"\"+size);\n\t}", "void setMap(Map aMap);", "@Override\n\tprotected void initParams() {\n\t\t\n\t}", "public void init(HardwareMap ahwMap) {\n\n// Giving hwMap a value\n hwMap = ahwMap;\n\n// Declaring servos to use in other classes\n claw = hwMap.get(Servo.class, \"servoClaw\");\n clawLeft = hwMap.get(Servo.class, \"servoClawLeft\");\n clawRight = hwMap.get(Servo.class, \"servoClawRight\");\n }", "public MapArgumentReader(ArgumentReader reader, Map map) {\n\t\tsuper(reader.converter);\n\t\tthis.map = map;\n\t}", "public CollectingExternalConfig(final Map<String, ConfigItem<String, State>> map) {\n\t\trequireNonNull(map, \"map\");\n\t\tcfg = map;\n\t}", "public Map() {\n\n\t\t}", "public abstract void setWorkflowParameters(Map<String,List<Parameter>> lParams);", "public ValueComparator(Map map){\n\t\t\tthis.map = map;\n\t\t}", "public void setProperties(HashMap<String, String> map)\n {\n this.properties = map;\n }", "@Override\r\n\tpublic void setParameters(Map<String, String[]> parameters){\n\t\tthis.parameters=parameters;\r\n\t}", "Map<String, String> getParameters();", "public void toMap(HashMap<String, String> map, String prefix) {\n this.setParamSimple(map, prefix + \"Name\", this.Name);\n this.setParamObj(map, prefix + \"Source.\", this.Source);\n this.setParamSimple(map, prefix + \"EnvId\", this.EnvId);\n this.setParamSimple(map, prefix + \"Type\", this.Type);\n this.setParamArrayObj(map, prefix + \"Parameters.\", this.Parameters);\n this.setParamSimple(map, prefix + \"EnvAlias\", this.EnvAlias);\n this.setParamSimple(map, prefix + \"RcJson\", this.RcJson);\n this.setParamSimple(map, prefix + \"AddonConfig\", this.AddonConfig);\n this.setParamArraySimple(map, prefix + \"Tags.\", this.Tags);\n this.setParamSimple(map, prefix + \"NetworkConfig\", this.NetworkConfig);\n this.setParamSimple(map, prefix + \"FreeQuota\", this.FreeQuota);\n this.setParamSimple(map, prefix + \"AutoDeployOnCodeChange\", this.AutoDeployOnCodeChange);\n this.setParamSimple(map, prefix + \"RepoUrl\", this.RepoUrl);\n\n }", "Map<Long, Map<String, Parametro>> getParametrosConfigMap();", "private Map(int typeMap ) throws IllegalArgumentException\n {\n switch (typeMap){\n case 1:\n createMapOfFirstType();\n setAdjForFirstType();\n break;\n case 2:\n createMapOfSecondType();\n setAdjForSecondType();\n break;\n case 3:\n createMapOfThirdType();\n setAdjForThirdType();\n break;\n case 4:\n createMapOfFourthType();\n setAdjForFourthType();\n break;\n default:\n throw new IllegalArgumentException();\n }\n }", "public Map<String, AccessPoint> createParameters() {\n Map<String, AccessPoint> pm = new TreeMap<>();\n pm.put(\"Minimum funds of the visitors in EUR\", new MutableFieldAccessPoint(\"fundsMinimum\", this));\n pm.put(\"Maximum funds of the visitors in EUR\", new MutableFieldAccessPoint(\"fundsMaximum\", this));\n pm.put(\"Tourist arrival time to Venice\", new MutableFieldAccessPoint(\"visitorArrivalVenice\", this));\n pm.put(\"Tourist arrival time to Milan\", new MutableFieldAccessPoint(\"visitorArrivalMilan\", this));\n pm.put(\"Tourist arrival time to Ravenna\", new MutableFieldAccessPoint(\"visitorArrivalRavenna\", this));\n return pm;\n }", "public void setParameters(@NonNull Map<String, Object> parameters) {\n this.parameters = new HashMap<>(parameters);\n }", "private Map<String, String> paramHandler(Map<String, String> params){\n\t\t\n\t\treturn params;\n\t}", "protected final void setParameters(Map<String, String> parameters) {\n m_parameters = parameters;\n if (m_parameters == null) {\n m_parameters = new HashMap<String, String>();\n }\n }", "private static void fillupmap(Map<String, Object> m) {\n\t\tRectangle r =new Rectangle(\"A\",2,3);\r\n\t\tm.put(r.getRname(), r);\r\n\t\tr =new Rectangle(\"B\",4,1);\r\n\t\tm.put(r.getRname(), r);\r\n\t\tCircle c =new Circle(\"C\",3);\r\n\t\tm.put(c.getCname(),c);\r\n\t\tc =new Circle(\"D\",4);\r\n\t\tm.put(c.getCname(),c);\r\n\t\t\r\n\t}", "public bc m21444a(Map<String, bb> map) {\n this.f18795a = map;\n return this;\n }", "private SearchRegistryCriteria createCriteria(Map criteriaMap)\n {\n SearchRegistryCriteria criteria = new SearchRegistryCriteria();\n\n Object[] keys = criteriaMap.keySet().toArray();\n for (int i=0; i<keys.length; i++)\n {\n Logger.debug(\n \"[SubmitRegistrySearchAction.createCriteria] Setting field \"+keys[i] +\n \" to \"+criteriaMap.get(keys[i]));\n criteria.setFieldValue((Number)keys[i], criteriaMap.get(keys[i]));\n }\n\n return criteria;\n }", "Map<String, Object> getParameters();", "Map<String, Object> getParameters();", "public abstract ImmutableMap<String, ParamInfo> getParamInfos();", "public void setParameterMap(Map<String, ?> parameterMap) {\n\t\tthis.parameterMap = parameterMap;\n\t}", "public SearchDocument(Map<? extends String, ?> propertyMap) {\n super(propertyMap);\n }", "public AbstractIntHashMap(AbstractIntHashMap map) {\n if (map == null) {\n throw new IllegalArgumentException(\"m may not be null\");\n }\n\n //.... Determine parameters\n\n loadFactor = DEFAULT_LOADFACTOR;\n capacity = (int) (map.size() / loadFactor);\n if (capacity < DEFAULT_CAPACITY) {\n // Avoid underflow\n capacity = DEFAULT_CAPACITY;\n } else if (capacity % 2 == 0) {\n // Make sure we have an odd value\n capacity++;\n }\n\n //.... Standard initialization for the internal map elements\n\n maxLoad = (int) (loadFactor * capacity + 0.5f);\n //initialCap = capacity;\n\n objectCounter += 2;\n this.map = new MapElement[capacity];\n putAll(map);\n }", "public CountingMap( Map<K, Integer> map ) {\n this.map = map;\n }", "private Parameter(int key, String name, String value){\n this.key = key;\n this.name = name;\n this.value = value;\n }", "public void toMap(HashMap<String, String> map, String prefix) {\n this.setParamSimple(map, prefix + \"TortId\", this.TortId);\n this.setParamSimple(map, prefix + \"TortTitle\", this.TortTitle);\n this.setParamSimple(map, prefix + \"TortPlat\", this.TortPlat);\n this.setParamSimple(map, prefix + \"TortURL\", this.TortURL);\n this.setParamSimple(map, prefix + \"PubTime\", this.PubTime);\n this.setParamSimple(map, prefix + \"Author\", this.Author);\n this.setParamSimple(map, prefix + \"DetectTime\", this.DetectTime);\n this.setParamSimple(map, prefix + \"ObtainStatus\", this.ObtainStatus);\n this.setParamSimple(map, prefix + \"RightStatus\", this.RightStatus);\n this.setParamSimple(map, prefix + \"BlockStatus\", this.BlockStatus);\n this.setParamSimple(map, prefix + \"TortNum\", this.TortNum);\n this.setParamSimple(map, prefix + \"ObtainNote\", this.ObtainNote);\n this.setParamSimple(map, prefix + \"WorkTitle\", this.WorkTitle);\n this.setParamSimple(map, prefix + \"TortSite\", this.TortSite);\n this.setParamSimple(map, prefix + \"ICP\", this.ICP);\n this.setParamSimple(map, prefix + \"RightNote\", this.RightNote);\n this.setParamSimple(map, prefix + \"ObtainType\", this.ObtainType);\n this.setParamSimple(map, prefix + \"BlockNote\", this.BlockNote);\n this.setParamSimple(map, prefix + \"WorkId\", this.WorkId);\n this.setParamSimple(map, prefix + \"WorkName\", this.WorkName);\n this.setParamSimple(map, prefix + \"AuthStatus\", this.AuthStatus);\n this.setParamSimple(map, prefix + \"CommStatus\", this.CommStatus);\n this.setParamSimple(map, prefix + \"EvidenceStatus\", this.EvidenceStatus);\n this.setParamSimple(map, prefix + \"IsProducer\", this.IsProducer);\n this.setParamSimple(map, prefix + \"IsOverseas\", this.IsOverseas);\n this.setParamSimple(map, prefix + \"IPLoc\", this.IPLoc);\n\n }", "public XPathFilterParameterSpec(String paramString, Map<?, ?> paramMap) {\n/* 88 */ if (paramString == null || paramMap == null) {\n/* 89 */ throw new NullPointerException();\n/* */ }\n/* 91 */ this.xPath = paramString;\n/* 92 */ HashMap<Object, Object> hashMap1 = new HashMap<>(paramMap);\n/* 93 */ Iterator<Map.Entry> iterator = hashMap1.entrySet().iterator();\n/* 94 */ while (iterator.hasNext()) {\n/* 95 */ Map.Entry entry = iterator.next();\n/* 96 */ if (!(entry.getKey() instanceof String) || \n/* 97 */ !(entry.getValue() instanceof String)) {\n/* 98 */ throw new ClassCastException(\"not a String\");\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* 103 */ HashMap<Object, Object> hashMap2 = hashMap1;\n/* */ \n/* 105 */ this.nsMap = Collections.unmodifiableMap(hashMap2);\n/* */ }", "private Map<String, String> addRequiredTableProperties(Map<String, String> map) {\n return ImmutableMap.<String, String>builder().putAll(map)\n .put(Constants.Explore.CDAP_NAME, name)\n .put(Constants.Explore.CDAP_VERSION, ProjectInfo.getVersion().toString())\n .build();\n }", "public void initialize(String id, ConfigMap configMap) {}", "public abstract void createMap();", "public void toMap(HashMap<String, String> map, String prefix) {\n this.setParamSimple(map, prefix + \"ProjectId\", this.ProjectId);\n this.setParamSimple(map, prefix + \"WorkflowId\", this.WorkflowId);\n this.setParamSimple(map, prefix + \"DelayTime\", this.DelayTime);\n this.setParamSimple(map, prefix + \"StartupTime\", this.StartupTime);\n this.setParamSimple(map, prefix + \"SelfDepend\", this.SelfDepend);\n this.setParamSimple(map, prefix + \"CycleType\", this.CycleType);\n this.setParamSimple(map, prefix + \"CycleStep\", this.CycleStep);\n this.setParamSimple(map, prefix + \"StartTime\", this.StartTime);\n this.setParamSimple(map, prefix + \"EndTime\", this.EndTime);\n this.setParamSimple(map, prefix + \"TaskAction\", this.TaskAction);\n this.setParamSimple(map, prefix + \"CrontabExpression\", this.CrontabExpression);\n this.setParamSimple(map, prefix + \"ExecutionStartTime\", this.ExecutionStartTime);\n this.setParamSimple(map, prefix + \"ExecutionEndTime\", this.ExecutionEndTime);\n this.setParamSimple(map, prefix + \"DependencyWorkflow\", this.DependencyWorkflow);\n\n }", "private static void initMap(ConfigurationObject config, Map<Long, String> map, String propertyKey,\r\n String key) {\r\n if (propertyKey.startsWith(key)) {\r\n // Parse deliverable ID\r\n long deliverableId = Helper.parseLong(propertyKey.substring(key.length()),\r\n key + propertyKey, 1);\r\n\r\n // Get email subject/body template text for this deliverable ID\r\n // will always exist, not matter required or not\r\n String templateText = Helper.getPropertyValue(config, propertyKey, true, false);\r\n // Put (deliverable ID; subject/body template) pair to the map\r\n map.put(deliverableId, templateText);\r\n }\r\n }", "public BoxEnterprise(Map<String, Object> map) {\n super(map);\n }", "public void toMap(HashMap<String, String> map, String prefix) {\n this.setParamSimple(map, prefix + \"ConcurrentExecutions\", this.ConcurrentExecutions);\n this.setParamSimple(map, prefix + \"LaunchPath\", this.LaunchPath);\n this.setParamSimple(map, prefix + \"Parameters\", this.Parameters);\n\n }", "public void addParameterMap(Map parametersMap)\r\n {\r\n // handle nulls\r\n if (parametersMap == null)\r\n {\r\n return;\r\n }\r\n\r\n // copy value, escaping html\r\n Iterator mapIterator = parametersMap.entrySet().iterator();\r\n while (mapIterator.hasNext())\r\n {\r\n Map.Entry entry = (Map.Entry) mapIterator.next();\r\n String key = StringEscapeUtils.escapeHtml((String) entry.getKey());\r\n\r\n // don't overwrite parameters\r\n if (!this.parameters.containsKey(key))\r\n {\r\n Object value = entry.getValue();\r\n\r\n if (value != null)\r\n {\r\n if (value.getClass().isArray())\r\n {\r\n String[] values = (String[]) value;\r\n for (int i = 0; i < values.length; i++)\r\n {\r\n values[i] = StringEscapeUtils.escapeHtml(values[i]);\r\n }\r\n }\r\n else\r\n {\r\n value = StringEscapeUtils.escapeHtml(value.toString());\r\n }\r\n }\r\n\r\n this.parameters.put(key, value);\r\n }\r\n }\r\n }", "Object instantiate(Map<String, Object> arguments);", "public TOrderedHashMap(final Map<? extends K, ? extends V> map) {\n\t\tthis(map.size());\n\t\tputAll(map);\n\t}", "public void init(Object[] parameters) {\n\n\t}", "public HashedVector(Map<Integer, Double> map) {\n\t\tthis.elements = new HashMap<Integer, Double>(map);\n\t}" ]
[ "0.6879985", "0.64121896", "0.6316741", "0.63073635", "0.62424046", "0.6214564", "0.6205237", "0.61631656", "0.6137554", "0.6121059", "0.60966486", "0.6067963", "0.60154676", "0.5915598", "0.5905922", "0.59053624", "0.5904145", "0.59036326", "0.58913237", "0.58727914", "0.5861", "0.58590114", "0.5786502", "0.57840806", "0.5770189", "0.5762199", "0.5744278", "0.5728546", "0.57145554", "0.5701081", "0.5669832", "0.56435084", "0.5641527", "0.5627489", "0.5625646", "0.56131786", "0.5606446", "0.5571893", "0.5563611", "0.55414426", "0.55305684", "0.55206674", "0.55174243", "0.551741", "0.5515689", "0.55138", "0.5480713", "0.5475847", "0.54749215", "0.5466779", "0.54638183", "0.5463233", "0.54587114", "0.54489344", "0.5448097", "0.5439858", "0.54359955", "0.5432988", "0.54328346", "0.5429722", "0.5422333", "0.54213387", "0.5417319", "0.5407704", "0.53983426", "0.53962046", "0.53942555", "0.5389269", "0.5386782", "0.53783655", "0.5374954", "0.5373438", "0.537223", "0.537019", "0.5364006", "0.5347635", "0.53440577", "0.53355134", "0.5329275", "0.5329275", "0.5326375", "0.5325686", "0.53245074", "0.53217256", "0.5317138", "0.5315715", "0.5314552", "0.5293096", "0.5288882", "0.5283437", "0.52731526", "0.52724564", "0.5269823", "0.52653205", "0.5264593", "0.52590644", "0.5258471", "0.5252785", "0.52518666", "0.5248669" ]
0.7782463
0
Construct parameters stored in the given properties. Multiple property values are divided by commas. Commas are escaped with backslashes.
public Parameters(Properties properties) { requireNonNull( properties, "A properties to store parameters in not specified"); this.store = new PropertiesParameters(properties); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setParameters(Properties props) {\n\n\t}", "void setParameters(Map<String, Object> propertyValues);", "private String makeInsert(String tableName, Properties prop)\n {\n String sqlNames = \"\";\n String sqlValues = \"\";\n for (Enumeration e = prop.propertyNames(); e.hasMoreElements();) {\n String name = (String) e.nextElement();\n String value = prop.getProperty(name);\n if (value != null && value.length() > 0) {\n sqlNames += name + \", \";\n // Replace all (')s with ('')\n int j = 0;\n int k;\n while ((k = value.indexOf('\\'', j)) > -1) {\n value = value.substring(0, k + 1) + value.substring(k);\n j = k + 2;\n }\n sqlValues += \"'\" + value + \"', \";\n }\n }\n int idx = sqlNames.lastIndexOf(\",\");\n sqlNames = sqlNames.substring(0, idx); // remove the last \", \"\n idx = sqlValues.lastIndexOf(\",\");\n sqlValues = sqlValues.substring(0, idx); // remove the last \", \"\n String sql = \"INSERT INTO \" + tableName + \" (\" + sqlNames + \") VALUES ( \"\n + sqlValues + \");\";\n return sql;\n }", "public PropertyParser(Properties props)\n\t{\n\t\t_props = props;\n\t}", "public static String constructFilter(Map<String, String> properties) {\r\n\r\n String filter = null;\r\n StringBuffer filterBuffer = new StringBuffer();\r\n\r\n if (properties != null && properties.size() > 0) {\r\n filterBuffer.append(\"(&\");\r\n\r\n Map<String, String> serviceProperties = properties;\r\n for (String key : serviceProperties.keySet()) {\r\n filterBuffer.append(\"(\" + key + \"=\" + serviceProperties.get(key) + \")\");\r\n }\r\n\r\n filterBuffer.append(\")\");\r\n filter = new String(filterBuffer);\r\n }\r\n\r\n return filter;\r\n }", "public PropertiesPlus(String properties)\n\t{\n\t\tsuper();\n\t\tdateFormatGMT.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\t\tdateFormatGMT_MS.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\t\tif (properties.startsWith(\"<properties>\"))\n\t\t\tparseXML(properties);\n\t\telse\n\t\t\tparseString(properties);\n\t}", "static public Vector getPropertyValues (Properties props, String propName)\n{\n String propertyDelimiterName = \"property.token.delimiter\";\n String delimiter = props.getProperty (propertyDelimiterName, \"::\");\n\n String listStartTokenName = \"list.startToken\";\n String listStartToken = props.getProperty (listStartTokenName, \"(\");\n\n String listEndTokenName = \"list.endToken\";\n String listEndToken = props.getProperty (listEndTokenName, \")\");\n\n Vector result = new Vector ();\n String propString = props.getProperty (propName);\n if (propString == null)\n return result;\n String propStringTrimmed = propString.trim ();\n String [] tokens = Misc.parseList (propStringTrimmed, listStartToken, listEndToken, delimiter);\n\n for (int i=0; i < tokens.length; i++)\n result.add (tokens [i]);\n\n return result;\n\n}", "public void parseString(String properties)\n\t{\n\t\tString[] entries = properties.split((\"\"+'\\f'));\n\t\tint i;\n\t\tfor (String entry : entries)\n\t\t{\n\t\t\ti = entry.indexOf('=');\n\t\t\tif (i > 0)\n\t\t\t\tsetProperty(entry.substring(0, i).trim(), entry.substring(i+1));\n\t\t}\n\t}", "public static void addProperty(String [] propertyValues){\r\n Property oneProperty = new Property();\r\n oneProperty = setPropertyAttributes(oneProperty, propertyValues);\r\n propertyLogImpl.add(oneProperty);\r\n }", "protected void setProperties(P[] properties) {\n\t\tthis.properties = properties;\n\t}", "public void init(Properties props) ;", "@Test\n public void testCreateFromProperties_String() throws Exception {\n System.out.println(\"createFromProperties\");\n \n EngineConfiguration result = EngineConfiguration.createFromProperties(propertiesName);\n assertProperties(result);\n }", "private static Properties processCommandLineProperties(String[] args)\n {\n Properties props = new Properties();\n\n for (String arg : args) {\n if (!arg.startsWith(\"-\")) {\n continue;\n }\n String definition = arg.substring(1);\n int definitionEquals = definition.indexOf('=');\n if (definitionEquals < 0)\n continue;\n String propName = definition.substring(0, definitionEquals); \n String propValue = definition.substring(definitionEquals+1);\n if (!propName.equals(\"\") && !propValue.equals(\"\"))\n props.put(propName, propValue);\n }\n return props;\n }", "public void setProperties(String properties) throws ParseException {\n\t\tthis.m_corniInterpreter.clear();\n\t\tthis.m_corniInterpreter.parseProperties(properties);\n\t\t\n\t\tthis.m_attributes = m_corniInterpreter.getAttributes();\n\t\tthis.m_tagNames = m_corniInterpreter.getTagNames();\n\t}", "public void init(java.util.Properties props) {\r\n }", "public\n static\n StringBuffer scanOutProperties(String args, StringBuffer sb)\n {\n int si; // source Index\n \n int len = args.length();\n char c;\n\n int nambeg, namlen;\n int valbeg, vallen;\n\n // set output sb empty\n sb.setLength(0);\n\n // scan entire args for nam/val pairs\n si = 0;\n\n mainscanloop: // outermost scan loop\n for (;;)\n {\n if (si >= len)\n break mainscanloop; // totally done\n\n namvalscanloop: // scan single nam/val pair\n for (;;)\n {\n // ====== begin scan on one pair\n nambeg = -1;\n namlen = 0;\n\n valbeg = -1;\n vallen = 0;\n\n\n // ====== scan past white space before nam\n for (;;)\n {\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n if (c == ' ' || c == '\\t' || c == '\\n' || c == '\\r')\n {\n si++;\n continue;\n }\n break;\n }\n\n\n // ====== Start of nam\n // scan len of nam, up to '='\n nambeg = si;\n for (;;)\n {\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == '=') // Found delimiter - go on to scan val\n {\n si++;\n break;\n }\n\n namlen++;\n\n si++;\n }\n\n\n // ====== Start of val\n // scan len of val\n // handle \" and ' bounded values\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n // === scan to matching \" or '\n if (c == '\\\"' || c == '\\'')\n {\n char matchc = c;\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n\n c = args.charAt(si);\n\n valbeg = si;\n for (;;)\n {\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == '\\\\') // Check for escaped \" or '\n {\n if (si + 1 < len)\n {\n if (args.charAt(si + 1) == '\\\"' || args.charAt(si + 1) == '\\'')\n {\n vallen += 2;\n si += 2;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n continue;\n }\n }\n }\n\n if (c == matchc)\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n vallen++;\n\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n }\n }\n else\n\n // === scan normal value - c is valid upon first entry\n {\n valbeg = si;\n for (;;)\n {\n if (c == '\\n')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n if (c == ' ')\n {\n si++;\n break namvalscanloop; // done with this pair\n }\n\n vallen++;\n\n si++;\n if (si >= len)\n break namvalscanloop; // done with this pair\n c = args.charAt(si);\n }\n }\n\n } // end of namvalscanloop\n\n // append anything accumulated in output sb and go for another pair\n YutilProperties.scanOutPropertiesNamValAppend(args, nambeg, namlen, valbeg, vallen, sb);\n\n } // end of for ever\n\n return sb;\n }", "protected void fillMapFromProperties(Properties props)\n {\n Enumeration<?> en = props.propertyNames();\n\n while (en.hasMoreElements())\n {\n String propName = (String) en.nextElement();\n\n // ignore map, pattern_map; they are handled separately\n if (!propName.startsWith(\"map\") &&\n !propName.startsWith(\"pattern_map\"))\n {\n String propValue = props.getProperty(propName);\n String fieldDef[] = new String[4];\n fieldDef[0] = propName;\n fieldDef[3] = null;\n if (propValue.startsWith(\"\\\"\"))\n {\n // value is a constant if it starts with a quote\n fieldDef[1] = \"constant\";\n fieldDef[2] = propValue.trim().replaceAll(\"\\\"\", \"\");\n }\n else\n // not a constant\n {\n // split it into two pieces at first comma or space\n String values[] = propValue.split(\"[, ]+\", 2);\n if (values[0].startsWith(\"custom\") || values[0].equals(\"customDeleteRecordIfFieldEmpty\") ||\n values[0].startsWith(\"script\"))\n {\n fieldDef[1] = values[0];\n\n // parse sections of custom value assignment line in\n // _index.properties file\n String lastValues[];\n // get rid of empty parens\n if (values[1].indexOf(\"()\") != -1)\n values[1] = values[1].replace(\"()\", \"\");\n\n // index of first open paren after custom method name\n int parenIx = values[1].indexOf('(');\n\n // index of first unescaped comma after method name\n int commaIx = Utils.getIxUnescapedComma(values[1]);\n\n if (parenIx != -1 && commaIx != -1 && parenIx < commaIx) {\n // remainder should be split after close paren\n // followed by comma (optional spaces in between)\n lastValues = values[1].trim().split(\"\\\\) *,\", 2);\n\n // Reattach the closing parenthesis:\n if (lastValues.length == 2) lastValues[0] += \")\";\n }\n else\n // no parens - split comma preceded by optional spaces\n lastValues = values[1].trim().split(\" *,\", 2);\n\n fieldDef[2] = lastValues[0].trim();\n\n fieldDef[3] = lastValues.length > 1 ? lastValues[1].trim() : null;\n // is this a translation map?\n if (fieldDef[3] != null && fieldDef[3].contains(\"map\"))\n {\n try\n {\n fieldDef[3] = loadTranslationMap(props, fieldDef[3]);\n }\n catch (IllegalArgumentException e)\n {\n logger.error(\"Unable to find file containing specified translation map (\" + fieldDef[3] + \")\");\n throw new IllegalArgumentException(\"Error: Problems reading specified translation map (\" + fieldDef[3] + \")\");\n }\n }\n } // end custom\n else if (values[0].equals(\"xml\") ||\n values[0].equals(\"raw\") ||\n values[0].equals(\"date\") ||\n values[0].equals(\"json\") ||\n values[0].equals(\"json2\") ||\n values[0].equals(\"index_date\") ||\n values[0].equals(\"era\"))\n {\n fieldDef[1] = \"std\";\n fieldDef[2] = values[0];\n fieldDef[3] = values.length > 1 ? values[1].trim() : null;\n // NOTE: assuming no translation map here\n if (fieldDef[2].equals(\"era\") && fieldDef[3] != null)\n {\n try\n {\n fieldDef[3] = loadTranslationMap(props, fieldDef[3]);\n }\n catch (IllegalArgumentException e)\n {\n logger.error(\"Unable to find file containing specified translation map (\" + fieldDef[3] + \")\");\n throw new IllegalArgumentException(\"Error: Problems reading specified translation map (\" + fieldDef[3] + \")\");\n }\n }\n }\n else if (values[0].equalsIgnoreCase(\"FullRecordAsXML\") ||\n values[0].equalsIgnoreCase(\"FullRecordAsMARC\") ||\n values[0].equalsIgnoreCase(\"FullRecordAsJson\") ||\n values[0].equalsIgnoreCase(\"FullRecordAsJson2\") ||\n values[0].equalsIgnoreCase(\"FullRecordAsText\") ||\n values[0].equalsIgnoreCase(\"DateOfPublication\") ||\n values[0].equalsIgnoreCase(\"DateRecordIndexed\"))\n {\n fieldDef[1] = \"std\";\n fieldDef[2] = values[0];\n fieldDef[3] = values.length > 1 ? values[1].trim() : null;\n // NOTE: assuming no translation map here\n }\n else if (values.length == 1)\n {\n fieldDef[1] = \"all\";\n fieldDef[2] = values[0];\n fieldDef[3] = null;\n }\n else\n // other cases of field definitions\n {\n String values2[] = values[1].trim().split(\"[ ]*,[ ]*\", 2);\n fieldDef[1] = \"all\";\n if (values2[0].equals(\"first\") ||\n (values2.length > 1 && values2[1].equals(\"first\")))\n fieldDef[1] = \"first\";\n\n if (values2[0].startsWith(\"join\"))\n fieldDef[1] = values2[0];\n\n if ((values2.length > 1 && values2[1].startsWith(\"join\")))\n fieldDef[1] = values2[1];\n\n if (values2[0].equalsIgnoreCase(\"DeleteRecordIfFieldEmpty\") ||\n (values2.length > 1 && values2[1].equalsIgnoreCase(\"DeleteRecordIfFieldEmpty\")))\n fieldDef[1] = \"DeleteRecordIfFieldEmpty\";\n\n fieldDef[2] = values[0];\n fieldDef[3] = null;\n\n // might we have a translation map?\n if (!values2[0].equals(\"all\") &&\n !values2[0].equals(\"first\") &&\n !values2[0].startsWith(\"join\") &&\n !values2[0].equalsIgnoreCase(\"DeleteRecordIfFieldEmpty\"))\n {\n fieldDef[3] = values2[0].trim();\n if (fieldDef[3] != null)\n {\n try\n {\n fieldDef[3] = loadTranslationMap(props, fieldDef[3]);\n }\n catch (IllegalArgumentException e)\n {\n logger.error(\"Unable to find file containing specified translation map (\" + fieldDef[3] + \")\");\n throw new IllegalArgumentException(\"Error: Problems reading specified translation map (\" + fieldDef[3] + \")\");\n }\n }\n }\n } // other cases of field definitions\n\n } // not a constant\n\n fieldMap.put(propName, fieldDef);\n\n } // if not map or pattern_map\n\n } // while enumerating through property names\n\n // verify that fieldMap is valid\n verifyCustomMethodsAndTransMaps();\n }", "public PensionParametersDAO(Configuration properties) {\n this.properties = properties;\n\n }", "public void populate(java.util.Map properties) throws LexComponentException;", "public void setProperties(Properties setList);", "private static Property makeNewPropertyFromUserInput() {\n\t\tint regNum = requestRegNum();\r\n\t\t// check if a registrant with the regNum is available\r\n\t\tif (getRegControl().findRegistrant(regNum) == null) {\r\n\t\t\tSystem.out.println(\"Registrant number not found\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tString coordinateString = getResponseTo(\"Enter top and left coordinates of property (as X, Y): \");\r\n\t\t// split the xLeft and yTop from the string: \"xLeft, yTop\"\r\n\t\tString[] coordinates = coordinateString.split(\", \");\r\n\t\tString dimensionString = getResponseTo(\"Enter length and width of property (as length, width): \");\r\n\t\t// split the xLength and yWidth from the string: \"xLength, yWidth\"\r\n\t\tString[] dimensions = dimensionString.split(\", \");\r\n\t\t// convert all string in the lists to int and create a new Property object with them\r\n\t\tint xLeft = Integer.parseInt(coordinates[0]);\r\n\t\tint yTop = Integer.parseInt(coordinates[1]);\r\n\t\tint xLength = Integer.parseInt(dimensions[0]);\r\n\t\tint yWidth = Integer.parseInt(dimensions[1]);\r\n\t\t// Limit for registrant for property size minimum 20m x 10m and maximum size 1000m x 1000m\r\n\t\tif (xLength < 20 || yWidth < 10 || (xLength + xLeft) > 1000 || (yTop + yWidth) > 1000) {\r\n\t\t\tSystem.out.println(\"Invalid dimensions/coordinates inputs\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tProperty new_prop = new Property(xLength, yWidth, Integer.parseInt(coordinates[0]),\r\n\t\t\t\tInteger.parseInt(coordinates[1]), regNum);\r\n\t\treturn new_prop;\r\n\t}", "public void setProperties(Properties properties);", "public void setRequiredParameters(String... requiredPropertiesParameter) {\n for (String item : requiredPropertiesParameter) {\n requiredParameters.add(item);\n }\n }", "ProductPropertyExecution addProductPropertyList(List<PropertyValue> propertyValueList,PPManage ppManage);", "private static void setupProperties(ShaderProgram shader, Map<String, Object> properties, SpriteComponent spriteComponent){\n /*for (Map.Entry<String, Object> shaderProperty : shaderComponent.shaderProperties.entrySet()) {\n shader.setUniformf(shaderProperty.getKey(), shaderProperty.getValue());\n }*/\n shader.setUniformf(\"u_viewportInverse\", new Vector2(1f / spriteComponent.sprite.getTexture().getWidth(),\n 1f / spriteComponent.sprite.getTexture().getHeight()));\n shader.setUniformf(\"u_offset\", 1f);\n shader.setUniformf(\"u_step\", Math.min(1f, spriteComponent.sprite.getTexture().getWidth() / 70f));\n if(properties.containsKey(ShaderComponent.COLOR)) {\n shader.setUniformf(\"u_color\", ((Color)properties.get(ShaderComponent.COLOR)));\n //shader.setUniformf(\"u_color\", new Vector3(1f, 0, 0));\n } else {\n Logger.warning(\"Shader's color is not defined!\");\n shader.setUniformf(\"u_color\", new Vector3(1f, 1f, 1f));\n }\n }", "public static Value makeStringsAndSymbols(Collection<PKey> properties) {\n Value rSymb = new Value(join(properties.stream().map(PKey::toValue).collect(Collectors.toSet())));\n Value rStr = makeStrings(properties.stream().filter(x -> x instanceof PKey.StringPKey).map(x -> ((PKey.StringPKey) x).getStr()).collect(Collectors.toList()));\n return rSymb.join(rStr);\n }", "PropertyArray(String source) throws PropertyException {\n this(new PropertyTokener(source));\n }", "public\n void setProperties(YutilProperties argprops)\n {\n if (argprops == null)\n return;\n\n // Copy all key/val pairs\n for (Enumeration ep = argprops.propertyNames(); ep.hasMoreElements(); )\n {\n String key = (String)ep.nextElement();\n String val = key + \"=\" + argprops.getProperty(key);\n setProperties(val, false);\n }\n }", "static List<MCProperty> getProperty(List<Property> properties) {\n\n\t\tif (properties == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tList<MCProperty> list = new ArrayList<MCProperty>(properties.size());\n\t\t\tfor (Property property : properties) {\n\t\t\t\tMCProperty p = new MCProperty();\n\t\t\t\tp.setName(property.getName());\n\t\t\t\tp.setValue(property.getValue());\n\t\t\t\tlist.add(p);\n\t\t\t}\n\t\t\treturn list;\n\t\t}\n\t}", "public\n YutilProperties(String argv[])\n {\n super(new Properties());\n setPropertiesDefaults(argv);\n }", "PropertiesTask setProperties( Properties properties );", "private static String constructValues(productCategory product,ArrayList<String> attributes,String partNumber)\n {\n //Since we will already have INSERT INTO *Category* we can start with the '('\n\n /* STMT: INSERT INTO *Category* */\n StringBuilder val = new StringBuilder(\" (\");\n\n /* STMT: INSERT INTO *Category* ( */\n\n val.append(product.categoryName.getValue());\n if(attributes.size() > 0)\n {\n val.append(\"_Part_Number,\");\n }\n else\n {\n val.append(\"_Part_Number\");\n }\n\n //the attributes array holds the names of\n //each column in the specified category table\n //here we add them all to the string in the\n //proper format\n for(int i=0; i<attributes.size(); i++)\n {\n attributes.set(i,attributes.get(i).replace(\" \",\"_\"));\n val.append(attributes.get(i));\n //If we are at the last attribute we\n //don't need to add the extra comma\n if(i != attributes.size()-1)\n {\n val.append(\",\");\n }\n\n }\n\n /* STMT: INSERT INTO *Category* (*All columns in table* */\n\n //Close the columns and start values\n val.append(\") VALUES ('\");\n\n /* STMT: INSERT INTO *Category* (*All columns in table*) VALUES (' */\n\n //Since attributes does not contain the part\n //number we have to add that separately\n val.append(partNumber);\n\n /* STMT: INSERT INTO *Category* (*All columns in table*) VALUES ('*PartNumber* */\n\n //It is possible that a product category can\n //have no attributes except the part number.\n //if this is the case make sure we don't add\n //the extra comma in the statement\n if(!attributes.isEmpty())\n {\n val.append(\"',\");\n }\n else\n {\n val.append(\"'\");\n }\n\n /* STMT: INSERT INTO *Category* (*All columns in table*) VALUES ('*PartNumber*', */\n\n\n //Now we can get the actual values for each column\n //by pulling the values from the productCategory\n //'product' object's 'attributes' array\n for(int i=0; i<product.attributes.size(); i++)\n {\n val.append(\"'\");\n val.append(product.attributes.get(i));\n //If we are at the last value make sure\n //we don't add the extra comma\n if(i != product.attributes.size()-1)\n {\n val.append(\"',\");\n }\n else\n {\n val.append(\"'\");\n }\n }\n\n /* STMT: INSERT INTO *Category* (*All columns in table*) VALUES ('*PartNumber*,'*All Values*' */\n\n //finally we close the statement\n val.append(\");\");\n\n /* STMT: INSERT INTO *Category* (*All columns in table*) VALUES ('*PartNumber*,'*All Values*'); */\n\n return val.toString();\n }", "private void parseProperties()\n {\n List children = rootElement.getChildren(\"property\");\n\n for (Object aChildren : children)\n {\n Element child = (Element) aChildren;\n Property property = new Property(child, properties, this);\n }\n }", "public void init(Properties properties) throws IOException;", "public void setProperties(Map<String, List<String>> properties) {\n\t\tthis.properties = properties;\n\t}", "public Configuracion(Parametros params) {\n this.params = params;\n\n if (params.properties != null) {\n try {\n properties.load(new FileInputStream(params.properties));\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n }", "public PropertyRefs(Properties p) {\n props = p;\n }", "public Properties(){\n\n }", "public void setProperties(org.LexGrid.commonTypes.Properties properties) {\n this.properties = properties;\n }", "public PropertyParser()\n\t{\n\t\tthis(System.getProperties());\n\t}", "public void construct(String s, String p, String o) {\n\tvariables.append(\" \").append(s != null ? s : \"?s\").append(\" \")\n\t\t.append(p != null ? p : \"?p\").append(\" \")\n\t\t.append(o != null ? o : \"?o\").append(\" . \");\n }", "<C, P> PropertyCallExp<C, P> createPropertyCallExp();", "PropertyArray(PropertyTokener x) throws PropertyException {\n this();\n if (x.nextClean() != '[') {\n throw x.syntaxError(\"A JSONArray text must start with '['\");\n }\n\n char nextChar = x.nextClean();\n if (nextChar == 0) {\n // array is unclosed. No ']' found, instead EOF\n throw x.syntaxError(\"Expected a ',' or ']'\");\n }\n if (nextChar != ']') {\n x.back();\n for (; ; ) {\n if (x.nextClean() == ',') {\n x.back();\n this.myArrayList.add(PropertyObject.NULL);\n } else {\n x.back();\n this.myArrayList.add(x.nextValue());\n }\n switch (x.nextClean()) {\n case 0:\n // array is unclosed. No ']' found, instead EOF\n throw x.syntaxError(\"Expected a ',' or ']'\");\n case ',':\n nextChar = x.nextClean();\n if (nextChar == 0) {\n // array is unclosed. No ']' found, instead EOF\n throw x.syntaxError(\"Expected a ',' or ']'\");\n }\n if (nextChar == ']') {\n return;\n }\n x.back();\n break;\n case ']':\n return;\n default:\n throw x.syntaxError(\"Expected a ',' or ']'\");\n }\n }\n }\n }", "public static void copyProperties(List<Property> properties, StringMap result) {\n/* 192 */ if (properties != null)\n/* 193 */ for (int i = 0; i < properties.size(); i++) {\n/* 194 */ Property prop = properties.get(i);\n/* 195 */ result.putValue(prop.getName(), prop.getValue());\n/* */ } \n/* */ }", "public void append4Create(final StringBuilder _cmd)\n throws MatrixException\n {\n for (final PropertyDef property : this.properties) {\n _cmd.append(\" property \\\"\").append(AbstractTest.convertMql(property.getName())).append(\"\\\"\");\n if (property.getTo() != null) {\n property.getTo().create();\n _cmd.append(\" to \").append(property.getTo().getCI().getMxType()).append(\" \\\"\")\n .append(AbstractTest.convertMql(property.getTo().getName())).append(\"\\\"\");\n if (property.getTo().getCI() == AbstractTest.CI.UI_TABLE) {\n _cmd.append(\" system\");\n }\n }\n if (property.getValue() != null) {\n _cmd.append(\" value \\\"\").append(AbstractTest.convertMql(property.getValue())).append(\"\\\"\");\n }\n }\n }", "public PortletRequestParameterPropertyValues(PortletRequest request, String prefix, String prefixSeparator) {\n\t\tsuper(PortletUtils.getParametersStartingWith(\n\t\t\t\trequest, (prefix != null ? prefix + prefixSeparator : null)));\n\t}", "protected void fromProperties(Properties properties) {\r\n value = reader.read(properties, key, value);\r\n }", "public void setProperties(String prefix, Properties setList);", "public void setProperties(Properties properties)\n {\n this.properties = properties;\n }", "public void setProperties(Map properties);", "void addRecord(String[] propertyValues) throws IOException;", "private void processProperties(Map<String, String> properties,\n Configuration auConfig, CIProperties headers) {\n log.debug2(\"properties = {}\", properties);\n log.debug2(\"auConfig = {}\", auConfig);\n log.debug2(\"headers = {}\", headers);\n\n if (properties != null && properties.size() > 0) {\n for (String key : properties.keySet()) {\n\tlog.trace(\"key = {}\", key);\n\n\tString value = properties.get(key);\n\tlog.trace(\"value = {}\", value);\n\n\tif (auConfig != null && auConfigKeys.contains(key)) {\n\t auConfig.put(key, value);\n\t log.trace(\"property '{}={}' stored in auConfig\", key, value);\n\t} else {\n\t headers.put(key, value);\n\t log.trace(\"property '{}={}' stored in headers\", key, value);\n\t}\n }\n }\n }", "public void setProperties(Properties properties) {\n this.properties=properties;\n }", "private void parseProperties(Properties props) {\r\n\r\n\t\tfor (Object key : props.keySet()) {\r\n\t\t\tString keyStr = key.toString();\r\n\t\t\tString value = props.getProperty(keyStr);\r\n\t\t\tif (value != null) {\r\n\t\t\t\t// try to get real type of property value\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif (value.contains(\".\")) {\r\n\t\t\t\t\t\tthis.settings.put(keyStr, Double.parseDouble(value));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.settings.put(keyStr, Integer.parseInt(value));\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (NumberFormatException e) {\r\n\t\t\t\t\tthis.settings.put(keyStr, value);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "private String buildParams(){\n HashMap<String,String> items = new HashMap<>();\n if(paramValid(param1name,param1value))\n items.put(param1name,param1value);\n if(paramValid(param2name,param2value))\n items.put(param2name,param2value);\n if(paramValid(param3name,param3value))\n items.put(param3name,param3value);\n return JsonOutput.toJson(items);\n }", "public\n YutilProperties(YutilProperties argprops)\n {\n super(new Properties());\n setPropertiesDefaults(argprops);\n }", "PropertyCallExp createPropertyCallExp();", "public CompositeProperty(List<Node> segments) {\n this(segments, PropertyMergeMode.NONE);\n }", "void addProperties(Map<String, Object> propertiesListInput) {\n for (Map.Entry<String, Object> e : propertiesListInput.entrySet()) {\n if (properties.getProperty(e.getKey()) == null) {\n properties.addProperty(e.getKey(), e.getValue());\n }\n }\n }", "void configure(Properties properties);", "private FilterCriteria buildCriteria(String preProcessFields,\n\t\t\tMap<String, String> builtInProperties,\n\t\t\tMap<String, String> dynaProperties) {\n\t\tFilterCriteria criteria = null;\n\n\t\t// EntityProperty to Hibernate Property mappings\n\t\tMap<String, String> hibMap = new HashMap<String, String>();\n\t\thibMap.put(LogMessage.EP_DEVICE_IDENTIFICATION,\n\t\t\t\tLogMessage.HP_DEVICE_IDENTIFICATION);\n\t\thibMap.put(LogMessage.EP_APP_SEVERITY_NAME,\n\t\t\t\tLogMessage.HP_APP_SEVERITY_NAME);\n\t\thibMap.put(LogMessage.EP_TEXT_MESSAGE, LogMessage.HP_TEXT_MESSAGE);\n\t\thibMap.put(LogMessage.EP_OPERATION_STATUS_NAME,\n\t\t\t\tLogMessage.HP_OPERATION_STATUS_NAME);\n\t\thibMap.put(LogMessage.EP_REPORT_DATE, LogMessage.HP_REPORT_DATE);\n\t\thibMap.put(LogMessage.EP_MONITOR_STATUS_NAME,\n\t\t\t\tLogMessage.HP_MONITOR_STATUS_NAME);\n\n\t\tStringTokenizer stkn = new StringTokenizer(preProcessFields, \",\");\n\t\tint criteriaCount = stkn.countTokens();\n\t\tint matchCount = 0;\n\t\tint dynamicPropCount = 0;\n\t\twhile (stkn.hasMoreTokens()) {\n\t\t\tString field = stkn.nextToken();\n\t\t\tif (builtInProperties != null\n\t\t\t\t\t&& builtInProperties.containsKey(field)) {\n\t\t\t\tmatchCount++;\n\t\t\t\tif (criteria == null)\n\t\t\t\t\tcriteria = FilterCriteria.eq(hibMap.get(field),\n\t\t\t\t\t\t\tbuiltInProperties.get(field));\n\t\t\t\telse\n\t\t\t\t\tcriteria.and(FilterCriteria.eq(hibMap.get(field),\n\t\t\t\t\t\t\tbuiltInProperties.get(field)));\n\t\t\t} // end if\n\t\t\tif (dynaProperties != null && dynaProperties.containsKey(field)) {\n\t\t\t\tmatchCount++;\n\t\t\t\t// An exception for monitorstatus name as this field comes as\n\t\t\t\t// dynamic properties.\n\t\t\t\tif (field.equals(LogMessage.EP_MONITOR_STATUS_NAME)) {\n\t\t\t\t\tif (criteria == null)\n\t\t\t\t\t\tcriteria = FilterCriteria.eq(field, builtInProperties\n\t\t\t\t\t\t\t\t.get(field));\n\t\t\t\t\telse\n\t\t\t\t\t\tcriteria.and(FilterCriteria.eq(field, builtInProperties\n\t\t\t\t\t\t\t\t.get(field)));\n\t\t\t\t} // end if\n\t\t\t\telse {\n\t\t\t\t\tif (criteria == null) {\n\t\t\t\t\t\tcriteria = FilterCriteria.eq(\"propertyValues.name\"+ \"_\" + dynamicPropCount,\n\t\t\t\t\t\t\t\tfield);\n\t\t\t\t\t\tcriteria.and(FilterCriteria.eq(\n\t\t\t\t\t\t\t\t\"propertyValues.valueString\"+ \"_\" + dynamicPropCount, dynaProperties\n\t\t\t\t\t\t\t\t\t\t.get(field)));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcriteria.and(FilterCriteria.eq(\n\t\t\t\t\t\t\t\t\"propertyValues.name\"+ \"_\" + dynamicPropCount, field));\n\t\t\t\t\t\tcriteria.and(FilterCriteria.eq(\n\t\t\t\t\t\t\t\t\"propertyValues.valueString\"+ \"_\" + dynamicPropCount, dynaProperties\n\t\t\t\t\t\t\t\t\t\t.get(field)));\n\t\t\t\t\t} // end if\n\t\t\t\t} // end if\n\t\t\t\tdynamicPropCount++;\n\t\t\t} // end if\n\t\t} // end while\n\t\tif (matchCount == criteriaCount) {\n\t\t\t// if all the fields matches then append the open criteria\n\t\t\tcriteria.and(FilterCriteria.eq(LogMessage.HP_OPERATION_STATUS_NAME,\n\t\t\t\t\t\"OPEN\"));\n\t\t\treturn criteria;\n\t\t} // end if\n\t\treturn null;\n\t}", "private ColourRuleSet parse(List<String> properties)\n\t{\n\t\t@SuppressWarnings(\"unused\")\n\t\tString ruleSetName = \"\";\n\t\t\n\t\tColourRuleSet ruleSet = new ColourRuleSet(properties.size());\n\t\t\n\t\tif(!expect(\"colourset\"))\n\t\t\treturn null;\n\t\t\n\t\tSymbol symbol = scanner.getSymbol();\n\t\t\n\t\tif(symbol.type == Symbol.Type.STRING)\n\t\t{\n\t\t\truleSetName = symbol.text;\n\t\t}\n\t\telse\n\t\t{\n\t\t\terror(\"Expected a name for the ruleset\");\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tif(!expect(\"{\"))\n\t\t\treturn null;\n\t\t\n\t\twhile(scanner.isValid()) \n\t\t{\n\t\t\tsymbol = scanner.peakSymbol();\n\t\t\tif(!symbol.text.equals(\"property\"))\n\t\t\t\tbreak;\n\t\t\t\n\t\t\treadColourRule(ruleSet, properties);\n\t\t}\n\n\t\texpect(\"}\");\n\t\t\n\t\treturn ruleSet;\n\t}", "public Processor(String topics, StreamExecutionEnvironment env, Properties properties) {\n this.topicList = Arrays.asList(topics.split(\",\"));\n this.properties = properties;\n this.streamExecutionEnvironment = env;\n }", "public Construct() {\n\tprefixes = new StringBuilder();\n\tvariables = new StringBuilder();\n\twheres = new StringBuilder();\n }", "private void extractParameter(ArrayList<Parameter> parameters, String[] parameterArr) {\n\t\tfor (int i = 0; i < parameterArr.length; i++) {\n\t\t\tif (parameterArr[i].charAt(0) == INVERTED_SLASH) {\n\n\t\t\t\t// format.\n\t\t\t\tString para = parameterArr[i].substring(1, parameterArr[i].length());\n\t\t\t\t// If the next parameter charAt(0) is not \\\\, then it going to\n\t\t\t\t// concat together\n\t\t\t\t// with this paragraph\n\n\t\t\t\tString paraContent = \"\";\n\n\t\t\t\tfor (int c = i + 1; c < parameterArr.length; c++) {\n\t\t\t\t\tif (parameterArr[c].charAt(0) != INVERTED_SLASH) {\n\t\t\t\t\t\tparaContent += parameterArr[c].substring(0, parameterArr[c].length()) + \" \";\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tint paraType = mapParameterType(para);\n\t\t\t\tif (paraType != ERROR_COMMAND_TYPE) {\n\t\t\t\t\tparameters.add(new Parameter(paraType, paraContent.trim()));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public JournalPropertyValueFactory(@NamedArg(\"property\") String property) {\n super(property);\n }", "private String AddToProperty(String property, String propertyAdd)\n {\n \tString ret = \"\";\n \tif(property == null)\n \t\tret = propertyAdd;\n \telse\n \t\tret = property + \",\" + propertyAdd;\n \treturn ret;\n }", "@Test\n public void testGetPropertyAsList() {\n System.out.println(\"getPropertyAsList\");\n Properties props = new Properties();\n String key = \"testProp\";\n props.setProperty(key, \"alpha, beta, gamma\");\n List<String> expResult = Arrays.asList(\"alpha\", \"beta\", \"gamma\");\n List<String> result = EngineConfiguration.getPropertyAsList(props, key);\n assertEquals(expResult, result);\n }", "static List<Property> getMCProperty(List<MCProperty> properties) {\n\n\t\tif (properties == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tList<Property> list = new ArrayList<Property>(properties.size());\n\t\t\tfor (MCProperty property : properties) {\n\t\t\t\tlist.add(new Property(property.getName(), property.getValue()));\n\t\t\t}\n\t\t\treturn list;\n\t\t}\n\t}", "@Test\n public void testCreateFromProperties_Properties() throws Exception {\n System.out.println(\"createFromProperties\");\n Properties props = new Properties();\n props.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(propertiesName));\n EngineConfiguration result = EngineConfiguration.createFromProperties(props);\n assertProperties(result);\n }", "public CompositeProperty(List<Node> segments, PropertyMergeMode mergeMode) {\n this.segments = segments;\n this.mergeMode = mergeMode;\n }", "protected void initParameters(List<ParameterWrapper> params) {\n\t\tparameters = new SchemaParameterCollection();\n\t\tif (params != null) {\n\t\t\tIParameter par;\n\t\t\tfor (ParameterWrapper parwrap : params) {\n\t\t\t\tpar = ParameterFactory.createParameter(parwrap);\n\t\t\t\tparameters.addParameter(par);\n\t\t\t}\n\t\t}\n\t}", "public static String m155089a(Properties properties, String str) {\n StringBuffer stringBuffer = new StringBuffer();\n Enumeration<?> propertyNames = properties.propertyNames();\n stringBuffer.append(f114951b + \"==============\" + \" \" + str + \" \" + \"==============\" + f114951b);\n while (propertyNames.hasMoreElements()) {\n String str2 = (String) propertyNames.nextElement();\n stringBuffer.append(m155088a(str2, 28, ' ') + \": \" + properties.get(str2) + f114951b);\n }\n stringBuffer.append(\"==========================================\" + f114951b);\n return stringBuffer.toString();\n }", "public PropertiesPlus(Properties properties)\n\t{\n\t\tsuper(properties);\n\t\tdateFormatGMT.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\t\tdateFormatGMT_MS.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\t}", "protected abstract Property createProperty(String key, Object value);", "private AuditYamlConfigurationLoader(Properties properties)\n {\n this.properties = new Properties(properties);\n }", "public FormPropertiesImpl(final HeterogMap<String> properties) {\n\t\tif (properties == null) throw new IllegalArgumentException(\"formProperties cannot be null, only empty\");\n\t\tthis.properties = HeterogCollections.unmodifiableMap(properties);\n\t}", "public String constructMessage(String separator, String... keys) {\r\n\t\tString result = \"\";\r\n\t\tfor (String key:keys) {\r\n\t\t\tresult += this.getString(key) + separator;\r\n\t\t}\r\n\t\treturn result.substring(0, result.length()-separator.length()); // ignore last separator\r\n\t}", "public void setProperty(Properties properties) {\r\n this.properties = properties;\r\n }", "public synchronized String makeProperties (Properties properties) throws Exception {\r\n Marshaller marshaller = jaxbContext.createMarshaller(); \r\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n dbf.setNamespaceAware(true);\r\n DocumentBuilder documentBuilder = dbf.newDocumentBuilder();\r\n Document doc = documentBuilder.newDocument();\r\n marshaller.marshal(properties, doc);\r\n DOMSource domSource = new DOMSource(doc);\r\n StringWriter writer = new StringWriter();\r\n StreamResult result = new StreamResult(writer);\r\n TransformerFactory tf = TransformerFactory.newInstance();\r\n Transformer transformer = tf.newTransformer();\r\n transformer.transform(domSource, result);\r\n String xmlString = writer.toString();\r\n // Now remove the processing instruction. This approach seems like a total hack.\r\n xmlString = xmlString.substring(xmlString.indexOf('>') + 1);\r\n return xmlString;\r\n }", "public void setProperties(java.util.Map<String, Double> properties) {\n this.properties = new HashMap<String, Double>(properties);\n }", "public PortletRequestParameterPropertyValues(PortletRequest request, String prefix) {\n\t\tthis(request, prefix, DEFAULT_PREFIX_SEPARATOR);\n\t}", "private Map<String, Object> parseParameters(String parameters) {\n Map<String, Object> parameterMap = new HashMap<>();\n\n String[] details = parameters.split(\",\");\n for (String detail : details) {\n String key = \"\";\n String value = \"\";\n try {\n String[] d = detail.split(\"=\");\n key = d[0].trim();\n value = d[1].trim();\n }\n catch (Exception ignored) {\n }\n\n if (StringUtils.isAnyBlank(key, value)) {\n continue;\n }\n\n switch (key.toLowerCase(Locale.ROOT)) {\n case \"escape\":\n parameterMap.put(key, Boolean.parseBoolean(value));\n break;\n\n default:\n break;\n }\n }\n\n return parameterMap;\n }", "public void setProperties(Map<String, String> properties) {\n this.properties = properties;\n }", "public static SolrIndexer indexerFromProperties(Properties indexingProperties, String searchPath[])\n {\n SolrIndexer indexer = new SolrIndexer();\n indexer.propertyFilePaths = searchPath;\n indexer.fillMapFromProperties(indexingProperties);\n\n return indexer;\n }", "public StatementBuilder asc(String... properties) {\n for (String p : properties) {\n order(Order.asc(p));\n }\n return this;\n }", "public String printProperties(final String title, final List<JPPFProperty<?>> properties) {\n sb = new StringBuilder();\n prologue(title);\n printTitle(title);\n // multimap with keys in tags' ascending order and values in property names' ascending order\n final CollectionMap<String, JPPFProperty<?>> taggedMap = new SortedSetSortedMap<>(new TagComparator<String>(), new PropertyNameComparator());\n for (final JPPFProperty<?> property: properties) {\n final Set<String> tags = property.getTags();\n for (final String tag: tags) {\n taggedMap.putValue(tag, property);\n }\n }\n System.out.printf(\"%d properties were found, distributed in %d tags/categories\\n\", properties.size(), taggedMap.keySet().size());\n for (final String tag: taggedMap.keySet()) {\n final Collection<JPPFProperty<?>> values = taggedMap.getValues(tag);\n final int size = values.size();\n System.out.printf(\"generating documentation for %2d propert%-3s in '%s'\\n\", size, (size > 1 ? \"ies\" : \"y\"), convertTag(tag));\n printTable(tag, values);\n }\n epilogue();\n return sb.toString();\n }", "public Property(String configFileName) {\r\n\r\n\t\tpositive = new String[] { \"fun\", \"happy\", \"positive\" };\r\n\t\tnegative = new String[] { \"sad\", \"bad\", \"angry\" };\r\n\t\tstop = new String[] { \"a\", \"an\", \"the\" };\r\n\t\tscoringmethod = 0;\r\n\t\tmindistance = 0.5;\r\n\r\n\t\tif (configFileName == null) {\r\n\t\t\tthrow new NullPointerException();\r\n\t\t}\r\n\t\tScanner in = null;\r\n\t\tScanner scan = null;\r\n\t\ttry {\r\n\t\t\tFile conf = new File(configFileName);\r\n\t\t\tin = new Scanner(conf);\r\n\t\t\twhile (in.hasNextLine()) {\r\n\t\t\t\tString line = in.nextLine().replace('=', ',');\r\n\t\t\t\tscan = new Scanner(line);\r\n\t\t\t\tscan.useDelimiter(\",\");\r\n\t\t\t\tString firstWord = scan.next();\r\n\t\t\t\tif (firstWord.equals(\"positive\")) {\r\n\t\t\t\t\tpositive = termsArray(scan);\r\n\t\t\t\t} else if (firstWord.equals(\"negative\")) {\r\n\t\t\t\t\tnegative = termsArray(scan);\r\n\t\t\t\t} else if (firstWord.equals(\"stop\")) {\r\n\t\t\t\t\tstop = termsArray(scan);\r\n\t\t\t\t} else if (firstWord.equals(\"scoringmethod\")) {\r\n\t\t\t\t\tString next = scan.next();\r\n\t\t\t\t\tscoringmethod = Integer.parseInt(next);\r\n\t\t\t\t} else if (firstWord.equals(\"mindistance\")) {\r\n\t\t\t\t\tString next = scan.next();\r\n\t\t\t\t\tmindistance = Double.parseDouble(next);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (NumberFormatException ex) {\r\n\t\t\tSystem.out.println(ex.getMessage());\r\n\t\t\tpositive = new String[] { \"fun\", \"happy\", \"positive\" };\r\n\t\t\tnegative = new String[] { \"sad\", \"bad\", \"angry\" };\r\n\t\t\tstop = new String[] { \"a\", \"an\", \"the\" };\r\n\t\t\tscoringmethod = 0;\r\n\t\t\tmindistance = 0.5;\r\n\t\t} catch (IOException ex) {\r\n\t\t\tSystem.out.println(ex.getMessage());\r\n\t\t\tpositive = new String[] { \"fun\", \"happy\", \"positive\" };\r\n\t\t\tnegative = new String[] { \"sad\", \"bad\", \"angry\" };\r\n\t\t\tstop = new String[] { \"a\", \"an\", \"the\" };\r\n\t\t\tscoringmethod = 0;\r\n\t\t\tmindistance = 0.5;\r\n\t\t} finally{\r\n\t\t\tif(scan != null)\r\n\t\t\t\tscan.close();\r\n\t\t}\r\n\t}", "public void addProperties( Properties props )\n {\n if ( props != null )\n {\n for ( Enumeration<?> e = props.propertyNames(); e.hasMoreElements(); )\n {\n // This LDAP attr is stored as a name-value pair separated by a ':'.\n String key = ( String ) e.nextElement();\n String val = props.getProperty( key );\n addProperty( key, val );\n }\n }\n }", "private final Properties parseProperties(List<?> list) {\r\n\t\tProperties properties = new Properties();\r\n\t\tfor (Object o : list) {\r\n\t\t\tElement element = (Element) o;\r\n\t\t\tproperties.put(element.attributeValue(\"name\"), element.attributeValue(\"value\"));\r\n\t\t}\r\n\t\treturn properties;\r\n\t}", "@Override\r\n\tpublic void setProperties(Properties properties) \r\n\t{\n\t}", "public Property(int xLength, int yWidth, int xLeft, int yTop) {\n this(xLength, yWidth, xLeft, yTop, DEFAULT_REGNUM);\n }", "public void setProperties(java.util.Map<String,String> properties) {\n this.properties = properties;\n }", "@Override\r\n\tpublic void setProperties(Properties arg0) {\n\r\n\t}", "public JavaPropertyWriter(final Properties props) {\n Assert.exists(props, Properties.class);\n\n m_props = props;\n }", "public OrderComponent(String arrs) {\n\t\tcolumns = new Vector<String>();\n\t\tvalues = new Vector<String>();\n\t\t\n\t\tString[] arr = arrs.split(\",\");\n\t\tfor(String elem : arr) {\n\t\t\tString[] temp = elem.split(\"=\");\n\t\t\tif(temp.length > 1) {\n\t\t\t\tcolumns.add(temp[0]);\n\t\t\t\tvalues.add(temp[1]);\n\t\t\t}\n\t\t}\n\t}", "public void setProperties(Map<String, Object> properties) {\n this.properties = properties;\n }", "public void setProperties(Properties properties) {\n\t\tthis.properties = properties;\n\t}", "public void setParamValues(Object[] values);", "public void buildAuto(Properties properties){\n buildAuto.buildAuto(properties);\n }" ]
[ "0.5963504", "0.5827758", "0.57913035", "0.5712038", "0.5685382", "0.547813", "0.5477584", "0.5354969", "0.53535336", "0.5352134", "0.53375685", "0.5326934", "0.5314288", "0.5313584", "0.530381", "0.52374727", "0.5219677", "0.52072394", "0.51972044", "0.5191384", "0.5169694", "0.5151202", "0.5117665", "0.5049681", "0.5043517", "0.5032505", "0.5011212", "0.4993394", "0.49907935", "0.4987694", "0.49650657", "0.49421704", "0.49279377", "0.49035764", "0.48991236", "0.48907194", "0.4876488", "0.48755655", "0.48724964", "0.48550358", "0.48526287", "0.48484233", "0.48476866", "0.48429596", "0.4835405", "0.4832428", "0.4818441", "0.48168153", "0.48133746", "0.47996667", "0.47970247", "0.47891578", "0.4780245", "0.4780068", "0.47730732", "0.47517014", "0.47490463", "0.47467875", "0.47337788", "0.47117049", "0.4705671", "0.4693661", "0.46847385", "0.46605378", "0.46539363", "0.46505198", "0.46419314", "0.46197414", "0.46185988", "0.46108815", "0.45993945", "0.45960632", "0.45959735", "0.4589459", "0.45893508", "0.45887962", "0.45872334", "0.45828614", "0.45808452", "0.45775846", "0.45728806", "0.45712677", "0.45627058", "0.4560185", "0.45490602", "0.45455167", "0.4544909", "0.45421118", "0.4539138", "0.45384297", "0.45255262", "0.4522083", "0.45192367", "0.45151454", "0.4509717", "0.45035544", "0.450055", "0.44951412", "0.44922712", "0.44916493" ]
0.6169862
0
Construct parameters stored in the given store.
public Parameters(ParametersStore store) { requireNonNull(store, "Parameters store not specified"); this.store = store; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected StoreParams() {\n this.setBatchSize(BATCH_SIZE_DEFAULT);\n this.setNumSyncBatches(NUM_SYNC_BATCHES_DEFAULT);\n this.setSegmentFileSizeMB(SEGMENT_FILE_SIZE_MB_DEFAULT);\n this.setSegmentCompactFactor(SEGMENT_COMPACT_FACTOR_DEFAULT);\n this.setHashLoadFactor(HASH_LOAD_FACTOR_DEFAULT);\n this.setIndexesCached(INDEXES_CACHED_DEFAULT);\n }", "public Parameters(Properties properties) {\n\t\trequireNonNull(\n\t\t\t\tproperties,\n\t\t\t\t\"A properties to store parameters in not specified\");\n\t\tthis.store = new PropertiesParameters(properties);\n\t}", "public static ParamObject getParamsForCreateNewStoreAPI(String payLoad) {\n\t\tParamObject obj = new ParamObject();\n\t\ttry {\n\t\t\tTimeUnit.MILLISECONDS.sleep(100);\n\t\t} catch (InterruptedException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t\tString url = URL + \"/stores/\";\n\t\tobj.setUrl(url);\n\t\tobj.addHeader(\"X-Api-Version\", xAPIVersion);\n\t\tobj.addHeader(\"Authorization\", authorization);\n\t\tobj.setPayload(payLoad);\n\t\tobj.setMethodType(\"POST\");\n\t\treturn obj;\n\t}", "public static ParamObject getParamsForStoreAPI(String store_id) {\n\t\tParamObject obj = new ParamObject();\n\t\ttry {\n\t\t\tTimeUnit.MILLISECONDS.sleep(100);\n\t\t} catch (InterruptedException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t\tString url = URL + \"/store/\" + store_id + \"/\";\n\t\tobj.setUrl(url);\n\t\t// obj.addHeader(\"Access-Token\", accessToken);\n\t\t// obj.setPayload(payLoad);\n\t\tobj.setMethodType(\"GET\");\n\t\treturn obj;\n\t}", "protected JDBCDataStore createDataStoreInternal(JDBCDataStore dataStore, Map params)\n throws IOException {\n return dataStore;\n }", "public Store() {\n }", "public JDBCWorkflowStore(Map<String,String> props, Map<String,Object> args) throws WorkflowStoreException {\n super(props, args);\n \n entrySequence = getInitProperty(props, \"entry.sequence\", \"SELECT nextVal('seq_os_wfentry')\");\n stepSequence = getInitProperty(props, \"step.sequence\", \"SELECT nextVal('seq_os_currentsteps')\");\n entryTable = getInitProperty(props, \"entry.table\", \"OS_WFENTRY\");\n entryId = getInitProperty(props, \"entry.id\", \"ID\");\n entryName = getInitProperty(props, \"entry.name\", \"NAME\");\n entryState = getInitProperty(props, \"entry.state\", \"STATE\");\n historyTable = getInitProperty(props, \"history.table\", \"OS_HISTORYSTEP\");\n currentTable = getInitProperty(props, \"current.table\", \"OS_CURRENTSTEP\");\n currentPrevTable = getInitProperty(props, \"currentPrev.table\", \"OS_CURRENTSTEP_PREV\");\n historyPrevTable = getInitProperty(props, \"historyPrev.table\", \"OS_HISTORYSTEP_PREV\");\n stepId = getInitProperty(props, \"step.id\", \"ID\");\n stepProcessId = getInitProperty(props, \"step.processId\", \"ENTRY_ID\");\n stepStepId = getInitProperty(props, \"step.stepId\", \"STEP_ID\");\n stepActionId = getInitProperty(props, \"step.actionId\", \"ACTION_ID\");\n stepOwner = getInitProperty(props, \"step.owner\", \"OWNER\");\n stepActor = getInitProperty(props, \"step.actor\", \"ACTOR\");\n stepStartDate = getInitProperty(props, \"step.startDate\", \"START_DATE\");\n stepFinishDate = getInitProperty(props, \"step.finishDate\", \"FINISH_DATE\");\n stepDueDate = getInitProperty(props, \"step.dueDate\", \"DUE_DATE\");\n stepStatus = getInitProperty(props, \"step.status\", \"STATUS\");\n stepPreviousId = getInitProperty(props, \"step.previousId\", \"PREVIOUS_ID\");\n\n String jndi = props.get(\"datasource\");\n\n if (jndi != null) {\n try {\n ds = (DataSource) lookup(jndi);\n\n if (ds == null) {\n ds = (DataSource) new javax.naming.InitialContext().lookup(jndi);\n }\n } catch (Exception e) {\n throw new WorkflowStoreException(\"Error looking up DataSource at \" + jndi, e);\n }\n }\n\n }", "public SimpleSolverFactory(SupplierValueStore valueStore)\n\t{\n\t\tthis.valueStore = Objects.requireNonNull(valueStore);\n\t}", "public Store() {\r\n\t\tsuper();\r\n\t}", "public Store(String name, String address1, String city, String state, String postalCode) {\n this.name = name;\n this.address1 = address1;\n this.city = city;\n this.state = state;\n this.postalCode = postalCode;\n }", "public static ParamObject getParamsForMultipleStoreInfo(String store_ids) {\n\t\tParamObject obj = new ParamObject();\n\t\tString url = URL + \"/multistoresinfo/?store_ids=\";\n\t\ttry {\n\t\t\tTimeUnit.MILLISECONDS.sleep(100);\n\t\t} catch (InterruptedException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t\tString[] str = store_ids.split(\",\");\n\t\tfor (int i = 0; i < str.length; i++) {\n\t\t\tif (i == 0)\n\t\t\t\turl = url + str[i];\n\t\t\telse\n\t\t\t\turl = url + \",\" + str[i];\n\t\t}\n\t\tobj.setUrl(url);\n\t\tobj.addHeader(\"Authorization\", authorization);\n\t\tobj.setMethodType(\"GET\");\n\t\treturn obj;\n\t}", "private Store() {\n\t}", "public Store(String storeName, String streetAddress, String cityAddress, String stateAddress) {\n this.storeName = storeName;\n this.streetAddress = streetAddress;\n this.cityAddress = cityAddress;\n this.stateAddress = stateAddress;\n }", "public static ParamObject getParamsForStoreListing(String payLoad) {\n\t\tParamObject obj = new ParamObject();\n\t\ttry {\n\t\t\tTimeUnit.MILLISECONDS.sleep(100);\n\t\t} catch (InterruptedException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t\tString url = URL + \"/stores/search/\";\n\t\tobj.setUrl(url);\n\t\tobj.addHeader(\"Access-Token\", accessToken);\n\t\tobj.setPayload(payLoad);\n\t\tobj.setMethodType(\"POST\");\n\t\treturn obj;\n\t}", "@Override\n public DataStore initialize(Map<String, Object> dsInfos) {\n final String CAPACITY_IOPS = \"capacityIops\";\n\n String url = (String)dsInfos.get(\"url\");\n Long zoneId = (Long)dsInfos.get(\"zoneId\");\n Long podId = (Long)dsInfos.get(\"podId\");\n Long clusterId = (Long)dsInfos.get(\"clusterId\");\n String storagePoolName = (String)dsInfos.get(\"name\");\n String providerName = (String)dsInfos.get(\"providerName\");\n Long capacityBytes = (Long)dsInfos.get(\"capacityBytes\");\n Long capacityIops = (Long)dsInfos.get(CAPACITY_IOPS);\n String tags = (String)dsInfos.get(\"tags\");\n @SuppressWarnings(\"unchecked\")\n Map<String, String> details = (Map<String, String>)dsInfos.get(\"details\");\n\n if (podId == null) {\n throw new CloudRuntimeException(\"The Pod ID must be specified.\");\n }\n\n if (clusterId == null) {\n throw new CloudRuntimeException(\"The Cluster ID must be specified.\");\n }\n\n String storageVip = SolidFireUtil.getStorageVip(url);\n int storagePort = SolidFireUtil.getStoragePort(url);\n\n if (capacityBytes == null || capacityBytes <= 0) {\n throw new IllegalArgumentException(\"'capacityBytes' must be present and greater than 0.\");\n }\n\n if (capacityIops == null || capacityIops <= 0) {\n throw new IllegalArgumentException(\"'capacityIops' must be present and greater than 0.\");\n }\n\n HypervisorType hypervisorType = getHypervisorTypeForCluster(clusterId);\n\n if (!isSupportedHypervisorType(hypervisorType)) {\n throw new CloudRuntimeException(hypervisorType + \" is not a supported hypervisor type.\");\n }\n\n String datacenter = SolidFireUtil.getValue(SolidFireUtil.DATACENTER, url, false);\n\n if (HypervisorType.VMware.equals(hypervisorType) && datacenter == null) {\n throw new CloudRuntimeException(\"'Datacenter' must be set for hypervisor type of \" + HypervisorType.VMware);\n }\n\n PrimaryDataStoreParameters parameters = new PrimaryDataStoreParameters();\n\n parameters.setType(getStorageType(hypervisorType));\n parameters.setZoneId(zoneId);\n parameters.setPodId(podId);\n parameters.setClusterId(clusterId);\n parameters.setName(storagePoolName);\n parameters.setProviderName(providerName);\n parameters.setManaged(false);\n parameters.setCapacityBytes(capacityBytes);\n parameters.setUsedBytes(0);\n parameters.setCapacityIops(capacityIops);\n parameters.setHypervisorType(hypervisorType);\n parameters.setTags(tags);\n parameters.setDetails(details);\n\n String managementVip = SolidFireUtil.getManagementVip(url);\n int managementPort = SolidFireUtil.getManagementPort(url);\n\n details.put(SolidFireUtil.MANAGEMENT_VIP, managementVip);\n details.put(SolidFireUtil.MANAGEMENT_PORT, String.valueOf(managementPort));\n\n String clusterAdminUsername = SolidFireUtil.getValue(SolidFireUtil.CLUSTER_ADMIN_USERNAME, url);\n String clusterAdminPassword = SolidFireUtil.getValue(SolidFireUtil.CLUSTER_ADMIN_PASSWORD, url);\n\n details.put(SolidFireUtil.CLUSTER_ADMIN_USERNAME, clusterAdminUsername);\n details.put(SolidFireUtil.CLUSTER_ADMIN_PASSWORD, clusterAdminPassword);\n\n if (capacityBytes < SolidFireUtil.MIN_VOLUME_SIZE) {\n capacityBytes = SolidFireUtil.MIN_VOLUME_SIZE;\n }\n\n long lMinIops = 100;\n long lMaxIops = 15000;\n long lBurstIops = 15000;\n\n try {\n String minIops = SolidFireUtil.getValue(SolidFireUtil.MIN_IOPS, url);\n\n if (minIops != null && minIops.trim().length() > 0) {\n lMinIops = Long.parseLong(minIops);\n }\n } catch (Exception ex) {\n LOGGER.info(\"[ignored] error getting Min IOPS: \" + ex.getLocalizedMessage());\n }\n\n try {\n String maxIops = SolidFireUtil.getValue(SolidFireUtil.MAX_IOPS, url);\n\n if (maxIops != null && maxIops.trim().length() > 0) {\n lMaxIops = Long.parseLong(maxIops);\n }\n } catch (Exception ex) {\n LOGGER.info(\"[ignored] error getting Max IOPS: \" + ex.getLocalizedMessage());\n }\n\n try {\n String burstIops = SolidFireUtil.getValue(SolidFireUtil.BURST_IOPS, url);\n\n if (burstIops != null && burstIops.trim().length() > 0) {\n lBurstIops = Long.parseLong(burstIops);\n }\n } catch (Exception ex) {\n LOGGER.info(\"[ignored] error getting Burst IOPS: \" + ex.getLocalizedMessage());\n }\n\n if (lMinIops > lMaxIops) {\n throw new CloudRuntimeException(\"The parameter '\" + SolidFireUtil.MIN_IOPS + \"' must be less than or equal to the parameter '\" + SolidFireUtil.MAX_IOPS + \"'.\");\n }\n\n if (lMaxIops > lBurstIops) {\n throw new CloudRuntimeException(\"The parameter '\" + SolidFireUtil.MAX_IOPS + \"' must be less than or equal to the parameter '\" + SolidFireUtil.BURST_IOPS + \"'.\");\n }\n\n if (lMinIops != capacityIops) {\n throw new CloudRuntimeException(\"The parameter '\" + CAPACITY_IOPS + \"' must be equal to the parameter '\" + SolidFireUtil.MIN_IOPS + \"'.\");\n }\n\n if (lMinIops > SolidFireUtil.MAX_MIN_IOPS_PER_VOLUME) {\n throw new CloudRuntimeException(\"This volume's Min IOPS cannot exceed \" + NumberFormat.getInstance().format(SolidFireUtil.MAX_MIN_IOPS_PER_VOLUME) + \" IOPS.\");\n }\n\n if (lMaxIops > SolidFireUtil.MAX_IOPS_PER_VOLUME) {\n throw new CloudRuntimeException(\"This volume's Max IOPS cannot exceed \" + NumberFormat.getInstance().format(SolidFireUtil.MAX_IOPS_PER_VOLUME) + \" IOPS.\");\n }\n\n if (lBurstIops > SolidFireUtil.MAX_IOPS_PER_VOLUME) {\n throw new CloudRuntimeException(\"This volume's Burst IOPS cannot exceed \" + NumberFormat.getInstance().format(SolidFireUtil.MAX_IOPS_PER_VOLUME) + \" IOPS.\");\n }\n\n details.put(SolidFireUtil.MIN_IOPS, String.valueOf(lMinIops));\n details.put(SolidFireUtil.MAX_IOPS, String.valueOf(lMaxIops));\n details.put(SolidFireUtil.BURST_IOPS, String.valueOf(lBurstIops));\n\n SolidFireUtil.SolidFireConnection sfConnection = new SolidFireUtil.SolidFireConnection(managementVip, managementPort, clusterAdminUsername, clusterAdminPassword);\n\n SolidFireCreateVolume sfCreateVolume = createSolidFireVolume(sfConnection, storagePoolName, capacityBytes, lMinIops, lMaxIops, lBurstIops);\n\n SolidFireUtil.SolidFireVolume sfVolume = sfCreateVolume.getVolume();\n\n String iqn = sfVolume.getIqn();\n\n details.put(SolidFireUtil.VOLUME_ID, String.valueOf(sfVolume.getId()));\n\n parameters.setUuid(iqn);\n\n if (HypervisorType.VMware.equals(hypervisorType)) {\n String datastore = iqn.replace(\"/\", \"_\");\n String path = \"/\" + datacenter + \"/\" + datastore;\n\n parameters.setHost(\"VMFS datastore: \" + path);\n parameters.setPort(0);\n parameters.setPath(path);\n\n details.put(SolidFireUtil.DATASTORE_NAME, datastore);\n details.put(SolidFireUtil.IQN, iqn);\n details.put(SolidFireUtil.STORAGE_VIP, storageVip);\n details.put(SolidFireUtil.STORAGE_PORT, String.valueOf(storagePort));\n }\n else {\n parameters.setHost(storageVip);\n parameters.setPort(storagePort);\n parameters.setPath(iqn);\n }\n\n ClusterVO cluster = clusterDao.findById(clusterId);\n\n GlobalLock lock = GlobalLock.getInternLock(cluster.getUuid());\n\n if (!lock.lock(SolidFireUtil.LOCK_TIME_IN_SECONDS)) {\n String errMsg = \"Couldn't lock the DB on the following string: \" + cluster.getUuid();\n\n LOGGER.debug(errMsg);\n\n throw new CloudRuntimeException(errMsg);\n }\n\n DataStore dataStore = null;\n\n try {\n // this adds a row in the cloud.storage_pool table for this SolidFire volume\n dataStore = primaryDataStoreHelper.createPrimaryDataStore(parameters);\n\n // now that we have a DataStore (we need the id from the DataStore instance), we can create a Volume Access Group, if need be, and\n // place the newly created volume in the Volume Access Group\n List<HostVO> hosts = hostDao.findByClusterId(clusterId);\n\n String clusterUuId = clusterDao.findById(clusterId).getUuid();\n\n SolidFireUtil.placeVolumeInVolumeAccessGroups(sfConnection, sfVolume.getId(), hosts, clusterUuId);\n\n SolidFireUtil.SolidFireAccount sfAccount = sfCreateVolume.getAccount();\n Account csAccount = CallContext.current().getCallingAccount();\n\n SolidFireUtil.updateCsDbWithSolidFireAccountInfo(csAccount.getId(), sfAccount, dataStore.getId(), accountDetailsDao);\n } catch (Exception ex) {\n if (dataStore != null) {\n primaryDataStoreDao.expunge(dataStore.getId());\n }\n\n throw new CloudRuntimeException(ex.getMessage());\n }\n finally {\n lock.unlock();\n lock.releaseRef();\n }\n\n return dataStore;\n }", "private void createTestData() {\n StoreEntity store = new StoreEntity();\n store.setStoreName(DEFAULT_STORE_NAME);\n store.setPecEmail(DEFAULT_PEC);\n store.setPhone(DEFAULT_PHONE);\n store.setImagePath(DEFAULT_IMAGE_PATH);\n store.setDefaultPassCode(STORE_DEFAULT_PASS_CODE);\n store.setStoreCap(DEFAULT_STORE_CAP);\n store.setCustomersInside(DEFAULT_CUSTOMERS_INSIDE);\n store.setAddress(new AddressEntity());\n\n // Create users for store.\n UserEntity manager = new UserEntity();\n manager.setUsercode(USER_CODE_MANAGER);\n manager.setRole(UserRole.MANAGER);\n\n UserEntity employee = new UserEntity();\n employee.setUsercode(USER_CODE_EMPLOYEE);\n employee.setRole(UserRole.EMPLOYEE);\n\n store.addUser(manager);\n store.addUser(employee);\n\n // Create a new ticket.\n TicketEntity ticket = new TicketEntity();\n ticket.setPassCode(INIT_PASS_CODE);\n ticket.setCustomerId(INIT_CUSTOMER_ID);\n ticket.setDate(new Date(new java.util.Date().getTime()));\n\n ticket.setArrivalTime(new Time(new java.util.Date().getTime()));\n ticket.setPassStatus(PassStatus.VALID);\n ticket.setQueueNumber(INIT_TICKET_QUEUE_NUMBER);\n store.addTicket(ticket);\n\n // Persist data.\n em.getTransaction().begin();\n\n em.persist(store);\n em.flush();\n\n // Saving ID generated from SQL after the persist.\n LAST_TICKET_ID = ticket.getTicketId();\n LAST_STORE_ID = store.getStoreId();\n LAST_MANAGER_ID = manager.getUserId();\n LAST_EMPLOYEE_ID = employee.getUserId();\n\n em.getTransaction().commit();\n }", "protected void createFromPMSInit(PMSInit init) {\n\t\tdescription = init.getDescription();\n\t\tbatchSize = init.getBatchSize() > 0 ? init.getBatchSize() : BATCH_SIZE;\n\t\tinjectBeans = init.getInjectBeans();\n\t\tcommitImmediately = init.isCommitImmediately();\n\t}", "private static final List<ParameterImpl> createParameters() {\n\t\tParameterImpl initialize = new ParameterImpl.Builder()\n\t\t\t\t.setLabel(\"Initialize\") // FIXME: STRING: srogers\n\t\t\t\t.setName(\"INITIALIZE\") // FIXME: STRING: srogers\n\t\t\t\t.setType(\"checkbox\")\n\t\t\t\t.setDefaultValue(\"true\")\n\t\t\t\t.setAcceptableValues(null)\n\t\t\t\t.setRequired(false)\n\t\t\t\t.build();\n\n\t\tParameterImpl run = new ParameterImpl.Builder()\n\t\t\t\t.setLabel(\"Run\") // FIXME: STRING: srogers\n\t\t\t\t.setName(\"RUN\") // FIXME: STRING: srogers\n\t\t\t\t.setType(\"checkbox\")\n\t\t\t\t.setDefaultValue(\"true\")\n\t\t\t\t.setAcceptableValues(null)\n\t\t\t\t.setRequired(false)\n\t\t\t\t.build();\n\n\t\tParameterImpl duration = new ParameterImpl.Builder()\n\t\t\t\t.setLabel(\"Duration (minutes)\") // FIXME: STRING: srogers\n\t\t\t\t.setName(\"DURATION\") // FIXME: STRING: srogers\n\t\t\t\t.setType(\"number\")\n\t\t\t\t.setDefaultValue(\"0\")\n\t\t\t\t.setAcceptableValues(null)\n\t\t\t\t.setRequired(false)\n\t\t\t\t.build();\n\n\t\tParameterImpl retrieveData = new ParameterImpl.Builder()\n\t\t\t\t.setLabel(\"Retrieve Data\") // FIXME: STRING: srogers\n\t\t\t\t.setName(\"RETRIEVE_DATA\") // FIXME: STRING: srogers\n\t\t\t\t.setType(\"checkbox\")\n\t\t\t\t.setDefaultValue(\"true\")\n\t\t\t\t.setAcceptableValues(null)\n\t\t\t\t.setRequired(false)\n\t\t\t\t.build();\n\n\t\tParameterImpl cleanup = new ParameterImpl.Builder()\n\t\t\t\t.setLabel(\"Cleanup\") // FIXME: STRING: srogers\n\t\t\t\t.setName(\"CLEANUP\") // FIXME: STRING: srogers\n\t\t\t\t.setType(\"checkbox\")\n\t\t\t\t.setDefaultValue(\"true\")\n\t\t\t\t.setAcceptableValues(null)\n\t\t\t\t.setRequired(false)\n\t\t\t\t.build();\n\n\t\tParameterImpl cancel = new ParameterImpl.Builder()\n\t\t\t\t.setLabel(\"Cancel\") // FIXME: STRING: srogers\n\t\t\t\t.setName(\"CANCEL\") // FIXME: STRING: srogers\n\t\t\t\t.setType(\"checkbox\")\n\t\t\t\t.setDefaultValue(\"false\")\n\t\t\t\t.setAcceptableValues(null)\n\t\t\t\t.setRequired(false)\n\t\t\t\t.build();\n\n\t\treturn Arrays.asList(initialize, run, duration, retrieveData, cleanup, cancel);\n\t}", "@Override\n protected void init( final IProgressMonitor monitor ) throws SOProcessException{\n\n try {\n super.init(monitor);\n\n if (this.paramsClipInExistentLayer != null) {\n\n init(this.paramsClipInExistentLayer);\n\n this.targetLayer = this.paramsClipInExistentLayer.getTargetLayer();\n\n this.targetStore = getFeatureStore(targetLayer);\n \n setGeomAttrTypeToClip(this.targetLayer.getSchema());\n\n } else if (this.paramsClipInNewLayer != null) {\n\n init(this.paramsClipInNewLayer);\n\n // create new layer (store and resource) with the feature type required\n SimpleFeatureType type = this.paramsClipInNewLayer.getTargetFeatureType();\n\n this.targetGeoResource = AppGISMediator.createTempGeoResource(type);\n assert this.targetGeoResource != null;\n\n this.targetStore = this.targetGeoResource.resolve(FeatureStore.class, monitor);\n\n setGeomAttrTypeToClip(type);\n \n this.targetLayer = addLayerToMap(this.map, this.targetGeoResource);\n }\n assert this.targetLayer != null;\n assert this.targetStore != null;\n \n\n } catch (IOException e) {\n\n final String msg = MessageFormat\n .format(\n Messages.ClipProcess_failed_creating_temporal_store,\n e.getMessage());\n LOGGER.severe(msg);\n\n throw new SOProcessException(msg);\n }\n\n }", "void setupVariables(IVariableFactory factory);", "protected abstract void createComponents(\n Configuration conf, Store store, KVComparator kvComparator) throws IOException;", "Values createValues();", "@Override\n\tpublic void initParameters() {\n\t\ttransferDbData = new TransferDbData();\n\t}", "FromValues createFromValues();", "Variables createVariables();", "public TerrainObject build() {\n\t\tfor(int i=0; i<paramsSet.length-3; i++)\n\t\t\tif(!paramsSet[i])\n\t\t\t\tthrow new IllegalArgumentException(\"Needed parameter (No. \"+i+\") for TerrainObject hasn't been set\");\n\t\treturn new TerrainObject(x, y, z, xW, yW, zW, scale, seed, noise);\n\t}", "@LabeledParameterized.Parameters\n public static List<Object[]> parameters() {\n List<Object[]> modes = Lists.newArrayList();\n for (TypeOfEventStore typeOfEventStore : TypeOfEventStore.values()) {\n modes.add(Objects.o(typeOfEventStore));\n }\n return modes;\n }", "protected void initParameters(List<ParameterWrapper> params) {\n\t\tparameters = new SchemaParameterCollection();\n\t\tif (params != null) {\n\t\t\tIParameter par;\n\t\t\tfor (ParameterWrapper parwrap : params) {\n\t\t\t\tpar = ParameterFactory.createParameter(parwrap);\n\t\t\t\tparameters.addParameter(par);\n\t\t\t}\n\t\t}\n\t}", "public void init(GraphDatabaseService store) {\n\n\t\tlog.info(\"creating Neo indices\");\n\n\t\ttry (Transaction tx = store.beginTx()) {\n\n\t\t\tstore.schema().indexFor(IDENTITY).on(name_prop).create();\n\t\t\tstore.schema().indexFor(CODELIST).on(id_prop).create();\n\t\t\tstore.schema().indexFor(ATTRDEF).on(id_prop).create();\n\t\t\tstore.schema().indexFor(LINKDEF).on(id_prop).create();\n\t\t\tstore.schema().indexFor(USER).on(name_prop).create();\n\t\t\tstore.schema().indexFor(LIFECYCLE).on(id_prop).create();\n\t\t\tstore.schema().indexFor(LOGBOOK).on(id_prop).create();\n\n\t\t\ttx.success();\n\t\t}\n\n\t}", "@Inject\n\tpublic StoreManagement(Store store) {\n\t\tsuper(store.shardId(), store.indexSettings());\n\t\tthis.store = store;\n\t}", "public void init_store() {\r\n /* init inventory dictionary*/ \r\n System.out.println(\"Initializing Store\");\r\n dailyRollInventory.put(\"Egg roll\", MAX_ROLL_COUNT);\r\n dailyRollInventory.put(\"Jelly roll\", MAX_ROLL_COUNT);\r\n dailyRollInventory.put(\"Pastry roll\", MAX_ROLL_COUNT);\r\n dailyRollInventory.put(\"Sausage roll\", MAX_ROLL_COUNT);\r\n dailyRollInventory.put(\"Spring roll\", MAX_ROLL_COUNT);\r\n\r\n /* init totalRollSales for the month */\r\n totalRollSales.put(\"Egg roll\", 0.0);\r\n totalRollSales.put(\"Jelly roll\", 0.0);\r\n totalRollSales.put(\"Pastry roll\", 0.0);\r\n totalRollSales.put(\"Sausage roll\", 0.0);\r\n totalRollSales.put(\"Spring roll\", 0.0);\r\n\r\n /* init totalCustomerSales for the month */\r\n totalCustomerSales.put(\"Casual\", 0.0);\r\n totalCustomerSales.put(\"Business\", 0.0);\r\n totalCustomerSales.put(\"Catering\", 0.0);\r\n\r\n /* init daily customer sales */\r\n dailyCustomerSales.put(\"Casual\", 0.0);\r\n dailyCustomerSales.put(\"Business\", 0.0);\r\n dailyCustomerSales.put(\"Catering\", 0.0);\r\n \r\n }", "@Override\n Store apply(@Required Store store);", "public void construct(){\n\t\tbuilder.buildPart1();\n\t\tbuilder.buildPart2();\n\t\tbuilder.retrieveResult();\n\t}", "public Store() {\n initComponents();\n selectData();\n cbAddress();\n setTanggal();\n }", "private void initializeStore()\r\n {\r\n log.debug(\"initializing MongoStore\");\r\n try (InputStream is = getClass().getClassLoader().getResourceAsStream(\"visualharvester.properties\"))\r\n {\r\n final Properties properties = new Properties();\r\n properties.load(is);\r\n\r\n host = properties.get(\"mongo.host\").toString();\r\n final String portString = properties.get(\"mongo.port\").toString();\r\n port = Integer.valueOf(portString).intValue();\r\n database = properties.get(\"mongo.database\").toString();\r\n collection = properties.get(\"mongo.collection\").toString();\r\n\r\n }\r\n catch (final IOException e)\r\n {\r\n log.error(\"Could not open properties file, using defaults\", e);\r\n host = \"localhost\";\r\n port = 27017;\r\n database = \"visualdb\";\r\n collection = \"visualcollection\";\r\n }\r\n\r\n store = new MongoStorage(host, port, database, collection);\r\n\r\n }", "public void init(Properties props) ;", "public abstract Builder params(String... paramVarArgs);", "@Override\n\tprotected void initParams() {\n\t\t\n\t}", "public Map<String, AccessPoint> createParameters() {\r\n\t\tMap<String, AccessPoint> pm = new TreeMap<String, AccessPoint>();\r\n\t\tpm.put(\"vcNumber\", new MutableFieldAccessPoint(\"vcNumber\", this));\r\n\t\treturn pm;\r\n\t}", "void setup( File storeDir, Consumer<GraphDatabaseService> create );", "public void setParameters(Properties props) {\n\n\t}", "public ParamController(ConfigData configData, CommonTypes types) {\r\n parameterParserXML = new ParameterParser(types);\r\n propertyParserXML = new PropertyParser();\r\n this.configData = configData;\r\n }", "public GetBulkStateRequest build() {\n GetBulkStateRequest request = new GetBulkStateRequest();\n request.setStoreName(this.storeName);\n request.setKeys(this.keys);\n request.setMetadata(this.metadata);\n request.setParallelism(this.parallelism);\n return request;\n }", "public static StoreProxy create(Store store) {\n return new StoreProxy(store);\n }", "public StoreController() {\n }", "public static Store getStore(final StoreDto _store){\n\t\tStore store = new Store();\n\t\tstore.setStoreAddress(_store.getStoreAddress());\n\t\t//store.setStoreCity(Integer.parseInt(_store.getStoreCity()));\n\t\t//store.setStoreId(Integer.parseInt(_store.getStoreId()));\n\t\t//store.setStoreLocality(Integer.parseInt(_store.getStoreLocality()));\n\t\tstore.setStoreMobNo(Integer.parseInt(_store.getStoreMobNo()));\n\t\tstore.setStoreName(_store.getStoreName());\n\t\t//store.setStoreType(Integer.parseInt(_store.getStoreType()));\n\t\t//store.setOwnerName(_store.getOwnerName());\n\t\t//store.setEmailAddress(_store.getEmailAddress());\n\t\t//store.setStorePincode(Integer.parseInt(_store.getStorePincode()));\n\t\t//store.setServiceArea(_store.getServiceArea());\n\t\treturn store;\n\t}", "public Construct() {\n\tprefixes = new StringBuilder();\n\tvariables = new StringBuilder();\n\twheres = new StringBuilder();\n }", "@Override\n\tpublic ContentValues BuildParams() {\n\t\tContentValues nContentValues = new ContentValues();\n\t\tnContentValues.put(\"cpn_ident\", mCouponNumber);\n\t\tif (mIsFastBy) {\n\t\t\tnContentValues.put(\"is_fastbuy\", \"1\");\n\t\t}\n\t\treturn nContentValues;\n\t}", "void initialize(Datastore datastore) throws InvalidDatastoreException;", "public void init() {\n LOG.info(\"Initializing side input stores.\");\n\n initializeStoreDirectories();\n }", "public void populate(java.util.Map properties) throws LexComponentException;", "public static ParamObject getParamsForGetPricesByStore(String store_Id) {\n\t\tParamObject obj = new ParamObject();\n\t\ttry {\n\t\t\tTimeUnit.MILLISECONDS.sleep(100);\n\t\t} catch (InterruptedException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t\tString url = URL + \"/store/\" + store_Id + \"/showprices/?type=active\";\n\t\tobj.setUrl(url);\n\t\tobj.addHeader(\"Authorization\", authorization);\n\t\tobj.setMethodType(\"GET\");\n\t\treturn obj;\n\t}", "public Configuracion(Parametros params) {\n this.params = params;\n\n if (params.properties != null) {\n try {\n properties.load(new FileInputStream(params.properties));\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n }", "private Params()\n {\n }", "public Parameters(Map<String, String[]> map) {\n\t\trequireNonNull(map, \"Parameters map not speicifed\");\n\t\tthis.store = new ParametersMap(map);\n\t}", "public SolrQuery(DataStore<K, T> dataStore) {\n super(dataStore);\n store = (SolrStore<K, T>)dataStore;\n }", "public void initiateStore() {\r\n\t\tURLConnection urlConnection = null;\r\n\t\tBufferedReader in = null;\r\n\t\tURL dataUrl = null;\r\n\t\ttry {\r\n\t\t\tdataUrl = new URL(URL_STRING);\r\n\t\t\turlConnection = dataUrl.openConnection();\r\n\t\t\tin = new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));\r\n\t\t\tString inputLine;\r\n\t\t\twhile ((inputLine = in.readLine()) != null) {\r\n\t\t\t\tString[] splittedLine = inputLine.split(\";\");\r\n\t\t\t\t// an array of 4 elements, the fourth element\r\n\t\t\t\t// the first three elements are the properties of the book.\r\n\t\t\t\t// last element is the quantity.\r\n\t\t\t\tBook book = new Book();\r\n\t\t\t\tbook.setTitle(splittedLine[0]);\r\n\t\t\t\tbook.setAuthor(splittedLine[1]);\r\n\t\t\t\tBigDecimal decimalPrice = new BigDecimal(splittedLine[2].replaceAll(\",\", \"\"));\r\n\t\t\t\tbook.setPrice(decimalPrice);\r\n\t\t\t\tfor(int i=0; i<Integer.parseInt(splittedLine[3]); i++)\r\n\t\t\t\t\tthis.addBook(book);\r\n\t\t\t}\r\n\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(!in.equals(null)) in.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}", "protected void setupParameters() {\n \n \n\n }", "private void loadParameters(ParameterDatabase parameterDB) {\n // global - enterprise\n// global.SetInitialNumberOfHouseholds(returnIntParameter(parameterDB, \"InitialNumberOfHouseholds\",\n// global.getInitialNumberOfHouseholds()));\n// \n global.setInitialRefugeeNumber(returnIntParameter(parameterDB, \"initialRefugeeNumber\",\n global.getInitialRefugeeNumber()));\n global.setMaximumNumberRelative(returnIntParameter(parameterDB, \"MaximumNumberRelative\",\n global.getMaximumNumberRelative()));\n global.setPercentageOfAsymptomatic(returnDoubleParameter(parameterDB, \"PercentageOfAsymptomatic\",\n global.getPercentageOfAsymptomatic()));\n global.setProbRecoveryToSuscebtable(returnDoubleParameter(parameterDB, \"recovery_To_Susceb_Rate\",\n global.getProbRecoveryToSuscebtable()));\n global.setHealthDepreciation(returnDoubleParameter(parameterDB, \"healthDepreciation\",\n global.getHealthDepreciation()));\n global.setprobabilityOfEffectiveNessofmedicine(returnDoubleParameter(parameterDB, \"probabilityOfEffectiveNessofmedicine\",\n global.getprobabilityOfEffectiveNessofmedicine()));\n global.setWaterContaminationThreshold(returnDoubleParameter(parameterDB, \"WaterContaminationThreshold\",\n global.getWaterContaminationThreshold()));\n global.setvibrioCholeraePerHealthyPerson(returnDoubleParameter(parameterDB, \"vibrioCholeraePerHealthyPerson\",\n global.getvibrioCholeraePerHealthyPerson()));\n global.setvibrioCholeraePerExposedPerson(returnDoubleParameter(parameterDB, \"vibrioCholeraePerExposedPerson\",\n global.getvibrioCholeraePerExposedPerson()));\n global.setvibrioCholeraePerInfectedPerson(returnDoubleParameter(parameterDB, \"vibrioCholeraePerInfectedPerson\",\n global.getvibrioCholeraePerInfectedPerson()));\n global.setcholeraInfectionDurationMAX(returnIntParameter(parameterDB, \"choleraInfectionDurationMAX\",\n global.getcholeraInfectionDurationMAX()));\n global.setcholeraInfectionDurationMIN(returnIntParameter(parameterDB, \"choleraInfectionDurationMIN\",\n global.getcholeraInfectionDurationMIN())); \n global.setMaxDistanceLaterine(returnIntParameter(parameterDB, \"MaxDistanceLaterine\",\n global.getMaxDistanceLaterine()));\n global.setBacteriaErosionRate(returnDoubleParameter(parameterDB, \"bacteriaErosionRate\",\n global.getBacteriaErosionRate()));\n global.setBoreHoleDischareRatePerMinute(returnDoubleParameter(parameterDB, \"boreHoleDischareRate\",\n global.getBoreHoleDischareRatePerMinute()));\n global.setBoreholeWaterSupplyPerDay(returnDoubleParameter(parameterDB, \"waterCapacityBorehole\",\n global.getBoreholeWaterSupplyPerDay()));\n global.setHeaalthFacilityCapacity(returnIntParameter(parameterDB, \"healthFacilityCapacity\",\n global.getHeaalthFacilityCapacity()));\n global.setMaximumCrowedLevel(returnDoubleParameter(parameterDB, \"CROWED_LEVEL_THRESHOLD\",\n global.getMaximumCrowedLevel()));\n global.setProbabilityGuestContaminationRate(returnDoubleParameter(parameterDB, \"probabilityGuestContaminationRate\",\n global.getProbabilityGuestContaminationRate()));\n global.setMaximumHHOccumpancyPerField(returnIntParameter(parameterDB, \"maximum_occupancy_Threshold\",\n global.getMaximumHHOccumpancyPerField()));\n global.setMaximumWaterRequirement(returnDoubleParameter(parameterDB, \"Maximum_Water_Requirement\",\n global.getMaximumWaterRequirement()));\n global.setMinimumWaterRequirement(returnDoubleParameter(parameterDB, \"Minimum_Water_Requirement\",\n global.getMinimumWaterRequirement()));\n global.setLaterineCoverage(returnDoubleParameter(parameterDB, \"laterineCoverage\",\n global.getLaterineCoverage()));\n global.setRainfallDuration_Minute(returnIntParameter(parameterDB, \"rainDuration\",\n global.getRainfallDuration_Minute()));\n global.setRainfallFirstDay(returnIntParameter(parameterDB, \"firstRainfallDay\",\n global.getRainfallFirstDay()));\n global.setRainfallFrequencyInterval_Days(returnIntParameter(parameterDB, \"rainfallFrequency\",\n global.getRainfallFrequencyInterval_Days()));\n global.setRainfall_MM_Per_Minute(returnDoubleParameter(parameterDB, \"rainfallInMM\",\n global.getRainfall_MM_Per_Minute()));\n global.setAbsorbtionRatePerMinute(returnDoubleParameter(parameterDB, \"absorbtionRatePerMinute\",\n global.getAbsorbtionRatePerMinute()));\n \n \n \n }", "ParamMap createParamMap();", "@Override\n public void begin(String namespace, String name, Attributes attributes)\n throws Exception {\n\n IStoreFactory factory = (IStoreFactory) newInstance(attributeName,\n storeFactoryClass, attributes);\n StoreAppender storeAppender = (StoreAppender) newInstance(\n appenderAttributeName, storeAppenderClass, attributes);\n factory.setStoreAppender(storeAppender);\n\n // Add this StoreFactory to our associated component\n StoreDescription desc = (StoreDescription) digester.peek(0);\n StoreRegistry registry = (StoreRegistry) digester.peek(1);\n factory.setRegistry(registry);\n desc.setStoreFactory(factory);\n\n }", "public Pippo(Context context, boolean keep, boolean store, boolean pool){\r\n super(context);\r\n k = keep;\r\n s = store;\r\n p = pool;\r\n }", "private void initParameters() {\n jobParameters.setSessionSource(getSession(\"source\"));\n jobParameters.setSessionTarget(getSession(\"target\"));\n jobParameters.setAccessDetailsSource(getAccessDetails(\"source\"));\n jobParameters.setAccessDetailsTarget(getAccessDetails(\"target\"));\n jobParameters.setPageSize(Integer.parseInt(MigrationProperties.get(MigrationProperties.PROP_SOURCE_PAGE_SIZE)));\n jobParameters.setQuery(MigrationProperties.get(MigrationProperties.PROP_SOURCE_QUERY));\n jobParameters.setItemList(getFolderStructureItemList());\n jobParameters.setPropertyFilter(getPropertyFilter());\n jobParameters.setReplaceStringInDestinationPath(getReplaceStringArray());\n jobParameters.setNamespacePrefixMap(getNamespacePrefixList());\n jobParameters.setBatchId(getBatchId());\n jobParameters.getStopWatchTotal().start();\n jobParameters.setSuccessAction(MigrationProperties.get(MigrationProperties.PROP_SOURCE_SUCCESS_ACTION));\n jobParameters.setErrorAction(MigrationProperties.get(MigrationProperties.PROP_SOURCE_ERROR_ACTION));\n jobParameters.setSuccessFolder(MigrationProperties.get(MigrationProperties.PROP_SOURCE_SUCCESS_FOLDER) + \"/\" + jobParameters.getBatchId());\n jobParameters.setErrorFolder(MigrationProperties.get(MigrationProperties.PROP_SOURCE_ERROR_FOLDER) + \"/\" + jobParameters.getBatchId());\n jobParameters.setCurrentFolder(getRootFolder());\n jobParameters.setSkipDocuments(Boolean.valueOf(MigrationProperties.get(MigrationProperties.PROP_MIGRATION_COPY_FOLDERS_ONLY)));\n \n }", "private StoreController(){}", "public OAuthParameters createParameters() {\n OAuthParameters result = new OAuthParameters();\n result.consumerKey = this.consumerKey;\n result.signer = this.signer;\n return result;\n }", "private ConfigurationObject createParam(int num, String type, String value) throws Exception {\r\n ConfigurationObject param = new DefaultConfigurationObject(\"param\" + num);\r\n param.setPropertyValue(PROPERTY_TYPE, type);\r\n param.setPropertyValue(PROPERTY_VALUE, value);\r\n\r\n return param;\r\n }", "public GenEncryptionParams() {\n }", "public JStore()\n {\n //put code in here\n }", "public void init(Object[] initialParams) {\n\t \n\t}", "public StoreProvider() {\n super(null,\n Map.of( Namespaces.GML, \"application/gml+xml\",\n Namespaces.CSW, \"application/vnd.ogc.csw_xml\",\n LegacyNamespaces.CSW, \"application/vnd.ogc.csw_xml\",\n LegacyNamespaces.GMD, \"application/vnd.iso.19139+xml\",\n LegacyNamespaces.GMI, \"application/vnd.iso.19139+xml\",\n LegacyNamespaces.GMI_ALIAS, \"application/vnd.iso.19139+xml\"),\n Map.of(\"MD_Metadata\", \"application/vnd.iso.19139+xml\"));\n // More types to be added in future versions.\n }", "public Store() {\n\t\t//If unspecified then default to 1 register in the store\n\t\tthis(1);\n\t}", "private void buildOtherParams() {\n\t\tmClient.putRequestParam(\"attrType\", \"1\");\r\n\t}", "@Override\n public void initialize(Map<String, Param> params) throws TikaConfigException {\n //params have already been set...ignore them\n //TODO -- add other params to the builder as needed\n storage = StorageOptions.newBuilder().setProjectId(projectId).build().getService();\n }", "public abstract Builder produces(String... paramVarArgs);", "public DefaultExecuterParameters() {\n\t\tnumAuthorsAtStart = 5;\n\t\tnumPublicationsAtStart = 20;\n\t\tnumCreationAuthors = 0;\n\t\tnumCreationYears = 10;\n\n\t\tyearInformation = new DefaultYearInformation();\n\t\tpublicationParameters = new DefaultPublicationParameters();\n\t\tpublicationParameters.setYearInformation(yearInformation);\n\t\tauthorParameters = new DefaultAuthorParameters();\n\t\ttopicParameters = new DefaultTopicParameters();\n\t}", "public StoreReadSettings() {\n }", "protected void buildServerInfoStore() {\n\n if (serverInfoStore != null)\n return;\n\n serverInfoStore = new DefaultVOMSServerInfoStore.Builder()\n .lookupStrategy(vomsesLookupStrategy).storeListener(storeListener)\n .vomsesPaths(vomsesLocations).build();\n }", "public void createDataStore (){\n\t\tcloseActiveStoreData ();\n\t\tif (_usablePersistenceManager){\n\t\t\tclosePersistence ();\n\t\t}\n\t\tsetDatastoreProperties ();\n\t\tthis.pm = DataStoreUtil.createDataStore (getDataStoreEnvironment (), true);\n\t\t_usablePersistenceManager = true;\n\t}", "public BaseParameters(){\r\n\t}", "@Override\n public void execute(final OperationParams params) throws Exception {\n if (parameters.size() != 2) {\n throw new ParameterException(\"Requires arguments: <input store name> <output store name>\");\n }\n computeResults(params);\n }", "public void init(Object[] parameters) {\n\n\t}", "public StoreConfig(final Properties pProps) {\n\t\tthis.overloadConfigFromEnviroment(pProps);\n\t\tinitConfig(this);\n\t}", "load initload(load iLoad)\n {\n iLoad.setSNo(\"SNo\");\n iLoad.setLength(\"Length\");\n iLoad.setGirth(\"Girth\");\n iLoad.setQuantity(\"Quantity\");\n iLoad.setClassA(\"ClassA\");\n iLoad.setClassB(\"ClassB\");\n iLoad.setClassC(\"ClassC\");\n iLoad.setClassD(\"ClassD\");\n iLoad.setTotalCFT(\"TotalCFT\");\n iLoad.setRate(\"Rate\");\n iLoad.setAmount(\"Amount\");\n \n return iLoad;\n }", "@Override\r\n\tpublic void saveAll(Store store) {\n\t\ttry {\r\n\t\t\tint size = store.getStoreSize();\r\n\t\t\tloader.setNumOfItems(size);\r\n\t\t\tfor (int i = 0; i < size; i++) {\r\n\t\t\t\tloader.setItem(i, store.getStoreItem(i));\r\n\t\t\t}\r\n\t\t\tloader.saveProperty();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public StoreTest() {\n }", "public void initialize() {\n\t\tcompartmentName = new SimpleStringProperty(compartment.getName());\t\t\n\t\tcompartmentId = new SimpleStringProperty(compartment.getId());\n\t\tcompartmentSBOTerm = new SimpleStringProperty(compartment.getSBOTermID());\n\t}", "public void init(java.util.Properties props) {\r\n }", "public NewsParamPanel() {\n initComponents();\n titleAnalyzer.setFieldName(\"TITLE\");\n dateAnalyzer.setFieldName(\"DATE\");\n sourceExtractor.setFieldName(\"SOURCENAME\");\n authorExtractor.setFieldName(\"AUTHOR\");\n commentsExtractor.setFieldName(\"COMMENT_COUNT\");\n clicksExtractor.setFieldName(\"CLICK_COUNT\");\n transmitExtractor.setFieldName(\"TRANSMIT_COUNT\");\n summaryExtractor.setFieldName(\"SUMMARY\");\n chnlExtractor.setFieldName(\"CHANNEL\");\n contentExtractor.setFieldName(\"CONTENT\");\n }", "public void setParams(Properties lparams, int indice) throws WSException {\n\t\tTxParams consulta = new TxParams();\r\n\t\t//Crea la lista de parametros de entrada\r\n\t\t// El offset permite a los parametros de salida poseer un indice que comience donde se acaban los parametros de entrada\r\n\t\tint offset = 1;\r\n\t\ttry {\r\n\t\t\tnInparams = (String[])nparamsIn.get(indice);\r\n\t\t\tif (nInparams != null) {\r\n\t\t\t\tinParams = new Properties();\r\n\t\t\t\tfor (int i = 0; i < this.nInparams.length; i++) {\r\n\t\t\t\t\t//Se coloca como llave el indice para asi poder registrar en forma correcta los parametros\r\n\t\t\t\t\tConsSQLparams aux = (ConsSQLparams) lparams.get(nInparams[i]);\r\n\t\t\t\t\tif (aux == null)\r\n\t\t\t\t\t\tthrow new WSException(\"No se encontro el parametro \" + nInparams[i] + \" Revisar los parametros en el XML\");\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tConsParamsX parm = new ConsParamsX(aux.nomparam,aux.typeparam);\r\n\t\t\t\t\t\tinParams.put(new Integer(i + 1), parm);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// Solo si hay parametros de entrada se suma el valor del ultimo indice\r\n\t\t\t\toffset = this.nInparams.length + 1;\r\n\t\t\t}\r\n\t\t\tnOutparams = (String[])nparamsOut.get(indice);\r\n\t\t\tif (nOutparams != null) {\r\n\t\t\t\toutParams = new Properties();\r\n\t\t\t\t//Crea la lista de parametros de salida\r\n\t\t\t\tfor (int i = 0; i < nOutparams.length; i++) {\r\n\t\t\t\t\t//Se coloca como llave el indice para asi poder registrar en forma correcta los parametros\r\n\t\t\t\t\t// Ojo que aca se suma el offset\r\n\t\t\t\t\toutParams.put(new Integer(i + offset), lparams.get(nOutparams[i]));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//Coloco los parametros de entrada y salida (sin valores todavia) de esta consulta en su respectiva clase\r\n\t\t\tconsulta.getParams().entrada = inParams;\r\n\t\t\tconsulta.getParams().salida = outParams;\r\n\t\t\t//Agrego la consulta a la lista contenida en esta transaccion\r\n\t\t\ttodo.add(consulta);\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tthrow new WSException(\"Clase: ConsultaTX Error: Error al cargar los objetos de parametros de entrada y de salida Msg: \" + e.getMessage());\r\n\t\t}\r\n\t}", "StoreGUI(Store store) {\n super(store.type);\n setResizable(false);\n this.store = store;\n initComponents();\n }", "public StockBst(String[][] givenList){\r\n this.propertyList = givenList;\r\n setEverything();\r\n }", "public Parameters() {\n\t}", "PARAM createPARAM();", "public static ParamObject getParamsForUpdateStoreByStore_Id(String payLoad,String store_id) {\n\t\tParamObject obj = new ParamObject();\n\t\ttry {\n\t\t\tTimeUnit.MILLISECONDS.sleep(100);\n\t\t} catch (InterruptedException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t\tString url = URL + \"/store/\"+store_id+\"/\";\n\t\tobj.setUrl(url);\n//\t\tobj.addHeader(\"Content-Type\", \"application/json\");\n\t\tobj.addHeader(\"Authorization\", authorization);\n\t\tobj.setPayload(payLoad);\n\t\tSystem.out.println(payLoad);\n\t\tobj.setMethodType(\"PUT\");\n\t\treturn obj;\n\t}", "private OpenIDAssociationDAO(String storeType) {\n associationStore = storeType;\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"title\", name);\n params.put(\"ean\", ean);\n params.put(\"supplier\", supplier);\n params.put(\"offer\", offer);\n params.put(\"price\", price);\n\n return params;\n }", "Setter buildParameterSetter(Type[] types, String path);", "public static StoreDto getStoreDto(final Store _store){\n\t\tStoreDto store = new StoreDto();\n\t\tstore.setStoreAddress(_store.getStoreAddress());\n\t\tstore.setStoreCity(Integer.toString(_store.getStoreCity()));\n\t\tstore.setStoreId(Integer.toString(_store.getStoreId()));\n\t\tstore.setStoreLocality(Integer.toString(_store.getStoreLocality()));\n\t\tstore.setStoreMobNo(Integer.toString(_store.getStoreMobNo()));\n\t\tstore.setStoreName(_store.getStoreName());\n\t\tstore.setStoreType(Integer.toString(_store.getStoreType()));\n\t\tstore.setOwnerName(_store.getOwnerName());\n\t\tstore.setEmailAddress(_store.getEmailAddress());\n\t\tstore.setStorePincode(Integer.toString(_store.getStorePincode()));\n\t\tstore.setServiceArea(_store.getServiceArea());\n\t\treturn store;\n\t}", "public TaskList(Storage stores) {\n storage = new ArrayList<>();\n dateStorage = new HashMap<>();\n stores.load(this);\n }", "protected abstract void construct();" ]
[ "0.5806583", "0.5606362", "0.5489835", "0.5419967", "0.5215416", "0.51970613", "0.51187116", "0.51105934", "0.5058753", "0.50358456", "0.5018347", "0.5008094", "0.49285036", "0.49124515", "0.4909694", "0.49092698", "0.4906302", "0.4897219", "0.48904067", "0.48705727", "0.48572308", "0.48515108", "0.4850253", "0.48445195", "0.4829072", "0.48193616", "0.48180687", "0.48107946", "0.48046783", "0.47956696", "0.47758088", "0.47705066", "0.47700885", "0.4743447", "0.4731402", "0.4715083", "0.47149372", "0.4692806", "0.46765652", "0.46649295", "0.46612054", "0.46589184", "0.46586862", "0.46468478", "0.46460667", "0.46414372", "0.4637577", "0.46334964", "0.46198088", "0.4585523", "0.4581149", "0.45779753", "0.45659366", "0.45648852", "0.4561748", "0.45591116", "0.4558752", "0.45581692", "0.45541814", "0.4549018", "0.4540473", "0.4539081", "0.4537679", "0.45304382", "0.45269835", "0.45203516", "0.45063996", "0.45024163", "0.45012113", "0.44963935", "0.44957912", "0.44940192", "0.4493322", "0.44912645", "0.4464994", "0.44646683", "0.44479126", "0.44446686", "0.4444003", "0.44427258", "0.44420257", "0.4437539", "0.44206885", "0.4420002", "0.44047266", "0.43966934", "0.43940306", "0.4394029", "0.4391038", "0.43761352", "0.43686453", "0.43677905", "0.43575123", "0.4356704", "0.43477148", "0.43472967", "0.43446773", "0.43437883", "0.4340796", "0.43386924" ]
0.72741413
0
URLencodes these parameters into a string in UTF8 encoding.
public final String urlEncode() { return urlEncode(UTF_8); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String urlEncode(String toEncode) throws UnsupportedEncodingException{\r\n\t\treturn URLEncoder.encode(toEncode, \"UTF-8\");\r\n\t}", "private static String urlEncodeParameter(String parameter) throws UnsupportedEncodingException{\r\n\t\tint equal = parameter.indexOf(\"=\");\r\n\t\treturn urlEncode(parameter.substring(0, equal))+\"=\"+urlEncode(parameter.substring(equal+1));\r\n\t}", "private String format(final Collection<Entry<String, String>> parameters, final String charset) throws UnsupportedEncodingException {\n final StringBuilder result = new StringBuilder();\n for (final Entry<String, String> parameter : parameters) {\n final String encodedName = URLEncoder.encode(parameter.getKey(), charset);\n final String encodedValue = StringUtils.isNotEmpty(parameter.getValue()) ? URLEncoder.encode(parameter.getValue(), charset) : null;\n if (result.length() > 0) {\n result.append(PARAMETER_SEPARATOR);\n }\n result.append(encodedName);\n if (encodedValue != null) {\n result.append(NAME_VALUE_SEPARATOR);\n result.append(encodedValue);\n }\n }\n return result.toString();\n }", "@Test\n public void encodeParameter() {\n assertEquals(\"abcABC123\", OAuth10.encodeParameter(\"abcABC123\"));\n assertEquals(\"-._~\", OAuth10.encodeParameter(\"-._~\"));\n assertEquals(\"%25\", OAuth10.encodeParameter(\"%\"));\n assertEquals(\"%2B\", OAuth10.encodeParameter(\"+\"));\n assertEquals(\"%26%3D%2A\", OAuth10.encodeParameter(\"&=*\"));\n assertEquals(\"%0A\", OAuth10.encodeParameter(\"\\n\"));\n assertEquals(\"%20\", OAuth10.encodeParameter(\"\\u0020\"));\n assertEquals(\"%7F\", OAuth10.encodeParameter(\"\\u007F\"));\n assertEquals(\"%C2%80\", OAuth10.encodeParameter(\"\\u0080\"));\n assertEquals(\"%E3%80%81\", OAuth10.encodeParameter(\"\\u3001\"));\n assertEquals(\"%C2%80\", OAuth10.encodeParameter(\"\\u0080\"));\n }", "public abstract String toURLParam();", "public String toQueryUrl() {\n StringBuilder urlBuilder = new StringBuilder();\n Set<Map.Entry<String, Object>> entrySet = params.entrySet();\n int i = entrySet.size();\n for (Map.Entry<String, Object> entry : entrySet) {\n try {\n if (null != entry.getValue()) {\n urlBuilder.append(entry.getKey()).append('=')\n .append(URLEncoder.encode(String.valueOf(entry.getValue()), DEFAULT_ENC));\n if (i > 1) {\n urlBuilder.append('&');\n }\n }\n i--;\n } catch (UnsupportedEncodingException e) {\n throw new RuntimeException(e);\n }\n }\n \n return urlBuilder.toString();\n }", "public abstract String encodeURL(CharSequence url);", "private String buildUrlQueryString(final Collection<String> parameters) {\n\n // List to hold the encoded parameters\n final List<String> encodedParameters = new ArrayList<String>();\n\n for (final String parameter : parameters) {\n\n // Step #1 - break apart the parameter-pairs (because we don't want\n // to encode the \"=\" character)\n final String[] splitParameters = parameter.split(\"=\");\n\n // List to hold each individually encoded parameter item\n final List<String> encodedItems = new ArrayList<String>();\n for (final String item : splitParameters) {\n try {\n // Step #2 - encode each individual parameter item add the\n // encoded item to its corresponding list\n\n encodedItems.add(encodeValue(item));\n\n } catch (final Exception e) {\n // do nothing\n // because we are \"hard-coding\" the encoding type, there is\n // a 0% chance that this will fail.\n }\n\n }\n\n // Step #3 - reunite the previously separated parameter items and\n // add them to the corresponding list\n encodedParameters.add(StringUtils.join(encodedItems, \"=\"));\n }\n\n return StringUtils.join(encodedParameters, \"&\");\n }", "private String URLEncode (String sStr) {\r\n if (sStr==null) return null;\r\n\r\n int iLen = sStr.length();\r\n StringBuffer sEscaped = new StringBuffer(iLen+100);\r\n char c;\r\n for (int p=0; p<iLen; p++) {\r\n c = sStr.charAt(p);\r\n switch (c) {\r\n case ' ':\r\n sEscaped.append(\"%20\");\r\n break;\r\n case '/':\r\n sEscaped.append(\"%2F\");\r\n break;\r\n case '\"':\r\n sEscaped.append(\"%22\");\r\n break;\r\n case '#':\r\n sEscaped.append(\"%23\");\r\n break;\r\n case '%':\r\n sEscaped.append(\"%25\");\r\n break;\r\n case '&':\r\n sEscaped.append(\"%26\");\r\n break;\r\n case (char)39:\r\n sEscaped.append(\"%27\");\r\n break;\r\n case '+':\r\n sEscaped.append(\"%2B\");\r\n break;\r\n case ',':\r\n sEscaped.append(\"%2C\");\r\n break;\r\n case '=':\r\n sEscaped.append(\"%3D\");\r\n break;\r\n case '?':\r\n sEscaped.append(\"%3F\");\r\n break;\r\n case 'á':\r\n sEscaped.append(\"%E1\");\r\n break;\r\n case 'é':\r\n sEscaped.append(\"%E9\");\r\n break;\r\n case 'í':\r\n sEscaped.append(\"%ED\");\r\n break;\r\n case 'ó':\r\n sEscaped.append(\"%F3\");\r\n break;\r\n case 'ú':\r\n sEscaped.append(\"%FA\");\r\n break;\r\n case 'Á':\r\n sEscaped.append(\"%C1\");\r\n break;\r\n case 'É':\r\n sEscaped.append(\"%C9\");\r\n break;\r\n case 'Í':\r\n sEscaped.append(\"%CD\");\r\n break;\r\n case 'Ó':\r\n sEscaped.append(\"%D3\");\r\n break;\r\n case 'Ú':\r\n sEscaped.append(\"%DA\");\r\n break;\r\n case 'à':\r\n sEscaped.append(\"%E0\");\r\n break;\r\n case 'è':\r\n sEscaped.append(\"%E8\");\r\n break;\r\n case 'ì':\r\n sEscaped.append(\"%EC\");\r\n break;\r\n case 'ò':\r\n sEscaped.append(\"%F2\");\r\n break;\r\n case 'ù':\r\n sEscaped.append(\"%F9\");\r\n break;\r\n case 'À':\r\n sEscaped.append(\"%C0\");\r\n break;\r\n case 'È':\r\n sEscaped.append(\"%C8\");\r\n break;\r\n case 'Ì':\r\n sEscaped.append(\"%CC\");\r\n break;\r\n case 'Ò':\r\n sEscaped.append(\"%D2\");\r\n break;\r\n case 'Ù':\r\n sEscaped.append(\"%D9\");\r\n break;\r\n case 'ñ':\r\n sEscaped.append(\"%F1\");\r\n break;\r\n case 'Ñ':\r\n sEscaped.append(\"%D1\");\r\n break;\r\n case 'ç':\r\n sEscaped.append(\"%E7\");\r\n break;\r\n case 'Ç':\r\n sEscaped.append(\"%C7\");\r\n break;\r\n case 'ô':\r\n sEscaped.append(\"%F4\");\r\n break;\r\n case 'Ô':\r\n sEscaped.append(\"%D4\");\r\n break;\r\n case 'ö':\r\n sEscaped.append(\"%F6\");\r\n break;\r\n case 'Ö':\r\n sEscaped.append(\"%D6\");\r\n break;\r\n case '`':\r\n sEscaped.append(\"%60\");\r\n break;\r\n case '¨':\r\n sEscaped.append(\"%A8\");\r\n break;\r\n default:\r\n sEscaped.append(c);\r\n break;\r\n }\r\n } // next\r\n\r\n return sEscaped.toString();\r\n }", "public final String urlEncode(String encoding) {\n\n\t\tfinal StringBuilder out = new StringBuilder();\n\n\t\ttry {\n\t\t\turlEncode(out, encoding);\n\t\t} catch (IOException e) {\n\t\t\tnew IllegalStateException(e);// Should never happen.\n\t\t}\n\n\t\treturn out.toString();\n\t}", "public static String urlEncode(String inText)\n {\n try\n {\n return URLEncoder.encode(inText, \"UTF-8\");\n }\n catch(java.io.UnsupportedEncodingException e)\n {\n Log.error(\"invalid encoding for url encoding: \" + e);\n\n return \"error\";\n }\n }", "private byte[] encodeParameters(Map<String, String> params, String paramsEncoding) {\n StringBuilder encodedParams = new StringBuilder();\n try {\n for (Map.Entry<String, String> entry : params.entrySet()) {\n encodedParams.append(URLEncoder.encode(entry.getKey(), paramsEncoding));\n encodedParams.append('=');\n encodedParams.append(URLEncoder.encode(entry.getValue(), paramsEncoding));\n encodedParams.append('&');\n }\n return encodedParams.toString().getBytes(paramsEncoding);\n } catch (UnsupportedEncodingException uee) {\n throw new RuntimeException(\"Encoding not supported: \" + paramsEncoding, uee);\n }\n }", "private byte[] encodeParameters(Map<String, String> params, String paramsEncoding) {\n StringBuilder encodedParams = new StringBuilder();\n try {\n for (Map.Entry<String, String> entry : params.entrySet()) {\n encodedParams.append(URLEncoder.encode(entry.getKey(), paramsEncoding));\n encodedParams.append('=');\n encodedParams.append(URLEncoder.encode(entry.getValue(), paramsEncoding));\n encodedParams.append('&');\n }\n return encodedParams.toString().getBytes(paramsEncoding);\n } catch (UnsupportedEncodingException uee) {\n throw new RuntimeException(\"Encoding not supported: \" + paramsEncoding, uee);\n }\n }", "public String getEncodedValue() throws UnsupportedEncodingException {\n return URLEncoder.encode(this.value, \"UTF-8\");\n }", "private String encode(String value) {\n String encoded = \"\";\n try {\n encoded = URLEncoder.encode(value, \"UTF-8\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n String sb = \"\";\n char focus;\n for (int i = 0; i < encoded.length(); i++) {\n focus = encoded.charAt(i);\n if (focus == '*') {\n sb += \"%2A\";\n } else if (focus == '+') {\n sb += \"%20\";\n } else if (focus == '%' && i + 1 < encoded.length() && encoded.charAt(i + 1) == '7' && encoded.charAt(i + 2) == 'E') {\n sb += '~';\n i += 2;\n } else {\n sb += focus;\n }\n }\n return sb.toString();\n }", "public static String encoderRequete(\r\n\t\t\tfinal String pYQL) throws UnsupportedEncodingException {\r\n\t\t\r\n\t\tfinal String uriEncodee = URLEncoder.encode(pYQL, \"UTF-8\");\r\n\t\t\r\n\t\treturn uriEncodee;\r\n\t\t\r\n\t}", "public static String encode(String argStr) {\r\n\t\tString result = argStr;\r\n\t\ttry {\r\n\t\t\tif (result != null && !result.isEmpty()) {\r\n\t\t\t\tresult = URLDecoder.decode(result, UTF_8);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// ignore\r\n\t\t}\r\n\t\tresult = encodeExplicit(result);\r\n\t\treturn result;\r\n\t}", "private String urlEncode(String str) {\n String charset = StandardCharsets.UTF_8.name();\n try {\n return URLEncoder.encode(str, charset);\n } catch (UnsupportedEncodingException e) {\n JrawUtils.logger().error(\"Unsupported charset: \" + charset);\n return null;\n }\n }", "static private String ToUrlEncoded(String word) {\n\t\tString urlStr = null;\n\t\ttry {\n\t\t\turlStr = URLEncoder.encode(word,CharSet);\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn urlStr;\n\t}", "private String collect() {\n final Map<String, String> encoded = new HashMap<>();\n\n synchronized (parameters) {\n parameters.forEach((key, value) -> {\n try {\n for (String v : value) {\n encoded.put(CodecUtils.urlEncode(key), CodecUtils.urlEncode(v));\n }\n } catch (UnsupportedEncodingException e) {\n /* ignore unsupported encoded parameters. */\n logger.error(\"Failed to encode request, parameters: {}\", parameters);\n }\n });\n }\n\n return encoded.entrySet().stream().sorted(this::compareParameter)\n .map(entry -> entry.getKey() + \"=\" + entry.getValue())\n .collect(Collectors.joining(\"&\"));\n }", "public String encodeURL(String input)\n\t{\n\t\tStringBuilder encodedString = new StringBuilder();\n\t\tfor(int i = 0; i < input.length(); i++)\n\t\t{\n\t\t\tchar c = input.charAt(i);\n\t\t\tboolean notEncoded = Character.isLetterOrDigit(c);\n\t\t\tif (notEncoded)\n\t\t\t\tencodedString.append(c);\n\t\t\telse\n\t\t\t{\n\t\t\t\tint value = (int) c;\n\t\t\t\tString hex = Integer.toHexString(value);\n\t\t\t\tencodedString.append(\"%\" + hex.toUpperCase());\n\t\t\t}\n\t\t}\n\t\treturn encodedString.toString();\n\t}", "public String encodeURL(String s) {\n\t\treturn null;\n\t}", "@Override\n public String encodeURL(String arg0) {\n return null;\n }", "public String encodeURL(String url) {\n return manager.encodeUrl(this, url);\n }", "public String encodeUrl(String s) {\n\t\treturn null;\n\t}", "@Override\n public String encodeURL(String url) {\n return this._getHttpServletResponse().encodeURL(url);\n }", "public String toUrlSafe() {\n// try {\n //todo: key encoder\n return Base64.getEncoder().encodeToString(new Gson().toJson(this).getBytes());\n// return URLEncoder.encode(\"\", UTF_8.name());\n// return URLEncoder.encode(TextFormat.printToString(toPb()), UTF_8.name());\n// } catch (UnsupportedEncodingException e) {\n// throw new IllegalStateException(\"Unexpected encoding exception\", e);\n// }\n }", "@Override\n public String encodeUrl(String arg0) {\n return null;\n }", "public static String URLEncode (String str) {\n\ttry {\n\t return java.net.URLEncoder.encode (str, \"UTF-8\");\n\t} catch (UnsupportedEncodingException e) {\n\t e.printStackTrace ();\n\t} \n\treturn str;\n }", "@Override\n @SuppressWarnings(\"all\")\n public String encodeUrl(String arg0) {\n\n return null;\n }", "public static String encode(String anyURI){\n int len = anyURI.length(), ch;\n StringBuffer buffer = new StringBuffer(len*3);\n \n // for each character in the anyURI\n int i = 0;\n for (; i < len; i++) {\n ch = anyURI.charAt(i);\n // if it's not an ASCII character, break here, and use UTF-8 encoding\n if (ch >= 128)\n break;\n if (gNeedEscaping[ch]) {\n buffer.append('%');\n buffer.append(gAfterEscaping1[ch]);\n buffer.append(gAfterEscaping2[ch]);\n }\n else {\n buffer.append((char)ch);\n }\n }\n \n // we saw some non-ascii character\n if (i < len) {\n // get UTF-8 bytes for the remaining sub-string\n byte[] bytes = null;\n byte b;\n try {\n bytes = anyURI.substring(i).getBytes(\"UTF-8\");\n } catch (java.io.UnsupportedEncodingException e) {\n // should never happen\n return anyURI;\n }\n len = bytes.length;\n \n // for each byte\n for (i = 0; i < len; i++) {\n b = bytes[i];\n // for non-ascii character: make it positive, then escape\n if (b < 0) {\n ch = b + 256;\n buffer.append('%');\n buffer.append(gHexChs[ch >> 4]);\n buffer.append(gHexChs[ch & 0xf]);\n }\n else if (gNeedEscaping[b]) {\n buffer.append('%');\n buffer.append(gAfterEscaping1[b]);\n buffer.append(gAfterEscaping2[b]);\n }\n else {\n buffer.append((char)b);\n }\n }\n }\n \n // If encoding happened, create a new string;\n // otherwise, return the orginal one.\n if (buffer.length() != len)\n return buffer.toString();\n else\n return anyURI;\n }", "@Override\n protected final String encode(String unencoded) {\n try {\n return StringUtils.isBlank(unencoded) ? \"\" : URLEncoder.encode(unencoded, \"UTF-8\");\n } catch (UnsupportedEncodingException ex) {\n java.util.logging.Logger.getLogger(PostRedirectGetWithCookiesFormHelperImpl.class.getName()).log(Level.SEVERE, null, ex);\n return unencoded;\n }\n }", "private String getQuery(List<NameValuePair> params) throws UnsupportedEncodingException\n {\n StringBuilder result = new StringBuilder();\n boolean first = true;\n\n for (NameValuePair pair : params)\n {\n if (first)\n first = false;\n else\n result.append(\"&\");\n\n result.append(URLEncoder.encode(pair.getName(), \"UTF-8\"));\n result.append(\"=\");\n result.append(URLEncoder.encode(pair.getValue(), \"UTF-8\"));\n }\n\n return result.toString();\n }", "@Override\n\tpublic CharSequence encodeURL(CharSequence url)\n\t{\n\t\tif (httpServletResponse != null && url != null)\n\t\t{\n\t\t\treturn httpServletResponse.encodeURL(url.toString());\n\t\t}\n\t\treturn url;\n\t}", "@Override\n\tpublic String encodeURL(String url) {\n\t\treturn null;\n\t}", "public static String encode(String str)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\treturn java.net.URLEncoder.encode(str, \"UTF-8\");\r\n\t\t}\r\n\t\tcatch(java.io.UnsupportedEncodingException ue)\r\n\t\t{\r\n\t\t\treturn str;\r\n\t\t}\r\n\t}", "String getQuery(HashMap<String, String> params) throws UnsupportedEncodingException {\n StringBuilder query=new StringBuilder();\n boolean first = true;\n for (Map.Entry<String, String> entry : params.entrySet()) {\n if (first)\n first=false;\n else\n query.append('&');\n\n String key=entry.getKey();\n Log.d(\"NetworkCall\",key);\n query.append(URLEncoder.encode(key, \"UTF-8\"));\n query.append(\"=\");\n query.append(URLEncoder.encode(entry.getValue(), \"UTF-8\"));\n }\n return query.toString();\n }", "private String encodeValue(final String dirtyValue) {\n String cleanValue = \"\";\n\n try {\n cleanValue = URLEncoder.encode(dirtyValue, StandardCharsets.UTF_8.name())\n .replace(\"+\", \"%20\");\n } catch (final UnsupportedEncodingException e) {\n }\n\n return cleanValue;\n }", "public static String URIencoding(String word) {\n\t\tString result = word;\n\t\tword = word.replace(\" \", \"_\");\n\t\ttry {\n\t\t\tresult = URLEncoder.encode(word, \"UTF-8\");\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}", "public String createQueryString() {\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\r\n\t\tSet<Map.Entry<String, Object>> set = queryParams.entrySet();\r\n\t\tEnumeration<Map.Entry<String, Object>> en = Collections.enumeration(set);\r\n\t\ttry\r\n\t\t{\r\n\t\t\twhile (en.hasMoreElements())\r\n\t\t\t{\r\n\t\t\t\tMap.Entry<String, Object> entry = en.nextElement();\r\n\t\t\t\tString key = entry.getKey();\r\n\t\t\t\tObject val = entry.getValue();\r\n\t\t\t\tif (val instanceof String)\r\n\t\t\t\t{\r\n\t\t\t\t\tString s = null;\r\n\t\t\t\t\ts = (String) val;\r\n\t\t\t\t\ts = URLEncoder.encode(s, \"US-ASCII\");\r\n\t\t\t\t\tsb.append(\"&\").append(key).append(\"=\").append(s);\r\n\t\t\t\t}\r\n\t\t\t\telse if (val instanceof String[])\r\n\t\t\t\t\tsb.append(\"&\").append(getNameValueString(key, (String[]) val));\r\n\t\t\t}\r\n\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t}\r\n\r\n\t\treturn sb.substring(1);\r\n\t}", "@Override\n\tpublic String encodeUrl(String url) {\n\t\treturn null;\n\t}", "static String uriEscapeString(String unescaped) {\n try {\n return URLEncoder.encode(unescaped, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n // This is fatal.\n throw new RuntimeException(e);\n }\n }", "private String composeParams(List<NameValuePair> params) {\n List<NameValuePair> baseParams = baseParams();\n if (params != null)\n baseParams.addAll(params);\n return \"?\" + URLEncodedUtils.format(baseParams, \"UTF-8\");\n }", "public static String getQuery(List<Pair<String, String>> params) throws UnsupportedEncodingException {\n StringBuilder result = new StringBuilder();\n boolean first = true;\n for (Pair pair : params) {\n if (first) {\n first = false;\n } else {\n result.append(\"&\");\n }\n result.append(URLEncoder.encode((String)pair.first, \"UTF-8\"));\n result.append(\"=\");\n result.append(URLEncoder.encode((String)pair.second, \"UTF-8\"));\n }\n\n return result.toString();\n }", "public static String encodeQuery(String query) {\n String retString;\n\n retString = replaceString(query, \"%\", \"%25\");\n retString = replaceString(retString, \" \", \"%20\");\n return retString;\n }", "public static String encodeURL(String url) {\n\n\t\tint len = url.length();\n\n\t\t// add a little (6.25%) to leave room for some expansion during encoding\n\t\tlen += len >>> 4;\n\n\t\treturn appendURL(new StringBuffer(len), url).toString();\n\t}", "public static String encodeQueryValue(String query) {\n String retString;\n\n retString = replaceString(query, \"%\", \"%25\");\n retString = replaceString(retString, \" \", \"%20\");\n retString = replaceString(retString, \"&\", \"%26\");\n retString = replaceString(retString, \"?\", \"%3F\");\n retString = replaceString(retString, \"=\", \"%3D\");\n return retString;\n }", "public static String encode(String s) {\n // return java.net.URLEncoder.encode(s);\n /*\n ** The only encoded chars are \"<>%=/\", chars < space and chars >= 127\n ** (including cr/lf, ...)\n ** A leading and/or trailing space is also encoded, all others are\n ** left alone\n **\n ** Encoding is %dd where dd are hex digits for the hex value encode\n **\n ** Check if needs encoding first, if not, simply return original string\n */\n char arr[] = s.toCharArray();\n int len = arr.length;\n for(int i=0; i < len; i++) {\n char ch = arr[i];\n if (ch < ' ' || ch > (char)127 || ch == '%' ||\n ch == '<' || ch == '>' || ch == '=' || \n ch == '/' || \n ((ch == ' ') && (i == 0 || i == len-1))) {\n \n StringBuffer sb = new StringBuffer();\n for(i=0; i < len; i++) {\n ch = arr[i];\n if (ch < ' ' || ch > (char)127 || ch == '%' ||\n ch == '<' || ch == '>' || ch == '=' || \n ch == '/' || \n ((ch == ' ') && (i == 0 || i == len-1))) {\n \n byte b = (byte)arr[i];\n sb.append('%');\n char c = Character.forDigit((b >> 4) & 0xf, 16);\n sb.append(c);\n c = Character.forDigit(b & 0xf, 16);\n sb.append(c);\n } else {\n sb.append(arr[i]);\n }\n }\n s = sb.toString();\n break;\n }\n }\n return s;\n }", "public static String urlEncode(String str) {\n try {\n return URLEncoder.encode(notNull(\"str\", str), \"UTF-8\");\n } catch (UnsupportedEncodingException ex) {\n return Exceptions.chuck(ex);\n }\n }", "private String queryBuilder(HashMap<String, String> data) throws UnsupportedEncodingException {\n if (data.isEmpty())\n return \"\";\n StringBuilder dataAsString = new StringBuilder();\n for (Entry<String, String> entry : data.entrySet()) {\n dataAsString.append(\"&\");\n dataAsString.append(URLEncoder.encode(entry.getKey(), \"UTF-8\"));\n dataAsString.append(\"=\");\n dataAsString.append(URLEncoder.encode(entry.getValue(), \"UTF-8\"));\n }\n return dataAsString.toString();\n }", "public static String encode(String toEncode)\n {\n return com.github.terefang.jldap.ldap.LDAPUrl.encode( toEncode);\n }", "private static String encodeURI(String url) {\n\t\tStringBuffer uri = new StringBuffer(url.length());\n\t\tint length = url.length();\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tchar c = url.charAt(i);\n\n\t\t\tswitch (c) {\n\t\t\t\tcase '!':\n\t\t\t\tcase '#':\n\t\t\t\tcase '$':\n\t\t\t\tcase '%':\n\t\t\t\tcase '&':\n\t\t\t\tcase '\\'':\n\t\t\t\tcase '(':\n\t\t\t\tcase ')':\n\t\t\t\tcase '*':\n\t\t\t\tcase '+':\n\t\t\t\tcase ',':\n\t\t\t\tcase '-':\n\t\t\t\tcase '.':\n\t\t\t\tcase '/':\n\t\t\t\tcase '0':\n\t\t\t\tcase '1':\n\t\t\t\tcase '2':\n\t\t\t\tcase '3':\n\t\t\t\tcase '4':\n\t\t\t\tcase '5':\n\t\t\t\tcase '6':\n\t\t\t\tcase '7':\n\t\t\t\tcase '8':\n\t\t\t\tcase '9':\n\t\t\t\tcase ':':\n\t\t\t\tcase ';':\n\t\t\t\tcase '=':\n\t\t\t\tcase '?':\n\t\t\t\tcase '@':\n\t\t\t\tcase 'A':\n\t\t\t\tcase 'B':\n\t\t\t\tcase 'C':\n\t\t\t\tcase 'D':\n\t\t\t\tcase 'E':\n\t\t\t\tcase 'F':\n\t\t\t\tcase 'G':\n\t\t\t\tcase 'H':\n\t\t\t\tcase 'I':\n\t\t\t\tcase 'J':\n\t\t\t\tcase 'K':\n\t\t\t\tcase 'L':\n\t\t\t\tcase 'M':\n\t\t\t\tcase 'N':\n\t\t\t\tcase 'O':\n\t\t\t\tcase 'P':\n\t\t\t\tcase 'Q':\n\t\t\t\tcase 'R':\n\t\t\t\tcase 'S':\n\t\t\t\tcase 'T':\n\t\t\t\tcase 'U':\n\t\t\t\tcase 'V':\n\t\t\t\tcase 'W':\n\t\t\t\tcase 'X':\n\t\t\t\tcase 'Y':\n\t\t\t\tcase 'Z':\n\t\t\t\tcase '[':\n\t\t\t\tcase ']':\n\t\t\t\tcase '_':\n\t\t\t\tcase 'a':\n\t\t\t\tcase 'b':\n\t\t\t\tcase 'c':\n\t\t\t\tcase 'd':\n\t\t\t\tcase 'e':\n\t\t\t\tcase 'f':\n\t\t\t\tcase 'g':\n\t\t\t\tcase 'h':\n\t\t\t\tcase 'i':\n\t\t\t\tcase 'j':\n\t\t\t\tcase 'k':\n\t\t\t\tcase 'l':\n\t\t\t\tcase 'm':\n\t\t\t\tcase 'n':\n\t\t\t\tcase 'o':\n\t\t\t\tcase 'p':\n\t\t\t\tcase 'q':\n\t\t\t\tcase 'r':\n\t\t\t\tcase 's':\n\t\t\t\tcase 't':\n\t\t\t\tcase 'u':\n\t\t\t\tcase 'v':\n\t\t\t\tcase 'w':\n\t\t\t\tcase 'x':\n\t\t\t\tcase 'y':\n\t\t\t\tcase 'z':\n\t\t\t\tcase '~':\n\t\t\t\t\turi.append(c);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tStringBuffer result = new StringBuffer(3);\n\t\t\t\t\tString s = String.valueOf(c);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tbyte[] data = s.getBytes(\"UTF8\");\n\t\t\t\t\t\tfor (int j = 0; j < data.length; j++) {\n\t\t\t\t\t\t\tresult.append('%');\n\t\t\t\t\t\t\tString hex = Integer.toHexString(data[j]);\n\t\t\t\t\t\t\tresult.append(hex.substring(hex.length() - 2));\n\t\t\t\t\t\t}\n\t\t\t\t\t\turi.append(result.toString());\n\t\t\t\t\t} catch (UnsupportedEncodingException ex) {\n\t\t\t\t\t\t// should never happen\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn uri.toString();\n\t}", "public String getQueryString() {\n // We use the encoding which should be used according to the HTTP spec, which is UTF-8\n return getQueryString(EncoderCache.URL_ARGUMENT_ENCODING);\n }", "public String getQueryString() {\n // We use the encoding which should be used according to the HTTP spec, which is UTF-8\n return getQueryString(EncoderCache.URL_ARGUMENT_ENCODING);\n }", "public static String encode(String in){\n in = in.replace(\"&\", \"&amp;\");\n in = in.replace(\"\\\"\", \"&quot;\");\n in = in.replace(\"<\", \"&lt;\");\n in = in.replace(\">\", \"&gt;\");\n log.debug(\"encoded string: \" + in);\n // FIXME: Consider double-encoding & if it is not part of &amp;\n return in;\n }", "java.lang.String getEncoded();", "private String encodeValue(String value) {\r\n try {\r\n return URLEncoder.encode(value, \"UTF8\");\r\n } catch (UnsupportedEncodingException e) {\r\n // it should not occur since UTF8 should be supported universally\r\n throw new ExcelWrapperException(\"UTF8 encoding is not supported : \" + e.getMessage());\r\n }\r\n }", "public static String encodeURL(String string) {\n\t\treturn Utils.encodeURL(string);\n\t}", "public static String mapToUtf8FormParam(Map<String, Object> map) {\n\n if (map == null)\n return null;\n\n StringBuilder builder = new StringBuilder();\n try {\n for (Map.Entry<String, Object> entry : map.entrySet()) {\n\n if (builder.length() > 0) {\n builder.append(\"&\");\n }\n\n Object value = entry.getValue();\n if (value instanceof String) {\n value = URLEncoder.encode((String) value, \"UTF-8\");\n }\n\n builder.append(String.format(\"%s=%s\", entry.getKey(), value));\n }\n\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n\n return builder.toString();\n }", "public byte[] encode(byte[] bytes) {\n/* 199 */ return encodeUrl(WWW_FORM_URL_SAFE, bytes);\n/* */ }", "String getParamsAsString();", "private String encodeURILikeJavascript(String s) {\n log.info(\"Entering encodeURILikeJavascript\");\n String result = null;\n\n try {\n result = URLEncoder.encode(s, \"UTF-8\")\n .replaceAll(\"\\\\+\", \"%20\")\n .replaceAll(\"\\\\%21\", \"!\")\n .replaceAll(\"\\\\%27\", \"'\")\n .replaceAll(\"\\\\%28\", \"(\")\n .replaceAll(\"\\\\%29\", \")\")\n .replaceAll(\"\\\\%7E\", \"~\");\n } catch (UnsupportedEncodingException e) {\n result = s;\n }\n\n return result;\n }", "public static String encode(String arg) {\n String encoded = Base64.getEncoder().encodeToString(arg.getBytes());\n\n return encoded;\n }", "public String encodeToUrlString() throws IOException {\n return encodeWritable(this);\n }", "private static String encodeurl(String url) \n { \n\n try { \n String prevURL=\"\"; \n String decodeURL=url; \n while(!prevURL.equals(decodeURL)) \n { \n prevURL=decodeURL; \n decodeURL=URLDecoder.decode( decodeURL, \"UTF-8\" ); \n } \n return decodeURL.replace('\\\\', '/'); \n } catch (UnsupportedEncodingException e) { \n return \"Issue while decoding\" +e.getMessage(); \n } \n }", "public static String percentEncode(String s) {\r\n\t\t//s = _percentEncode( s ); // the original method, from java.net\r\n\t\ts = encodeURL(s, \"UTF-8\");\r\n\t\treturn s;\r\n\t}", "public static String buildRequestString(Map<String, String> fieldMap,\n\t\t\tString encoding) throws UnsupportedEncodingException {\n\t\tString data = \"\";\n\t\tSet<Entry<String, String>> entrySet = fieldMap.entrySet();\n\t\tfor (Entry<String, String> entry : entrySet) {\n\t\t\tString colName = entry.getKey();\n\t\t\tString colValue = entry.getValue();\n\t\t\tif (encoding != null) {\n\t\t\t\tdata += colName + \"=\"\n\t\t\t\t\t\t+ URLEncoder.encode(colValue, encoding) + \"&\";\n\t\t\t} else {\n\t\t\t\tdata += colName + \"=\" + colValue + \"&\";\n\t\t\t}\n\t\t}\n\n\t\treturn data;\n\n\t}", "public String encode(String uri) {\n return uri;\n }", "public static String getUTF8String(String xml) {\n // A StringBuffer Object\n StringBuffer sb = new StringBuffer();\n sb.append(xml);\n String str = \"\";\n String strUTF8=\"\";\n try {\n str = new String(sb.toString().getBytes(\"utf-8\"));\n strUTF8 = URLEncoder.encode(str, \"utf-8\");\n } catch (UnsupportedEncodingException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n // return to String Formed\n return strUTF8;\n }", "private String generateQueryString(Map<String, String> args) {\n StringBuilder url = new StringBuilder();\n\n // Create the query string (?foo=bar&key1=val1\n url.append(\"?\");\n for (Iterator<Map.Entry<String, String>> it = args.entrySet().iterator(); it.hasNext(); ) {\n Map.Entry<String, String> entry = it.next();\n\n url.append(urlEncode(entry.getKey()));\n url.append(\"=\");\n url.append(urlEncode(entry.getValue()));\n if (it.hasNext()) {\n // More parameters are coming, add a separator\n url.append(\"&\");\n }\n }\n\n return url.toString();\n }", "public String generateQueryParams() {\n if (petition.getParamsMap().entrySet().size() == 0)\n return \"\";\n else {\n boolean first = true;\n StringBuffer queryParams = new StringBuffer(\"?\");\n Iterator<Map.Entry<String, String>> it = petition.getParamsMap()\n .entrySet().iterator();\n // just iterate the map and fill the httpParams with its content\n while (it.hasNext()) {\n if (!first)\n queryParams.append(\"&\");\n else\n first = false;\n Map.Entry<String, String> e = (Entry<String, String>) it.next();\n String key = URLEncoder.encode(e.getKey());\n String value = URLEncoder.encode(e.getValue());\n queryParams.append(String.format(\"%s=%s\", key, value));\n\n }\n return queryParams.toString();\n }\n }", "public static String getRequestParamString(Map<String, String> param) {\n if (MapUtils.isEmpty(param)) {\n return \"\";\n }\n StringBuilder sb = new StringBuilder(1024);\n SortedMap<String, String> map = new TreeMap<>(param);\n for (Map.Entry<String, String> entry : map.entrySet()) {\n String key = entry.getKey();\n String value = StringUtils.isBlank(entry.getValue()) ? \"\" : entry.getValue();\n sb.append(key).append('=').append(urlEncode(value)).append('&');\n }\n sb.deleteCharAt(sb.length() - 1);\n return sb.toString();\n }", "public String getEncodedName() throws UnsupportedEncodingException {\n return URLEncoder.encode(this.name, \"UTF-8\");\n }", "public String encode_dados_acesso(){\n\n String result = \"\";\n\n try {\n String iddispositivo = Settings.Secure.getString(myContext.getContentResolver(), Settings.Secure.ANDROID_ID);\n\n Uri.Builder builder = new Uri.Builder()\n .appendQueryParameter(TAG_IDDIUSPOSITIVO, iddispositivo)\n //.appendQueryParameter(TAG_EMAIL, v_email)\n //.appendQueryParameter(TAG_SENHA, v_senha)\n .appendQueryParameter(TAG_TEXTO, vTexto);\n\n result = builder.build().getEncodedQuery();\n Log.d(\"workshop encode:\",result);\n\n } catch (Exception e) {\n //Log.d(\"InputStream\", e.getLocalizedMessage());\n }\n\n // 11. return result\n return result;\n }", "public String encode_dados_acesso(){\n\n String result = \"\";\n\n try {\n String iddispositivo = Settings.Secure.getString(myContext.getContentResolver(), Settings.Secure.ANDROID_ID);\n\n Uri.Builder builder = new Uri.Builder()\n .appendQueryParameter(TAG_IDDIUSPOSITIVO, iddispositivo)\n //.appendQueryParameter(TAG_EMAIL, v_email)\n //.appendQueryParameter(TAG_SENHA, v_senha)\n .appendQueryParameter(TAG_TEXTO, vTexto);\n\n result = builder.build().getEncodedQuery();\n Log.d(\"workshop encode:\",result);\n\n } catch (Exception e) {\n //Log.d(\"InputStream\", e.getLocalizedMessage());\n }\n\n // 11. return result\n return result;\n }", "public String getQueryParamsAsString() {\n\t\tStringBuffer params = new StringBuffer(30);\n\t\tString key, value;\n\t\tfor (Iterator it = validQueryParams.keySet().iterator(); it.hasNext();) {\n\t\t\tkey = (String) it.next();\n\t\t\tvalue = (String) validQueryParams.get(key);\n\t\t\tparams.append(key).append(\"=\").append(value);\n//\t\t\tif (it.hasNext()) {\n\t\t\t\tparams.append(\"&\");\n//\t\t\t}\n\t\t}\n\t\t// add extral value(used in web page)\n\t\tparams.append(\"hasQueried=true\");\n\t\treturn params.toString();\n\t}", "private static void appendParams( StringBuilder param, String key, String val ) \n\t{\n\t\tif ( val != null && val.length() > 0 )\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tparam.append( \"&\" ).append( URLEncoder.encode( key, \"UTF-8\" ) )\n\t\t\t\t\t .append( \"=\" ).append( URLEncoder.encode( val, \"UTF-8\" ) );\n\t\t\t}\n\t\t\tcatch (UnsupportedEncodingException e)\n\t\t\t{\n\t\t\t\tLog.e( AdManager.LOG, \"UTF-8 encoding is not supported on this device. Ad requests are impossible.\", e );\n\t\t\t}\n\t\t}\n\t}", "public static String encodeURI(String string) {\n\t\treturn Utils.encodeURI(string);\n\t}", "public String getQueryString(String contentEncoding) {\n \n CollectionProperty arguments = getArguments().getArguments();\n // Optimisation : avoid building useless objects if empty arguments\n if(arguments.size() == 0) {\n return \"\";\n }\n \n // Check if the sampler has a specified content encoding\n if (JOrphanUtils.isBlank(contentEncoding)) {\n // We use the encoding which should be used according to the HTTP spec, which is UTF-8\n contentEncoding = EncoderCache.URL_ARGUMENT_ENCODING;\n }\n \n StringBuilder buf = new StringBuilder(arguments.size() * 15);\n PropertyIterator iter = arguments.iterator();\n boolean first = true;\n while (iter.hasNext()) {\n HTTPArgument item = null;\n /*\n * N.B. Revision 323346 introduced the ClassCast check, but then used iter.next()\n * to fetch the item to be cast, thus skipping the element that did not cast.\n * Reverted to work more like the original code, but with the check in place.\n * Added a warning message so can track whether it is necessary\n */\n Object objectValue = iter.next().getObjectValue();\n try {\n item = (HTTPArgument) objectValue;\n } catch (ClassCastException e) {\n log.warn(\"Unexpected argument type: \" + objectValue.getClass().getName());\n item = new HTTPArgument((Argument) objectValue);\n }\n final String encodedName = item.getEncodedName();\n if (encodedName.length() == 0) {\n continue; // Skip parameters with a blank name (allows use of optional variables in parameter lists)\n }\n if (!first) {\n buf.append(QRY_SEP);\n } else {\n first = false;\n }\n buf.append(encodedName);\n if (item.getMetaData() == null) {\n buf.append(ARG_VAL_SEP);\n } else {\n buf.append(item.getMetaData());\n }\n \n // Encode the parameter value in the specified content encoding\n try {\n buf.append(item.getEncodedValue(contentEncoding));\n } catch(UnsupportedEncodingException e) {\n log.warn(\"Unable to encode parameter in encoding \" + contentEncoding + \", parameter value not included in query string\");\n }\n }\n return buf.toString();\n }", "public String getEncodedPath(boolean shouldAddParameters) {\n StringBuilder completeUrlBuilder = new StringBuilder();\n completeUrlBuilder.append(getBaseEndpointPath());\n completeUrlBuilder.append(path);\n if (shouldAddParameters && requestType == HttpRequest.NetworkOperationType.GET && parameters != null) {\n boolean first = true;\n for (String key : parameters.keySet()) {\n if (first) {\n first = false;\n completeUrlBuilder.append(\"?\");\n } else {\n completeUrlBuilder.append(\"&\");\n }\n completeUrlBuilder.append(key).append(\"=\").append(parameters.get(key));\n }\n }\n return completeUrlBuilder.toString().replace(getBaseEndpoint(), \"\");\n }", "public static String uriEncodeParts(final String value) {\n if (Strings.isNullOrEmpty(value)) {\n return value;\n }\n final int length = value.length();\n final StringBuilder builder = new StringBuilder(length << 1);\n for (int i = 0; i < length; i++) {\n final char c = value.charAt(i);\n if (CharMatcher.ASCII.matches(c)) {\n builder.append(String.valueOf(c));\n } else {\n builder.append(encodeCharacter(c));\n }\n }\n return builder.toString();\n }", "protected native String encodeURIComponent(String text) /*-{\r\n\t\treturn encodeURIComponent(text);\r\n\t}-*/;", "private String encodeUri(String uri) {\n\t\t\tString newUri = \"\";\n\t\t\tStringTokenizer st = new StringTokenizer(uri, \"/ \", true);\n\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\tString tok = st.nextToken();\n\t\t\t\tif (\"/\".equals(tok)) {\n\t\t\t\t\tnewUri += \"/\";\n\t\t\t\t} else if (\" \".equals(tok)) {\n\t\t\t\t\tnewUri += \"%20\";\n\t\t\t\t} else {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tnewUri += URLEncoder.encode(tok, \"UTF-8\");\n\t\t\t\t\t} catch (UnsupportedEncodingException ignored) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn newUri;\n\t\t}", "private String getQuery(ArrayList<NameValuePair> params) throws Exception\n\t{\n\t StringBuilder keyvalpair = new StringBuilder();\n\t boolean firstparam = true;\n\t for (NameValuePair pair : params)\n\t {\n\t if (!firstparam) {\n\t \tkeyvalpair.append(\"&\");\n\t }\n\t else {\n\t firstparam = false;\n\t }\n\t keyvalpair.append(URLEncoder.encode(pair.getName(), \"UTF-8\"));\n\t keyvalpair.append(\"=\");\n\t keyvalpair.append(URLEncoder.encode(pair.getValue(), \"UTF-8\"));\n\t }\n\n\t return keyvalpair.toString();\n\t}", "public String toString(boolean encode) {\n StringBuilder url = new StringBuilder();\n boolean addSlash = true;\n\n //Protocol\n url.append(super.getProtocol());\n\n //Media-Type\n if(mediaType != null){\n url.append(mediaType);\n }\n\n //Base64\n if(base64){\n url.append(\";base64\");\n }\n\n //Data\n //# Throw an error if the data is null or empty\n if(data == null || data.isEmpty())\n throw new URLBuildException(\"Data is null or empty. Data must be set to build a data url.\");\n\n String dataPrepared = data;\n\n if(base64)\n dataPrepared = Base64.getEncoder().encodeToString(dataPrepared.getBytes());\n\n if(encode && !base64)\n dataPrepared = encode(dataPrepared);\n\n url.append(\",\").append(dataPrepared);\n\n return url.toString();\n }", "protected String toExternalForm(URL paramURL) {\n/* 483 */ int i = paramURL.getProtocol().length() + 1;\n/* 484 */ if (paramURL.getAuthority() != null && paramURL.getAuthority().length() > 0)\n/* 485 */ i += 2 + paramURL.getAuthority().length(); \n/* 486 */ if (paramURL.getPath() != null) {\n/* 487 */ i += paramURL.getPath().length();\n/* */ }\n/* 489 */ if (paramURL.getQuery() != null) {\n/* 490 */ i += 1 + paramURL.getQuery().length();\n/* */ }\n/* 492 */ if (paramURL.getRef() != null) {\n/* 493 */ i += 1 + paramURL.getRef().length();\n/* */ }\n/* 495 */ StringBuffer stringBuffer = new StringBuffer(i);\n/* 496 */ stringBuffer.append(paramURL.getProtocol());\n/* 497 */ stringBuffer.append(\":\");\n/* 498 */ if (paramURL.getAuthority() != null && paramURL.getAuthority().length() > 0) {\n/* 499 */ stringBuffer.append(\"//\");\n/* 500 */ stringBuffer.append(paramURL.getAuthority());\n/* */ } \n/* 502 */ if (paramURL.getPath() != null) {\n/* 503 */ stringBuffer.append(paramURL.getPath());\n/* */ }\n/* 505 */ if (paramURL.getQuery() != null) {\n/* 506 */ stringBuffer.append('?');\n/* 507 */ stringBuffer.append(paramURL.getQuery());\n/* */ } \n/* 509 */ if (paramURL.getRef() != null) {\n/* 510 */ stringBuffer.append(\"#\");\n/* 511 */ stringBuffer.append(paramURL.getRef());\n/* */ } \n/* 513 */ return stringBuffer.toString();\n/* */ }", "public String getParameters() {\n String parameters = \"\";\n try {\n String firstParameter = \"username=\" + URLEncoder.encode(username, \"UTF-8\");\n String secondParameter = \"password=\" + URLEncoder.encode(password, \"UTF-8\");\n String thirdParameter = \"grant_type=\" + URLEncoder.encode(\"password\", \"UTF-8\");\n parameters = firstParameter + \"&&\" + secondParameter + \"&&\" + thirdParameter;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return parameters;\n }", "public String getQueryString(String contentEncoding) {\n // Check if the sampler has a specified content encoding\n if(JOrphanUtils.isBlank(contentEncoding)) {\n // We use the encoding which should be used according to the HTTP spec, which is UTF-8\n contentEncoding = EncoderCache.URL_ARGUMENT_ENCODING;\n }\n StringBuilder buf = new StringBuilder();\n PropertyIterator iter = getArguments().iterator();\n boolean first = true;\n while (iter.hasNext()) {\n HTTPArgument item = null;\n /*\n * N.B. Revision 323346 introduced the ClassCast check, but then used iter.next()\n * to fetch the item to be cast, thus skipping the element that did not cast.\n * Reverted to work more like the original code, but with the check in place.\n * Added a warning message so can track whether it is necessary\n */\n Object objectValue = iter.next().getObjectValue();\n try {\n item = (HTTPArgument) objectValue;\n } catch (ClassCastException e) {\n log.warn(\"Unexpected argument type: \"+objectValue.getClass().getName());\n item = new HTTPArgument((Argument) objectValue);\n }\n final String encodedName = item.getEncodedName();\n if (encodedName.length() == 0) {\n continue; // Skip parameters with a blank name (allows use of optional variables in parameter lists)\n }\n if (!first) {\n buf.append(QRY_SEP);\n } else {\n first = false;\n }\n buf.append(encodedName);\n if (item.getMetaData() == null) {\n buf.append(ARG_VAL_SEP);\n } else {\n buf.append(item.getMetaData());\n }\n \n // Encode the parameter value in the specified content encoding\n try {\n buf.append(item.getEncodedValue(contentEncoding));\n }\n catch(UnsupportedEncodingException e) {\n log.warn(\"Unable to encode parameter in encoding \" + contentEncoding + \", parameter value not included in query string\");\n }\n }\n return buf.toString();\n }", "public static String getUTF8XMLString(String xml) {\r\n\t\tString xmlUTF8 = \"\";\r\n\t\ttry {\r\n\t\t\txmlUTF8 = URLEncoder.encode(xml, \"utf-8\");\r\n\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn xmlUTF8;\r\n\t}", "public static void main(String[] args) {\n String urlStr = URLEncoder.encode(\"疯狂动物城\");\n System.out.println(urlStr);\n String decoder = URLDecoder.decode(urlStr);\n System.out.println(decoder);\n }", "protected String createQueryString(List<Param> params, Set<String> usedParams, boolean includeQueryStringDelimiter)\n\t\t\tthrows JspException {\n\n\t\tString encoding = this.pageContext.getResponse().getCharacterEncoding();\n\t\tStringBuilder qs = new StringBuilder();\n\t\tfor (Param param : params) {\n\t\t\tif (!usedParams.contains(param.getName()) && StringUtils.hasLength(param.getName())) {\n\t\t\t\tif (includeQueryStringDelimiter && qs.length() == 0) {\n\t\t\t\t\tqs.append('?');\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tqs.append('&');\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tqs.append(UriUtils.encodeQueryParam(param.getName(), encoding));\n\t\t\t\t\tif (param.getValue() != null) {\n\t\t\t\t\t\tqs.append('=');\n\t\t\t\t\t\tqs.append(UriUtils.encodeQueryParam(param.getValue(), encoding));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (UnsupportedCharsetException ex) {\n\t\t\t\t\tthrow new JspException(ex);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn qs.toString();\n\t}", "String link(@SuppressWarnings(\"rawtypes\") Map params, String encoding);", "public abstract BridgeURL encodeBookmarkableURL(String baseURL, Map<String, List<String>> parameters);", "private String generateUrlParameters(HashMap<String, String> parameters) {\n\n\t\tString urlAttachment = \"?\";\n\n\t\tObject[] keys = parameters.keySet().toArray();\n\n\t\tfor(Object key : keys)\n\n\t\t\turlAttachment += key.toString() + \"=\" + parameters.get(key) + \"&\";\n\n\t\treturn urlAttachment;\n\t}", "public String encodeRedirectURL(String s) {\n\t\treturn null;\n\t}", "public static String utf8Encode(String str, String defultReturn) {\n if (!isEmpty(str) && str.getBytes().length != str.length()) {\n try {\n return URLEncoder.encode(str, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n return defultReturn;\n }\n }\n return str;\n }", "protected String getUrlFor(\n String method,\n String[] fields,\n Map<String,String> params\n ) throws UnsupportedEncodingException {\n if (APIBase.apiKey == null || APIBase.host == null) {\n throw new OpenCivicDataException(\"API key or API host not configured\");\n }\n\n if (fields != null && fields.length > 0) {\n params.put(\"fields\", TextUtils.join(\",\", fields));\n }\n\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"?apikey=\" + APIBase.apiKey);\n\n if (params != null) {\n for (Map.Entry<String, String> i : params.entrySet()) {\n stringBuilder.append(\"&\");\n stringBuilder.append(URLEncoder.encode(i.getKey(), \"UTF-8\"));\n stringBuilder.append(\"=\");\n stringBuilder.append(URLEncoder.encode(i.getValue(), \"UTF-8\"));\n }\n }\n\n return APIBase.host + \"/\" + method + \"/\" + stringBuilder.toString();\n }", "private String makeUrlFromInput(String bookQueryText) {\n\n // Replace white spaces with a + symbol to make it compatible to be used in the JSON\n // request URL\n bookQueryText.replaceAll(\" \", \"+\");\n\n StringBuilder urlBuilder = new StringBuilder();\n urlBuilder = urlBuilder.append(GBOOKS_REQUEST_URL_PART1)\n .append(bookQueryText)\n .append(GBOOKS_REQUEST_URL_PART2);\n\n // First encode into UTF-8, then back to a form easily processed by the API\n // This is mainly to avoid issues with spaces and other special characters in the URL\n String finalUrl = Uri.encode(urlBuilder.toString()).replaceAll(\"\\\\+\", \"%20\")\n .replaceAll(\"\\\\%21\", \"!\")\n .replaceAll(\"\\\\%3A\", \":\")\n .replaceAll(\"\\\\%2F\", \"/\")\n .replaceAll(\"\\\\%3F\", \"?\")\n .replaceAll(\"\\\\%26\", \"&\")\n .replaceAll(\"\\\\%3D\", \"=\")\n .replaceAll(\"\\\\%27\", \"'\")\n .replaceAll(\"\\\\%28\", \"(\")\n .replaceAll(\"\\\\%29\", \")\")\n .replaceAll(\"\\\\%20\", \"\\\\+\")\n .replaceAll(\"\\\\%7E\", \"~\");\n return finalUrl;\n }", "public static String buildUrlWithQueryString(String url, Map<String, String> queryParas) {\n if (queryParas == null || queryParas.isEmpty())\n return url;\n\n StringBuilder sb = new StringBuilder(url);\n boolean isFirst;\n if (url.indexOf(\"?\") == -1) {\n isFirst = true;\n sb.append(\"?\");\n }\n else {\n isFirst = false;\n }\n\n for (Map.Entry<String, String> entry : queryParas.entrySet()) {\n if (isFirst) isFirst = false;\n else sb.append(\"&\");\n\n String key = entry.getKey();\n String value = entry.getValue();\n if (StrKit.notBlank(value)) {\n try {\n value = URLEncoder.encode(value, CHARSET);\n } catch (UnsupportedEncodingException e) {\n throw new RuntimeException(e);\n }\n }\n sb.append(key).append(\"=\").append(value);\n }\n return sb.toString();\n }", "private String encode(String paramString, char[] paramArrayOfchar, MessageDigest paramMessageDigest) {\n/* */ try {\n/* 522 */ paramMessageDigest.update(paramString.getBytes(\"ISO-8859-1\"));\n/* 523 */ } catch (UnsupportedEncodingException unsupportedEncodingException) {\n/* */ assert false;\n/* */ } \n/* 526 */ if (paramArrayOfchar != null) {\n/* 527 */ byte[] arrayOfByte1 = new byte[paramArrayOfchar.length];\n/* 528 */ for (byte b1 = 0; b1 < paramArrayOfchar.length; b1++)\n/* 529 */ arrayOfByte1[b1] = (byte)paramArrayOfchar[b1]; \n/* 530 */ paramMessageDigest.update(arrayOfByte1);\n/* 531 */ Arrays.fill(arrayOfByte1, (byte)0);\n/* */ } \n/* 533 */ byte[] arrayOfByte = paramMessageDigest.digest();\n/* */ \n/* 535 */ StringBuffer stringBuffer = new StringBuffer(arrayOfByte.length * 2);\n/* 536 */ for (byte b = 0; b < arrayOfByte.length; b++) {\n/* 537 */ int i = arrayOfByte[b] >>> 4 & 0xF;\n/* 538 */ stringBuffer.append(charArray[i]);\n/* 539 */ i = arrayOfByte[b] & 0xF;\n/* 540 */ stringBuffer.append(charArray[i]);\n/* */ } \n/* 542 */ return stringBuffer.toString();\n/* */ }" ]
[ "0.7212877", "0.71031547", "0.697972", "0.691885", "0.6807509", "0.6804508", "0.6734226", "0.6693952", "0.6600927", "0.6599474", "0.659694", "0.65756917", "0.65756917", "0.65655607", "0.6526326", "0.65157294", "0.65138274", "0.64993894", "0.64882684", "0.64824426", "0.6442986", "0.6436021", "0.643309", "0.64275104", "0.64142954", "0.64062613", "0.6401062", "0.6362719", "0.6348125", "0.63261336", "0.6316777", "0.63096946", "0.62984437", "0.6254626", "0.6237325", "0.6200408", "0.61858594", "0.616911", "0.6165457", "0.6150972", "0.6140496", "0.61327463", "0.6125626", "0.61098635", "0.6087828", "0.60845214", "0.6082387", "0.60711485", "0.6054854", "0.6041323", "0.60346264", "0.6030705", "0.59656775", "0.59656775", "0.59606516", "0.5950704", "0.59443957", "0.5924647", "0.5905015", "0.5891113", "0.5875769", "0.58665293", "0.5847591", "0.58463997", "0.5826833", "0.58239716", "0.5815176", "0.5802035", "0.57963717", "0.5773028", "0.5771412", "0.57530767", "0.5739425", "0.5725099", "0.5725099", "0.5719349", "0.5690685", "0.5684964", "0.56837076", "0.56599724", "0.5630441", "0.5626154", "0.5605188", "0.5598586", "0.5584245", "0.5573854", "0.55672383", "0.55664325", "0.55489504", "0.55454254", "0.55248785", "0.55056965", "0.55052537", "0.55040735", "0.54922664", "0.54894763", "0.54703236", "0.546876", "0.546067", "0.5459693" ]
0.7681317
0
URLencodes these parameters into a string.
public final String urlEncode(String encoding) { final StringBuilder out = new StringBuilder(); try { urlEncode(out, encoding); } catch (IOException e) { new IllegalStateException(e);// Should never happen. } return out.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final String urlEncode() {\n\t\treturn urlEncode(UTF_8);\n\t}", "public String toQueryUrl() {\n StringBuilder urlBuilder = new StringBuilder();\n Set<Map.Entry<String, Object>> entrySet = params.entrySet();\n int i = entrySet.size();\n for (Map.Entry<String, Object> entry : entrySet) {\n try {\n if (null != entry.getValue()) {\n urlBuilder.append(entry.getKey()).append('=')\n .append(URLEncoder.encode(String.valueOf(entry.getValue()), DEFAULT_ENC));\n if (i > 1) {\n urlBuilder.append('&');\n }\n }\n i--;\n } catch (UnsupportedEncodingException e) {\n throw new RuntimeException(e);\n }\n }\n \n return urlBuilder.toString();\n }", "private String buildUrlQueryString(final Collection<String> parameters) {\n\n // List to hold the encoded parameters\n final List<String> encodedParameters = new ArrayList<String>();\n\n for (final String parameter : parameters) {\n\n // Step #1 - break apart the parameter-pairs (because we don't want\n // to encode the \"=\" character)\n final String[] splitParameters = parameter.split(\"=\");\n\n // List to hold each individually encoded parameter item\n final List<String> encodedItems = new ArrayList<String>();\n for (final String item : splitParameters) {\n try {\n // Step #2 - encode each individual parameter item add the\n // encoded item to its corresponding list\n\n encodedItems.add(encodeValue(item));\n\n } catch (final Exception e) {\n // do nothing\n // because we are \"hard-coding\" the encoding type, there is\n // a 0% chance that this will fail.\n }\n\n }\n\n // Step #3 - reunite the previously separated parameter items and\n // add them to the corresponding list\n encodedParameters.add(StringUtils.join(encodedItems, \"=\"));\n }\n\n return StringUtils.join(encodedParameters, \"&\");\n }", "private String format(final Collection<Entry<String, String>> parameters, final String charset) throws UnsupportedEncodingException {\n final StringBuilder result = new StringBuilder();\n for (final Entry<String, String> parameter : parameters) {\n final String encodedName = URLEncoder.encode(parameter.getKey(), charset);\n final String encodedValue = StringUtils.isNotEmpty(parameter.getValue()) ? URLEncoder.encode(parameter.getValue(), charset) : null;\n if (result.length() > 0) {\n result.append(PARAMETER_SEPARATOR);\n }\n result.append(encodedName);\n if (encodedValue != null) {\n result.append(NAME_VALUE_SEPARATOR);\n result.append(encodedValue);\n }\n }\n return result.toString();\n }", "public abstract String toURLParam();", "private static String urlEncodeParameter(String parameter) throws UnsupportedEncodingException{\r\n\t\tint equal = parameter.indexOf(\"=\");\r\n\t\treturn urlEncode(parameter.substring(0, equal))+\"=\"+urlEncode(parameter.substring(equal+1));\r\n\t}", "private String collect() {\n final Map<String, String> encoded = new HashMap<>();\n\n synchronized (parameters) {\n parameters.forEach((key, value) -> {\n try {\n for (String v : value) {\n encoded.put(CodecUtils.urlEncode(key), CodecUtils.urlEncode(v));\n }\n } catch (UnsupportedEncodingException e) {\n /* ignore unsupported encoded parameters. */\n logger.error(\"Failed to encode request, parameters: {}\", parameters);\n }\n });\n }\n\n return encoded.entrySet().stream().sorted(this::compareParameter)\n .map(entry -> entry.getKey() + \"=\" + entry.getValue())\n .collect(Collectors.joining(\"&\"));\n }", "private static String urlEncode(String toEncode) throws UnsupportedEncodingException{\r\n\t\treturn URLEncoder.encode(toEncode, \"UTF-8\");\r\n\t}", "public String createQueryString() {\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\r\n\t\tSet<Map.Entry<String, Object>> set = queryParams.entrySet();\r\n\t\tEnumeration<Map.Entry<String, Object>> en = Collections.enumeration(set);\r\n\t\ttry\r\n\t\t{\r\n\t\t\twhile (en.hasMoreElements())\r\n\t\t\t{\r\n\t\t\t\tMap.Entry<String, Object> entry = en.nextElement();\r\n\t\t\t\tString key = entry.getKey();\r\n\t\t\t\tObject val = entry.getValue();\r\n\t\t\t\tif (val instanceof String)\r\n\t\t\t\t{\r\n\t\t\t\t\tString s = null;\r\n\t\t\t\t\ts = (String) val;\r\n\t\t\t\t\ts = URLEncoder.encode(s, \"US-ASCII\");\r\n\t\t\t\t\tsb.append(\"&\").append(key).append(\"=\").append(s);\r\n\t\t\t\t}\r\n\t\t\t\telse if (val instanceof String[])\r\n\t\t\t\t\tsb.append(\"&\").append(getNameValueString(key, (String[]) val));\r\n\t\t\t}\r\n\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t}\r\n\r\n\t\treturn sb.substring(1);\r\n\t}", "@Test\n public void encodeParameter() {\n assertEquals(\"abcABC123\", OAuth10.encodeParameter(\"abcABC123\"));\n assertEquals(\"-._~\", OAuth10.encodeParameter(\"-._~\"));\n assertEquals(\"%25\", OAuth10.encodeParameter(\"%\"));\n assertEquals(\"%2B\", OAuth10.encodeParameter(\"+\"));\n assertEquals(\"%26%3D%2A\", OAuth10.encodeParameter(\"&=*\"));\n assertEquals(\"%0A\", OAuth10.encodeParameter(\"\\n\"));\n assertEquals(\"%20\", OAuth10.encodeParameter(\"\\u0020\"));\n assertEquals(\"%7F\", OAuth10.encodeParameter(\"\\u007F\"));\n assertEquals(\"%C2%80\", OAuth10.encodeParameter(\"\\u0080\"));\n assertEquals(\"%E3%80%81\", OAuth10.encodeParameter(\"\\u3001\"));\n assertEquals(\"%C2%80\", OAuth10.encodeParameter(\"\\u0080\"));\n }", "private String composeParams(List<NameValuePair> params) {\n List<NameValuePair> baseParams = baseParams();\n if (params != null)\n baseParams.addAll(params);\n return \"?\" + URLEncodedUtils.format(baseParams, \"UTF-8\");\n }", "private String encode(String value) {\n String encoded = \"\";\n try {\n encoded = URLEncoder.encode(value, \"UTF-8\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n String sb = \"\";\n char focus;\n for (int i = 0; i < encoded.length(); i++) {\n focus = encoded.charAt(i);\n if (focus == '*') {\n sb += \"%2A\";\n } else if (focus == '+') {\n sb += \"%20\";\n } else if (focus == '%' && i + 1 < encoded.length() && encoded.charAt(i + 1) == '7' && encoded.charAt(i + 2) == 'E') {\n sb += '~';\n i += 2;\n } else {\n sb += focus;\n }\n }\n return sb.toString();\n }", "public abstract String encodeURL(CharSequence url);", "public String toUrlSafe() {\n// try {\n //todo: key encoder\n return Base64.getEncoder().encodeToString(new Gson().toJson(this).getBytes());\n// return URLEncoder.encode(\"\", UTF_8.name());\n// return URLEncoder.encode(TextFormat.printToString(toPb()), UTF_8.name());\n// } catch (UnsupportedEncodingException e) {\n// throw new IllegalStateException(\"Unexpected encoding exception\", e);\n// }\n }", "String getParamsAsString();", "private byte[] encodeParameters(Map<String, String> params, String paramsEncoding) {\n StringBuilder encodedParams = new StringBuilder();\n try {\n for (Map.Entry<String, String> entry : params.entrySet()) {\n encodedParams.append(URLEncoder.encode(entry.getKey(), paramsEncoding));\n encodedParams.append('=');\n encodedParams.append(URLEncoder.encode(entry.getValue(), paramsEncoding));\n encodedParams.append('&');\n }\n return encodedParams.toString().getBytes(paramsEncoding);\n } catch (UnsupportedEncodingException uee) {\n throw new RuntimeException(\"Encoding not supported: \" + paramsEncoding, uee);\n }\n }", "private byte[] encodeParameters(Map<String, String> params, String paramsEncoding) {\n StringBuilder encodedParams = new StringBuilder();\n try {\n for (Map.Entry<String, String> entry : params.entrySet()) {\n encodedParams.append(URLEncoder.encode(entry.getKey(), paramsEncoding));\n encodedParams.append('=');\n encodedParams.append(URLEncoder.encode(entry.getValue(), paramsEncoding));\n encodedParams.append('&');\n }\n return encodedParams.toString().getBytes(paramsEncoding);\n } catch (UnsupportedEncodingException uee) {\n throw new RuntimeException(\"Encoding not supported: \" + paramsEncoding, uee);\n }\n }", "private String getQuery(List<NameValuePair> params) throws UnsupportedEncodingException\n {\n StringBuilder result = new StringBuilder();\n boolean first = true;\n\n for (NameValuePair pair : params)\n {\n if (first)\n first = false;\n else\n result.append(\"&\");\n\n result.append(URLEncoder.encode(pair.getName(), \"UTF-8\"));\n result.append(\"=\");\n result.append(URLEncoder.encode(pair.getValue(), \"UTF-8\"));\n }\n\n return result.toString();\n }", "private String generateQueryString(Map<String, String> args) {\n StringBuilder url = new StringBuilder();\n\n // Create the query string (?foo=bar&key1=val1\n url.append(\"?\");\n for (Iterator<Map.Entry<String, String>> it = args.entrySet().iterator(); it.hasNext(); ) {\n Map.Entry<String, String> entry = it.next();\n\n url.append(urlEncode(entry.getKey()));\n url.append(\"=\");\n url.append(urlEncode(entry.getValue()));\n if (it.hasNext()) {\n // More parameters are coming, add a separator\n url.append(\"&\");\n }\n }\n\n return url.toString();\n }", "public String encodeURL(String input)\n\t{\n\t\tStringBuilder encodedString = new StringBuilder();\n\t\tfor(int i = 0; i < input.length(); i++)\n\t\t{\n\t\t\tchar c = input.charAt(i);\n\t\t\tboolean notEncoded = Character.isLetterOrDigit(c);\n\t\t\tif (notEncoded)\n\t\t\t\tencodedString.append(c);\n\t\t\telse\n\t\t\t{\n\t\t\t\tint value = (int) c;\n\t\t\t\tString hex = Integer.toHexString(value);\n\t\t\t\tencodedString.append(\"%\" + hex.toUpperCase());\n\t\t\t}\n\t\t}\n\t\treturn encodedString.toString();\n\t}", "public String toString(boolean encode) {\n StringBuilder url = new StringBuilder();\n boolean addSlash = true;\n\n //Protocol\n url.append(super.getProtocol());\n\n //Media-Type\n if(mediaType != null){\n url.append(mediaType);\n }\n\n //Base64\n if(base64){\n url.append(\";base64\");\n }\n\n //Data\n //# Throw an error if the data is null or empty\n if(data == null || data.isEmpty())\n throw new URLBuildException(\"Data is null or empty. Data must be set to build a data url.\");\n\n String dataPrepared = data;\n\n if(base64)\n dataPrepared = Base64.getEncoder().encodeToString(dataPrepared.getBytes());\n\n if(encode && !base64)\n dataPrepared = encode(dataPrepared);\n\n url.append(\",\").append(dataPrepared);\n\n return url.toString();\n }", "public static String encode(String argStr) {\r\n\t\tString result = argStr;\r\n\t\ttry {\r\n\t\t\tif (result != null && !result.isEmpty()) {\r\n\t\t\t\tresult = URLDecoder.decode(result, UTF_8);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// ignore\r\n\t\t}\r\n\t\tresult = encodeExplicit(result);\r\n\t\treturn result;\r\n\t}", "public String toString()\r\n {\r\n StringBuffer buffer = new StringBuffer(30);\r\n\r\n buffer.append(this.url);\r\n\r\n if (this.parameters.size() > 0)\r\n {\r\n buffer.append('?');\r\n Set parameterSet = this.parameters.entrySet();\r\n\r\n Iterator iterator = parameterSet.iterator();\r\n\r\n while (iterator.hasNext())\r\n {\r\n Map.Entry entry = (Map.Entry) iterator.next();\r\n\r\n Object key = entry.getKey();\r\n Object value = entry.getValue();\r\n\r\n if (value == null)\r\n {\r\n buffer.append(key).append('='); // no value\r\n }\r\n else if (value.getClass().isArray())\r\n {\r\n Object[] values = (Object[]) value;\r\n for (int i = 0; i < values.length; i++)\r\n {\r\n if (i > 0)\r\n {\r\n buffer.append(TagConstants.AMPERSAND);\r\n }\r\n\r\n buffer.append(key).append('=').append(values[i]);\r\n }\r\n }\r\n else\r\n {\r\n buffer.append(key).append('=').append(value);\r\n }\r\n\r\n if (iterator.hasNext())\r\n {\r\n buffer.append(TagConstants.AMPERSAND);\r\n }\r\n }\r\n }\r\n\r\n if (this.anchor != null)\r\n {\r\n buffer.append('#');\r\n buffer.append(this.anchor);\r\n }\r\n\r\n return buffer.toString();\r\n }", "public static String urlEncode(String inText)\n {\n try\n {\n return URLEncoder.encode(inText, \"UTF-8\");\n }\n catch(java.io.UnsupportedEncodingException e)\n {\n Log.error(\"invalid encoding for url encoding: \" + e);\n\n return \"error\";\n }\n }", "@Override\n public String encodeURL(String arg0) {\n return null;\n }", "public String encodeURL(String url) {\n return manager.encodeUrl(this, url);\n }", "@Override\n public String encodeUrl(String arg0) {\n return null;\n }", "public String generateQueryParams() {\n if (petition.getParamsMap().entrySet().size() == 0)\n return \"\";\n else {\n boolean first = true;\n StringBuffer queryParams = new StringBuffer(\"?\");\n Iterator<Map.Entry<String, String>> it = petition.getParamsMap()\n .entrySet().iterator();\n // just iterate the map and fill the httpParams with its content\n while (it.hasNext()) {\n if (!first)\n queryParams.append(\"&\");\n else\n first = false;\n Map.Entry<String, String> e = (Entry<String, String>) it.next();\n String key = URLEncoder.encode(e.getKey());\n String value = URLEncoder.encode(e.getValue());\n queryParams.append(String.format(\"%s=%s\", key, value));\n\n }\n return queryParams.toString();\n }\n }", "public String getQueryParamsAsString() {\n\t\tStringBuffer params = new StringBuffer(30);\n\t\tString key, value;\n\t\tfor (Iterator it = validQueryParams.keySet().iterator(); it.hasNext();) {\n\t\t\tkey = (String) it.next();\n\t\t\tvalue = (String) validQueryParams.get(key);\n\t\t\tparams.append(key).append(\"=\").append(value);\n//\t\t\tif (it.hasNext()) {\n\t\t\t\tparams.append(\"&\");\n//\t\t\t}\n\t\t}\n\t\t// add extral value(used in web page)\n\t\tparams.append(\"hasQueried=true\");\n\t\treturn params.toString();\n\t}", "@Override\n public String encodeURL(String url) {\n return this._getHttpServletResponse().encodeURL(url);\n }", "public static String encodeQuery(String query) {\n String retString;\n\n retString = replaceString(query, \"%\", \"%25\");\n retString = replaceString(retString, \" \", \"%20\");\n return retString;\n }", "public String encodeUrl(String s) {\n\t\treturn null;\n\t}", "public String getEncodedPath(boolean shouldAddParameters) {\n StringBuilder completeUrlBuilder = new StringBuilder();\n completeUrlBuilder.append(getBaseEndpointPath());\n completeUrlBuilder.append(path);\n if (shouldAddParameters && requestType == HttpRequest.NetworkOperationType.GET && parameters != null) {\n boolean first = true;\n for (String key : parameters.keySet()) {\n if (first) {\n first = false;\n completeUrlBuilder.append(\"?\");\n } else {\n completeUrlBuilder.append(\"&\");\n }\n completeUrlBuilder.append(key).append(\"=\").append(parameters.get(key));\n }\n }\n return completeUrlBuilder.toString().replace(getBaseEndpoint(), \"\");\n }", "public String encodeURL(String s) {\n\t\treturn null;\n\t}", "@Override\n @SuppressWarnings(\"all\")\n public String encodeUrl(String arg0) {\n\n return null;\n }", "private String encodeValue(final String dirtyValue) {\n String cleanValue = \"\";\n\n try {\n cleanValue = URLEncoder.encode(dirtyValue, StandardCharsets.UTF_8.name())\n .replace(\"+\", \"%20\");\n } catch (final UnsupportedEncodingException e) {\n }\n\n return cleanValue;\n }", "@Override\n\tpublic CharSequence encodeURL(CharSequence url)\n\t{\n\t\tif (httpServletResponse != null && url != null)\n\t\t{\n\t\t\treturn httpServletResponse.encodeURL(url.toString());\n\t\t}\n\t\treturn url;\n\t}", "private String URLEncode (String sStr) {\r\n if (sStr==null) return null;\r\n\r\n int iLen = sStr.length();\r\n StringBuffer sEscaped = new StringBuffer(iLen+100);\r\n char c;\r\n for (int p=0; p<iLen; p++) {\r\n c = sStr.charAt(p);\r\n switch (c) {\r\n case ' ':\r\n sEscaped.append(\"%20\");\r\n break;\r\n case '/':\r\n sEscaped.append(\"%2F\");\r\n break;\r\n case '\"':\r\n sEscaped.append(\"%22\");\r\n break;\r\n case '#':\r\n sEscaped.append(\"%23\");\r\n break;\r\n case '%':\r\n sEscaped.append(\"%25\");\r\n break;\r\n case '&':\r\n sEscaped.append(\"%26\");\r\n break;\r\n case (char)39:\r\n sEscaped.append(\"%27\");\r\n break;\r\n case '+':\r\n sEscaped.append(\"%2B\");\r\n break;\r\n case ',':\r\n sEscaped.append(\"%2C\");\r\n break;\r\n case '=':\r\n sEscaped.append(\"%3D\");\r\n break;\r\n case '?':\r\n sEscaped.append(\"%3F\");\r\n break;\r\n case 'á':\r\n sEscaped.append(\"%E1\");\r\n break;\r\n case 'é':\r\n sEscaped.append(\"%E9\");\r\n break;\r\n case 'í':\r\n sEscaped.append(\"%ED\");\r\n break;\r\n case 'ó':\r\n sEscaped.append(\"%F3\");\r\n break;\r\n case 'ú':\r\n sEscaped.append(\"%FA\");\r\n break;\r\n case 'Á':\r\n sEscaped.append(\"%C1\");\r\n break;\r\n case 'É':\r\n sEscaped.append(\"%C9\");\r\n break;\r\n case 'Í':\r\n sEscaped.append(\"%CD\");\r\n break;\r\n case 'Ó':\r\n sEscaped.append(\"%D3\");\r\n break;\r\n case 'Ú':\r\n sEscaped.append(\"%DA\");\r\n break;\r\n case 'à':\r\n sEscaped.append(\"%E0\");\r\n break;\r\n case 'è':\r\n sEscaped.append(\"%E8\");\r\n break;\r\n case 'ì':\r\n sEscaped.append(\"%EC\");\r\n break;\r\n case 'ò':\r\n sEscaped.append(\"%F2\");\r\n break;\r\n case 'ù':\r\n sEscaped.append(\"%F9\");\r\n break;\r\n case 'À':\r\n sEscaped.append(\"%C0\");\r\n break;\r\n case 'È':\r\n sEscaped.append(\"%C8\");\r\n break;\r\n case 'Ì':\r\n sEscaped.append(\"%CC\");\r\n break;\r\n case 'Ò':\r\n sEscaped.append(\"%D2\");\r\n break;\r\n case 'Ù':\r\n sEscaped.append(\"%D9\");\r\n break;\r\n case 'ñ':\r\n sEscaped.append(\"%F1\");\r\n break;\r\n case 'Ñ':\r\n sEscaped.append(\"%D1\");\r\n break;\r\n case 'ç':\r\n sEscaped.append(\"%E7\");\r\n break;\r\n case 'Ç':\r\n sEscaped.append(\"%C7\");\r\n break;\r\n case 'ô':\r\n sEscaped.append(\"%F4\");\r\n break;\r\n case 'Ô':\r\n sEscaped.append(\"%D4\");\r\n break;\r\n case 'ö':\r\n sEscaped.append(\"%F6\");\r\n break;\r\n case 'Ö':\r\n sEscaped.append(\"%D6\");\r\n break;\r\n case '`':\r\n sEscaped.append(\"%60\");\r\n break;\r\n case '¨':\r\n sEscaped.append(\"%A8\");\r\n break;\r\n default:\r\n sEscaped.append(c);\r\n break;\r\n }\r\n } // next\r\n\r\n return sEscaped.toString();\r\n }", "public static String encodeQueryValue(String query) {\n String retString;\n\n retString = replaceString(query, \"%\", \"%25\");\n retString = replaceString(retString, \" \", \"%20\");\n retString = replaceString(retString, \"&\", \"%26\");\n retString = replaceString(retString, \"?\", \"%3F\");\n retString = replaceString(retString, \"=\", \"%3D\");\n return retString;\n }", "String getQuery(HashMap<String, String> params) throws UnsupportedEncodingException {\n StringBuilder query=new StringBuilder();\n boolean first = true;\n for (Map.Entry<String, String> entry : params.entrySet()) {\n if (first)\n first=false;\n else\n query.append('&');\n\n String key=entry.getKey();\n Log.d(\"NetworkCall\",key);\n query.append(URLEncoder.encode(key, \"UTF-8\"));\n query.append(\"=\");\n query.append(URLEncoder.encode(entry.getValue(), \"UTF-8\"));\n }\n return query.toString();\n }", "static private String ToUrlEncoded(String word) {\n\t\tString urlStr = null;\n\t\ttry {\n\t\t\turlStr = URLEncoder.encode(word,CharSet);\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn urlStr;\n\t}", "@Override\r\n\tpublic java.lang.String toString()\r\n\t{\r\n\t\treturn \"appendParamToUrl\";\r\n\t}", "private String queryBuilder(HashMap<String, String> data) throws UnsupportedEncodingException {\n if (data.isEmpty())\n return \"\";\n StringBuilder dataAsString = new StringBuilder();\n for (Entry<String, String> entry : data.entrySet()) {\n dataAsString.append(\"&\");\n dataAsString.append(URLEncoder.encode(entry.getKey(), \"UTF-8\"));\n dataAsString.append(\"=\");\n dataAsString.append(URLEncoder.encode(entry.getValue(), \"UTF-8\"));\n }\n return dataAsString.toString();\n }", "public static String getQuery(List<Pair<String, String>> params) throws UnsupportedEncodingException {\n StringBuilder result = new StringBuilder();\n boolean first = true;\n for (Pair pair : params) {\n if (first) {\n first = false;\n } else {\n result.append(\"&\");\n }\n result.append(URLEncoder.encode((String)pair.first, \"UTF-8\"));\n result.append(\"=\");\n result.append(URLEncoder.encode((String)pair.second, \"UTF-8\"));\n }\n\n return result.toString();\n }", "private String generateUrlParameters(HashMap<String, String> parameters) {\n\n\t\tString urlAttachment = \"?\";\n\n\t\tObject[] keys = parameters.keySet().toArray();\n\n\t\tfor(Object key : keys)\n\n\t\t\turlAttachment += key.toString() + \"=\" + parameters.get(key) + \"&\";\n\n\t\treturn urlAttachment;\n\t}", "public String getEncodedValue() throws UnsupportedEncodingException {\n return URLEncoder.encode(this.value, \"UTF-8\");\n }", "private String urlEncode(String str) {\n String charset = StandardCharsets.UTF_8.name();\n try {\n return URLEncoder.encode(str, charset);\n } catch (UnsupportedEncodingException e) {\n JrawUtils.logger().error(\"Unsupported charset: \" + charset);\n return null;\n }\n }", "@Override\n protected final String encode(String unencoded) {\n try {\n return StringUtils.isBlank(unencoded) ? \"\" : URLEncoder.encode(unencoded, \"UTF-8\");\n } catch (UnsupportedEncodingException ex) {\n java.util.logging.Logger.getLogger(PostRedirectGetWithCookiesFormHelperImpl.class.getName()).log(Level.SEVERE, null, ex);\n return unencoded;\n }\n }", "public static String encoderRequete(\r\n\t\t\tfinal String pYQL) throws UnsupportedEncodingException {\r\n\t\t\r\n\t\tfinal String uriEncodee = URLEncoder.encode(pYQL, \"UTF-8\");\r\n\t\t\r\n\t\treturn uriEncodee;\r\n\t\t\r\n\t}", "@Override\n public String toString() {\n if (this.map.getMap().isEmpty()) return \"\";\n final StringBuilder param = new StringBuilder(this.map.getMap().size() * 40);\n for (final Map.Entry<String, String> entry: entrySet()) {\n param.append(MultiProtocolURL.escape(entry.getKey()))\n .append('=')\n .append(MultiProtocolURL.escape(entry.getValue()))\n .append('&');\n }\n param.setLength(param.length() - 1);\n return param.toString();\n }", "public static String encodeURL(String url) {\n\n\t\tint len = url.length();\n\n\t\t// add a little (6.25%) to leave room for some expansion during encoding\n\t\tlen += len >>> 4;\n\n\t\treturn appendURL(new StringBuffer(len), url).toString();\n\t}", "public static String encode(String anyURI){\n int len = anyURI.length(), ch;\n StringBuffer buffer = new StringBuffer(len*3);\n \n // for each character in the anyURI\n int i = 0;\n for (; i < len; i++) {\n ch = anyURI.charAt(i);\n // if it's not an ASCII character, break here, and use UTF-8 encoding\n if (ch >= 128)\n break;\n if (gNeedEscaping[ch]) {\n buffer.append('%');\n buffer.append(gAfterEscaping1[ch]);\n buffer.append(gAfterEscaping2[ch]);\n }\n else {\n buffer.append((char)ch);\n }\n }\n \n // we saw some non-ascii character\n if (i < len) {\n // get UTF-8 bytes for the remaining sub-string\n byte[] bytes = null;\n byte b;\n try {\n bytes = anyURI.substring(i).getBytes(\"UTF-8\");\n } catch (java.io.UnsupportedEncodingException e) {\n // should never happen\n return anyURI;\n }\n len = bytes.length;\n \n // for each byte\n for (i = 0; i < len; i++) {\n b = bytes[i];\n // for non-ascii character: make it positive, then escape\n if (b < 0) {\n ch = b + 256;\n buffer.append('%');\n buffer.append(gHexChs[ch >> 4]);\n buffer.append(gHexChs[ch & 0xf]);\n }\n else if (gNeedEscaping[b]) {\n buffer.append('%');\n buffer.append(gAfterEscaping1[b]);\n buffer.append(gAfterEscaping2[b]);\n }\n else {\n buffer.append((char)b);\n }\n }\n }\n \n // If encoding happened, create a new string;\n // otherwise, return the orginal one.\n if (buffer.length() != len)\n return buffer.toString();\n else\n return anyURI;\n }", "public static String URLEncode (String str) {\n\ttry {\n\t return java.net.URLEncoder.encode (str, \"UTF-8\");\n\t} catch (UnsupportedEncodingException e) {\n\t e.printStackTrace ();\n\t} \n\treturn str;\n }", "private String getQuery(ArrayList<NameValuePair> params) throws Exception\n\t{\n\t StringBuilder keyvalpair = new StringBuilder();\n\t boolean firstparam = true;\n\t for (NameValuePair pair : params)\n\t {\n\t if (!firstparam) {\n\t \tkeyvalpair.append(\"&\");\n\t }\n\t else {\n\t firstparam = false;\n\t }\n\t keyvalpair.append(URLEncoder.encode(pair.getName(), \"UTF-8\"));\n\t keyvalpair.append(\"=\");\n\t keyvalpair.append(URLEncoder.encode(pair.getValue(), \"UTF-8\"));\n\t }\n\n\t return keyvalpair.toString();\n\t}", "public static String urlEncode(String str) {\n try {\n return URLEncoder.encode(notNull(\"str\", str), \"UTF-8\");\n } catch (UnsupportedEncodingException ex) {\n return Exceptions.chuck(ex);\n }\n }", "public static String encode(String toEncode)\n {\n return com.github.terefang.jldap.ldap.LDAPUrl.encode( toEncode);\n }", "public static String encode(String s) {\n // return java.net.URLEncoder.encode(s);\n /*\n ** The only encoded chars are \"<>%=/\", chars < space and chars >= 127\n ** (including cr/lf, ...)\n ** A leading and/or trailing space is also encoded, all others are\n ** left alone\n **\n ** Encoding is %dd where dd are hex digits for the hex value encode\n **\n ** Check if needs encoding first, if not, simply return original string\n */\n char arr[] = s.toCharArray();\n int len = arr.length;\n for(int i=0; i < len; i++) {\n char ch = arr[i];\n if (ch < ' ' || ch > (char)127 || ch == '%' ||\n ch == '<' || ch == '>' || ch == '=' || \n ch == '/' || \n ((ch == ' ') && (i == 0 || i == len-1))) {\n \n StringBuffer sb = new StringBuffer();\n for(i=0; i < len; i++) {\n ch = arr[i];\n if (ch < ' ' || ch > (char)127 || ch == '%' ||\n ch == '<' || ch == '>' || ch == '=' || \n ch == '/' || \n ((ch == ' ') && (i == 0 || i == len-1))) {\n \n byte b = (byte)arr[i];\n sb.append('%');\n char c = Character.forDigit((b >> 4) & 0xf, 16);\n sb.append(c);\n c = Character.forDigit(b & 0xf, 16);\n sb.append(c);\n } else {\n sb.append(arr[i]);\n }\n }\n s = sb.toString();\n break;\n }\n }\n return s;\n }", "public abstract String paramsToString();", "@Override\n\tpublic String encodeURL(String url) {\n\t\treturn null;\n\t}", "public String encodeToUrlString() throws IOException {\n return encodeWritable(this);\n }", "public static String encode(String arg) {\n String encoded = Base64.getEncoder().encodeToString(arg.getBytes());\n\n return encoded;\n }", "private static String encodeURI(String url) {\n\t\tStringBuffer uri = new StringBuffer(url.length());\n\t\tint length = url.length();\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tchar c = url.charAt(i);\n\n\t\t\tswitch (c) {\n\t\t\t\tcase '!':\n\t\t\t\tcase '#':\n\t\t\t\tcase '$':\n\t\t\t\tcase '%':\n\t\t\t\tcase '&':\n\t\t\t\tcase '\\'':\n\t\t\t\tcase '(':\n\t\t\t\tcase ')':\n\t\t\t\tcase '*':\n\t\t\t\tcase '+':\n\t\t\t\tcase ',':\n\t\t\t\tcase '-':\n\t\t\t\tcase '.':\n\t\t\t\tcase '/':\n\t\t\t\tcase '0':\n\t\t\t\tcase '1':\n\t\t\t\tcase '2':\n\t\t\t\tcase '3':\n\t\t\t\tcase '4':\n\t\t\t\tcase '5':\n\t\t\t\tcase '6':\n\t\t\t\tcase '7':\n\t\t\t\tcase '8':\n\t\t\t\tcase '9':\n\t\t\t\tcase ':':\n\t\t\t\tcase ';':\n\t\t\t\tcase '=':\n\t\t\t\tcase '?':\n\t\t\t\tcase '@':\n\t\t\t\tcase 'A':\n\t\t\t\tcase 'B':\n\t\t\t\tcase 'C':\n\t\t\t\tcase 'D':\n\t\t\t\tcase 'E':\n\t\t\t\tcase 'F':\n\t\t\t\tcase 'G':\n\t\t\t\tcase 'H':\n\t\t\t\tcase 'I':\n\t\t\t\tcase 'J':\n\t\t\t\tcase 'K':\n\t\t\t\tcase 'L':\n\t\t\t\tcase 'M':\n\t\t\t\tcase 'N':\n\t\t\t\tcase 'O':\n\t\t\t\tcase 'P':\n\t\t\t\tcase 'Q':\n\t\t\t\tcase 'R':\n\t\t\t\tcase 'S':\n\t\t\t\tcase 'T':\n\t\t\t\tcase 'U':\n\t\t\t\tcase 'V':\n\t\t\t\tcase 'W':\n\t\t\t\tcase 'X':\n\t\t\t\tcase 'Y':\n\t\t\t\tcase 'Z':\n\t\t\t\tcase '[':\n\t\t\t\tcase ']':\n\t\t\t\tcase '_':\n\t\t\t\tcase 'a':\n\t\t\t\tcase 'b':\n\t\t\t\tcase 'c':\n\t\t\t\tcase 'd':\n\t\t\t\tcase 'e':\n\t\t\t\tcase 'f':\n\t\t\t\tcase 'g':\n\t\t\t\tcase 'h':\n\t\t\t\tcase 'i':\n\t\t\t\tcase 'j':\n\t\t\t\tcase 'k':\n\t\t\t\tcase 'l':\n\t\t\t\tcase 'm':\n\t\t\t\tcase 'n':\n\t\t\t\tcase 'o':\n\t\t\t\tcase 'p':\n\t\t\t\tcase 'q':\n\t\t\t\tcase 'r':\n\t\t\t\tcase 's':\n\t\t\t\tcase 't':\n\t\t\t\tcase 'u':\n\t\t\t\tcase 'v':\n\t\t\t\tcase 'w':\n\t\t\t\tcase 'x':\n\t\t\t\tcase 'y':\n\t\t\t\tcase 'z':\n\t\t\t\tcase '~':\n\t\t\t\t\turi.append(c);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tStringBuffer result = new StringBuffer(3);\n\t\t\t\t\tString s = String.valueOf(c);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tbyte[] data = s.getBytes(\"UTF8\");\n\t\t\t\t\t\tfor (int j = 0; j < data.length; j++) {\n\t\t\t\t\t\t\tresult.append('%');\n\t\t\t\t\t\t\tString hex = Integer.toHexString(data[j]);\n\t\t\t\t\t\t\tresult.append(hex.substring(hex.length() - 2));\n\t\t\t\t\t\t}\n\t\t\t\t\t\turi.append(result.toString());\n\t\t\t\t\t} catch (UnsupportedEncodingException ex) {\n\t\t\t\t\t\t// should never happen\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn uri.toString();\n\t}", "public String encode_dados_acesso(){\n\n String result = \"\";\n\n try {\n String iddispositivo = Settings.Secure.getString(myContext.getContentResolver(), Settings.Secure.ANDROID_ID);\n\n Uri.Builder builder = new Uri.Builder()\n .appendQueryParameter(TAG_IDDIUSPOSITIVO, iddispositivo)\n //.appendQueryParameter(TAG_EMAIL, v_email)\n //.appendQueryParameter(TAG_SENHA, v_senha)\n .appendQueryParameter(TAG_TEXTO, vTexto);\n\n result = builder.build().getEncodedQuery();\n Log.d(\"workshop encode:\",result);\n\n } catch (Exception e) {\n //Log.d(\"InputStream\", e.getLocalizedMessage());\n }\n\n // 11. return result\n return result;\n }", "public String encode_dados_acesso(){\n\n String result = \"\";\n\n try {\n String iddispositivo = Settings.Secure.getString(myContext.getContentResolver(), Settings.Secure.ANDROID_ID);\n\n Uri.Builder builder = new Uri.Builder()\n .appendQueryParameter(TAG_IDDIUSPOSITIVO, iddispositivo)\n //.appendQueryParameter(TAG_EMAIL, v_email)\n //.appendQueryParameter(TAG_SENHA, v_senha)\n .appendQueryParameter(TAG_TEXTO, vTexto);\n\n result = builder.build().getEncodedQuery();\n Log.d(\"workshop encode:\",result);\n\n } catch (Exception e) {\n //Log.d(\"InputStream\", e.getLocalizedMessage());\n }\n\n // 11. return result\n return result;\n }", "@Override\n\tpublic String encodeUrl(String url) {\n\t\treturn null;\n\t}", "public static String encode(String str)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\treturn java.net.URLEncoder.encode(str, \"UTF-8\");\r\n\t\t}\r\n\t\tcatch(java.io.UnsupportedEncodingException ue)\r\n\t\t{\r\n\t\t\treturn str;\r\n\t\t}\r\n\t}", "public static String buildUrlWithQueryString(String url, Map<String, String> queryParas) {\n if (queryParas == null || queryParas.isEmpty())\n return url;\n\n StringBuilder sb = new StringBuilder(url);\n boolean isFirst;\n if (url.indexOf(\"?\") == -1) {\n isFirst = true;\n sb.append(\"?\");\n }\n else {\n isFirst = false;\n }\n\n for (Map.Entry<String, String> entry : queryParas.entrySet()) {\n if (isFirst) isFirst = false;\n else sb.append(\"&\");\n\n String key = entry.getKey();\n String value = entry.getValue();\n if (StrKit.notBlank(value)) {\n try {\n value = URLEncoder.encode(value, CHARSET);\n } catch (UnsupportedEncodingException e) {\n throw new RuntimeException(e);\n }\n }\n sb.append(key).append(\"=\").append(value);\n }\n return sb.toString();\n }", "public String encode(String uri) {\n return uri;\n }", "public String getParameters() {\n String parameters = \"\";\n try {\n String firstParameter = \"username=\" + URLEncoder.encode(username, \"UTF-8\");\n String secondParameter = \"password=\" + URLEncoder.encode(password, \"UTF-8\");\n String thirdParameter = \"grant_type=\" + URLEncoder.encode(\"password\", \"UTF-8\");\n parameters = firstParameter + \"&&\" + secondParameter + \"&&\" + thirdParameter;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return parameters;\n }", "static String uriEscapeString(String unescaped) {\n try {\n return URLEncoder.encode(unescaped, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n // This is fatal.\n throw new RuntimeException(e);\n }\n }", "public static String encode(String in){\n in = in.replace(\"&\", \"&amp;\");\n in = in.replace(\"\\\"\", \"&quot;\");\n in = in.replace(\"<\", \"&lt;\");\n in = in.replace(\">\", \"&gt;\");\n log.debug(\"encoded string: \" + in);\n // FIXME: Consider double-encoding & if it is not part of &amp;\n return in;\n }", "public byte[] encode(byte[] bytes) {\n/* 199 */ return encodeUrl(WWW_FORM_URL_SAFE, bytes);\n/* */ }", "private String encodeURILikeJavascript(String s) {\n log.info(\"Entering encodeURILikeJavascript\");\n String result = null;\n\n try {\n result = URLEncoder.encode(s, \"UTF-8\")\n .replaceAll(\"\\\\+\", \"%20\")\n .replaceAll(\"\\\\%21\", \"!\")\n .replaceAll(\"\\\\%27\", \"'\")\n .replaceAll(\"\\\\%28\", \"(\")\n .replaceAll(\"\\\\%29\", \")\")\n .replaceAll(\"\\\\%7E\", \"~\");\n } catch (UnsupportedEncodingException e) {\n result = s;\n }\n\n return result;\n }", "protected String formatHTTPURLParameters(HTTPFaxClientSpi faxClientSpi, FaxJob faxJob) {\n // get URL parameters\n String urlParametersTemplate = faxClientSpi.getHTTPURLParameters();\n\n // format URL parameters\n String urlParameters = SpiUtil.formatTemplate(urlParametersTemplate, faxJob, SpiUtil.URL_ENCODER, false, false);\n\n return urlParameters;\n }", "public static String getRequestParamString(Map<String, String> param) {\n if (MapUtils.isEmpty(param)) {\n return \"\";\n }\n StringBuilder sb = new StringBuilder(1024);\n SortedMap<String, String> map = new TreeMap<>(param);\n for (Map.Entry<String, String> entry : map.entrySet()) {\n String key = entry.getKey();\n String value = StringUtils.isBlank(entry.getValue()) ? \"\" : entry.getValue();\n sb.append(key).append('=').append(urlEncode(value)).append('&');\n }\n sb.deleteCharAt(sb.length() - 1);\n return sb.toString();\n }", "protected String createQueryString(List<Param> params, Set<String> usedParams, boolean includeQueryStringDelimiter)\n\t\t\tthrows JspException {\n\n\t\tString encoding = this.pageContext.getResponse().getCharacterEncoding();\n\t\tStringBuilder qs = new StringBuilder();\n\t\tfor (Param param : params) {\n\t\t\tif (!usedParams.contains(param.getName()) && StringUtils.hasLength(param.getName())) {\n\t\t\t\tif (includeQueryStringDelimiter && qs.length() == 0) {\n\t\t\t\t\tqs.append('?');\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tqs.append('&');\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tqs.append(UriUtils.encodeQueryParam(param.getName(), encoding));\n\t\t\t\t\tif (param.getValue() != null) {\n\t\t\t\t\t\tqs.append('=');\n\t\t\t\t\t\tqs.append(UriUtils.encodeQueryParam(param.getValue(), encoding));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (UnsupportedCharsetException ex) {\n\t\t\t\t\tthrow new JspException(ex);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn qs.toString();\n\t}", "java.lang.String getEncoded();", "public static String buildRequestString(Map<String, String> fieldMap,\n\t\t\tString encoding) throws UnsupportedEncodingException {\n\t\tString data = \"\";\n\t\tSet<Entry<String, String>> entrySet = fieldMap.entrySet();\n\t\tfor (Entry<String, String> entry : entrySet) {\n\t\t\tString colName = entry.getKey();\n\t\t\tString colValue = entry.getValue();\n\t\t\tif (encoding != null) {\n\t\t\t\tdata += colName + \"=\"\n\t\t\t\t\t\t+ URLEncoder.encode(colValue, encoding) + \"&\";\n\t\t\t} else {\n\t\t\t\tdata += colName + \"=\" + colValue + \"&\";\n\t\t\t}\n\t\t}\n\n\t\treturn data;\n\n\t}", "protected String toExternalForm(URL paramURL) {\n/* 483 */ int i = paramURL.getProtocol().length() + 1;\n/* 484 */ if (paramURL.getAuthority() != null && paramURL.getAuthority().length() > 0)\n/* 485 */ i += 2 + paramURL.getAuthority().length(); \n/* 486 */ if (paramURL.getPath() != null) {\n/* 487 */ i += paramURL.getPath().length();\n/* */ }\n/* 489 */ if (paramURL.getQuery() != null) {\n/* 490 */ i += 1 + paramURL.getQuery().length();\n/* */ }\n/* 492 */ if (paramURL.getRef() != null) {\n/* 493 */ i += 1 + paramURL.getRef().length();\n/* */ }\n/* 495 */ StringBuffer stringBuffer = new StringBuffer(i);\n/* 496 */ stringBuffer.append(paramURL.getProtocol());\n/* 497 */ stringBuffer.append(\":\");\n/* 498 */ if (paramURL.getAuthority() != null && paramURL.getAuthority().length() > 0) {\n/* 499 */ stringBuffer.append(\"//\");\n/* 500 */ stringBuffer.append(paramURL.getAuthority());\n/* */ } \n/* 502 */ if (paramURL.getPath() != null) {\n/* 503 */ stringBuffer.append(paramURL.getPath());\n/* */ }\n/* 505 */ if (paramURL.getQuery() != null) {\n/* 506 */ stringBuffer.append('?');\n/* 507 */ stringBuffer.append(paramURL.getQuery());\n/* */ } \n/* 509 */ if (paramURL.getRef() != null) {\n/* 510 */ stringBuffer.append(\"#\");\n/* 511 */ stringBuffer.append(paramURL.getRef());\n/* */ } \n/* 513 */ return stringBuffer.toString();\n/* */ }", "public abstract BridgeURL encodeBookmarkableURL(String baseURL, Map<String, List<String>> parameters);", "private static String buildUrlString(String base, Map<String, String> params) {\n if (params == null || params.isEmpty()) return API_URL + base;\n //construct get parameters list\n StringBuilder get = new StringBuilder();\n boolean first = true;\n for (String param : params.keySet()) {\n if (!first) get.append('&'); else first = false;\n //add the parameter\n get.append(param);\n String value = params.get(param);\n if (value != null) {\n get.append('=');\n get.append(value);\n }\n }\n //return the full string\n if (get.length() == 0) return API_URL + base;\n return API_URL + base + \"?\" + get.toString();\n }", "public String urlFormEncodeData(PostmanVariables var, List<PostmanUrlEncoded> formData) {\n\t\tString result = \"\";\n\t\tint i = 0;\n\t\tfor (PostmanUrlEncoded encoded : formData) {\n\t\t\tresult += encoded.key + \"=\" + URLEncoder.encode(var.replace(encoded.value));\n\t\t\tif (i < formData.size() - 1) {\n\t\t\t\tresult += \"&\";\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "protected String getUrlFor(\n String method,\n String[] fields,\n Map<String,String> params\n ) throws UnsupportedEncodingException {\n if (APIBase.apiKey == null || APIBase.host == null) {\n throw new OpenCivicDataException(\"API key or API host not configured\");\n }\n\n if (fields != null && fields.length > 0) {\n params.put(\"fields\", TextUtils.join(\",\", fields));\n }\n\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"?apikey=\" + APIBase.apiKey);\n\n if (params != null) {\n for (Map.Entry<String, String> i : params.entrySet()) {\n stringBuilder.append(\"&\");\n stringBuilder.append(URLEncoder.encode(i.getKey(), \"UTF-8\"));\n stringBuilder.append(\"=\");\n stringBuilder.append(URLEncoder.encode(i.getValue(), \"UTF-8\"));\n }\n }\n\n return APIBase.host + \"/\" + method + \"/\" + stringBuilder.toString();\n }", "public static String encodeURL(String string) {\n\t\treturn Utils.encodeURL(string);\n\t}", "public static String uriEncodeParts(final String value) {\n if (Strings.isNullOrEmpty(value)) {\n return value;\n }\n final int length = value.length();\n final StringBuilder builder = new StringBuilder(length << 1);\n for (int i = 0; i < length; i++) {\n final char c = value.charAt(i);\n if (CharMatcher.ASCII.matches(c)) {\n builder.append(String.valueOf(c));\n } else {\n builder.append(encodeCharacter(c));\n }\n }\n return builder.toString();\n }", "public String getQueryString(String contentEncoding) {\n \n CollectionProperty arguments = getArguments().getArguments();\n // Optimisation : avoid building useless objects if empty arguments\n if(arguments.size() == 0) {\n return \"\";\n }\n \n // Check if the sampler has a specified content encoding\n if (JOrphanUtils.isBlank(contentEncoding)) {\n // We use the encoding which should be used according to the HTTP spec, which is UTF-8\n contentEncoding = EncoderCache.URL_ARGUMENT_ENCODING;\n }\n \n StringBuilder buf = new StringBuilder(arguments.size() * 15);\n PropertyIterator iter = arguments.iterator();\n boolean first = true;\n while (iter.hasNext()) {\n HTTPArgument item = null;\n /*\n * N.B. Revision 323346 introduced the ClassCast check, but then used iter.next()\n * to fetch the item to be cast, thus skipping the element that did not cast.\n * Reverted to work more like the original code, but with the check in place.\n * Added a warning message so can track whether it is necessary\n */\n Object objectValue = iter.next().getObjectValue();\n try {\n item = (HTTPArgument) objectValue;\n } catch (ClassCastException e) {\n log.warn(\"Unexpected argument type: \" + objectValue.getClass().getName());\n item = new HTTPArgument((Argument) objectValue);\n }\n final String encodedName = item.getEncodedName();\n if (encodedName.length() == 0) {\n continue; // Skip parameters with a blank name (allows use of optional variables in parameter lists)\n }\n if (!first) {\n buf.append(QRY_SEP);\n } else {\n first = false;\n }\n buf.append(encodedName);\n if (item.getMetaData() == null) {\n buf.append(ARG_VAL_SEP);\n } else {\n buf.append(item.getMetaData());\n }\n \n // Encode the parameter value in the specified content encoding\n try {\n buf.append(item.getEncodedValue(contentEncoding));\n } catch(UnsupportedEncodingException e) {\n log.warn(\"Unable to encode parameter in encoding \" + contentEncoding + \", parameter value not included in query string\");\n }\n }\n return buf.toString();\n }", "public String encode() {\n\tStringBuffer retval = new StringBuffer();\n\n\tif (mediaField != null) \n\t retval.append(mediaField.encode());\n\n\tif (informationField != null) \n\t retval.append(informationField.encode());\n\n\tif (connectionField != null) \n\t retval.append(connectionField.encode());\n\n\tif (bandwidthFields != null) {\n\t for (int i = 0; i < bandwidthFields.size(); i++) {\n\t\tBandwidthField bandwidthField = \n\t\t (BandwidthField) bandwidthFields.elementAt(i);\n\t\tretval.append(bandwidthField.encode());\n\t }\n\t}\n\n\tif (keyField != null) \n\t retval.append(keyField.encode());\n\n\tif (attributeFields != null) {\n\t for (int i = 0; i < attributeFields.size(); i++) \n\t\tretval.append(((SDPField)attributeFields.elementAt(i)).\n\t\t\t encode());\n\t}\n\n\treturn retval.toString();\n }", "private static void appendParams( StringBuilder param, String key, String val ) \n\t{\n\t\tif ( val != null && val.length() > 0 )\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tparam.append( \"&\" ).append( URLEncoder.encode( key, \"UTF-8\" ) )\n\t\t\t\t\t .append( \"=\" ).append( URLEncoder.encode( val, \"UTF-8\" ) );\n\t\t\t}\n\t\t\tcatch (UnsupportedEncodingException e)\n\t\t\t{\n\t\t\t\tLog.e( AdManager.LOG, \"UTF-8 encoding is not supported on this device. Ad requests are impossible.\", e );\n\t\t\t}\n\t\t}\n\t}", "public static String URIencoding(String word) {\n\t\tString result = word;\n\t\tword = word.replace(\" \", \"_\");\n\t\ttry {\n\t\t\tresult = URLEncoder.encode(word, \"UTF-8\");\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}", "public String getURLString() {\n StringBuffer text = new StringBuffer(\"jms:/\");\n text.append(getDestination());\n text.append(\"?\");\n Map props = (Map)properties.clone();\n boolean firstEntry = true;\n for(Iterator itr=properties.keySet().iterator(); itr.hasNext();) {\n String key = (String)itr.next();\n if (!firstEntry) {\n text.append(\"&\");\n }\n if (appProperties.contains(key)) {\n text.append(JMSConstants._MSG_PROP_PREFIX);\n }\n text.append(key);\n text.append(\"=\");\n text.append(props.get(key));\n firstEntry = false;\n }\n return text.toString();\n }", "public String getQueryString() {\n // We use the encoding which should be used according to the HTTP spec, which is UTF-8\n return getQueryString(EncoderCache.URL_ARGUMENT_ENCODING);\n }", "public String getQueryString() {\n // We use the encoding which should be used according to the HTTP spec, which is UTF-8\n return getQueryString(EncoderCache.URL_ARGUMENT_ENCODING);\n }", "private String makeUrlFromInput(String bookQueryText) {\n\n // Replace white spaces with a + symbol to make it compatible to be used in the JSON\n // request URL\n bookQueryText.replaceAll(\" \", \"+\");\n\n StringBuilder urlBuilder = new StringBuilder();\n urlBuilder = urlBuilder.append(GBOOKS_REQUEST_URL_PART1)\n .append(bookQueryText)\n .append(GBOOKS_REQUEST_URL_PART2);\n\n // First encode into UTF-8, then back to a form easily processed by the API\n // This is mainly to avoid issues with spaces and other special characters in the URL\n String finalUrl = Uri.encode(urlBuilder.toString()).replaceAll(\"\\\\+\", \"%20\")\n .replaceAll(\"\\\\%21\", \"!\")\n .replaceAll(\"\\\\%3A\", \":\")\n .replaceAll(\"\\\\%2F\", \"/\")\n .replaceAll(\"\\\\%3F\", \"?\")\n .replaceAll(\"\\\\%26\", \"&\")\n .replaceAll(\"\\\\%3D\", \"=\")\n .replaceAll(\"\\\\%27\", \"'\")\n .replaceAll(\"\\\\%28\", \"(\")\n .replaceAll(\"\\\\%29\", \")\")\n .replaceAll(\"\\\\%20\", \"\\\\+\")\n .replaceAll(\"\\\\%7E\", \"~\");\n return finalUrl;\n }", "String encode(Object obj);", "static String m37641a(Map<String, String> map) {\n if (map == null) {\n return null;\n }\n StringBuilder sb = new StringBuilder();\n for (Map.Entry<String, String> entry : map.entrySet()) {\n String key = entry.getKey();\n String value = entry.getValue();\n if (value == null) {\n value = \"\";\n }\n if (sb.length() > 0) {\n sb.append(\"&\");\n }\n sb.append(URLEncoder.encode(key));\n sb.append(\"=\");\n sb.append(URLEncoder.encode(value));\n }\n return sb.toString();\n }", "protected native String encodeURIComponent(String text) /*-{\r\n\t\treturn encodeURIComponent(text);\r\n\t}-*/;", "public static String encode(CharSequence object) throws HttpRequestException {\n int n;\n URL uRL;\n Object object2;\n block4: {\n try {\n uRL = new URL(object.toString());\n object2 = uRL.getHost();\n n = uRL.getPort();\n object = object2;\n if (n == -1) break block4;\n object = (String)object2 + ':' + Integer.toString(n);\n }\n catch (IOException iOException) {\n throw new HttpRequestException(iOException);\n }\n }\n try {}\n catch (URISyntaxException uRISyntaxException) {\n object2 = new IOException(\"Parsing URI failed\");\n ((Throwable)object2).initCause(uRISyntaxException);\n throw new HttpRequestException((IOException)object2);\n }\n object2 = new URI(uRL.getProtocol(), (String)object, uRL.getPath(), uRL.getQuery(), null).toASCIIString();\n n = ((String)object2).indexOf(63);\n object = object2;\n if (n <= 0) return object;\n object = object2;\n if (n + 1 >= ((String)object2).length()) return object;\n return ((String)object2).substring(0, n + 1) + ((String)object2).substring(n + 1).replace(\"+\", \"%2B\");\n }", "protected static String getParams(Map<String, Object> param) {\n String res = \"\";\n if (param != null && !param.isEmpty()){\n for (String key:param.keySet()){\n res += key + \"=\" + param.get(key)+\"&\";\n }\n res = res.substring(0,res.length()-1);\n }\n return res;\n }", "private String encodeUri(String uri) {\n\t\t\tString newUri = \"\";\n\t\t\tStringTokenizer st = new StringTokenizer(uri, \"/ \", true);\n\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\tString tok = st.nextToken();\n\t\t\t\tif (\"/\".equals(tok)) {\n\t\t\t\t\tnewUri += \"/\";\n\t\t\t\t} else if (\" \".equals(tok)) {\n\t\t\t\t\tnewUri += \"%20\";\n\t\t\t\t} else {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tnewUri += URLEncoder.encode(tok, \"UTF-8\");\n\t\t\t\t\t} catch (UnsupportedEncodingException ignored) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn newUri;\n\t\t}", "public static String percentEncode(String s) {\r\n\t\t//s = _percentEncode( s ); // the original method, from java.net\r\n\t\ts = encodeURL(s, \"UTF-8\");\r\n\t\treturn s;\r\n\t}" ]
[ "0.72164017", "0.71519935", "0.70254177", "0.69329464", "0.69304615", "0.6830005", "0.67129105", "0.6683821", "0.66575354", "0.66456944", "0.6522539", "0.65157056", "0.6506462", "0.6497762", "0.6492543", "0.63519406", "0.63519406", "0.63080424", "0.63049394", "0.6291689", "0.62778187", "0.6274979", "0.62716883", "0.6263532", "0.62525904", "0.6214591", "0.6211596", "0.6187247", "0.6186228", "0.61847883", "0.6183055", "0.6180835", "0.61712223", "0.6170925", "0.6166558", "0.6165975", "0.61326444", "0.613046", "0.61246336", "0.6119979", "0.6082729", "0.6074098", "0.6070988", "0.60478693", "0.6020487", "0.6001304", "0.5999898", "0.5999034", "0.59870553", "0.5982791", "0.5981115", "0.59667796", "0.59560436", "0.59492844", "0.5946899", "0.5944269", "0.59262544", "0.5905024", "0.589844", "0.5885163", "0.58540744", "0.58408594", "0.5838013", "0.5838013", "0.58262765", "0.580782", "0.5796701", "0.57965744", "0.57889163", "0.57768595", "0.5774954", "0.57705957", "0.5761512", "0.57502836", "0.57456285", "0.5743606", "0.57419807", "0.573484", "0.5733016", "0.5721663", "0.5713286", "0.5695883", "0.56933224", "0.56914055", "0.567392", "0.56734014", "0.5661622", "0.56545913", "0.56328326", "0.5618668", "0.56173897", "0.56173897", "0.5614495", "0.56119084", "0.55929536", "0.5591234", "0.5587573", "0.5547581", "0.55315655", "0.55111504" ]
0.6436481
15
This function will be called in the render loop
public void render(int FrameBufferObjectID) { if (FrameBufferIDs.contains(FrameBufferObjectID)) { Render(FrameBufferObjectID); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void render(){}", "@Override\r\n\tpublic void render() {\n\t\t\r\n\t}", "@Override\n public void beforeRender()\n {\n\n }", "@Override\r\n\tpublic void render() {\n\r\n\t}", "@Override\n\tpublic void render() {\n\t\t\n\t}", "@Override\n\tpublic void render () {\n\n\t}", "public void render()\r\n\t{\n\t}", "public void render() {\r\n\r\n }", "public void render() {\n }", "@Override\n\tpublic void render () {\n super.render();\n\t}", "@Override\n public void render() { super.render(); }", "@Override\n public void render() {\n super.render();\n }", "@Override\n public void render() {\n super.render();\n }", "public void render() {\n\t\t// do nothing... as we should\n\t}", "@Override\n\tpublic void forceRender() {\n\n\t}", "@Override\n public void prerender() {\n }", "public void render(){\n//\t\tsetCards();\n//\t\tsetMurderInfo();\n\t}", "void dynamicRendering();", "protected void render() {\n\t\tString accion = Thread.currentThread().getStackTrace()[2].getMethodName();\n\t\trender(accion);\n\t}", "protected void onComponentRendered()\n\t{\n\t}", "@Override\n\tpublic void render(float deltaTime) {\n\t\t\n\t}", "protected void preRender()\n {\n // subclass\n }", "private void render() {\n\n StateManager.getState().render();\n }", "public void onRenderTick() {\n updateLang();\n updateRenderEngine();\n }", "void renderLoop(RenderLoopCallback renderLoop);", "@Override\n\tpublic void renderSource() {\n\t\t\n\t}", "public void prerender() {\n }", "public void prerender() {\n }", "@Override\r\n\tpublic void beforeRender(float dt) {\n\r\n\t}", "@Override\n \tprotected void controlRender(RenderManager rm, ViewPort vp) {\n \n \t}", "@Override\n\tpublic void render(float delta) {\n\t}", "@Override\n\tpublic void render(float delta) {\n\n\t}", "public final void calledDuringRender() {\n calledEveryFrame();\n numFrames++;\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\r\n\tpublic void simpleRender(RenderManager rm) {\n\t}", "void onRender(RenderArguments arguments);", "@Override\n public void render() {\n if (renderInterrupted) {\n log.debug(\"render()\");\n renderInterrupted = false;\n }\n\n }", "@Override\n\tprotected void controlRender(RenderManager rm, ViewPort vp) {\n\t\t\n\t}", "@Override\n protected void controlRender(RenderManager rm, ViewPort vp) {\n }", "public void render() {\n renderHud();\n }", "@Override\r\n protected void controlRender(RenderManager rm, ViewPort vp) {\n }", "private void render() {\n\n if (state == STATE.PAUSE) {\n\n return;\n }\n\n\n if (state == STATE.MENU) {\n\n menu.draw();\n arrow.render();\n return;\n\n }\n\n if (state == STATE.INSTRUCTIONS) {\n instructions.draw();\n return;\n }\n\n for (int i = 0; i < spaceShips.size(); i++) {\n spaceShips.get(i).render();\n }\n\n\n for (Enemy enemy : enemies) {\n enemy.render();\n }\n\n for (int i = 0; i < powerUps.size(); i++) {\n\n powerUps.get(i).render();\n }\n\n for (int i = 0; i < enemyBullets.size(); i++) {\n\n enemyBullets.get(i).render();\n }\n\n for (int i = 0; i < friendlyBullets.size(); i++) {\n\n friendlyBullets.get(i).render();\n }\n\n topBar.render();\n bottomBar.render();\n fps.render();\n score.render();\n\n\n }", "private void renderHook(){\n\t\thook.setPosition(world.hook.position.x, world.hook.position.y);\n\t\thook.setRotation(world.hook.rotation);\n\t\thook.draw(batch);\n\t}", "public void render();", "public void render() {\n uiBatch.begin();\n for (int x = 0; x < uiManager.getUIComponents().size();x++) {\n uiManager.getUIComponent(x).render(uiBatch, Assets.patch);\n }\n if (uiManager.dialogue != null) {\n uiManager.dialogue.render(uiBatch, Assets.patch);\n }\n if (!uiManager.notifications.isEmpty()) {\n uiManager.notifications.get(0).render(uiBatch, Assets.patch);\n }\n uiManager.partyMenu.render(uiBatch, Assets.patch);\n uiBatch.end();\n }", "@Override\n\tpublic void render() {\n\t\tScreen.render();\n\t}", "@Override\n public boolean isToBeRendered()\n {\n return true;\n }", "void dynamicRendering(ConversationBlip startBlip);", "public void render() {\r\n\t\t\r\n\t\tif (page >= 0 && page < pages.length) {\r\n\t\t\tTextures.renderQuad(pages[page][(updates / 90) % pages[page].length], 32, 32, 1024, 512);\r\n\t\t}\r\n\t}", "public void render () \n\t{ \n\t\trenderWorld(batch);\n\t\trenderGui(batch);\n\t}", "@Override\n public void renderNextImage() {\n }", "@Override\n\tpublic void tick() {\n\t\trenderer.render(this);\n\t}", "@Override\n public void renderStatic(GC gc, ViewPort vp) {\n\n }", "@Override\n public void enrichRenderQueue(RenderQueue renderQueue) {\n }", "@Override\n\tpublic void render(SpriteBatch batch) {\n\t}", "private void render() {\n\t\tBufferStrategy buffStrat = display.getCanvas().getBufferStrategy();\n\t\tif(buffStrat == null) {\n\t\t\tdisplay.getCanvas().createBufferStrategy(3); //We will have 3 buffered screens for the game\n\t\t\treturn;\n\t\t}\n\n\t\t//A bufferstrategy prevents flickering since it preloads elements onto the display.\n\t\t//A graphics object is a paintbrush style object\n\t\tGraphics g = buffStrat.getDrawGraphics();\n\t\t//Clear the screen\n\t\tg.clearRect(0, 0, width, height); //Clear for further rendering\n\t\t\n\t\tif(State.getState() !=null) {\n\t\t\tState.getState().render(g);\n\t\t}\n\t\t//Drawings to be done in this space\n\t\t\n\t\t\n\t\t\n\t\tbuffStrat.show();\n\t\tg.dispose();\n\t}", "protected void rerender() {\n\t\tthis.layout.render(inventory);\n\t}", "@Override\n\tpublic void render(Graphics g) {\n\t\t\n\t}", "@Override\n\tpublic void render(Graphics g) {\n\t\t\n\t}", "public String render()\r\n/* 24: */ {\r\n/* 25:51 */ if (!this.init_flag)\r\n/* 26: */ {\r\n/* 27:52 */ this.init_flag = true;\r\n/* 28:53 */ return \"\";\r\n/* 29: */ }\r\n/* 30: */ try\r\n/* 31: */ {\r\n/* 32:56 */ ConnectorResultSet res = this.sql.get_variants(this.request);\r\n/* 33:57 */ return render_set(res);\r\n/* 34: */ }\r\n/* 35: */ catch (ConnectorOperationException e) {}\r\n/* 36:59 */ return \"\";\r\n/* 37: */ }", "@Override\r\n\tprotected void onDraw(LRenderSystem rs) {\n\r\n\t}", "private void renderView() {\r\n\t\tSystem.out.println(this.currentView.render());\r\n\t}", "void dynamicRendering(String startBlipId);", "public void render() {\n\t\tscreen.background(255);\n\t\thandler.render();\n\t}", "public static void requestRenderFromNUI() {\r\n\t\tif (m_Handler != null) {\t\t\t\r\n\t\t\ts_lRequestTicks = System.currentTimeMillis();\r\n\t\t\tm_SkiaView.postInvalidate();\r\n\t\t}\r\n\t}", "protected void display() {\n\r\n\t}", "public int getRenderBlockPass(){\r\n return 1;\r\n }", "void setupRender() {\n\t\t_highlightFacilityId = _facilityId;\n\t}", "@Override\n\t\tpublic void run() {\n\t\t\trequestLayout();\n\t\t}", "private void render() {\n bs = display.getCanvas().getBufferStrategy();\n /* if it is null, we define one with 3 buffers to display images of\n the game, if not null, then we display every image of the game but\n after clearing the Rectanlge, getting the graphic object from the \n buffer strategy element. \n show the graphic and dispose it to the trash system\n */\n if (bs == null) {\n display.getCanvas().createBufferStrategy(3);\n } else {\n g = bs.getDrawGraphics();\n g.drawImage(Assets.background, 0, 0, width, height, null);\n g.setColor(Color.white);\n g.drawLine(0, 500, 595, 500);\n player.render(g);\n for (int i = 0; i < aliens.size(); i++) {\n Alien al = aliens.get(i);\n al.render(g);\n }\n if (shotVisible) {\n shot.render(g);\n }\n\n if(gameOver==false)\n {\n gameOver();\n }\n for(Alien alien: aliens){\n Bomb b = alien.getBomb();\n b.render(g);\n }\n g.setColor(Color.red);\n Font small = new Font(\"Helvetica\", Font.BOLD, 20);\n g.setFont(small);\n g.drawString(\"G - Guardar\", 10, 50);\n g.drawString(\"C - Cargar\", 10, 70);\n g.drawString(\"P - Pausa\", 10, 90);\n\n if(keyManager.pause)\n {\n g.drawString(\"PAUSA\", 250, 300);\n }\n \n bs.show();\n g.dispose();\n }\n\n }", "public static void index() {\r\n render();\r\n }", "@Override\n\tpublic void render(Graphics g)\n\t{\n\t}", "public void render(Callable<Object> callable) {\n\t\trenderQueue.enqueue(callable);\n\t}", "public void render() {\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif (bs == null) { //if the buffer strategy doesnt get created, then you create it\n\t\t\tcreateBufferStrategy(3); //the number 3 means it creates triple buffering\n\t\t\treturn;\t\t\t\t\t//, so when you backup frame gets displayed (2) it will also have a backup\t\n\t\t}\n\t\t\n\t\t//apply data to the buffer \"bs\"\n\t\t//this is creating a link to graphics to drawing graphics to the screen.\n\t\tGraphics g = bs.getDrawGraphics();\n\t\t/**\n\t\t * You input all of your graphics inbetween the g object and g.dispose();\n\t\t */\n\t\t//###################\n\t\t\n\t\tg.setColor(Color.BLACK);\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\t\n\t\t//###################\n\t\tg.dispose(); //this dispose of all the graphics\n\t\tbs.show(); //this will make the next available buffer visible\n\t}", "@Override\n public void render() {\n GUI.clearScreen();\n if (assetManager.update()) {\n switch (gameState) {\n case MENU:\n GUI.menuLoop();\n break;\n case PAUSE:\n case GAME:\n gameLoop();\n break;\n case LOAD:\n World.load();\n gameState = GameState.GAME;\n break;\n }\n } else {\n GUI.splashScreen(assetManager.getProgress());\n }\n DrawManager.end();\n }", "@Override\n\tpublic void render() {\n\t\t// only render it when visible is true\n\t\tif (visible == false) {\n\t\t\treturn;\n\t\t} else {\n\t\t\tsuper.render();\n\t\t}\n\t}", "private void render() {\n final int numBuffers = 3;\n BufferStrategy bs = this.getBufferStrategy(); // starts value at null\n if (bs == null) {\n this.createBufferStrategy(numBuffers); // 3: buffer creations\n return;\n }\n Graphics g = bs.getDrawGraphics();\n\n g.setColor(Color.black); // stops flashing background\n g.fillRect(0, 0, WINDOW_WIDTH, WINDOW_HEIGHT);\n\n handler.render(g);\n\n if (gameStart == GAME_STATE.Game) {\n hud.render(g);\n } else if (gameStart == GAME_STATE.Menu || gameStart == GAME_STATE.Help || gameStart == GAME_STATE.GameOver || gameStart == GAME_STATE.GameVictory) {\n menu.render(g);\n }\n\n g.dispose();\n bs.show();\n }", "protected void render() {\n\t\tentities.render();\n\t\t// Render GUI\n\t\tentities.renderGUI();\n\n\t\t// Flips the page between the two buffers\n\t\ts.drawToGraphics((Graphics2D) Window.strategy.getDrawGraphics());\n\t\tWindow.strategy.show();\n\t}", "private void render() {\n\t\ttheMap.draw(g);\n\t\ttheTrainer.draw(g);\n\t}", "public void onDisplay() {\n\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\r\n\tpublic void renderBackground() {\n\r\n\t}", "public void renderEntities() {\n Set<Entity> toRender = Engine\n .get()\n .getEntityStream()\n .getEntitiesCopy(SpaxelComponent.RENDER);\n for (Entity ne : toRender) {\n ((RenderBehaviour) ne.getComponent(SpaxelComponent.RENDER)).render(\n ne,\n bufferBuffer\n );\n }\n }", "private void render() {\n if (game.isEnded()) {\n if (endGui == null) {\n drawEndScreen();\n }\n\n return;\n }\n\n drawScore();\n drawSnake();\n drawFood();\n }", "protected void onBegin() {}", "private void onModuleUpdate() {\n if (mTime == -1L) {\n mTime = System.currentTimeMillis();\n }\n\n //!\n //! Render until the display is not active.\n //!\n onModuleRender(System.currentTimeMillis());\n\n //!\n //! Request to render again.\n //!\n onAnimationRequest(this::onModuleUpdate);\n }", "private void renderEntities() {\n\t\trenderEntityList(layerNegOneEntities);\n\t\trenderEntityList(layerZeroEntities);\n\t\trenderEntityList(layerOneEntities);\n\t}", "public void render(){\n //this block is pre-loading 2 frames in\n BufferStrategy bs = this.getBufferStrategy();\n if(bs == null){\n this.createBufferStrategy(2);\n return;\n }\n\n Graphics g = bs.getDrawGraphics();\n Graphics2D g2d = (Graphics2D) g;\n ///////////////////////////\n //Draw things below here!\n g.setColor(Color.white);\n g.fillRect(0, 0, 800, 800);\n\n g2d.translate(-camera.getX(), -camera.getY());\n\n g.setColor(Color.gray);\n g.fillRect(0, 0, 500, 500);\n //render all the objects\n handler.render(g);\n\n //g2d.translate(camera.getX(), camera.getY());\n //Draw things above here!\n ///////////////////////////\n g.dispose();\n bs.show();\n }", "public void registerRenderInformation()\n\t{\n\t //unused server side. -- see ClientProxy for implementation\n\t}", "@Override\n\tpublic void render () {\n\t\tGdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT | GL20.GL_DEPTH_BUFFER_BIT);\n\n\t\tvalidarPontos();\n\t\tverificarEstadoJogo();\n\t\tdesenharTexturas();\n\t\tdetectarColisoes();\n\n\t}", "private void render() {\n\n\tbs=display.getCanvas().getBufferStrategy();\t\n\t\n\tif(bs==null) \n\t {\t\n\t\tdisplay.getCanvas().createBufferStrategy(3);\n\t\treturn ;\n\t }\n\t\n\tg=bs.getDrawGraphics();\n\n\t//Clear Screen\n\tg.clearRect(0, 0, width, height);\n\t\n\tif(State.getState()!=null )\n\t\tState.getState().render(g);\n\t\n\t//End Drawing!\n\tbs.show();\n\tg.dispose();\n\t\n\t}", "@Override\n\tpublic void render(Bitmap map) {\n\t\t\n\t}", "public void requestrender() {\n\t\trender(g2d);\r\n\t\tGraphics g = getGraphics();\r\n\t\tg.drawImage(image , 0 , 0, null);\r\n\t\tg.dispose();\r\n\t\t\r\n\t}", "@Override\n public void setToBeRendered(boolean arg0)\n {\n \n }", "void setupRender() {\n\t\tif (!init()) {\n\t\t\tisAccess = false;\n\t\t\treturn;\n\t\t}\n\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}" ]
[ "0.74590915", "0.73247856", "0.7222448", "0.71794194", "0.71772665", "0.71765697", "0.7140389", "0.7120074", "0.69656736", "0.6944138", "0.6942174", "0.6927307", "0.6927307", "0.69229114", "0.68517256", "0.6814765", "0.68121254", "0.6781434", "0.6753391", "0.671023", "0.67087597", "0.6704542", "0.66488624", "0.6617826", "0.661536", "0.6611847", "0.6578785", "0.6578785", "0.65578884", "0.65355444", "0.65237534", "0.6516978", "0.65100735", "0.6475824", "0.6475824", "0.6475824", "0.6475824", "0.6475824", "0.6475824", "0.642958", "0.63964844", "0.6381067", "0.6377309", "0.63682324", "0.6328865", "0.6327001", "0.6296491", "0.6277171", "0.6271779", "0.6243179", "0.62394005", "0.62132895", "0.61974186", "0.6189669", "0.6173347", "0.615081", "0.6137754", "0.612309", "0.61045843", "0.60649014", "0.6044721", "0.6034663", "0.6033105", "0.6033105", "0.6032585", "0.60258347", "0.6023828", "0.60228485", "0.60101455", "0.60082036", "0.59982806", "0.59980464", "0.59878546", "0.5982548", "0.59779626", "0.596863", "0.59589416", "0.5957684", "0.5956428", "0.59452486", "0.5942346", "0.5933538", "0.5918788", "0.59153515", "0.5903977", "0.58973044", "0.58681124", "0.5866796", "0.5863572", "0.58610046", "0.5854615", "0.5843248", "0.5841499", "0.5836693", "0.58239293", "0.58232194", "0.5818466", "0.5812432", "0.58020175", "0.5790202", "0.5786432" ]
0.0
-1
Questo metodo consente di ottenere una lista di assegnamenti gia' effettuati e approvati per la data "tra 7 giorni" a partire da adesso
public List<String> GetAssegnamentiInCorso() { String str = "Guillizzoni-Coca Cola Spa1-DRYSZO,Rossi-Coca Cola Spa2-DRYSZ2"; StringaAssegnamenti = str; StringaAssegnamenti = ""; List<String> items = Arrays.asList(str.split("\\s*,\\s*")); return items; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void carregaAvisosGerais() {\r\n\t\tif (codWcagEmag == WCAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"12.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"9.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.7\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\t// comentado por n�o ter achado equi\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t} else if (codWcagEmag == EMAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.21\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.24\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.17\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.6\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.14\", AVISO, codWcagEmag, \"\"));\r\n\t\t}\r\n\r\n\t}", "public String generarEstadisticasGenerales(){\n \n String estadisticaGeneral = \"En general en la universidad del valle: \\n\";\n estadisticaGeneral += \"se encuentran: \" + EmpleadosPrioridadAlta.size() + \" empleados en prioridad alta\\n\"\n + empleadosPorPrioridad(EmpleadosPrioridadAlta)\n + \"se encuentran: \" + EmpleadosPrioridadMediaAlta.size() + \" empleados en prioridad media alta\\n\"\n + empleadosPorPrioridad(EmpleadosPrioridadMediaAlta)\n + \"se encuentran: \" + EmpleadosPrioridadMedia.size() + \" empleados en prioridad media\\n\"\n + empleadosPorPrioridad(EmpleadosPrioridadMedia)\n + \"se encuentran: \" + EmpleadosPrioridadBaja.size() + \" empleados en prioridad baja\\n\"\n + empleadosPorPrioridad(EmpleadosPrioridadBaja);\n return estadisticaGeneral;\n }", "public void ganarDineroPorAutomoviles() {\n for (Persona p : super.getMundo().getListaDoctores()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaAlbaniles()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaHerreros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n }", "private List<PreDocumentoEntrata> ricercaSinteticaPreDocumentoEntrata() {\n\t\tRicercaSinteticaPreDocumentoEntrataResponse resRSPD = ricercaSinteticaPreDocumentoEntrata(0);\t\t\n\t\tList<PreDocumentoEntrata> result = resRSPD.getPreDocumenti();\n\t\t\n\t\tfor(int i = 1; i < resRSPD.getTotalePagine(); i++) {\t\t\t\n\t\t\tresRSPD = ricercaSinteticaPreDocumentoEntrata(i);\n\t\t\tresult.addAll(resRSPD.getPreDocumenti());\t\t\t\n\t\t}\n\t\treturn result;\n\t}", "private void obtenerGastosDiariosMes() {\n\t\t// Obtenemos las fechas actuales inicial y final\n\t\tCalendar calendar = Calendar.getInstance();\n calendar.setTime(new Date());\n int diaFinalMes = calendar.getActualMaximum(Calendar.DAY_OF_MONTH);\n\n\t\tList<Movimiento> movimientos = this.movimientoService.obtenerMovimientosFechaUsuario(idUsuario, LocalDate.of(LocalDate.now().getYear(),LocalDate.now().getMonthValue(),1),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tLocalDate.of(LocalDate.now().getYear(),LocalDate.now().getMonthValue(), diaFinalMes));\n\t\tList<Double> listaGastos = new ArrayList<Double>();\n\t\tList<String> listaFechas = new ArrayList<String>();\n\t\t\n\t\tDate fechaUtilizadaActual = null;\n\t\tdouble gastoDiario = 0;\n\t\t\n\t\tfor (Iterator iterator = movimientos.iterator(); iterator.hasNext();) {\n\t\t\tMovimiento movimiento = (Movimiento) iterator.next();\n\t\t\tif(fechaUtilizadaActual == null) { //Comprobamos si se acaba de entrar en el bucle para inicializar la fecha del movimiento\n\t\t\t\tfechaUtilizadaActual = movimiento.getFecha();\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// Si hemos cambiado de fecha del movimiento se procede a guardar los datos recogidos\n\t\t\tif(!fechaUtilizadaActual.equals(movimiento.getFecha())) {\n\t\t\t\tlistaGastos.add(gastoDiario);\n\t\t\t\tlistaFechas.add(fechaUtilizadaActual.getDate()+\"/\"+Utils.getMonthForInt(fechaUtilizadaActual.getMonth()).substring(0, 3));\n\t\t\t\tgastoDiario = 0; // Reiniciamos el contador del gasto\n\t\t\t\tfechaUtilizadaActual = movimiento.getFecha(); // Almacenemos la fecha del nuevo gasto\n\t\t\t}\n\t\t\t\n\t\t\t// Si el movimiento que se ha realizado es un gasto lo sumamos al contador de gasto\n\t\t\tif(movimiento.getTipo().equals(TipoMovimiento.GASTO)) {\n\t\t\t\tgastoDiario += movimiento.getCantidad();\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// Comprobamos si es el ultimo item del iterador y almacenamos sus datos\n\t\t\tif(!iterator.hasNext()) {\n\t\t\t\tlistaGastos.add(gastoDiario);\n\t\t\t\tlistaFechas.add(fechaUtilizadaActual.getDate()+\"/\"+Utils.getMonthForInt(fechaUtilizadaActual.getMonth()).substring(0, 3));\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\tthis.listadoGastosDiariosDiagrama = new Double[listaGastos.size()];\n\t\tthis.listadoGastosDiariosDiagrama = listaGastos.toArray(this.listadoGastosDiariosDiagrama);\n\t\tthis.fechasDiagrama = new String[listaFechas.size()];\n\t\tthis.fechasDiagrama = listaFechas.toArray(this.fechasDiagrama);\n\t\t\n\t}", "public ArrayList<InformeGarage> obtenerInformeEstadoGarages() {\n\n\t\tArrayList<InformeGarage> lista = new ArrayList<InformeGarage>();\n\n\t\tfor (Garage garage : this.garages) {\n\t\t\tlista.add(garage.dameInforme());\n\t\t}\n\t\treturn lista;\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tprivate List<PromocionConcursoAgr> traerPromocionConcursoAgrAsignados() {\r\n\t\tList<PromocionConcursoAgr> lista = new ArrayList<PromocionConcursoAgr>();\r\n\t\tLong id = puestoAgr.getIdConcursoPuestoAgr();\r\n\t\tif (puestoAgr != null && puestoAgr.getIdConcursoPuestoAgr() != null) {\r\n\t\t\tString cadena = \"select distinct(puesto_det.*) \"\r\n\t\t\t\t\t+ \"from seleccion.promocion_concurso_agr puesto_det \"\r\n\t\t\t\t\t+ \"join seleccion.concurso_puesto_agr puesto_agr \"\r\n\t\t\t\t\t+ \"on puesto_agr.id_concurso_puesto_agr=puesto_det.id_concurso_puesto_agr \"\r\n\t\t\t\t\t+ \"join seleccion.promocion_salarial cargo \"\r\n\t\t\t\t\t+ \"on cargo.id_promocion_salarial = puesto_det.id_promocion_salarial \"\r\n\t\t\t\t\t+ \"where puesto_det.nro_orden = 3 \"\r\n\t\t\t\t\t//+ \" and cargo.permanente is true\"\r\n\t\t\t\t\t;\r\n\r\n\t\t\tcadena = cadena + \" and puesto_agr.id_concurso_puesto_agr = \"\r\n\t\t\t\t\t+ puestoAgr.getIdConcursoPuestoAgr();\r\n\r\n\t\t\tlista = em.createNativeQuery(cadena, PromocionConcursoAgr.class)\r\n\t\t\t\t\t.getResultList();\r\n\t\t\tPromocionSalarialAgrupados = new ArrayList<ConcursoPuestoAgr>();\r\n\t\t\tfor (PromocionConcursoAgr o : lista) {\r\n\t\t\t\tPromocionSalarialAgrupados.add(o.getConcursoPuestoAgr());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn lista;\r\n\t}", "public void ReservaEfetivadas () {\n Date hoje = new Date ();\n for (int z = 0; z < vecReserva.size(); z++) {\n if (((int) ((((entReserva)vecReserva.elementAt(z)).getDatain().getTime() - (hoje.getTime())) / 86400000L)) == 0){// Reserva será relaizada hj\n if (((entReserva)vecReserva.elementAt(z)).getPagamento().getSituacao() == 0){//Cliente fez todo o pagamento e o quarto será\n vecReservaEfetivadas.add(vecReserva.elementAt(z));\n }\n \n }\n }\n }", "public List<SinistroPendente_FaixaVO> validaSelecionaSinistroPendente_Faixa(int tipo) {\n\n\t\tDecimalFormat percentForm = new DecimalFormat(\"0.00%\");\n\t\tDecimalFormat roundForm = new DecimalFormat(\"0.00\");\n\n\t\tList<SinistroPendente_FaixaVO> listaTratadaTotais = new ArrayList<SinistroPendente_FaixaVO>();\n\t\tList<SinistroPendente_FaixaVO> listaSinistroPendente = null;\n\t\tList<SinistroPendente_FaixaVO> listaFinal = new ArrayList<SinistroPendente_FaixaVO>();\n\n\t\tswitch (tipo) {\n\t\tcase 1: // faixa tempo\n\t\t\tlistaSinistroPendente = listaSinistroPendenteTempo;\n\t\t\tbreak;\n\t\tcase 2:// faixa valor\n\t\t\tlistaSinistroPendente = listaSinistroPendenteValor;\n\t\t\tbreak;\n\t\t}\n\n\t\tint totalNumSinistrosPendentes_Administrativo = 0;\n\t\tint totalNumSinistrosPendentes_Judicial = 0;\n\t\tint totalNumSinistrosPendentes_Total = 0;\n\n\t\tBigDecimal totalValorSinistrosPendentes_Administrativo = new BigDecimal(\"0\");\n\t\tBigDecimal totalValorSinistrosPendentes_Judicial = new BigDecimal(\"0\");\n\t\tBigDecimal totalValorSinistrosPendentes_Total = new BigDecimal(\"0\");\n\n\t\tString textoGrupoAnterior = \"\";\n\n\t\t// ============================\n\t\t// esse obj serve apenas para a lista nao ficar vazia\n\t\tSinistroPendente_FaixaVO totaNulo = new SinistroPendente_FaixaVO();\n\t\ttotaNulo.setGrupo(\"vazio\");\n\t\t// ============================\n\n\t\tlistaTratadaTotais.add(totaNulo);\n\t\tfor (int i = 0; i < listaSinistroPendente.size(); i++) {\n\n\t\t\tif (i == 0) {\n\n\t\t\t\ttextoGrupoAnterior = listaSinistroPendente.get(i).getGrupo();\n\n\t\t\t\ttotalNumSinistrosPendentes_Administrativo += listaSinistroPendente.get(i)\n\t\t\t\t\t\t.getNumSinistrosPendentes_Administrativo();\n\t\t\t\ttotalNumSinistrosPendentes_Judicial += listaSinistroPendente.get(i).getNumSinistrosPendentes_Judicial();\n\t\t\t\ttotalNumSinistrosPendentes_Total += listaSinistroPendente.get(i).getNumSinistrosPendentes_Total();\n\n\t\t\t\ttotalValorSinistrosPendentes_Administrativo = totalValorSinistrosPendentes_Administrativo\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Administrativo()));\n\t\t\t\ttotalValorSinistrosPendentes_Judicial = totalValorSinistrosPendentes_Judicial\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Judicial()));\n\t\t\t\ttotalValorSinistrosPendentes_Total = totalValorSinistrosPendentes_Total\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Total()));\n\n\t\t\t} else if (listaSinistroPendente.get(i).getGrupo().equals(textoGrupoAnterior)) {\n\n\t\t\t\ttextoGrupoAnterior = listaSinistroPendente.get(i).getGrupo();\n\n\t\t\t\ttotalNumSinistrosPendentes_Administrativo += listaSinistroPendente.get(i)\n\t\t\t\t\t\t.getNumSinistrosPendentes_Administrativo();\n\t\t\t\ttotalNumSinistrosPendentes_Judicial += listaSinistroPendente.get(i).getNumSinistrosPendentes_Judicial();\n\t\t\t\ttotalNumSinistrosPendentes_Total += listaSinistroPendente.get(i).getNumSinistrosPendentes_Total();\n\n\t\t\t\ttotalValorSinistrosPendentes_Administrativo = totalValorSinistrosPendentes_Administrativo\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Administrativo()));\n\t\t\t\ttotalValorSinistrosPendentes_Judicial = totalValorSinistrosPendentes_Judicial\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Judicial()));\n\t\t\t\ttotalValorSinistrosPendentes_Total = totalValorSinistrosPendentes_Total\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Total()));\n\n\t\t\t} else if (!(listaSinistroPendente.get(i).getGrupo().equals(textoGrupoAnterior))) {\n\n\t\t\t\tSinistroPendente_FaixaVO totalVO = new SinistroPendente_FaixaVO();\n\t\t\t\ttotalVO.setGrupo(textoGrupoAnterior);\n\t\t\t\ttotalVO.setFaixa(\"Total\");\n\t\t\t\ttotalVO.setValorSinistrosPendentes_Administrativo(\n\t\t\t\t\t\ttotalValorSinistrosPendentes_Administrativo.toString());\n\t\t\t\ttotalVO.setValorSinistrosPendentes_Judicial(totalValorSinistrosPendentes_Judicial.toString());\n\t\t\t\ttotalVO.setValorSinistrosPendentes_Total(totalValorSinistrosPendentes_Total.toString());\n\t\t\t\ttotalVO.setNumSinistrosPendentes_Administrativo(totalNumSinistrosPendentes_Administrativo);\n\t\t\t\ttotalVO.setNumSinistrosPendentes_Judicial(totalNumSinistrosPendentes_Judicial);\n\t\t\t\ttotalVO.setNumSinistrosPendentes_Total(totalNumSinistrosPendentes_Total);\n\t\t\t\tlistaTratadaTotais.add(totalVO);\n\n\t\t\t\ttextoGrupoAnterior = listaSinistroPendente.get(i).getGrupo();\n\n\t\t\t\ttotalValorSinistrosPendentes_Administrativo = new BigDecimal(\"0\");\n\t\t\t\ttotalValorSinistrosPendentes_Administrativo = totalValorSinistrosPendentes_Administrativo\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Administrativo()));\n\n\t\t\t\ttotalValorSinistrosPendentes_Judicial = new BigDecimal(\"0\");\n\t\t\t\ttotalValorSinistrosPendentes_Judicial = totalValorSinistrosPendentes_Judicial\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Judicial()));\n\n\t\t\t\ttotalValorSinistrosPendentes_Total = new BigDecimal(\"0\");\n\t\t\t\ttotalValorSinistrosPendentes_Total = totalValorSinistrosPendentes_Total\n\t\t\t\t\t\t.add(new BigDecimal(listaSinistroPendente.get(i).getValorSinistrosPendentes_Total()));\n\n\t\t\t\ttotalNumSinistrosPendentes_Administrativo = 0;\n\t\t\t\ttotalNumSinistrosPendentes_Administrativo += listaSinistroPendente.get(i)\n\t\t\t\t\t\t.getNumSinistrosPendentes_Administrativo();\n\n\t\t\t\ttotalNumSinistrosPendentes_Judicial = 0;\n\t\t\t\ttotalNumSinistrosPendentes_Judicial += listaSinistroPendente.get(i).getNumSinistrosPendentes_Judicial();\n\n\t\t\t\ttotalNumSinistrosPendentes_Total = 0;\n\t\t\t\ttotalNumSinistrosPendentes_Total += listaSinistroPendente.get(i).getNumSinistrosPendentes_Total();\n\n\t\t\t}\n\n\t\t}\n\t\tboolean insere = false;\n\t\tfor (int i = 0; i < listaTratadaTotais.size(); i++) {\n\t\t\tif (listaTratadaTotais.get(i).getGrupo().equalsIgnoreCase(textoGrupoAnterior)) {\n\t\t\t\tinsere = false;\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tinsere = true;\n\t\t\t}\n\t\t}\n\t\tif (insere) {\n\t\t\tSinistroPendente_FaixaVO totaVO = new SinistroPendente_FaixaVO();\n\t\t\ttotaVO.setGrupo(textoGrupoAnterior);\n\t\t\ttotaVO.setFaixa(\"Total\");\n\t\t\ttotaVO.setValorSinistrosPendentes_Administrativo(totalValorSinistrosPendentes_Administrativo.toString());\n\t\t\ttotaVO.setValorSinistrosPendentes_Judicial(totalValorSinistrosPendentes_Judicial.toString());\n\t\t\ttotaVO.setValorSinistrosPendentes_Total(totalValorSinistrosPendentes_Total.toString());\n\n\t\t\ttotaVO.setNumSinistrosPendentes_Administrativo(totalNumSinistrosPendentes_Administrativo);\n\t\t\ttotaVO.setNumSinistrosPendentes_Judicial(totalNumSinistrosPendentes_Judicial);\n\t\t\ttotaVO.setNumSinistrosPendentes_Total(totalNumSinistrosPendentes_Total);\n\t\t\tlistaTratadaTotais.add(totaVO);\n\t\t}\n\t\tlistaTratadaTotais.remove(0);// remove o obj inserido acima com o texto\n\t\t\t\t\t\t\t\t\t\t// \"nulo\"\n\n\t\t// ###################################################\n\t\t// ###################################################\n\t\t// parte para calcular as porcentagens\n\t\t// ###################################################\n\n\t\t// este 'for' serve para vincular a lista de pendentes com a lista de\n\t\t// totais atraves do indice da lista de totais\n\t\ttextoGrupoAnterior = \"\";\n\t\tint tamLista = listaSinistroPendente.size();\n\t\tfor (int i = 0; i < tamLista; i++) {\n\t\t\tfor (int j = 0; j < listaTratadaTotais.size(); j++) {\n\t\t\t\tif (listaSinistroPendente.get(i).getGrupo().equalsIgnoreCase(listaTratadaTotais.get(j).getGrupo())) {\n\t\t\t\t\t// Exemplo: Na listaSinistroPendente na posicao i=5 o\n\t\t\t\t\t// produto eh \"Auto Correntista\". Na listaTratadaTotais\n\t\t\t\t\t// esse produto \"Auto Correntista\" eh j=1. Entao assim\n\t\t\t\t\t// saberei onde esta o total de \"Auto Correntista\" na\n\t\t\t\t\t// listaTratadaTotais.\n\t\t\t\t\tlistaSinistroPendente.get(i).setIndiceListaTotais(j);\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// este 'for' serve para organizar as listas de pendentes e a lista de\n\t\t// totais\n\t\tint inseriu = 0;\n\t\tint ultimoIndice = 0;\n\t\tfor (int j = 0; j < listaSinistroPendente.size(); j++) {\n\n\t\t\tif (listaSinistroPendente.get(j).getIndiceListaTotais() != ultimoIndice) {\n\t\t\t\tinseriu = 0;\n\t\t\t}\n\t\t\tif (inseriu == 0) {\n\t\t\t\tlistaFinal.add(listaTratadaTotais.get(listaSinistroPendente.get(j).getIndiceListaTotais()));\n\t\t\t\tultimoIndice = listaSinistroPendente.get(j).getIndiceListaTotais();\n\t\t\t\tinseriu = 1;\n\t\t\t}\n\n\t\t\tlistaFinal.add(listaSinistroPendente.get(j));\n\n\t\t}\n\n\t\tfor (int i = 0; i < listaFinal.size(); i++) {\n\t\t\tif (!(listaFinal.get(i).getFaixa().equalsIgnoreCase(\"Total\"))) {\n\n\t\t\t\tint indice = listaFinal.get(i).getIndiceListaTotais();\n\t\t\t\ttry {\n\t\t\t\t\tlistaFinal.get(i).setNumPercentSinistrosPendentes_Administrativo(\n\t\t\t\t\t\t\tpercentForm.format((double) (listaFinal.get(i).getNumSinistrosPendentes_Administrativo())\n\t\t\t\t\t\t\t\t\t/ (listaTratadaTotais.get(indice).getNumSinistrosPendentes_Administrativo())));\n\t\t\t\t\tlistaFinal.get(i).setValorPercentSinistrosPendentes_Administrativo(percentForm.format(\n\t\t\t\t\t\t\tnew BigDecimal(listaFinal.get(i).getValorSinistrosPendentes_Administrativo()).divide(\n\t\t\t\t\t\t\t\t\tnew BigDecimal(\n\t\t\t\t\t\t\t\t\t\t\tlistaTratadaTotais.get(indice).getValorSinistrosPendentes_Administrativo()),\n\t\t\t\t\t\t\t\t\t6, RoundingMode.HALF_DOWN)));\n\n\t\t\t\t} catch (ArithmeticException ae) {\n\t\t\t\t\tlistaFinal.get(i).setNumPercentSinistrosPendentes_Administrativo(\"0%\");\n\t\t\t\t\tlistaFinal.get(i).setValorPercentSinistrosPendentes_Administrativo(\"0%\");\n\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tlistaFinal.get(i).setNumPercentSinistrosPendentes_Judicial(\n\t\t\t\t\t\t\tpercentForm.format((double) (listaFinal.get(i).getNumSinistrosPendentes_Judicial())\n\t\t\t\t\t\t\t\t\t/ (listaTratadaTotais.get(indice).getNumSinistrosPendentes_Judicial())));\n\n\t\t\t\t\tlistaFinal.get(i).setValorPercentSinistrosPendentes_Judicial(percentForm\n\t\t\t\t\t\t\t.format(new BigDecimal(listaFinal.get(i).getValorSinistrosPendentes_Judicial()).divide(\n\t\t\t\t\t\t\t\t\tnew BigDecimal(\n\t\t\t\t\t\t\t\t\t\t\tlistaTratadaTotais.get(indice).getValorSinistrosPendentes_Judicial()),\n\t\t\t\t\t\t\t\t\t6, RoundingMode.HALF_DOWN)));\n\n\t\t\t\t} catch (ArithmeticException ae) {\n\t\t\t\t\tlistaFinal.get(i).setNumPercentSinistrosPendentes_Judicial(\"0%\");\n\t\t\t\t\tlistaFinal.get(i).setValorPercentSinistrosPendentes_Judicial(\"0%\");\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tlistaFinal.get(i).setNumPercentSinistrosPendentes_Total(\n\t\t\t\t\t\t\tpercentForm.format((double) (listaFinal.get(i).getNumSinistrosPendentes_Total())\n\t\t\t\t\t\t\t\t\t/ (listaTratadaTotais.get(indice).getNumSinistrosPendentes_Total())));\n\n\t\t\t\t\tlistaFinal.get(i).setValorPercentSinistrosPendentes_Total(percentForm\n\t\t\t\t\t\t\t.format(new BigDecimal(listaFinal.get(i).getValorSinistrosPendentes_Total()).divide(\n\t\t\t\t\t\t\t\t\tnew BigDecimal(listaTratadaTotais.get(indice).getValorSinistrosPendentes_Total()),\n\t\t\t\t\t\t\t\t\t6, RoundingMode.HALF_DOWN)));\n\n\t\t\t\t} catch (ArithmeticException ae) {\n\t\t\t\t\tlistaFinal.get(i).setNumPercentSinistrosPendentes_Total(\"0%\");\n\t\t\t\t\tlistaFinal.get(i).setValorPercentSinistrosPendentes_Total(\"0%\");\n\t\t\t\t}\n\n\t\t\t} // if\n\t\t} // for\n\n\t\tfor (int i = 0; i < listaFinal.size(); i++) {\n\n\t\t\tlistaFinal.get(i).setValorSinistrosPendentes_Administrativo(uteis.insereSeparadoresMoeda(roundForm\n\t\t\t\t\t.format(Double.parseDouble(listaFinal.get(i).getValorSinistrosPendentes_Administrativo()))));\n\t\t\tlistaFinal.get(i).setValorSinistrosPendentes_Judicial(uteis.insereSeparadoresMoeda(\n\t\t\t\t\troundForm.format(Double.parseDouble(listaFinal.get(i).getValorSinistrosPendentes_Judicial()))));\n\t\t\tlistaFinal.get(i).setValorSinistrosPendentes_Total(uteis.insereSeparadoresMoeda(\n\t\t\t\t\troundForm.format(Double.parseDouble(listaFinal.get(i).getValorSinistrosPendentes_Total()))));\n\n\t\t}\n\n\t\treturn listaFinal;\n\t}", "@Override\r\n\tpublic final String[] getHabilidadesRaza() {\r\n\t\treturn new String[] {\"Golpe Defensa\", \"Mordisco de Vida\"};\r\n\t}", "public void filtroVentas(String nombre, String academia, String curso, String fecha_inicio, String fecha_fin, String estado){\n for(GrupoEstudio grupo : grupos){\r\n if(grupo.getNombre().compareTo(nombre) == 0)\r\n listar.add(grupo);\r\n }\r\n //ordenamos la lista por fecha de vencimiento\r\n Collections.sort(listar, new Comparator() { \r\n public int compare(Object o1, Object o2) { \r\n GrupoEstudio c1 = (GrupoEstudio) o1;\r\n GrupoEstudio c2 = (GrupoEstudio) o2;\r\n return c1.getFecha_inicio().compareToIgnoreCase(c2.getFecha_inicio()); \r\n } \r\n }); \r\n }", "public String generarEstadisticasPorFacultad(String cualFacultad) {\n \n int contadorAlta = 0;\n String pAltaEmpl = \"\";\n for (int i = 0; i < EmpleadosPrioridadAlta.size(); i++) {\n if(EmpleadosPrioridadAlta.get(i).getFacultad().equalsIgnoreCase(cualFacultad)){\n contadorAlta += 1;\n pAltaEmpl += \"nombre: \" + EmpleadosPrioridadAlta.get(i).getNombre() + \"\\n\" +\n \" Identificacion: \"+ EmpleadosPrioridadAlta.get(i).getIdentificacion() + \"\\n\";\n \n }\n }\n String pAlta = \"Se encuentran \" + contadorAlta + \" Empleados en condicion Alta\\n\";\n if(EmpleadosPrioridadAlta.isEmpty() == false){\n pAlta += \"los cuales son:\\n\" + pAltaEmpl;\n }\n \n int contadorMAlta = 0;\n String pMAltaEmpl = \"\";\n for (int i = 0; i < EmpleadosPrioridadMediaAlta.size(); i++) {\n if(EmpleadosPrioridadMediaAlta.get(i).getFacultad().equalsIgnoreCase(cualFacultad)){\n contadorMAlta += 1;\n pMAltaEmpl += \"nombre: \" + EmpleadosPrioridadMediaAlta.get(i).getNombre() + \"\\n\" +\n \" Identificacion: \"+ EmpleadosPrioridadMediaAlta.get(i).getIdentificacion() + \"\\n\";\n \n }\n }\n String pMAlta = \"Se encuentran \" + contadorMAlta + \" Empleados en condicion Media Alta\\n\";\n if(EmpleadosPrioridadMediaAlta.isEmpty() == false){\n pMAlta += \"los cuales son:\\n\" + pMAltaEmpl;\n }\n \n int contadorMedia = 0;\n String pMediaEmpl = \"\";\n for (int i = 0; i < EmpleadosPrioridadMedia.size(); i++) {\n if(EmpleadosPrioridadMedia.get(i).getFacultad().equalsIgnoreCase(cualFacultad)){\n contadorMedia += 1;\n pMediaEmpl += \"nombre: \" + EmpleadosPrioridadMedia.get(i).getNombre() + \"\\n\" +\n \" Identificacion: \"+ EmpleadosPrioridadMedia.get(i).getIdentificacion() + \"\\n\";\n \n }\n }\n String pMedia = \"Se encuentran \" + contadorMedia + \" Empleados en condicion Media\\n\";\n if(EmpleadosPrioridadMedia.isEmpty() == false){\n pMedia += \"los cuales son:\\n\" + pMediaEmpl;\n }\n \n int contadorBaja = 0;\n String pBajaEmpl = \"\";\n for (int i = 0; i < EmpleadosPrioridadBaja.size(); i++) {\n if(EmpleadosPrioridadBaja.get(i).getFacultad().equalsIgnoreCase(cualFacultad)){\n contadorBaja += 1;\n pBajaEmpl += \"nombre: \" + EmpleadosPrioridadBaja.get(i).getNombre() + \"\\n\" +\n \" Identificacion: \"+ EmpleadosPrioridadBaja.get(i).getIdentificacion() + \"\\n\";\n }\n }\n String pBaja = \"Se encuentran \" + contadorBaja + \" Empleados en condicion Baja\\n\" ;\n if(EmpleadosPrioridadBaja.isEmpty() == false){\n pBaja += \"los cuales son:\\n\" + pBajaEmpl;\n }\n \n return \"En la facultad \" + cualFacultad + \" de la universidad del valle: \\n\"\n + pAlta + pMAlta + pMedia + pBaja;\n }", "public long reserva_de_entradas(int identificador_evento, Date fechaevento, Horario[] listahorarios ) throws ParseException {\n fgen.info (\"Identificador del evento\" + identificador_evento);\n fgen.info (\"Fecha del evento\" + fechaevento);\n ArrayList<Horario> horariosReserva = new ArrayList<Horario>();\n for (int i = 0; i < listahorarios.length; i++) {\n \n Horario horario = listahorarios[i];\n fgen.info (\"Horario : \" + horario.getHorario().toString()); \n horariosReserva.add(horario);\n List<Disponibilidad> listadisponibles = listahorarios[i].disponibilidades;\n for (int j = 0; j < listadisponibles.size() ; j++) { \n fgen.info (\" Disponibilidad - Cantidad: \" + listadisponibles.get(j).getCantidad());\n fgen.info (\" Disponibilidad - Precio: \" + listadisponibles.get(j).getPrecio());\n fgen.info (\" Disponibilidad - Sector: \" + listadisponibles.get(j).getSector());\n } \n \n \n } \n //Inicializo o tomo lo que esta en memoria de la lista de reservas\n ListaReservas reservas= new ListaReservas(); \n // busco el evento y que la lista de horarios sea en la que quiero reservar\n ListaEventos eventos = new ListaEventos();\n Calendar c = Calendar.getInstance();\n c.setTime(fechaevento);\n Evento e = eventos.buscarEvento(identificador_evento, c);\n List<Horario> horariosRetornar = new ArrayList<Horario>();\n if(e != null)\n {\n horariosRetornar = e.getHorarios();\n } \n \n if (horariosRetornar != null)\n {\n for (int i = 0; i < horariosRetornar.size(); i++) {\n for (int j = 0; j < listahorarios.length; j++) {\n Date fechaE = horariosRetornar.get(i).getHorario().getTime(); \n Date fechaEventoDate = listahorarios[j].hora.getTime(); \n if(fechaE.equals(fechaEventoDate)) \n { for (int k = 0; k < horariosRetornar.get(i).disponibilidades.size(); k++) {\n for (int l = 0; l < listahorarios[j].disponibilidades.size(); l++) {\n Disponibilidad d= horariosRetornar.get(i).disponibilidades.get(k);\n Disponibilidad r= listahorarios[j].disponibilidades.get(l);\n if (d.cantidad >= r.cantidad && d.sector.equalsIgnoreCase(r.sector) && d.precio==r.precio)\n {\n d.setCantidad(d.cantidad-r.cantidad);\n //Reserva reserv= new Reserva();\n //reservas.contador_Id= reservas.contador_Id +1;\n //reserv.idReserva= reservas.contador_Id;\n //reserv.Estado=1;\n //reserv.idEvento = identificador_evento;\n //reserv.horarios.add(listahorarios[j]);\n //reservas.listaReserva.add(reserv);\n //return reserv.idReserva;\n }\n else if(d.cantidad < r.cantidad && d.sector.equalsIgnoreCase(r.sector) && d.precio==r.precio)\n {\n //Si hay alguna solicitud de de reserva que no se pueda cumplir. Re reorna 0.\n //TODO: Hay que volver para atras las cantidades modificadas.\n return 0;\n }\n \n }\n \n }\n }\n }\n }\n Reserva reserv= new Reserva();\n reservas.contador_Id= reservas.contador_Id +1;\n reserv.idReserva= reservas.contador_Id;\n reserv.Estado=1;\n reserv.idEvento = identificador_evento;\n reserv.horarios = horariosReserva;\n reserv.fechaEvento = c;\n reservas.listaReserva.add(reserv);\n return reserv.idReserva;\n }\n \n return 0;\n }", "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 }", "public static ArrayList<Integer> estadisticageneral() {\n\n\t\tArrayList<Integer> mensaje = new ArrayList<>();\n\n\t\tArrayList<Res> resesAntes = ResCRUD.select();\n\t\tArrayList<Res> resess = new ArrayList<>();\n\n\t\t\n\t\tfor (int i = 0; i < resesAntes.size(); i++) {\n\t\t\t\n\t\t\tif (resesAntes.get(i).getVivo()==1) {\n\t\t\t\t\n\t\t\t\tresess.add(resesAntes.get(i));\n\t\t\t}\n\t\t}\t\t\n\n\t\tArrayList<Potrero> potrero = PotreroCRUD.select();\n\n\t\tRes res = null;\n\n\t\tint potreros = potrero.size();\n\t\tint reses = resess.size();\n\t\tint hembras = 0;\n\t\tint machos = 0;\n\t\tint ch = 0;\n\t\tint hl = 0;\n\t\tint nv = 0;\n\t\tint vh = 0;\n\t\tint vp = 0;\n\t\tint cm = 0;\n\t\tint ml = 0;\n\t\tint mc = 0;\n\t\tint tp = 0;\n\n\t\tfor (int i = 0; i < resess.size(); i++) {\n\n\t\t\tres = resess.get(i);\n\n\t\t\tif (res.getGenero().equalsIgnoreCase(\"H\")) {\n\t\t\t\thembras++;\n\n\t\t\t\tswitch (res.getTipo()) {\n\n\t\t\t\tcase \"CH\":\n\n\t\t\t\t\tch++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"HL\":\n\n\t\t\t\t\thl++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"NV\":\n\n\t\t\t\t\tnv++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"VH\":\n\n\t\t\t\t\tvh++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"VP\":\n\n\t\t\t\t\tvp++;\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif (res.getGenero().equalsIgnoreCase(\"M\")) {\n\t\t\t\tmachos++;\n\n\t\t\t\tswitch (res.getTipo()) {\n\n\t\t\t\tcase \"CM\":\n\n\t\t\t\t\tcm++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"ML\":\n\n\t\t\t\t\tml++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"MC\":\n\n\t\t\t\t\tmc++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"TP\":\n\n\t\t\t\t\ttp++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\tmensaje.add(potreros);\n\t\tmensaje.add(reses);\n\t\tmensaje.add(hembras);\n\t\tmensaje.add(machos);\n\t\tmensaje.add(ch);\n\t\tmensaje.add(hl);\n\t\tmensaje.add(nv);\n\t\tmensaje.add(vh);\n\t\tmensaje.add(vp);\n\t\tmensaje.add(cm);\n\t\tmensaje.add(ml);\n\t\tmensaje.add(mc);\n\t\tmensaje.add(tp);\n\n\t\treturn mensaje;\n\t}", "public static void horoscopo() {\n\n ArrayList<String> frases = new ArrayList<>();\n\n frases.add(\"Todo lo que seas capaz de creer, eres capaz de conseguir.\");\n frases.add(\"Serás más poderoso cuando tengas control total sobre ti mismo.\");\n frases.add(\"La sabiduría y la casualidad no van unidas de la mano.\");\n frases.add(\"Lo que hay en el ayer o en el mañana no es nada comparado con lo que hay en nuestro interior.\");\n frases.add(\"Cáete siete veces y levántate ocho.\");\n frases.add(\"Nunca es tarde para comenzar un nuevo proyecto, para ser quien siempre has deseado ser.\");\n frases.add(\"Con pensamientos positivos y perseverancia, solo es cuestión de tiempo que superes las adversidades y te propongas nuevos retos.\");\n frases.add(\"La vida es un 10% lo que nos ocurre, y un 90% cómo reaccionamos a ello.\");\n frases.add(\"No es más rico quien más tiene, sino quien menos necesita.\");\n frases.add(\"Intenta y falla, pero nunca falles en intentarlo.\");\n frases.add(\"Solo los hombres más sabios son capaces de saborear los momentos más simples.\");\n frases.add(\"cada segundo que goces, será segundo aprovechado.\");\n\n double numero = Math.round(Math.random() * 11);\n int numeroAleatorio = (int) numero;\n\n //Random r = new Random(); \n // int randomNumber = r.nextInt(frases.size());\n System.out.println(\"Frase horóscopo: \" + frases.get(numeroAleatorio));\n\n }", "public void getPropuestasOrdenadas(int confirm) throws ParseException{\n System.out.println(\"\\nSe imprimirán las propuestas de la Sala \"+getNombreSala()+\":\");\n if (propuestas.size() == 0){\n System.out.println(\"No hay reservas para esta Sala\");\n }\n else{\n for (Propuesta propuestaF : propuestas) {\n String nombreReservador = propuestaF.getReservador().getNombreCompleto();\n if (confirm == 0){\n if (propuestaF.isForAllSem()) {\n System.out.println(\"Propuesta por todo el semestre, parte el \"+propuestaF.getFechaPuntualI(0)+\" hasta \"+\n propuestaF.getFechaPuntualF(0)+\". La reserva termina el \"+\n propuestaF.getFechaPuntualI(propuestaF.getFechasPropuestasInicio().size()-1)+\" hasta \"+\n propuestaF.getFechaPuntualF(propuestaF.getFechasPropuestasFinal().size()-1));\n System.out.println(\"Esta reserva fue hecha por:\");\n if (propuestaF.getReservador() instanceof Profesor){\n System.out.println(\"Profesor \"+ nombreReservador);\n }\n else if (propuestaF.getReservador() instanceof Estudiante){\n System.out.println(\"Estudiante \"+ nombreReservador);\n }\n else{\n System.out.println(nombreReservador);\n }\n }\n else{\n int i = 0;\n int j = 0;\n int idPropuesta = 0;\n String fecha = \"01-01-50000\";\n SimpleDateFormat parseF = new SimpleDateFormat(\"dd-MM-yyyy\");\n Date fechaMasReciente = parseF.parse(fecha);\n Date fechaAux;\n Propuesta propActual;\n while(i < propuestas.size()){\n while (j < propuestas.size()){\n propActual = propuestas.get(j);\n fechaAux = propActual.getFechaPuntualI(0);\n if (fechaAux.compareTo(fechaMasReciente) < 0){\n fechaMasReciente = fechaAux;\n }\n j++;\n }\n System.out.println(\"Desde \"+propuestas.get(i).getFechaPuntualF(0)+\" hasta \"+\n propuestas.get(i).getFechaPuntualF(0));\n fecha = \"01-01-2200\";\n fechaMasReciente = parseF.parse(fecha);\n i++;\n }\n }\n }\n else if (confirm == 1){\n if (propuestaF.isForAllSem() && propuestaF.isConfirmada()) {\n System.out.println(\"Propuesta por todo el semestre, parte el \"+propuestaF.getFechaPuntualI(0)+\" hasta \"+\n propuestaF.getFechaPuntualF(0)+\". La reserva termina el \"+\n propuestaF.getFechaPuntualI(propuestaF.getFechasPropuestasInicio().size()-1)+\" hasta \"+\n propuestaF.getFechaPuntualF(propuestaF.getFechasPropuestasFinal().size()-1));\n System.out.println(\"Esta reserva fue hecha por:\");\n if (propuestaF.getReservador() instanceof Profesor){\n System.out.println(\"Profesor \"+ nombreReservador);\n }\n else if (propuestaF.getReservador() instanceof Estudiante){\n System.out.println(\"Estudiante \"+ nombreReservador);\n }\n else{\n System.out.println(nombreReservador);\n }\n }\n else if (propuestaF.isConfirmada()){\n int i = 0;\n int j = 0;\n int idPropuesta = 0;\n String fecha = \"01-01-50000\";\n SimpleDateFormat parseF = new SimpleDateFormat(\"dd-MM-yyyy\");\n Date fechaMasReciente = parseF.parse(fecha);\n Date fechaAux;\n Propuesta propActual;\n while(i < propuestas.size()){\n while (j < propuestas.size()){\n propActual = propuestas.get(j);\n fechaAux = propActual.getFechaPuntualI(0);\n if (fechaAux.compareTo(fechaMasReciente) < 0){\n fechaMasReciente = fechaAux;\n }\n j++;\n }\n System.out.println(\"Desde \"+propuestas.get(i).getFechaPuntualF(0)+\" hasta \"+\n propuestas.get(i).getFechaPuntualF(0));\n fecha = \"01-01-2200\";\n fechaMasReciente = parseF.parse(fecha);\n i++;\n }\n }\n }\n }\n }\n }", "public static List<ViajeEntidad> getListaViajesEntidad(){\n List<ViajeEntidad> viajes = new ArrayList<>();\n Date date = new Date();\n ViajeEntidadPK viajePK = new ViajeEntidadPK();\n TaxiEntidad taxiByPkPlacaTaxi = new TaxiEntidad();\n ClienteEntidad clienteByPkCorreoCliente = new ClienteEntidad();\n clienteByPkCorreoCliente.setPkCorreoUsuario(\"[email protected]\");\n TaxistaEntidad taxistaByCorreoTaxi = new TaxistaEntidad();\n taxistaByCorreoTaxi.setPkCorreoUsuario(\"[email protected]\");\n OperadorEntidad agendaOperador = new OperadorEntidad();\n agendaOperador.setPkCorreoUsuario(\"[email protected]\");\n\n viajePK.setPkPlacaTaxi(\"CCC11\");\n viajePK.setPkFechaInicio(\"2019-01-01 01:01:01\");\n viajes.add(new ViajeEntidad(viajePK, \"2019-01-01 02:01:01\",\"5000\", 2, \"origen\",\"destino\", \"agenda\", \"agenda2\", taxiByPkPlacaTaxi, clienteByPkCorreoCliente, taxistaByCorreoTaxi, agendaOperador));\n viajePK.setPkPlacaTaxi(\"DDD11\");\n viajes.add(new ViajeEntidad(viajePK, \"2019-01-01 02:01:01\",\"5000\", 2, \"origen\",\"destino\", \"agenda\", \"agenda2\", taxiByPkPlacaTaxi, clienteByPkCorreoCliente, taxistaByCorreoTaxi, agendaOperador));\n viajePK.setPkPlacaTaxi(\"EEE11\");\n viajes.add(new ViajeEntidad(viajePK, \"2019-01-01 02:01:01\",\"5000\", 2, \"origen\",\"destino\", \"agenda\", \"agenda2\", taxiByPkPlacaTaxi, clienteByPkCorreoCliente, taxistaByCorreoTaxi, agendaOperador));\n\n return viajes;\n }", "public String[] getListaDinastie() {\n\t\treturn WikiImperatoriRomaniPagina.getInstance().getElencoDinastie();\n\t}", "public List<Seance> listeSeances(Groupe g, Enseignant e);", "private List<Estado> estadosHijos(Estado estado){\r\n EstadoMancala estadom=(EstadoMancala)estado;\r\n Jugador jugadorEstado=estadom.jugadores()[estadom.jugadoractual];\r\n Movimiento[] movimientos=estadom.movimientos(jugadorEstado);\r\n List<Estado> estados=new ArrayList<Estado>();\r\n int cantmovs=0;\r\n if(movimientos!=null)\r\n cantmovs=movimientos.length;\r\n for (int i=0; i<cantmovs;i++){\r\n estados.add(estadom.clone().siguiente(movimientos[i]));\r\n }\r\n return estados;\r\n }", "public void determinarEstadoSalud(){\n \n for (int i = 0; i < listaEmpleados.size(); i++) {\n //Este for chequea si tiene alguna enfermedad preexistente -> asigna puntajes de acuerdo\n for (int j = 0; j < factoresRiesgo.length; j++) {\n \n if(listaEmpleados.get(i).getFactoresRiesgo().contains(factoresRiesgo[j])){ \n listaEmpleados.get(i).setEstadoSalud(30);\n }\n }\n //Verifica el rango de edad de la persona -> asigna puntajes de acuerdo\n if(listaEmpleados.get(i).getEdad() >= 70){\n listaEmpleados.get(i).setEstadoSalud(listaEmpleados.get(i).getEstadoSalud()+50);\n }\n if(listaEmpleados.get(i).getEdad() >= 40 && listaEmpleados.get(i).getEdad() < 70 ){\n listaEmpleados.get(i).setEstadoSalud(listaEmpleados.get(i).getEstadoSalud()+30);\n }\n if(listaEmpleados.get(i).getEdad() >= 20 && listaEmpleados.get(i).getEdad() < 40 ){\n listaEmpleados.get(i).setEstadoSalud(listaEmpleados.get(i).getEstadoSalud()+10);\n }\n //Los hombre tienen mas probabilidades de morir por la mayoria de enfermedad, incluyendo el covid-19\n if(listaEmpleados.get(i).getSexo().equals(\"hombre\")){\n listaEmpleados.get(i).setEstadoSalud(listaEmpleados.get(i).getEstadoSalud()+15);\n \n }\n //Verifica los diferentes puntajes y almacena los empleados en diferentes arraylist dependiendo su prioridad\n \n if(listaEmpleados.get(i).getEstadoSalud() >= 80){\n EmpleadosPrioridadAlta.add(listaEmpleados.get(i)); \n }\n \n if(listaEmpleados.get(i).getEstadoSalud() >= 60 && listaEmpleados.get(i).getEstadoSalud() < 80){\n EmpleadosPrioridadMediaAlta.add(listaEmpleados.get(i));\n }\n \n if(listaEmpleados.get(i).getEstadoSalud() >= 35 && listaEmpleados.get(i).getEstadoSalud() < 60){\n EmpleadosPrioridadMedia.add(listaEmpleados.get(i));\n }\n \n if(listaEmpleados.get(i).getEstadoSalud() >= 0 && listaEmpleados.get(i).getEstadoSalud() < 35){\n EmpleadosPrioridadBaja.add(listaEmpleados.get(i));\n }\n \n } \n \n }", "private static void statACricri() {\n \tSession session = new Session();\n \tNSTimestamp dateRef = session.debutAnnee();\n \tNSArray listAffAnn = EOAffectationAnnuelle.findAffectationsAnnuelleInContext(session.ec(), null, null, dateRef);\n \tLRLog.log(\">> listAffAnn=\"+listAffAnn.count() + \" au \" + DateCtrlConges.dateToString(dateRef));\n \tlistAffAnn = LRSort.sortedArray(listAffAnn, \n \t\t\tEOAffectationAnnuelle.INDIVIDU_KEY + \".\" + EOIndividu.NOM_KEY);\n \t\n \tEOEditingContext ec = new EOEditingContext();\n \tCngUserInfo ui = new CngUserInfo(new CngDroitBus(ec), new CngPreferenceBus(ec), ec, new Integer(3065));\n \tStringBuffer sb = new StringBuffer();\n \tsb.append(\"service\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"agent\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"contractuel\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"travaillees\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"conges\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"dues\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"restant\");\n \tsb.append(ConstsPrint.CSV_NEW_LINE);\n \t\n \n \tfor (int i = 0; i < listAffAnn.count(); i++) {\n \t\tEOAffectationAnnuelle itemAffAnn = (EOAffectationAnnuelle) listAffAnn.objectAtIndex(i);\n \t\t//\n \t\tEOEditingContext edc = new EOEditingContext();\n \t\t//\n \t\tNSArray array = EOAffectationAnnuelle.findSortedAffectationsAnnuellesForOidsInContext(\n \t\t\t\tedc, new NSArray(itemAffAnn.oid()));\n \t\t// charger le planning pour forcer le calcul\n \t\tPlanning p = Planning.newPlanning((EOAffectationAnnuelle) array.objectAtIndex(0), ui, dateRef);\n \t\t// quel les contractuels\n \t\t//if (p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())) {\n \t\ttry {p.setType(\"R\");\n \t\tEOCalculAffectationAnnuelle calcul = p.affectationAnnuelle().calculAffAnn(\"R\");\n \t\tint minutesTravaillees3112 = calcul.minutesTravaillees3112().intValue();\n \t\tint minutesConges3112 = calcul.minutesConges3112().intValue();\n \t\t\n \t\t// calcul des minutes dues\n \t\tint minutesDues3112 = /*0*/ 514*60;\n \t\t/*\tNSArray periodes = p.affectationAnnuelle().periodes();\n \t\tfor (int j=0; j<periodes.count(); j++) {\n \t\t\tEOPeriodeAffectationAnnuelle periode = (EOPeriodeAffectationAnnuelle) periodes.objectAtIndex(j);\n \t\tminutesDues3112 += periode.valeurPonderee(p.affectationAnnuelle().minutesDues(), septembre01, decembre31);\n \t\t}*/\n \t\tsb.append(p.affectationAnnuelle().structure().libelleCourt()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().nomComplet()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())?\"O\":\"N\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesConges3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesDues3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112 - minutesConges3112 - minutesDues3112)).append(ConstsPrint.CSV_NEW_LINE);\n \t\tLRLog.log((i+1)+\"/\"+listAffAnn.count() + \" (\" + p.affectationAnnuelle().individu().nomComplet() + \")\");\n \t\t} catch (Throwable e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\tedc.dispose();\n \t\t//}\n \t}\n \t\n\t\tString fileName = \"/tmp/stat_000_\"+listAffAnn.count()+\".csv\";\n \ttry {\n\t\t\tBufferedWriter fichier = new BufferedWriter(new FileWriter(fileName));\n\t\t\tfichier.write(sb.toString());\n\t\t\tfichier.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tLRLog.log(\"writing \" + fileName);\n\t\t}\n }", "private void getEncuestaSatisfaccions(){\n mEncuestaSatisfaccions = estudioAdapter.getEncuestaSatisfaccionSinEnviar();\n //ca.close();\n }", "public static ArrayList IngresarInfoLista(int posarray){\n\n // Definir objeto de la clase constanste para mensajes\n Constantes constantes = new Constantes();\n\n // Definir Array del objeto de la clase BeneficiosCovid\n ArrayList <BeneficiosCovid19> arrayBeneficios = new ArrayList <BeneficiosCovid19>();\n\n System.out.println(\"Por favor ingresar Subsidios para la lista Nro: \" + posarray);\n\n // Variables de trabajo\n String tipoDato = \"\";\n String info = \"\";\n String idrandom;\n String continuar = constantes.TXT_SI;\n //iniciar Ciclo para cargar informacion\n //while (continuar.equals(\"SI\")){\n\n //Definir Objeto de la clase BeneficiosCovid\n BeneficiosCovid19 beneficios_Covid = new BeneficiosCovid19();\n\n //Ingresar Nombre Tipo Alfa\n tipoDato = \"A\";\n info = validarinfo(constantes.TXT_Inp_Nombre,tipoDato);\n beneficios_Covid.setNombre(info);\n\n //Ingresar Valor Subsidio Tipo Numerico\n tipoDato = \"N\";\n info = validarinfo(constantes.TXT_Inp_Subsidio,tipoDato);\n beneficios_Covid.setValorSubsidio(Float.parseFloat(info));\n\n //Obtener el ID de manera aleatoria\n idrandom = getIdBeneficio();\n beneficios_Covid.setId(idrandom);\n\n arrayBeneficios.add(beneficios_Covid);\n\n /**\n * Validacion para continuar o finalizar el ciclo\n * principaly finalizar Main de manera controlada\n * por consola\n **/\n\n /* tipoDato = \"A\";\n continuar = validarinfo(constantes.TXT_Msg_Continuar,tipoDato);\n // Validar valor ingrsado para continuar o finalizar aplicación\n while ( !continuar.equals(\"SI\") && !continuar.equals(\"NO\")) {\n continuar = validarinfo(constantes.TXT_Msg_Continuar, tipoDato);\n }\n\n }\n */\n return arrayBeneficios;\n }", "ArrayList<Float> pierwszaPredykcja()\n\t{\n\t\tif (Stale.scenariusz<100)\n\t\t{\n\t\t\treturn pierwszaPredykcjaNormal();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//dla scenariusza testowego cnea predykcji jest ustawiana na 0.30\n\t\t\tArrayList<Float> L1 = new ArrayList<>();\n\t\t\tL1.add(0.30f);\n\t\t\treturn L1;\n\t\t}\n\t}", "public void repartirGanancias() {\n\t\t \n\t\t System.out.println(\"JUGADORES EN GANANCIAS:\");\n\t\t for(int i = 0; i < idJugadores.length;i++) {\n\t\t\t System.out.println(\"idJugador [\"+i+\"] : \"+idJugadores[i]);\n\t\t }\n\t\t System.out.println(\"GANADORES EN GANANCIA\");\n\t\t for(int i = 0; i < ganador.size();i++) {\n\t\t\t System.out.println(\"Ganador [\"+i+\"] : \"+ganador.get(i));\n\t\t }\n\t\t if(ganador.size() >= 1) {\n\t\t\t for(int i = 0; i < idJugadores.length; i++) {\n\n\t\t\t\t if(contieneJugador(ganador, idJugadores[i])) {\n\t\t\t\t\t System.out.println(\"Entra ganador \"+idJugadores[i]);\n\t\t\t\t\t if(verificarJugadaBJ(manosJugadores.get(i))) {\n\t\t\t\t\t\t System.out.println(\"Pareja nombre agregado: \"+idJugadores[i]);\n\t\t\t\t\t\t parejaNombreGanancia.add(new Pair<String, Integer>(idJugadores[i],25));\n\t\t\t\t\t }else {\n\t\t\t\t\t\t System.out.println(\"Pareja nombre agregado --> \"+idJugadores[i]);\n\t\t\t\t\t\t parejaNombreGanancia.add(new Pair<String, Integer>(idJugadores[i],20));\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t } \n\t\t }else {\n\t\t\t System.out.println(\"no ganó nadie\");\n\t\t\t parejaNombreGanancia.add(new Pair<String, Integer>(\"null\",0));\n\t\t }\n\t }", "public void cargarEstudiantesSitio() {\r\n\t\tList<ArrMatriculado> listado = mngRes.matriculadosEnSitioPorPeriodo(sitioId, periodo.getPrdId());\r\n\t\tgetReservasSitio().clear();\r\n\t\tif (listado != null && !listado.isEmpty())\r\n\t\t\tgetReservasSitio().addAll(listado);\r\n\t}", "public ArrayList<String> mostraRegles(){\n ArrayList<String> tauleta = new ArrayList<>();\n String aux = reg.getAssignacions().get(0).getAntecedents().getRangs().get(0).getNom();\n for (int i=1; i<list.getAtribs().size(); i++){\n aux += \"\\t\" + list.getAtribs().get(i).getNom();\n }\n tauleta.add(aux);\n for (int j=0; j<list.getNumCasos(); j++) {\n aux = list.getAtribs().get(0).getCasos().get(j);\n for (int i = 1; i < list.getAtribs().size(); i++) {\n aux += \"\\t\" + list.getAtribs().get(i).getCasos().get(j);\n }\n tauleta.add(aux);\n }\n return tauleta;\n }", "private void caricaLista() {\n /** variabili e costanti locali di lavoro */\n ArrayList unaLista = null;\n CampoDati unCampoDati = null;\n CDBLinkato unCampoDBLinkato = null;\n //@todo da cancellare\n try { // prova ad eseguire il codice\n /* recupera il campo DB specializzato */\n unCampoDBLinkato = (CDBLinkato)unCampoParente.getCampoDB();\n\n /* recupera la lista dal campo DB */\n unaLista = unCampoDBLinkato.caricaLista();\n\n /* recupera il campo dati */\n unCampoDati = unCampoParente.getCampoDati();\n\n /* registra i valori nel modello dei dati del campo */\n if (unaLista != null) {\n unCampoDati.setValoriInterni(unaLista);\n// unCampoDatiElenco.regolaElementiAggiuntivi();\n } /* fine del blocco if */\n\n } catch (Exception unErrore) { // intercetta l'errore\n /* mostra il messaggio di errore */\n Errore.crea(unErrore);\n } /* fine del blocco try-catch */\n\n }", "private void prepararNoticias() {\n Noticia noticia = new Noticia(\n \"Novo Residencial perto de você!\",\n \"Venha conhecer nosso mais novo empreendimento.\"\n );\n noticias.add(noticia);\n\n noticia = new Noticia(\n \"As melhores condições para você adiquirir um imovel hoje mesmo\",\n \"Marque uma visita.\"\n );\n noticias.add(noticia);\n\n adapter.notifyDataSetChanged();\n }", "public java.util.List<String> dinoConflictivo(){\n java.util.List<String> resultado = new java.util.ArrayList<String>();\n Connection con;\n PreparedStatement stmDinos=null;\n ResultSet rsDinos;\n con=this.getConexion();\n try {\n stmDinos = con.prepareStatement(\"select d.nombre \" +\n \"from incidencias i, dinosaurios d where responsable = d.id \" +\n \"group by responsable, d.nombre \" +\n \"having count(*) >= \" +\n \"(select count(*) as c \" +\n \" from incidencias group by responsable order by c desc limit 1)\");\n rsDinos = stmDinos.executeQuery();\n while (rsDinos.next()){resultado.add(rsDinos.getString(\"nombre\"));}\n } catch (SQLException e){\n System.out.println(e.getMessage());\n this.getFachadaAplicacion().muestraExcepcion(e.getMessage());\n }finally{\n try {stmDinos.close();} catch (SQLException e){System.out.println(\"Imposible cerrar cursores\");}\n }\n return resultado;\n }", "private void validarhorarioconotroshorariosactivos(HorarioAsignado horarioasignado, List<HorarioAsignado> horarios) throws LogicaException, ParseException, DatoException {\nGregorianCalendar startasignado=new GregorianCalendar();\nDate startdateasignado= new Date(horarioasignado.getValidezinicio().getTime());\nstartasignado.setTime(startdateasignado);\nGregorianCalendar endasignado=new GregorianCalendar();\nDate enddateasignado= new Date(horarioasignado.getValidezfin().getTime());\nendasignado.setTime(enddateasignado);\n\nint tempfrecasignado = horarioasignado.getHorario().getIdfrecuenciaasignacion().intValue();\nList<Integer> diadelasemanaasignado = diadelasemana(tempfrecasignado);\nList<HashMap<String, Object>> dataasignado = Util.diferenciaEnDiasconFrecuencia(startasignado, endasignado,diadelasemanaasignado,tempfrecasignado);\n\n\n\n\nfor(HorarioAsignado ho:horarios){\n\t\t\tif(ho.getIdhorarioasignado().equals(horarioasignado.getIdhorarioasignado())){\n\t\t\t\n\t\t\t}else{\n\t\t\tif(ho.getIdhorario()==horarioasignado.getIdhorario()){\n\t\t\t\n\t\t\t/*//cedulasconhorarios.add(em);\n\t\t\tif (horarioasignado.getValidezinicio().after(ho.getValidezinicio()) && horarioasignado.getValidezinicio().before(ho.getValidezfin())){\n\t\t\tthrow new LogicaException(\"este contrato ya tiene asociado ese horario\"\n\t\t\t+ \" entre las fechas \"+ho.getValidezinicio()+\" y \"+ ho.getValidezfin());\n\t\t\t\n\t\t\t}*/\n\t\t\t\n\t\t\t}else{\n\t\t\t\n\t\t\t}\n\n\t\tContrato contrato = contratoEJB.getContratosporId(ho.getIdcontrato());\n\t\tEmpleadoBean empleado = empleadoEJB.buscarEmpleadosporId(contrato.getIdempleado());\t\n\tGregorianCalendar start=new GregorianCalendar();\n\tDate startdate= new Date(ho.getValidezinicio().getTime());\n\tstart.setTime(startdate);\n\tGregorianCalendar end=new GregorianCalendar();\n\tDate enddate= new Date(ho.getValidezfin().getTime());\n\tend.setTime(enddate);\n\t\n\tint tempfrec = ho.getHorario().getIdfrecuenciaasignacion().intValue();\n\tList<Integer> diadelasemana = diadelasemana(tempfrec);\n\tList<HashMap<String, Object>> data = Util.diferenciaEnDiasconFrecuencia(start, end,diadelasemana,tempfrec);\n\t\n\t\t\t\t\tfor(HashMap<String, Object> diadehorario:data){\n\t\t\t\tHashMap<String, Object> horariofechas=new HashMap<String, Object>();\n\t\t\t\tGregorianCalendar fecha = (GregorianCalendar)diadehorario.get(\"fecha\");\n\t\t\t\tDate fechadat =fecha.getTime();\n\t\t\t\tGregorianCalendar fechafin = (GregorianCalendar)diadehorario.get(\"fechafin\");\n\t\t\t\tDate fechafindat = fechafin.getTime();\n\t\t\t\tfor(HashMap<String, Object> diaasignado:dataasignado){\n\t\t\t\t\t\tHashMap<String, Object> horariofechasasignadas=new HashMap<String, Object>();\n\t\t\t\t\t\tGregorianCalendar fechaasignada = (GregorianCalendar)diaasignado.get(\"fecha\");\n\t\t\t\t\t\tDate fechaasignadadat =fechaasignada.getTime();\n\t\t\t\t\t\tGregorianCalendar fechafinasignada = (GregorianCalendar)diaasignado.get(\"fechafin\");\n\t\t\t\t\t\tDate fechafinasignadadat = fechafinasignada.getTime();\n\t\t\t\t\t\t\t\t\tif(fechaasignada.after(fechafin)){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tif((fechaasignada.getTime().after(fecha.getTime())||fechaasignada.getTime().equals(fecha.getTime())) && fechaasignada.getTime().before(fechafin.getTime()) ){\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//\tif((fechaasignada.getTime().after(fecha.getTime()) && fechaasignada.getTime().before(fechafin.getTime())) ){\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\") +\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tif((fechafinasignada.getTime().after(fecha.getTime())||fechafinasignada.getTime().equals(fecha.getTime())) && fechafinasignada.getTime().before(fechafin.getTime()) ){\n\t\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\")+\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tif((fecha.getTime().after(fechaasignada.getTime() ) && fecha.getTime().before(fechafinasignada.getTime())) ){\n\t\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\")+\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tif((fechafin.getTime().after(fechaasignada.getTime() ) && fechafin.getTime().before(fechafinasignada.getTime())) ){\n\t\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\")+\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t}\n\n}\n\n\n}\n\n\n/////////////////////////fin validacion/\n}", "public List<Map<String, Object>> getSolicitudList( Long numeroProgramacion, int accion) {\n\t\t\n\t\tlogger.info(\" método : getSolicitudList\");\n\n\t\tList<Map<String, Object>> solicitudes = new ArrayList<Map<String, Object>>();\n\t\t\n\t\t\n\t\tList<SolicitudServicio> solicitudesList = null;\n\t\t\n\t\tif(accion == ConstantBusiness.ACCION_NUEVA_PROGRAMACION){\n\t\t\t\n\t\t\tlogger.info(\" mostrando solicitudes en memoria\");\n\t\t\t\t\n\t\t\t\tsolicitudesList = solicitudServicioDao.getSolicitudListPorEstado(ConstantBusiness.ESTADO_SOLICITUD_PENDIENTE);\n\t\t\t\t\n\t\t\t\tfor (SolicitudServicio s : solicitudesList) {\n\t\t\t\t\t\n\t\t\t\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\t\t\t\tmap.put(\"numeroSolicitud\", s.getNumeroSolicitud());\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t/*Calendar cal = Calendar.getInstance();\n\t\t\t\t\tcal.setTime(s.getFechaSolicitud());\n\t\t\t\t\tint year = cal.get(Calendar.YEAR);\n\t\t\t\t\tString nsoli = \"00000\"+s.getNumeroSolicitud() ;\n\t\t\t\t\tnsoli = nsoli.substring(nsoli.length()-5,nsoli.length());\n\t\t\t\t\tString tag = s.getTipoSolicitud().getAbreviatura()+\"\"+year+\"\"+nsoli;*/\n\t\t\t\t\t\n\t\t\t\t\tmap.put(\"tag\", Util.getTag(s));\n\t\t\t\t\tDate fecPrgn = Calendar.getInstance().getTime();\n\t\t\t\t\tGrupoAtencion g = getGrupoAtencion(fecPrgn, s);\n\t\t\t\t\tmap.put(\"descripcionGrupo\", g==null?\"\":g.getDescripcion());\n\t\t\t\t\tmap.put(\"prioridad\", getPriortidad(s));\n\t\t\t\t\t//map.put(\"latitud\", s.getPoste().getLatitud().doubleValue());\n\t\t\t\t\t//map.put(\"longitud\", s.getPoste().getLongitud().doubleValue());\n\t\t\t\t\tmap.put(\"latitud\", s.getContratoServicio().getLatitud());\n\t\t\t\t\tmap.put(\"longitud\", s.getContratoServicio().getLongitud());\n\t\t\t\t\n\t\t\t\t\tmap.put(\"tipo\", s.getTipoSolicitud().getDescripcion());\n\t\t\t\t\t\n\t\t\t\t\tsolicitudes.add(map);\n\t\t\t\t}\n\t\t\t\n\n\t\t\t\t\n\t\t\n\t\t}else if(accion == ConstantBusiness.ACCION_EDITA_PROGRAMACION){\n\t\t\t\n\n\t\t\tlogger.info(\" mostrando solicitudes registradas \");\n\t\t\t\n\t\t\tList<GrupoAtencionDetalle> GrupoAtencionDetalleList = grupoAtencionDetalleDao.getGrupoAtencionDetalleListPorProgramacion(numeroProgramacion);\n\t\t\tsolicitudesList = new ArrayList<>();\n\t\t\tfor (GrupoAtencionDetalle g : GrupoAtencionDetalleList) {\n\t\t\t\t\n\t\t\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\t\t\tSolicitudServicio s = g.getSolicitudServicio();\n\t\t\t\tmap.put(\"numeroSolicitud\", s.getNumeroSolicitud());\n\t\t\n\t\t\t\t/*Calendar cal = Calendar.getInstance();\n\t\t\t\tcal.setTime(s.getFechaSolicitud());\n\t\t\t\tint year = cal.get(Calendar.YEAR);\n\t\t\t\tString nsoli = \"00000\"+s.getNumeroSolicitud() ;\n\t\t\t\tnsoli = nsoli.substring(nsoli.length()-5,nsoli.length());\n\t\t\t\tString tag = s.getTipoSolicitud().getAbreviatura()+\"\"+year+\"\"+nsoli;*/\n\t\t\t\t\n\t\t\t\tmap.put(\"tag\", Util.getTag(s));\n\t\t\t\tmap.put(\"descripcionGrupo\", g==null?\"\":g.getGrupoAtencion().getDescripcion());\n\t\t\t\tmap.put(\"prioridad\", getPriortidad(s));\n\t\t\t\t//map.put(\"latitud\", s.getPoste().getLatitud().doubleValue());\n\t\t\t\t//map.put(\"longitud\", s.getPoste().getLongitud().doubleValue());\n\t\t\t\tmap.put(\"latitud\", s.getContratoServicio().getLatitud());\n\t\t\t\tmap.put(\"longitud\", s.getContratoServicio().getLongitud());\n\t\t\t\t\n\t\t\t\tmap.put(\"tipo\", s.getTipoSolicitud().getDescripcion());\n\t\t\t\tsolicitudes.add(map);\n\t\t\t\tsolicitudesList.add(s);\n\t\t\t\t//logger.info( s.getNumeroSolicitud() + \" - \"+g.getGrupoAtencion().getDescripcion());\n\t\t\t}\n\t\t}\n\t\t// añadiendo a temporal\n\t\tsolicitudesCached = new ArrayList<>();\n\t\tsolicitudesCached.addAll(solicitudesList);\n\t\t\n\t\treturn solicitudes;\n\t}", "public String[] disponibilidad(){\n\t\tString[] devolucion = null;\n\t\tdevolucion = new String[almacen.length];\n\t\t\n\t\tfor (int i = 0; i < devolucion.length; i++) {\n\t\t\tif(almacen[i]!=null){\n\t\t\t\tdevolucion[i]=almacen[i].getEtiqueta();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn devolucion;\n\t}", "public Map<Long, GrupoAtencion> getGruposAtentionGenerados(Integer accion, Long numeroProgramacion) {\n\t\tlogger.info(\" ### getGruposAtentionGenerados ### \");\n\t\t\n\t\tMap<Long, GrupoAtencion> mpGrupos = Collections.EMPTY_MAP;\n\t\t\n\t\ttry{\n\t\t\t\n\t\t\tif(accion!=null && accion.equals(ConstantBusiness.ACCION_NUEVA_PROGRAMACION)){\n\t\t\t\tmpGrupos = new LinkedHashMap<Long, GrupoAtencion>();\n\t\t\t\tlogger.info(\" mostrando mostrando grupos temporales \");\n\t\t\t\t\n\t\t\t\tmpGrupos.putAll(mpGruposCached);\n\t\t\t\t\n\t\t\t}else if(accion!=null && accion.equals(ConstantBusiness.ACCION_EDITA_PROGRAMACION)){\n\t\t\t\tmpGrupos = new LinkedHashMap<Long, GrupoAtencion>();\n\t\t\t\tlogger.info(\" mostrando mostrando grupos bd \");\n\t\t\t\tList<GrupoAtencion> grupoAtencionLíst = grupoAtencionDao.getGruposAtencionPorProgramacion(numeroProgramacion);\n\t\t\t\tList<GrupoAtencion> _grupoAtencionLíst = new ArrayList<>();\n\t\t\t\t\n\t\t\t\tList<GrupoAtencionDetalle> _grupoDetalleAtencionLíst = new ArrayList<>();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfor (GrupoAtencion g : grupoAtencionLíst) {\n\t\t\t\t\tlogger.info(\" grupo generado :\"+g.getDescripcion());\n\t\t\t\t\t//clonando grupos \n\t\t\t\t\tlogger.info(\" ### clonando grupo : \"+g.getNumeroGrupoAtencion());\n\t\t\t\t\tGrupoAtencion grupoAtencion = (GrupoAtencion) g.clone();\n\t\t\t\t\tfor(GrupoAtencionDetalle d: g.getGrupoAtencionDetalles()){\n\t\t\t\t\t\t\n\t\t\t\t\t\tlogger.info(\"### numero de solicitud :\"+d.getSolicitudServicio().getNumeroSolicitud());\n\t\t\t\t\t\t\n\t\t\t\t\t\t_grupoDetalleAtencionLíst.add((GrupoAtencionDetalle)d.clone());\n\t\t\t\t\t }\n\t\t\t\t\t\n\t\t\t\t\t_grupoAtencionLíst.add(grupoAtencion);\n\t\t\t\t}\n\n\t\t\t\tlogger.info(\" mapeando objetos clonados \");\n\t\t\t\tfor (GrupoAtencion g : _grupoAtencionLíst) {\n\t\t\t\t\tg.setGrupoAtencionDetalles(new ArrayList<GrupoAtencionDetalle>());\n\t\t\t\t\tfor (GrupoAtencionDetalle d : _grupoDetalleAtencionLíst) {\n\t\t\t\t\t\tif( d.getGrupoAtencion()!=null && \n\t\t\t\t\t\t\t\td.getGrupoAtencion().getNumeroGrupoAtencion()==g.getNumeroGrupoAtencion()){\n\t\t\t\t\t\t\tg.getGrupoAtencionDetalles().add(d);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tmpGrupos.put(g.getNumeroGrupoAtencion(), g);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tthis.mpGruposCached = mpGrupos;\n\t\t\t\t\n\t\t\t\tmostrarGrupos(mpGrupos);\n\t\t\t}\n\t\t\t\n\t\t\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn mpGrupos;\n\t}", "public List<MovimentoPorCanalDeVendaVO> validaSelecionaEmissaoPorCanal(String movimento) {\n\n\t\tList<MovimentoPorCanalDeVendaVO> list = new ArrayList<MovimentoPorCanalDeVendaVO>(listaEmissaoPorCanal);\n\n\t\tList<MovimentoPorCanalDeVendaVO> listTotal = new ArrayList<MovimentoPorCanalDeVendaVO>();\n\n\t\tString[] mesesTotaisValor = { \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\",\n\t\t\t\t\"0.0\" };\n\n\t\tString[] mesesTotaisQuantidade = { \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\" };\n\n\t\tString anoTotal = null;\n\t\tString produtoTotal = null;\n\n\t\tint qtdQuantidade = 0;\n\t\tint qtdValor = 0;\n\n\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\tif (!(list.get(i).getMovimento().trim().equalsIgnoreCase(movimento.trim()))) {\n\t\t\t\tlist.remove(i);\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\n\t\tfor (MovimentoPorCanalDeVendaVO objLista : list) {\n\t\t\tif (objLista.getTipo().equalsIgnoreCase(\"Valor\")) {\n\t\t\t\tqtdValor++;\n\t\t\t} else if (objLista.getTipo().equalsIgnoreCase(\"Quantidade\")) {\n\t\t\t\tqtdQuantidade++;\n\t\t\t}\n\t\t}\n\t\tint indiceElementoNaoEncontrado = 0;\n\t\tif (qtdValor != qtdQuantidade) {\n\n\t\t\tif (qtdValor > qtdQuantidade) {// Valor eh maior\n\t\t\t\touter: for (int i = 0; i < list.size(); i++) {\n\t\t\t\t\tif (list.get(i).getTipo().equalsIgnoreCase(\"Valor\")) {\n\n\t\t\t\t\t\t// System.out.println();\n\t\t\t\t\t\t//\n\t\t\t\t\t\t// System.out.print(\" 1 | \"\n\t\t\t\t\t\t// + list.get(i).getCanalDeVenda());\n\t\t\t\t\t\t// System.out.println();\n\n\t\t\t\t\t\tfor (int j = 0; j < list.size(); j++) {\n\t\t\t\t\t\t\tint achou = -1;\n\t\t\t\t\t\t\tif (list.get(j).getTipo().equalsIgnoreCase(\"Quantidade\")) {\n\n\t\t\t\t\t\t\t\t// System.out.print(\" 2 | \"\n\t\t\t\t\t\t\t\t// + list.get(j).getCanalDeVenda());\n\t\t\t\t\t\t\t\t// System.out.println();\n\n\t\t\t\t\t\t\t\tif (list.get(i).getCanalDeVenda().equals(list.get(j).getCanalDeVenda())) {\n\t\t\t\t\t\t\t\t\tachou = j;\n\t\t\t\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (j == list.size() - 1 && achou == -1) {\n\t\t\t\t\t\t\t\t\tindiceElementoNaoEncontrado = i;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tString[] meses = { \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\" };\n\n\t\t\t\tMovimentoPorCanalDeVendaVO canalVendaVazio = new MovimentoPorCanalDeVendaVO();\n\t\t\t\tcanalVendaVazio.setCanalDeVenda(list.get(indiceElementoNaoEncontrado).getCanalDeVenda());\n\t\t\t\tcanalVendaVazio.setProduto(list.get(indiceElementoNaoEncontrado).getProduto());\n\t\t\t\tcanalVendaVazio.setTipo(\"Quantidade\");\n\t\t\t\tcanalVendaVazio.setMeses(meses);\n\n\t\t\t\tlist.add(((list.size() + 1) / 2 + indiceElementoNaoEncontrado), canalVendaVazio);// aqui\n\t\t\t\t/* estou ordenando tudo que é tipo 'Valor' antes de 'Quantidade' */\n\t\t\t} else {// Qtd eh maior\n\t\t\t\touter: for (int i = 0; i < list.size(); i++) {\n\t\t\t\t\tif (list.get(i).getTipo().equalsIgnoreCase(\"Quantidade\")) {\n\n\t\t\t\t\t\t// System.out.println();\n\t\t\t\t\t\t//\n\t\t\t\t\t\t// System.out.print(\" 1 | \"\n\t\t\t\t\t\t// + list.get(i).getCanalDeVenda());\n\t\t\t\t\t\t// System.out.println();\n\n\t\t\t\t\t\tfor (int j = 0; j < list.size(); j++) {\n\t\t\t\t\t\t\tint achou = -1;\n\t\t\t\t\t\t\tif (list.get(j).getTipo().equalsIgnoreCase(\"Valor\")) {\n\n\t\t\t\t\t\t\t\t// System.out.print(\" 2 | \"+\n\t\t\t\t\t\t\t\t// list.get(j).getCanalDeVenda());\n\t\t\t\t\t\t\t\t// System.out.println();\n\n\t\t\t\t\t\t\t\tif (list.get(i).getCanalDeVenda().equals(list.get(j).getCanalDeVenda())) {\n\t\t\t\t\t\t\t\t\tachou = j;\n\t\t\t\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (j == list.size() - 1 && achou == -1) {\n\t\t\t\t\t\t\t\t\tindiceElementoNaoEncontrado = i;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tString[] meses = { \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\" };\n\n\t\t\t\tMovimentoPorCanalDeVendaVO canalVendaVazio = new MovimentoPorCanalDeVendaVO();\n\t\t\t\tcanalVendaVazio.setCanalDeVenda(list.get(indiceElementoNaoEncontrado).getCanalDeVenda());\n\t\t\t\tcanalVendaVazio.setProduto(list.get(indiceElementoNaoEncontrado).getProduto());\n\t\t\t\tcanalVendaVazio.setTipo(\"Valor\");\n\t\t\t\tcanalVendaVazio.setMeses(meses);\n\n\t\t\t\tlist.add(((list.size() + 1) / 2 + indiceElementoNaoEncontrado), canalVendaVazio);// aqui\n\t\t\t\t/* estou ordenando tudo que é tipo 'Valor' antes de 'Quantidade' */\n\n\t\t\t}\n\n\t\t}\n\n\t\t/*\n\t\t * ===Primeiro crio os objetos com os totais=========\n\t\t */\n\t\tfor (MovimentoPorCanalDeVendaVO emi : list) {\n\n\t\t\tif (emi.getTipo().equals(\"Valor\")) {\n\n\t\t\t\tfor (int i = 0; i < emi.getMeses().length; i++) {\n\t\t\t\t\tmesesTotaisValor[i] = new BigDecimal(mesesTotaisValor[i]).add(new BigDecimal(emi.getMeses()[i]))\n\t\t\t\t\t\t\t.toString();\n\t\t\t\t}\n\n\t\t\t} else if (emi.getTipo().equals(\"Quantidade\")) {\n\n\t\t\t\tfor (int i = 0; i < emi.getMeses().length; i++) {\n\t\t\t\t\tmesesTotaisQuantidade[i] = Integer.toString(\n\t\t\t\t\t\t\t(Integer.parseInt(mesesTotaisQuantidade[i]) + Integer.parseInt(emi.getMeses()[i])));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tanoTotal = emi.getAno();\n\t\t\tprodutoTotal = emi.getProduto();\n\n\t\t}\n\n\t\tMovimentoPorCanalDeVendaVO totalValor = new MovimentoPorCanalDeVendaVO();\n\t\tMovimentoPorCanalDeVendaVO totalQuantidade = new MovimentoPorCanalDeVendaVO();\n\n\t\ttotalValor.setCanalDeVenda(\"Total\");\n\t\ttotalValor.setProduto(produtoTotal);\n\t\ttotalValor.setTipo(\"Valor\");\n\t\ttotalValor.setAno(anoTotal);\n\t\ttotalValor.setMeses(mesesTotaisValor);\n\t\tlistTotal.add(totalValor);\n\n\t\ttotalQuantidade.setCanalDeVenda(\"Total\");\n\t\ttotalQuantidade.setProduto(produtoTotal);\n\t\ttotalQuantidade.setTipo(\"Quantidade\");\n\t\ttotalQuantidade.setAno(anoTotal);\n\t\ttotalQuantidade.setMeses(mesesTotaisQuantidade);\n\t\tlistTotal.add(totalQuantidade);\n\n\t\t/*\n\t\t * ===Agora calculo os percentuais=========\n\t\t */\n\n\t\tfinal int VALOR = 0;\n\t\tfinal int QUANTIDADE = 1;\n\n\t\tDecimalFormat percentForm = new DecimalFormat(\"0.00%\");\n\t\tDecimalFormat roundForm = new DecimalFormat(\"0.00\");\n\t\tUteis uteis = new Uteis();\n\t\tList<MovimentoPorCanalDeVendaVO> listFinal = new ArrayList<MovimentoPorCanalDeVendaVO>();\n\n\t\tfor (int i = 0; i < list.size() / 2; i++) {\n\t\t\tMovimentoPorCanalDeVendaVO emissaoValor = new MovimentoPorCanalDeVendaVO();\n\t\t\t/* ===VALOR==== */\n\t\t\temissaoValor.setCanalDeVenda(list.get(i).getCanalDeVenda());\n\t\t\temissaoValor.setTipo(list.get(i).getTipo());\n\t\t\temissaoValor.setMeses(list.get(i).getMeses());\n\n\t\t\tMovimentoPorCanalDeVendaVO emissaoValorPercent = new MovimentoPorCanalDeVendaVO();\n\t\t\t/* ===%=VALOR==== */\n\t\t\temissaoValorPercent.setCanalDeVenda(list.get(i).getCanalDeVenda());\n\t\t\temissaoValorPercent.setTipo(\"% \" + list.get(i).getTipo());\n\n\t\t\tString[] mesesPercentValor = new String[12];\n\t\t\tfor (int k = 0; k < list.get(i).getMeses().length; k++) {\n\n\t\t\t\ttry {\n\t\t\t\t\tdouble total = Double.parseDouble(new BigDecimal(list.get(i).getMeses()[k])\n\t\t\t\t\t\t\t.divide(new BigDecimal(listTotal.get(VALOR).getMeses()[k]), 5, RoundingMode.HALF_DOWN)\n\t\t\t\t\t\t\t.toString());\n\t\t\t\t\tmesesPercentValor[k] = percentForm.format(total);\n\n\t\t\t\t} catch (ArithmeticException e) {\n\t\t\t\t\tmesesPercentValor[k] = \"0%\";\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\temissaoValorPercent.setMeses(mesesPercentValor);\n\n\t\t\tMovimentoPorCanalDeVendaVO emissaoQuantidade = new MovimentoPorCanalDeVendaVO();\n\t\t\t/* ===QUANTIDADE==== */\n\t\t\tint j = list.size() / 2;\n\t\t\temissaoQuantidade.setCanalDeVenda(list.get(j + i).getCanalDeVenda());\n\t\t\temissaoQuantidade.setTipo(list.get(j + i).getTipo());\n\t\t\temissaoQuantidade.setMeses(list.get(j + i).getMeses());\n\n\t\t\tMovimentoPorCanalDeVendaVO emissaoQuantidadePercent = new MovimentoPorCanalDeVendaVO();\n\t\t\t/* ===%=QUANTIDADE==== */\n\t\t\temissaoQuantidadePercent.setCanalDeVenda(list.get(j + i).getCanalDeVenda());\n\t\t\temissaoQuantidadePercent.setTipo(\"% \" + list.get(j + i).getTipo());\n\n\t\t\tString[] mesesPercentQuantidade = new String[12];\n\t\t\tfor (int k = 0; k < list.get(j + i).getMeses().length; k++) {\n\n\t\t\t\ttry {\n\n\t\t\t\t\tdouble total = Double.parseDouble(list.get(j + i).getMeses()[k])\n\t\t\t\t\t\t\t/ Double.parseDouble(listTotal.get(QUANTIDADE).getMeses()[k]);\n\t\t\t\t\tmesesPercentQuantidade[k] = percentForm\n\t\t\t\t\t\t\t.format(Double.toString(total).equalsIgnoreCase(\"NaN\") ? 0.0 : total);\n\n\t\t\t\t} catch (ArithmeticException e) {\n\t\t\t\t\tmesesPercentQuantidade[k] = \"0%\";\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\temissaoQuantidadePercent.setMeses(mesesPercentQuantidade);\n\n\t\t\tString[] valorFormatado = new String[12];\n\t\t\tfor (int k = 0; k < emissaoValor.getMeses().length; k++) {\n\t\t\t\tvalorFormatado[k] = uteis\n\t\t\t\t\t\t.insereSeparadoresMoeda(roundForm.format(Double.parseDouble(emissaoValor.getMeses()[k])));\n\n\t\t\t}\n\t\t\temissaoValor.setMeses(valorFormatado);\n\n\t\t\tString[] valorFormatado2 = new String[12];\n\t\t\tfor (int k = 0; k < emissaoQuantidade.getMeses().length; k++) {\n\t\t\t\tvalorFormatado2[k] = uteis.insereSeparadores(emissaoQuantidade.getMeses()[k]);\n\t\t\t}\n\t\t\temissaoQuantidade.setMeses(valorFormatado2);\n\n\t\t\tlistFinal.add(emissaoValor);\n\t\t\tlistFinal.add(emissaoValorPercent);\n\t\t\tlistFinal.add(emissaoQuantidade);\n\t\t\tlistFinal.add(emissaoQuantidadePercent);\n\n\t\t}\n\n\t\treturn listFinal;\n\n\t}", "public static List<Punto> getPuntos(){\n\t\t\n\t\tList<Punto> puntos = new ArrayList<Punto>();\n\t\ttry{\n\n\t\t\t//-12.045916, -75.195270\n\t\t\t\n\t\t\tPunto p1 = new Punto(1,-12.037512,-75.183327,0.0);\n\t\t\tp1.setDatos(getDatos(\"16/06/2017 09:00:00\", 2 , 1));\n\t\t\t\n\t\t\tPunto p2 = new Punto(2,-12.041961,-75.184786,0.0);\n\t\t\tp2.setDatos(getDatos(\"16/06/2017 09:00:00\",1 , 2));\n\t\t\t\n\t\t\tPunto p3 = new Punto(3,-12.0381,-75.1841,0.0);\n\t\t\tp3.setDatos(getDatos(\"16/06/2017 09:00:00\",2 , 2));\n\t\t\t\n\t\t\tPunto p4 = new Punto(4,-12.041542,-75.185816,0.0);\n\t\t\tp4.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p5 = new Punto(5,-12.037764,-75.181096,0.0);\n\t\t\tp5.setDatos(getDatos(\"16/06/2017 11:15:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p6 = new Punto(6,-12.042801,-75.190108,0.0);\n\t\t\tp6.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p7 = new Punto(7,-12.04364,-75.184014,0.0);\n\t\t\tp7.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p8 = new Punto(8,-12.045739,-75.185387,0.0);\n\t\t\tp8.setDatos(getDatos(\"16/06/2017 11:30:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p9 = new Punto(9,-12.04683,-75.187361,0.0);\n\t\t\tp9.setDatos(getDatos(\"16/06/2017 11:50:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p10 = new Punto(10,-12.050775,-75.187962,0.0);\n\t\t\tp10.setDatos(getDatos(\"16/06/2017 12:30:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p11 = new Punto(11,-12.053797,-75.184271,0.0);\n\t\t\tp11.setDatos(getDatos(\"16/06/2017 13:00:00\",0 , 0));\n\t\t\t\n\t\t\tpuntos.add(p8);\n\t\t\tpuntos.add(p9);\n\t\t\tpuntos.add(p3);\n\t\t\tpuntos.add(p4);\n\t\t\tpuntos.add(p5);\n\t\t\tpuntos.add(p6);\n\t\t\tpuntos.add(p7);\n\t\t\tpuntos.add(p10);\n\t\t\tpuntos.add(p1);\n\t\t\tpuntos.add(p2);\n\t\t\tpuntos.add(p11);\n\t\t\t\n\t\t\t\n\t\t}catch(Exception e ){\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}\n\t\t\n\t\treturn puntos;\n\t\n\t}", "private void gerarLaudosProcedimentosEspeciaisDiversos(\r\n\t\t\tMpmPrescricaoMedica prescricao, List<MpmLaudo> laudoList)\r\n\t\t\tthrows BaseException {\r\n\r\n\t\tMap<MpmPrescricaoProcedimento, FatProcedHospInternos> procedimentosMap = this\r\n\t\t\t\t.getConfirmarPrescricaoMedicaRN()\r\n\t\t\t\t.listarProcedimentosDiversosGeracaoLaudos(prescricao);\r\n\r\n\t\tMpmLaudo laudo = null;\r\n\r\n\t\tIParametroFacade parametroFacade = this.getParametroFacade();\r\n\r\n\t\tint codigoHemodialise = parametroFacade\r\n\t\t\t\t.buscarAghParametro(\r\n\t\t\t\t\t\tAghuParametrosEnum.P_AGHU_PROCEDIMENTO_HOSPITALAR_INTERNO_HEMODIALISE)\r\n\t\t\t\t.getVlrNumerico().intValue();\r\n\t\tint codigoDialise = parametroFacade\r\n\t\t\t\t.buscarAghParametro(\r\n\t\t\t\t\t\tAghuParametrosEnum.P_AGHU_PROCEDIMENTO_HOSPITALAR_INTERNO_DIALISE)\r\n\t\t\t\t.getVlrNumerico().intValue();\r\n\r\n\t\tfor (MpmPrescricaoProcedimento procedimento : procedimentosMap.keySet()) {\r\n\r\n\t\t\tInteger codigoProcedimentoInterno = procedimentosMap.get(\r\n\t\t\t\t\tprocedimento).getSeq();\r\n\t\t\tboolean gerarLaudo = true;\r\n\r\n\t\t\tif (codigoProcedimentoInterno == codigoHemodialise\r\n\t\t\t\t\t|| codigoProcedimentoInterno == codigoDialise) {\r\n\t\t\t\tgerarLaudo = !this.getConfirmarPrescricaoMedicaRN()\r\n\t\t\t\t\t\t.verificarPacienteContaApac();\r\n\r\n\t\t\t}\r\n\r\n\t\t\tif (gerarLaudo) {\r\n\r\n\t\t\t\tlaudo = new MpmLaudo();\r\n\t\t\t\tlaudo.setDthrInicioValidade(prescricao.getDthrInicio());\r\n\r\n\t\t\t\tDate dataFimValidade = prescricao.getDthrInicio();\r\n\t\t\t\tif (procedimento.getDuracaoTratamentoSolicitado() != null) {\r\n\t\t\t\t\tdataFimValidade = DateUtil.adicionaDias(dataFimValidade,\r\n\t\t\t\t\t\t\tprocedimento.getDuracaoTratamentoSolicitado()\r\n\t\t\t\t\t\t\t\t\t.intValue() - 1);\r\n\t\t\t\t}\r\n\t\t\t\tlaudo.setDthrFimValidade(dataFimValidade);\r\n\t\t\t\tlaudo.setDthrFimPrevisao(dataFimValidade);\r\n\r\n\t\t\t\tlaudo.setJustificativa(procedimento.getJustificativa());\r\n\t\t\t\tlaudo.setContaDesdobrada(false);\r\n\t\t\t\tlaudo.setImpresso(false);\r\n\t\t\t\t// #51803\r\n\t\t\t\tif (procedimento.getDuracaoTratamentoSolicitado() == null\r\n\t\t\t\t\t\t|| procedimento.getDuracaoTratamentoSolicitado() == 0) {\r\n\t\t\t\t\tlaudo.setDuracaoTratSolicitado((short) 1);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tlaudo.setDuracaoTratSolicitado(procedimento\r\n\t\t\t\t\t\t\t.getDuracaoTratamentoSolicitado());\r\n\t\t\t\t}\r\n\t\t\t\tlaudo.setLaudoManual(false);\r\n\t\t\t\tlaudo.setAtendimento(prescricao.getAtendimento());\r\n\t\t\t\tlaudo.setPrescricaoProcedimento(procedimento);\r\n\t\t\t\tlaudo.setProcedimentoHospitalarInterno(procedimentosMap\r\n\t\t\t\t\t\t.get(procedimento));\r\n\r\n\t\t\t\tthis.adicionarLaudoLista(laudoList, laudo);\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}", "public List<Requisicion> getRequisicionesNoAutorizadas() throws Exception{\n \n List<Requisicion> requisicion = new ArrayList<>();\n \n Connection miConexion = null;\n Statement miStatement = null;\n ResultSet miResultset = null;\n \n //Establecer la conexion\n miConexion = origenDatos.getConexion();\n \n //Crear sentencia SQL y Statement\n String miSql = \"select r.NUMREQ, r.FECPEDIDOREQ, r.FECENTREGAREQ, r.AUTORIZADO, e.CARNETEMPLEADO, e.NOMBREEMPLEADO, e.APELLIDOEMPLEADO, d.NOMBREDEPARTAMENTO \" + \n \"from requisicion r inner join empleado e on r.carnetempleado =e.carnetempleado \" + \n \"inner join catalagopuesto c on e.codigopuesto =c.codigopuesto \" + \n \"inner join departamento d on c.codigodepartamento = d.codigodepartamento where r.AUTORIZADO = 1\";\n \n miStatement = miConexion.createStatement();\n \n //Ejecutar SQL\n miResultset = miStatement.executeQuery(miSql);\n \n while(miResultset.next()){\n int numReq = miResultset.getInt(\"NUMREQ\");\n Date fechaPedido = miResultset.getDate(\"FECPEDIDOREQ\");\n Date fechaEntrega = miResultset.getDate(\"FECENTREGAREQ\"); \n String carnetEmpleado = miResultset.getString(\"CARNETEMPLEADO\");\n String nombreEmpleado = miResultset.getString(\"NOMBREEMPLEADO\"); \n String apellidoEmpleado = miResultset.getString(\"APELLIDOEMPLEADO\");\n String nombreDepartamento = miResultset.getString(\"NOMBREDEPARTAMENTO\"); \n \n Requisicion temporal = new Requisicion(numReq, fechaPedido, fechaEntrega, carnetEmpleado, nombreEmpleado, apellidoEmpleado, nombreDepartamento);\n requisicion.add(temporal);\n }\n \n return requisicion;\n \n }", "@Override\n //Metodo para retornar una lista de los equipos que avanzan\n public List<Equipo> getEquiposQueAvanzan(){\n List<Equipo> equipos = new ArrayList<>();\n //Recorremos la lista de partidos de la etapa mundial\n for (Partido partidito : getPartidos()){\n /*Si en el partido que estamos parados gano el local, agregamos ese equipo\n local a la lista de equipos*/\n if (partidito.getResultado().ganoLocal()){\n equipos.add(partidito.getLocal());\n }\n /*Si NO gano el local, agregamos el equipo visitante a la lista de equipos*/\n if (!partidito.getResultado().ganoLocal()){\n equipos.add(partidito.getVisitante());\n }\n }\n //Retornamos la nueva lista con los equipos que avanzan\n return equipos;\n }", "public static void MostrarPerroSegunEstadia(Perro BaseDeDatosPerros[], int codPerro){\n String razaDeceada, razaPerro;\r\n int diasDeEstadia; \r\n razaDeceada=IngresarRazaCorrecta();\r\n \r\n for (int i = 0; i < codPerro; i++) {\r\n razaPerro=BaseDeDatosPerros[i].getRaza();\r\n diasDeEstadia=BaseDeDatosPerros[i].getCantDias();\r\n if (razaDeceada.equalsIgnoreCase(razaPerro)&&(diasDeEstadia>20)) {\r\n System.out.println(\"____________________________________________\");\r\n System.out.println(BaseDeDatosPerros[i].toString());\r\n System.out.println(\"____________________________________________\");\r\n \r\n }\r\n }\r\n \r\n }", "private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}", "public static ArrayList<Integer> estadisticasPorPotrero(String nombrePotrero) {\n\n\t\tArrayList<Integer> mensaje = new ArrayList<>();\n\n\t\tArrayList<Res> resess = PotreroCRUD.selectResesNormales(nombrePotrero);\n\n\t\tRes res = null;\n\n\t\tint reses = resess.size();\n\t\tint hembras = 0;\n\t\tint machos = 0;\n\t\tint ch = 0;\n\t\tint hl = 0;\n\t\tint nv = 0;\n\t\tint vh = 0;\n\t\tint vp = 0;\n\t\tint cm = 0;\n\t\tint ml = 0;\n\t\tint mc = 0;\n\t\tint tp = 0;\n\n\t\tfor (int i = 0; i < resess.size(); i++) {\n\n\t\t\tres = resess.get(i);\n\n\t\t\tif (res.getGenero().equalsIgnoreCase(\"H\")) {\n\t\t\t\thembras++;\n\n\t\t\t\tswitch (res.getTipo()) {\n\n\t\t\t\tcase \"CH\":\n\n\t\t\t\t\tch++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"HL\":\n\n\t\t\t\t\thl++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"NV\":\n\n\t\t\t\t\tnv++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"VH\":\n\n\t\t\t\t\tvh++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"VP\":\n\n\t\t\t\t\tvp++;\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif (res.getGenero().equalsIgnoreCase(\"M\")) {\n\t\t\t\tmachos++;\n\n\t\t\t\tswitch (res.getTipo()) {\n\n\t\t\t\tcase \"CM\":\n\n\t\t\t\t\tcm++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"ML\":\n\n\t\t\t\t\tml++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"MC\":\n\n\t\t\t\t\tmc++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"TP\":\n\n\t\t\t\t\ttp++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\tmensaje.add(reses);\n\t\tmensaje.add(hembras);\n\t\tmensaje.add(machos);\n\t\tmensaje.add(ch);\n\t\tmensaje.add(hl);\n\t\tmensaje.add(nv);\n\t\tmensaje.add(vh);\n\t\tmensaje.add(vp);\n\t\tmensaje.add(cm);\n\t\tmensaje.add(ml);\n\t\tmensaje.add(mc);\n\t\tmensaje.add(tp);\n\n\t\treturn mensaje;\n\t}", "public void anazitisiSintagisVaseiHmerominias() {\n\t\tDate firstDt = null, lastDt = null;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t\t\t\tprescription[j].print();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\t// Zitaw apo ton xrhsth to xroniko euros kata to opoio exei graftei sintagh\n\t\t\tfirstDt = sir.readDate(\"DWSTE ARXIKH HMEROMHNIA: \");\n\t\t\tlastDt = sir.readDate(\"DWSTE TELIKH HMEROMHNIA: \");\n\t\t\tSystem.out.println();\n\t\t\tfor(i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\t// An h hmeromhnia eggrafhs ths syntaghs einai anamesa sta xronika oria pou exei dwsei o xrhsths ektypwnetai\n\t\t\t\tif(firstDt.before(prescription[i].getDate()) && (lastDt.after(prescription[i].getDate()))) \n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\tprescription[i].print();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_2++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH METAKSY:\" + firstDt + \" KAI: \" + lastDt);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void mostrarlistainciofin(){\n if(!estavacia()){\n String datos=\"<=>\";\n nododoble auxiliar=inicio;\n while(auxiliar!=null){\n datos=datos+\"[\"+auxiliar.dato+\"]<=>\";\n auxiliar=auxiliar.siguiente;\n }\n JOptionPane.showMessageDialog(null,datos,\n \"Mostraando lista de incio a fin\",JOptionPane.INFORMATION_MESSAGE);\n } }", "@Override\n\tpublic List<String[]> partecipazioneUtentiAiGruppi() throws DAOException{\n\t\t\n\t\tList<String[]> risultato = null;\n\t\tConnection connection = null;\n\t\tPreparedStatement statement = null;\n\t\tResultSet resultSet = null;\n\t\tString[] stringa = null;\n\t\t\n\t\ttry {\n\t\t\trisultato = new ArrayList<String[]>();\n\t\t\tconnection = DataSource.getInstance().getConnection();\n\t\t\tstatement = connection.prepareStatement(\"SELECT DISTINCT COUNT (ISCRIZIONE_GRUPPO.ID_UTENTE)*100/ATTIVITA.NUMERO_PARTECIPANTI AS PARTECIPAZIONE, ISCRIZIONE_GRUPPO.ID_GRUPPO, GRUPPO.DESCRIZIONE FROM GRUPPO INNER JOIN ISCRIZIONE_GRUPPO ON ISCRIZIONE_GRUPPO.ID_GRUPPO = GRUPPO.ID INNER JOIN ATTIVITA ON GRUPPO.ID_ATTIVITA = ATTIVITA.ID GROUP BY (ISCRIZIONE_GRUPPO.ID_UTENTE, ISCRIZIONE_GRUPPO.ID_GRUPPO, GRUPPO.ID_ATTIVITA, ATTIVITA.NUMERO_PARTECIPANTI, GRUPPO.DESCRIZIONE) ORDER BY PARTECIPAZIONE DESC\");\n\t\t\tresultSet = statement.executeQuery();\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tstringa = new String[4];\n\t\t\t\tDouble perc = BigDecimal.valueOf(resultSet.getDouble(1)).setScale(2, RoundingMode.HALF_UP).doubleValue();\n\t\t\t\tstringa[0] = String.valueOf(resultSet.getLong(2));\n\t\t\t\tstringa[1] = resultSet.getString(3);\n\t\t\t\tstringa[2] = String.valueOf(perc);\n\t\t\t\tstringa[3] = String.valueOf(100-perc);\n\t\t\t\trisultato.add(stringa);\n\t\t\t}\n\t\t} catch (SQLException | DAOException e) {\n\t\t\tthrow new DAOException(\"ERRORE partecipazioneUtentiAiGruppi utenteAdmin\" + e.getMessage(), e);\n\t\t} finally {\n\t\t\tDataSource.getInstance().close(resultSet);\n\t\t\tDataSource.getInstance().close(statement);\n\t\t\tDataSource.getInstance().close(connection);\n\t\t}\n\t\treturn risultato;\n\t}", "public static void main(String[] args) {\n List<Evento> listadoEventos = Evento.createShortList();\n List<Expositor> listadoExpositores = Expositor.createShortList();\n List<Asistente> Asistentes = Asistente.createShortList();\n //Asigno a los eventos sus expositores\n listadoEventos.get(0).setExpositor(listadoExpositores.get(0));\n listadoEventos.get(1).setExpositor(listadoExpositores.get(1));\n listadoEventos.get(2).setExpositor(listadoExpositores.get(2));\n listadoEventos.get(3).setExpositor(listadoExpositores.get(3));\n listadoEventos.get(4).setExpositor(listadoExpositores.get(4));\n listadoEventos.get(5).setExpositor(listadoExpositores.get(5));\n //Asigno los asistentes a los eventos\n listadoEventos.get(0).getListaAsistentes().add(Asistentes.get(0));\n listadoEventos.get(0).getListaAsistentes().add(Asistentes.get(1));\n\n listadoEventos.get(1).getListaAsistentes().add(Asistentes.get(2));\n\n listadoEventos.get(2).getListaAsistentes().add(Asistentes.get(3));\n\n listadoEventos.get(3).getListaAsistentes().add(Asistentes.get(4));\n listadoEventos.get(3).getListaAsistentes().add(Asistentes.get(5));\n\n listadoEventos.get(4).getListaAsistentes().add(Asistentes.get(6));\n\n listadoEventos.get(5).getListaAsistentes().add(Asistentes.get(7));\n listadoEventos.get(5).getListaAsistentes().add(Asistentes.get(8));\n listadoEventos.get(5).getListaAsistentes().add(Asistentes.get(9));\n\n //2A: Listado de manera ordenado por titulo descendiente, expositor y asistentes.\n\n Comparator<Integer> comparador = Collections.reverseOrder();\n\n //Ordenar de forma descendente por titulo\n Collections.sort(listadoEventos, (o1, o2) -> o2.getTitulo().compareTo(o1.getTitulo()));\n\n System.out.println(\"======Prueba 01 - Listado de eventos======\");\n for(Evento e:listadoEventos){\n System.out.println(\"****************************************\");\n System.out.println(\"Evento: \"+e.getTitulo());\n System.out.println(\"Expositor: \"+e.getExpositor().getNombre());\n System.out.println(\"Asistentes:\");\n for(Asistente a : e.getListaAsistentes()){\n System.out.println(a.getCodigo()+\"\\t\"+a.getNombre()+\"\\t\"+a.getApellidos());\n }\n }\n\n }", "public static void main(String[] args){\n \r\n Log.registroTraza( \"Iniciando ejecución de la tarea SolicitudesAVencerse\");\r\n \r\n String strSQL, strFechaRecibo, strReqRpta, strRadicado, strIdResp = \"\";\r\n int totalSolAlertadas=0, totalSolVencidas=0;\r\n String[] strTemp = null;\r\n int lgTiempoRpta, lgRestante, lgTiempoConfig; \r\n Vector arrConsecutivos = new Vector();\r\n Vector arrFechasCreacion = new Vector();\r\n Vector arrReqRpta = new Vector();\r\n Vector arrTiempoRpta = new Vector();\r\n Vector arrIdsResp = new Vector();\r\n Comunes comun = new Comunes();\r\n Notificacion n = new Notificacion();\r\n Calendar fechaRecibo = null;\r\n Calendar fechaRpta = null;\r\n Calendar fechaActual = null;\r\n \r\n try{\r\n strSQL = \"select g.txtNroDiasAlerta from buzon.buzon_generales g where g.txtCodigo = 'frmGeneral'\";\r\n String[] strDatosGral = GestionSQL.getFila(strSQL, \"Buzon\");\r\n lgTiempoConfig = Integer.parseInt(strDatosGral[0]);\r\n \r\n strSQL = \"select DISTINCT p.txtRadicado, p.dtFechaCreacion, r.txtReqRpta, r.txtTiempoRpta, p.txtNomCargo from buzon_pqrs p INNER JOIN buzon_retroalimentacion r on (p.txtTipoPQRS = r.txtCodigo) where (p.txtIdEstado <> 'AT' and p.txtIdEstado <> 'CPU') ORDER BY CAST(p.txtRadicado AS SIGNED)\";\r\n Vector arrSols = GestionSQL.consultaSQL(strSQL,\"Buzon\",\"ALERTASSOLS\");\r\n \r\n if (arrSols != null){ \r\n for (int i=0;i<arrSols.size();i++){\r\n strTemp = arrSols.get(i).toString().split(\",\");\r\n arrConsecutivos.add(strTemp[0]);\r\n arrFechasCreacion.add(strTemp[1]);\r\n arrReqRpta.add(strTemp[2]);\r\n arrTiempoRpta.add(strTemp[3]); \r\n arrIdsResp.add(strTemp[4]);\r\n } \r\n\r\n //Obtener los feriados.\r\n\r\n Vector arrFechas = new Vector();\r\n strSQL = \"SELECT d.dtFecha from users.users_dias_no_habiles d order by d.dtFecha\";\r\n arrFechas = GestionSQL.consultaSQL(strSQL, \"Users\", \"FECHAS\"); \r\n\r\n for(int i=0;i<arrConsecutivos.size();i++){\r\n strRadicado = arrConsecutivos.get(i).toString(); \r\n strReqRpta = arrReqRpta.get(i).toString();\r\n strIdResp = arrIdsResp.get(i).toString();\r\n lgRestante = 0; \r\n fechaRecibo = null;\r\n fechaRpta = null;\r\n fechaActual = comun.calcularFechaActual();\r\n\r\n if (strReqRpta.equals(\"S\")){ \r\n lgTiempoRpta = Integer.parseInt(arrTiempoRpta.get(i).toString());\r\n fechaRecibo = Calendar.getInstance(); \r\n\r\n strFechaRecibo = arrFechasCreacion.get(i).toString();\r\n strTemp = strFechaRecibo.split(\"-\"); \r\n fechaRecibo.set(Integer.parseInt(strTemp[0]),(Integer.parseInt(strTemp[1])-1),Integer.parseInt(strTemp[2]));\r\n fechaRecibo.set(Calendar.SECOND, 0);\r\n fechaRecibo.set(Calendar.MILLISECOND, 0); \r\n\r\n fechaRpta= Calendar.getInstance();\r\n fechaRpta.set(Calendar.SECOND, 0);\r\n fechaRpta.set(Calendar.MILLISECOND, 0); \r\n fechaRpta = comun.incrementarDiasHabiles(fechaRecibo, lgTiempoRpta, arrFechas); \r\n\r\n lgRestante = (comun.getDiasHabiles(fechaActual, fechaRpta, arrFechas)-1); \r\n\r\n if ((lgRestante <= lgTiempoConfig) && (lgRestante > 0)){ \r\n n.NotificacionSolAVencer(strRadicado, Long.valueOf(lgRestante + 1), strIdResp); \r\n totalSolAlertadas = totalSolAlertadas + 1;\r\n }else{\r\n if (lgRestante<0){\r\n n.NotificacionSolVencidas(strRadicado, fechaRpta, strIdResp);\r\n totalSolVencidas = totalSolVencidas + 1;\r\n } \r\n } \r\n } \r\n }\r\n }\r\n }catch(Exception e){\r\n Log.registroTraza(\"Se generó un error en la tarea SolicitudesAVencerse: \" + e.getMessage());\r\n }\r\n\r\n SimpleDateFormat formato = new SimpleDateFormat(\"hh:mm:ss\");\r\n Log.registroTraza( \"Tarea SolicitudesAVencerse invocada a la hora: \" + formato.format(new Date()) + \". Solicitudes alertadas: \" + totalSolAlertadas + \". Solicitudes vencidas: \" + totalSolVencidas);\r\n\r\n }", "public void distribuirAportes2(){\n\n if(comprobanteSeleccionado.getAporteorganismo().floatValue() > 0f){\n comprobanteSeleccionado.setAportecomitente(comprobanteSeleccionado.getMontoaprobado().subtract(comprobanteSeleccionado.getAporteuniversidad().add(comprobanteSeleccionado.getAporteorganismo())));\n }\n }", "public String darPista() {\r\n\t\tString msj = \"\";\r\n\t\tboolean fin = false;\r\n\t\tfor (int i = 0; i < casillas.length && !fin; i++) {\r\n\t\t\tfor (int j = 0; j < casillas[0].length && !fin; j++) {\t\t\r\n\t\t\t\tif(casillas[i][j].esMina() == false && casillas[i][j].darValor() > 0) {\r\n\t\t\t\t\tcasillas[i][j].destapar();\r\n\t\t\t\t\tmsj += i+\",\"+j;\r\n\t\t\t\t\tfin = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn msj;\r\n\t}", "public List<PlanTrabajo> reasignarCuadrillasGrupos( Date fecPrgn, Map<Long, Long> _reasignados){\n\t\t\n\t\t// verificar que existan valores en las reasignacione \n\t\tif(_reasignados==null || \n\t\t\t( _reasignados!=null && _reasignados.size()==0)\n\t\t\t){\n\t\t\treturn null;\n\t\t}\n\t\tlogger.info(\" antes reasignados \"+_reasignados.toString());\n\t\tlogger.info(\" antes asignaciones \"+asignaciones.toString());\n\t\t// verificar que los grupos existan existan\n\t\tSet<Long> _grupos = _reasignados.keySet();\n\t\tfor (Long _grupo : _grupos) {\n\t\t\tLong cuadrilla = this.asignaciones.get(_grupo);\n\t\t\tif(cuadrilla==null){\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// verificando que existan dieferencias entre las reasignaciones y lo reasignados\n\t\tfor (Long _grupo : _grupos) {\n\t\t\tLong cuadrillanew = _reasignados.get(_grupo); // obteniendo nueva cuadrilla asignada\n\t\t\tLong cuadrillaold = this.asignaciones.get(_grupo); // obteniendo cuadrilla anterior\n\t\t\t// si no existen diferencia no se aplica el cambio\n\t\t\tif(cuadrillanew!=null && cuadrillaold!=null && cuadrillanew.equals(cuadrillaold)){\n\t\t\t\treturn null;\n\t\t\t}else{\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// reasignando la cuadrilla de un grupo a otro\n\t\t\t\t//cambio {2=>1}\n\t\t\t\t//{3=>4, 2=>2, 1=>3, 4=>1}\n\t\t\t\t//{2=>1, 4=>2}\n\t\t\t\t//{3=>4, 2=>1, 1=>3, 4=>2}\n\t\t\t\t\n\t\t\t\tSet<Long> grupos = this.asignaciones.keySet();\n\t\t\t\tfor (Long grupo : grupos) {\n\t\t\t\t\tLong ncuadrilla = this.asignaciones.get(grupo); \n\t\t\t\t\tif(ncuadrilla!=null && cuadrillanew!=null && ncuadrilla.equals(cuadrillanew)){\n\t\t\t\t\t\t_reasignados.put(grupo, cuadrillaold);\n\t\t\t\t\t}\n\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\tlogger.info(\" reasignaciones procesadas :\"+_reasignados.toString());\n\t\t_grupos = _reasignados.keySet();\n\t\t// aplicar cambios a las asignaciones\n\t\tfor (Long _grupo : _grupos) {\n\t\t\tthis.reasignaciones.put(_grupo, _reasignados.get(_grupo));\n\t\t\tthis.asignaciones.put(_grupo, _reasignados.get(_grupo));\n\t\t}\n\t\t\n\t\tlogger.info(\" despues \"+asignaciones.toString());\n\t\t\n\t\tList<Cuadrilla> cuadrillas = cuadrillaDao.getCuadrillaList(fecPrgn);\n\t\tList<PlanTrabajo> planTrabajoList = generarPlanesTrabajo(fecPrgn, cuadrillas, mpGruposCached, asignaciones);\n\t\n\t\tplanTrabajoCachedList = new ArrayList<PlanTrabajo>();\n\t\tplanTrabajoCachedList.addAll(planTrabajoList);\n\t\t\n\t\t\n\t\t\n\t\tlogger.info(\"#### reasignaciones finales :\"+reasignaciones.toString());\n\t\t\n\t\tplotPlanesTrabajo(planTrabajoCachedList);\n\t\t \n\t\treturn planTrabajoList;\n\t}", "public void inicializarSugeridos() {\n\t\tarticulosSugeridos = new ArrayList<>();\n\t\tfor(Articulo articulo : this.getMain().getArticulosEnStock()) {\n\t\t\tarticulosSugeridos.add(articulo.getNombre().get() + \" - \" + articulo.getTalle().get());\n\t\t}\n\t\tasignarSugeridos();\n\t\tinicializarTxtArticuloVendido();\n\t}", "public void Semantica() {\r\n int var, etq;\r\n double marca, valor;\r\n double[] punto = new double[3];\r\n double[] punto_medio = new double[2];\r\n\r\n /* we generate the fuzzy partitions of the variables */\r\n for (var = 0; var < n_variables; var++) {\r\n marca = (extremos[var].max - extremos[var].min) /\r\n ((double) n_etiquetas[var] - 1);\r\n for (etq = 0; etq < n_etiquetas[var]; etq++) {\r\n valor = extremos[var].min + marca * (etq - 1);\r\n BaseDatos[var][etq].x0 = Asigna(valor, extremos[var].max);\r\n valor = extremos[var].min + marca * etq;\r\n BaseDatos[var][etq].x1 = Asigna(valor, extremos[var].max);\r\n BaseDatos[var][etq].x2 = BaseDatos[var][etq].x1;\r\n valor = extremos[var].min + marca * (etq + 1);\r\n BaseDatos[var][etq].x3 = Asigna(valor, extremos[var].max);\r\n BaseDatos[var][etq].y = 1;\r\n BaseDatos[var][etq].Nombre = \"V\" + (var + 1);\r\n BaseDatos[var][etq].Etiqueta = \"E\" + (etq + 1);\r\n }\r\n }\r\n }", "private void gerarLaudosProcedimentosCirurgicos(\r\n\t\t\tMpmPrescricaoMedica prescricao, List<MpmLaudo> laudoList) throws ApplicationBusinessException {\r\n\r\n\t\tMap<MpmPrescricaoProcedimento, FatProcedHospInternos> procedimentosMap = this\r\n\t\t\t\t.getConfirmarPrescricaoMedicaRN()\r\n\t\t\t\t.listarProcedimentosCirurgicosGeracaoLaudos(prescricao);\r\n\r\n\t\tMpmLaudo laudo = null;\r\n\r\n\t\tfor (MpmPrescricaoProcedimento procedimento : procedimentosMap.keySet()) {\r\n\r\n\t\t\tlaudo = new MpmLaudo();\r\n\t\t\tlaudo.setDthrInicioValidade(prescricao.getDthrInicio());\r\n\r\n\t\t\tDate dataFimValidade = prescricao.getDthrInicio();\r\n\t\t\tif (procedimento.getDuracaoTratamentoSolicitado() != null) {\r\n\t\t\t\tdataFimValidade = DateUtil.adicionaDias(dataFimValidade,\r\n\t\t\t\t\t\tprocedimento.getDuracaoTratamentoSolicitado()\r\n\t\t\t\t\t\t\t\t.intValue() - 1);\r\n\t\t\t}\r\n\t\t\tlaudo.setDthrFimValidade(dataFimValidade);\r\n\t\t\tlaudo.setDthrFimPrevisao(dataFimValidade);\r\n\r\n\t\t\tlaudo.setJustificativa(procedimento.getJustificativa());\r\n\t\t\tlaudo.setContaDesdobrada(false);\r\n\t\t\tlaudo.setImpresso(false);\r\n\t\t\tlaudo.setDuracaoTratSolicitado(procedimento\r\n\t\t\t\t\t.getDuracaoTratamentoSolicitado());\r\n\t\t\tlaudo.setLaudoManual(false);\r\n\t\t\tlaudo.setAtendimento(prescricao.getAtendimento());\r\n\t\t\tlaudo.setPrescricaoProcedimento(procedimento);\r\n\t\t\tlaudo.setProcedimentoHospitalarInterno(procedimentosMap\r\n\t\t\t\t\t.get(procedimento));\r\n\r\n\t\t\tthis.adicionarLaudoLista(laudoList, laudo);\r\n\r\n\t\t}\r\n\r\n\t}", "@Override\n public List<Pair<Candidatura, FAE>> atribui() {\n \n List<FAE> listaFaeEvento = evento.getListaFaeEvento();\n List<Candidatura> listaCandidaturaEvento = evento.getListaCandidaturasEvento();\n List<Pair<Candidatura, FAE>> listaAtribuicoes = new ArrayList();\n \n Random geradorAleatorio = new Random();\n int indiceFae = geradorAleatorio.nextInt(listaFaeEvento.size());\n \n for (Candidatura cand : listaCandidaturaEvento){\n listaAtribuicoes.add( new Pair<>(cand, listaFaeEvento.get(indiceFae)));\n }\n \n return listaAtribuicoes;\n }", "private List<Vertice> pegaVerticesFolha() {\n List<Vertice> verticesFolha = new ArrayList<Vertice>();\n\n for (Vertice vertice : this.pegaTodosOsVerticesDoGrafo()) {\n if (this.getGrauDeSaida(vertice) == 0) {\n verticesFolha.add(vertice);\n }\n }\n\n return verticesFolha;\n }", "public Tirage getTirage(List<ObjetArchiver> listeTirages) {\n\tTirage tirageCorrespondant = new Tirage();\n\t/*\n\t * On calcule l'occurence de chaque numéro et chaque étoile depuis listeTirage\n\t */\n\t// On créer une liste d'occurance pour les étoiles et numéros\n\tList<StatNombre> listeOcNumeros = OccuranceData.getListeStatNumerosEnum();\n\tList<StatNombre> listeOcEtoiles = OccuranceData.getListeStatEtoilesEnum();\n\n\t// On met à jour les occurances de la liste de tirages\n\tfor (ObjetArchiver objetArchiver : listeTirages) {\n\t for (Numero numero : objetArchiver.getNumeros()) {\n\t\tfor (StatNombre statNumero : listeOcNumeros) {\n\t\t if (numero.getNumero() == statNumero.getNombre()) {\n\t\t\tstatNumero.setOccurence(statNumero.getOccurence() + 1);\n\t\t }\n\t\t}\n\t }\n\t for (Etoile etoile : objetArchiver.getEtoiles()) {\n\t\tfor (StatNombre statEtoile : listeOcEtoiles) {\n\t\t if (etoile.getEtoile() == statEtoile.getNombre()) {\n\t\t\tstatEtoile.setOccurence(statEtoile.getOccurence() + 1);\n\t\t }\n\t\t}\n\t }\n\t}\n\n\t// On range dans l'ordre croissant les occurences\n\tCollections.sort(listeOcNumeros, (o1, o2) -> o1.getOccurence().compareTo(o2.getOccurence()));\n\tCollections.sort(listeOcEtoiles, (o1, o2) -> o1.getOccurence().compareTo(o2.getOccurence()));\n\n\t// On prend les 15 dernières occurences de listeOcNumeros\n\tList<Numero> combinaisonNumeros = new ArrayList<>();\n\tList<Etoile> combinaisonEtoiles = new ArrayList<>();\n\tFloat precision = 0F;\n\tFloat precisionNumeros = 0F;\n\tFloat precisionEtoiles = 0F;\n\tInteger listeTiragesSize = listeTirages.size();\n\t// On prend les 5 deniers occurences de listeOcNumros\n\tfor (int i = 1; i <= 15; i++) {\n\t Numero numero = new Numero((listeOcNumeros.get(listeOcNumeros.size() - i)).getNombre());\n\t combinaisonNumeros.add(numero);\n\t // On recupère l'occurence de i\n\t Integer ocCourante = listeOcNumeros.get(listeOcNumeros.size() - i).getOccurence();\n\t /*\n\t * On ajoute le rapport (occurence courante/au nombre de tirage) à la précision\n\t * précédente ce qui revient à faire la moyenne des ratios d'occurence\n\t * (occurence/nb de tirage)\n\t */\n\t precisionNumeros += Float.valueOf((float) ocCourante / (float) listeTiragesSize);\n\t precisionNumeros = precisionNumeros / 2;\n\t}\n\t// On prend les 4 denières occurences de listeOcEtoiles\n\tfor (int i = 1; i <= 4; i++) {\n\t Etoile etoile = new Etoile((listeOcEtoiles.get(listeOcEtoiles.size() - i)).getNombre());\n\t combinaisonEtoiles.add(etoile);\n\t // On recupère l'occurence de i\n\t Integer ocCourante = listeOcEtoiles.get(listeOcEtoiles.size() - i).getOccurence();\n\t /*\n\t * On ajoute le rapport (occurence courante/au nombre de tirage) à la précision\n\t * précédente ce qui revient à faire la moyenne des ratios d'occurence\n\t * (occurence/nb de tirage)\n\t */\n\t precisionEtoiles += Float.valueOf((float) ocCourante / (float) listeTiragesSize);\n\t precisionEtoiles = precisionEtoiles / 2;\n\t}\n\n\t// On recupère la precision du tirage (moyenne des deux precision)\n\tprecision = 100 * (precisionNumeros + precisionEtoiles) / 2;\n\n\ttirageCorrespondant.setPrecision(precision);\n\ttirageCorrespondant.setNumeros(combinaisonNumeros);\n\ttirageCorrespondant.setEtoiles(combinaisonEtoiles);\n\n\treturn tirageCorrespondant;\n }", "public List<String>top10Utilizadores() {\n Map<String,List<String>> utilizadorEncomendas = new HashMap<String,List<String>>();\n \n for(Encomenda e : this.encomendas.values()) {\n if(!utilizadorEncomendas.containsKey(e.getCodigoUtilizador())) {\n utilizadorEncomendas.put(e.getCodigoUtilizador(), new ArrayList<>());\n }\n utilizadorEncomendas.get(e.getCodigoUtilizador()).add(e.getCodigoEncomenda());\n }\n \n // a partir do primeiro map criar um segundo com codigo de utilizador e numero de encomendas\n // a razao de ser um double é porque o mesmo comparator é também utilizado no metodo List<String>top10Transportadores()\n Map<String,Double> utilizadoresNumeroEncs = new HashMap<>();\n \n Iterator<Map.Entry<String, List<String>>> itr = utilizadorEncomendas.entrySet().iterator(); \n \n while(itr.hasNext()) { \n Map.Entry<String, List<String>> entry = itr.next(); \n utilizadoresNumeroEncs.put(entry.getKey(), Double.valueOf(entry.getValue().size()));\n }\n \n MapStringDoubleComparator comparator = new MapStringDoubleComparator(utilizadoresNumeroEncs);\n \n // criar map ordenado (descending)\n TreeMap<String, Double> utilizadorNumeroEncsOrdenado = new TreeMap<String, Double>(comparator);\n \n utilizadorNumeroEncsOrdenado.putAll(utilizadoresNumeroEncs);\n \n // retornar a lista de codigos de utilizadores pretendida\n return utilizadorNumeroEncsOrdenado.keySet()\n .stream()\n .limit(10)\n .collect(Collectors.toList()); \n }", "public List<Ausleihe> findeVerspaeteteAusleihe(Benutzer benutzer) {\n\n Calendar heute = new GregorianCalendar();\n List<Ausleihe> verspaeteAusleihe = new ArrayList<>();\n\n for (Ausleihe a : benutzer.getAusgeliehen()) {\n if ((a.getAusleihStatus() == Status.BESTAETIGT) && (heute.after(a.getAusleihRueckgabedatum()))) {\n verspaeteAusleihe.add(a);\n }\n }\n\n return verspaeteAusleihe;\n }", "public String generarPrioridadVacunacion(){\n \n String aux = \" \"; \n \n if(EmpleadosPrioridadAlta.isEmpty() != true){\n aux += \"\\nLos empleados con mayor prioridad son: \";\n for (int i = 0; i < EmpleadosPrioridadAlta.size(); i++) {\n \n aux += \"\\n-------------------------\\n\" + \"Empleado #\"+(i+1)\n +\"\\nNombre: \"+EmpleadosPrioridadAlta.get(i).getNombre()\n +\"\\nIdentificacion: \"+EmpleadosPrioridadAlta.get(i).getIdentificacion();\n }\n }\n \n if(EmpleadosPrioridadMediaAlta.isEmpty() != true){\n aux += \"\\nLos empleados con prioridad media alta son: \";\n for (int i = 0; i < EmpleadosPrioridadMediaAlta.size(); i++) {\n aux += \"\\n--------------------------\\n\" + \"Empleado #\"+(i+1)\n +\"\\nNombre: \"+EmpleadosPrioridadMediaAlta.get(i).getNombre()\n +\"\\nIdentificacion: \"+EmpleadosPrioridadMediaAlta.get(i).getIdentificacion();\n }\n }\n \n if(EmpleadosPrioridadMedia.isEmpty() != true){\n aux += \"\\nLos empleados con prioridad media son: \";\n for (int i = 0; i < EmpleadosPrioridadMedia.size(); i++) {\n aux += \"\\n--------------------------\\n\" + \"Empleado #\"+(i+1)\n +\"\\nNombre: \"+EmpleadosPrioridadMedia.get(i).getNombre()\n +\"\\nIdentificacion: \"+EmpleadosPrioridadMedia.get(i).getIdentificacion();\n }\n }\n \n if(EmpleadosPrioridadBaja.isEmpty() != true){\n aux += \"\\nLos empleados con menor prioridad son: \";\n for (int i = 0; i < EmpleadosPrioridadBaja.size(); i++) {\n aux += \"\\n--------------------------\\n\" + \"Empleado #\"+(i+1)\n +\"\\nNombre: \"+EmpleadosPrioridadBaja.get(i).getNombre()\n +\"\\nIdentificacion: \"+EmpleadosPrioridadBaja.get(i).getIdentificacion();\n }\n }\n return aux;\n }", "public ArrayList<PeriodoAcademicos> listarQuimestres() {\n try {\n Conexion conexion = new Conexion();\n ResultSet rs = conexion.Consulta(\"SELECT * FROM siacc_periodoacademico WHERE estado_paca LIKE 'A' AND codigopadre_paca IS NULL\");\n\n ArrayList listar = new ArrayList();\n while (rs.next()) {\n listar.add(Crear(rs));\n }\n return listar;\n } catch (Exception ex) {\n throw new RuntimeException(\"Error al Obtener Quimestres en ArrayList\");\n }\n }", "public void anazitisiSintagisVaseiGiatrou() {\n\t\tString doctorName = null;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tdoctorName = sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \"); // Zitaw apo ton xrhsth na mou dwsei to onoma tou giatrou pou exei grapsei thn sintagh pou epithumei\n\t\t\tfor(int i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\tif(doctorName.equals(prescription[i].getDoctorLname())) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou exei grapsei o giatros\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t// Emfanizw thn/tis sintagh/sintages pou exoun graftei apo ton sygkekrimeno giatro\n\t\t\t\t\tprescription[i].print();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_2++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON IATRO ME EPWNYMO: \" + doctorName);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public Set<AdapterProcedimento> getProcedimentosCirurgicosAnestesicos() {\n\t\tSet<AdapterProcedimento> procedimentos = new HashSet<AdapterProcedimento>();\n\t\t\n\t\tfor(AdapterProcedimento adapter: getProcedimentos()){\n\t\t\tif(!adapter.getHonorariosAnestesistas().isEmpty()){\n\t\t\t\tprocedimentos.add(adapter);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn procedimentos;\n\t}", "private ArrayList<Estado> generar_sucesores(Estado actual) {\r\n\t\tArrayList<Estado> sucesores = new ArrayList<>();\r\n\t\tsucesores.add(actual.derecha().addHeuristica(estado_final)); //Añado los puntos hijos del estado actual\r\n\t\tsucesores.add(actual.izquierda().addHeuristica(estado_final));\r\n\t\tsucesores.add(actual.arriba().addHeuristica(estado_final));\r\n\t\tsucesores.add(actual.abajo().addHeuristica(estado_final));\r\n\r\n\t\tif (sucesores.contains(estado_inicial)) { //Limpio posible estado inicial\r\n\t\t\tsucesores.remove(estado_inicial);\r\n\t\t}\r\n\t\tArrayList<Estado> aux = new ArrayList<>(); // Para evitar error de concurrencia creo una lista auxiliar con los sucesores\r\n\t\tfor (int i = 0; i < sucesores.size(); i++) {\r\n\t\t\taux.add(sucesores.get(i));\r\n\t\t}\r\n\t\tfor (Estado p : aux) { //Limpio muros\r\n\t\t\tif (matriz[p.getX() - 1][p.getY() - 1] == muro) {\r\n\t\t\t\tsucesores.remove(p);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn sucesores;\r\n\t}", "public void reporteHabitacionMasPopular(TablaModelo modelo){\n ArrayList<ControlVeces> control = new ArrayList<>();\n ControlVeces controlador;\n try {// pago de alojamiento en rango fchas\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio, RESERVACION.Id_Habitacion FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Check_In=1;\");\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {// pago de alojamiento en rango fchas\n String nombre = Integer.toString(resultado.getInt(6));\n int casilla = numeroObjeto(control,nombre);\n if(casilla>=0){// maneja el resultado// pago de alojamiento en rango fchas\n control.get(casilla).setVeces(control.get(casilla).getVeces()+1);\n }else{// maneja el resultado\n controlador = new ControlVeces(nombre);// pago de alojamiento en rango fchas\n control.add(controlador);\n }\n } // maneja el resultado \n ordenamiento(control);\n int numero = control.size()-1;// el de hasta arriba es el que mas elementos tiene \n String idHabitacionMasPopular = control.get(numero).getNombre();\n this.habitacionPopular= idHabitacionMasPopular;\n introducirDatosHabitacionMasPopular(modelo, idHabitacionMasPopular);\n } catch (SQLException ex) {\n ex.printStackTrace();\n } catch(Exception e){\n \n }\n }", "public void inicialAleatorio() {\n //aqui adiciona naquele vetor que de auxilio\n alocacao.add(Estados.ELETRICISTAS);\n alocacao.add(Estados.ELETRICISTAS2);\n alocacao.add(Estados.QUALIDADE);\n alocacao.add(Estados.QUALIDADE2);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL2);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL3);\n alocacao.add(Estados.PLANEJAMENTO);\n\n //biblioteca que sorteia aleatoriamente os departamentos\n Collections.shuffle(alocacao);\n\n for (int i = 0; i < 4; i++) {\n matrix[1][i] = alocacao.get(i);\n\n }\n\n for (int i = 0; i < 4; i++) {\n matrix[3][i] = alocacao.get(i + 4);\n }\n\n }", "public ArrayList<Proceso> procesosPoliticaEnvejecimiento() {\n\t\tArrayList<Proceso> procesosPE = new ArrayList<Proceso>();\n\t\tProceso aux = this.raiz.sig;\n\t\twhile (aux != this.raiz) {\n\t\t\tint tiempoEnCola = this.tiempo - aux.tllegada + 1;\n\t\t\tif (tiempoEnCola >= this.tiempoPE) {\n\t\t\t\tProceso auxp = aux.padre;\n\t\t\t\tauxp.sig = aux.sig;\n\t\t\t\taux.sig.padre = auxp;\n\t\t\t\taux.padre = null;\n\t\t\t\tprocesosPE.add(aux);\n\t\t\t}\n\n\t\t\taux = aux.sig;\n\t\t}\n\t\tif (procesosPE.isEmpty()) {\n\t\t\treturn null;\n\t\t}\n\t\treturn procesosPE;\n\t}", "public AsignaturaSemestre (Asignatura Asig, Profesor Profe, List<HorarioAsig> hrrio) {\n asignaturaAsig = Asig ;\n ProfesorAsig = Profe;\n Horario = hrrio;\n }", "private void cargarFichaLepra_discapacidades() {\r\n\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\r\n\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\r\n\t\tparameters.put(\"nro_identificacion\", tbxNro_identificacion.getValue());\r\n\t\tparameters.put(\"fecha_actual\", new Date());\r\n\r\n\t\t// log.info(\"parameters\" + parameters);\r\n\t\tseguimiento_control_pqtService.setLimit(\"limit 25 offset 0\");\r\n\r\n\t\t// log.info(\"parameters>>>>\" + parameters);\r\n\t\tBoolean fecha_tratamiento = seguimiento_control_pqtService\r\n\t\t\t\t.existe_fecha_fin_tratamiento(parameters);\r\n\t\t// log.info(\"fecha_tratamiento>>>>\" + fecha_tratamiento);\r\n\r\n\t\tif (fecha_tratamiento) {\r\n\t\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\t\tparametros.put(\"nro_ingreso\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_ingreso());\r\n\t\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE,\r\n\t\t\t\t\tadmision_seleccionada);\r\n\t\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\tIRutas_historia.PAGINA_VALORACION_DISCAPACIDADES_LEPRA,\r\n\t\t\t\t\tIRutas_historia.LABEL_VALORACION_DISCAPACIDADES_LEPRA,\r\n\t\t\t\t\tparametros);\r\n\t\t}\r\n\t}", "@SuppressWarnings(\"static-access\")\r\n\tpublic TreeMap<Integer, Double> versementSalaire() {\r\n\t\tTreeMap<Integer, Double> salaires = new TreeMap<Integer, Double>();\r\n\t\tIterator<Integer> iter = this.listeProfs.iterator();\r\n\t\twhile(iter.hasNext()){\r\n\t\t\tsalaires.put(iter.next(), this.SALAIRE);\r\n\t\t}\r\n\t\treturn salaires;\r\n\t}", "public synchronized static String lista_Dr_regt_equiparaciones() {\n String sql = \"Select a.eqp_sol_numero,a.solte_id,B.solte_nombre,a.eqp_carrera_continuar_est,c.smrprle_program_desc,a.eqp_grado_continuar,a.eqp_fecha_atencion_usuario,a.eqp_fecha_area_rec,a.eqp_fecha_envio_unidad,a.eqp_fecha_recepcion_final,a.eqp_total_pagar,a.eqp_estado,a.eqp_numero_sesion,a.eqp_fecha_sesion,a.eqp_observaciones,a.eqp_periodo, EXTRACT(YEAR FROM TO_DATE (sysdate)) annoActual, a.eqp_fecha_recepcion_orer,b.solte_apellidos_solicitante, b.Solte_nombre_solicitante, b.solte_seg_nombre_solicitante from DR_REGT_EQUIPARACIONES a inner join DR_REGT_SOLICITANTE B ON A.solte_id = B.solte_id inner join SMRPRLE c on REPLACE(a.eqp_carrera_continuar_est,'Ñ','N') = REPLACE(c.smrprle_program,'Ñ','N') WHERE EQP_ESTADO != 3 order by a.EQP_FECHA_ATENCION_USUARIO desc\";\n return (sql);\n }", "public List<FaturamentoVO> validaSelecionaSinistros(String ano, int tipo) {\n\t\tDecimalFormat roundForm = new DecimalFormat(\"0.00\");\n\n\t\tDecimalFormat percentForm = new DecimalFormat(\"0%\");\n\n\t\tUteis uteis = new Uteis();\n\t\tString anoAnterior = Integer.toString((Integer.parseInt(uteis.cortaRetornaAno(ano)) - 1));\n\n\t\tList<FaturamentoVO> listaTratada = new ArrayList<FaturamentoVO>();\n\n\t\tList<FaturamentoVO> listaAnoParam = dadosFaturamentoDetalhado;\n\t\tList<FaturamentoVO> listaAnoAnterior = dadosFaturamentoDetalhadoAnoAnterior;\n\n\t\tString quantidadeTextoBancoDados = \"\";\n\t\tString quantidadeTextoApresentacao = \"\";\n\t\tString valorTextoBancoDados = \"\";\n\t\tString valorTextoApresentacao = \"\";\n\n\t\tswitch (tipo) {\n\t\tcase 1: // AVISADO\n\t\t\tquantidadeTextoBancoDados = \"QT SINISTROS AVISADOS\";\n\t\t\tquantidadeTextoApresentacao = \"&nbsp;&nbsp;&nbsp;Quantidade&nbsp;&nbsp;&nbsp;\";\n\t\t\tvalorTextoBancoDados = \"SINISTROS AVISADOS\";\n\t\t\tvalorTextoApresentacao = \"Valor\";\n\t\t\tbreak;\n\t\tcase 2: // INDENIZADO\n\t\t\tquantidadeTextoBancoDados = \"QT SINISTROS INDENIZADOS\";\n\t\t\tquantidadeTextoApresentacao = \"&nbsp;&nbsp;&nbsp;Quantidade&nbsp;&nbsp;&nbsp;\";\n\t\t\tvalorTextoBancoDados = \"SINISTROS INDENIZADOS\";\n\t\t\tvalorTextoApresentacao = \"Valor\";\n\t\t\tbreak;\n\t\tcase 3: // PENDENTE\n\t\t\tquantidadeTextoBancoDados = \"QT SINISTROS PENDENTES\";\n\t\t\tquantidadeTextoApresentacao = \"&nbsp;&nbsp;&nbsp;Quantidade&nbsp;&nbsp;&nbsp;\";\n\t\t\tvalorTextoBancoDados = \"SINISTROS PENDENTES\";\n\t\t\tvalorTextoApresentacao = \"Valor\";\n\t\t\tbreak;\n\t\tcase 4: // DESPESA\n\t\t\tquantidadeTextoBancoDados = \"QT SINISTROS - DESPESAS\";\n\t\t\tquantidadeTextoApresentacao = \"&nbsp;&nbsp;&nbsp;Quantidade&nbsp;&nbsp;&nbsp;\";\n\t\t\tvalorTextoBancoDados = \"SINISTROS - DESPESAS\";\n\t\t\tvalorTextoApresentacao = \"Valor\";\n\t\t\tbreak;\n\n\t\t}\n\n\t\tfor (int i = 0; i < listaAnoParam.size(); i++) {\n\t\t\tif (listaAnoParam.get(i).getProduto().equals(quantidadeTextoBancoDados)) {\n\n\t\t\t\tFaturamentoVO sinistroVOtratado = new FaturamentoVO();\n\t\t\t\tString mesesTratado[] = new String[13];\n\n\t\t\t\tsinistroVOtratado.setAno(uteis.cortaRetornaAno(ano));\n\t\t\t\tsinistroVOtratado.setProduto(quantidadeTextoApresentacao);\n\n\t\t\t\tint somaTotal = 0;\n\t\t\t\tfor (int k = 0; k <= 12; k++) {\n\n\t\t\t\t\tif (k != 12) {\n\t\t\t\t\t\tsomaTotal += Integer.parseInt(listaAnoParam.get(i).getMeses()[k]);\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(listaAnoParam.get(i).getMeses()[k]);\n\n\t\t\t\t\t} else { // total\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(String.valueOf(somaTotal));\n\n\t\t\t\t\t}\n\t\t\t\t\tsinistroVOtratado.setMeses(mesesTratado);\n\t\t\t\t}\n\t\t\t\tlistaTratada.add(sinistroVOtratado);\n\n\t\t\t} else if (listaAnoParam.get(i).getProduto().equals(valorTextoBancoDados)) {\n\n\t\t\t\tFaturamentoVO faturamentoVOtratado = new FaturamentoVO();\n\t\t\t\tString mesesTratado[] = new String[13];\n\n\t\t\t\tfaturamentoVOtratado.setAno(uteis.cortaRetornaAno(ano));\n\t\t\t\tfaturamentoVOtratado.setProduto(valorTextoApresentacao);\n\n\t\t\t\tdouble somaTotal = 0.0;\n\t\t\t\tfor (int k = 0; k <= 12; k++) {\n\n\t\t\t\t\tif (k != 12) {\n\n\t\t\t\t\t\tsomaTotal += Double.parseDouble(listaAnoParam.get(i).getMeses()[k]);\n\n\t\t\t\t\t\tString tratada = roundForm.format(Double.parseDouble(listaAnoParam.get(i).getMeses()[k]));\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(tratada);\n\n\t\t\t\t\t} else { // total\n\n\t\t\t\t\t\tString tratada = roundForm.format(somaTotal);\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(tratada);\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfaturamentoVOtratado.setMeses(mesesTratado);\n\t\t\t\t}\n\t\t\t\tlistaTratada.add(faturamentoVOtratado);\n\n\t\t\t}\n\t\t} // for anoParam\n\n\t\tfor (int i = 0; i < listaAnoAnterior.size(); i++) {\n\t\t\tif (listaAnoAnterior.get(i).getProduto().equals(quantidadeTextoBancoDados)) {\n\n\t\t\t\tFaturamentoVO sinistroVOtratado = new FaturamentoVO();\n\t\t\t\tString mesesTratado[] = new String[13];\n\n\t\t\t\tsinistroVOtratado.setAno(anoAnterior);\n\t\t\t\tsinistroVOtratado.setProduto(quantidadeTextoApresentacao);\n\n\t\t\t\tint somaTotal = 0;\n\t\t\t\tfor (int k = 0; k <= 12; k++) {\n\n\t\t\t\t\tif (k != 12) {\n\n\t\t\t\t\t\tsomaTotal += Integer.parseInt(listaAnoAnterior.get(i).getMeses()[k]);\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(listaAnoAnterior.get(i).getMeses()[k]);\n\n\t\t\t\t\t} else { // total\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(String.valueOf(somaTotal));\n\n\t\t\t\t\t}\n\t\t\t\t\tsinistroVOtratado.setMeses(mesesTratado);\n\n\t\t\t\t}\n\t\t\t\tlistaTratada.add(sinistroVOtratado);\n\n\t\t\t} else if (listaAnoAnterior.get(i).getProduto().equals(valorTextoBancoDados)) {\n\t\t\t\tFaturamentoVO faturamentoVOtratado = new FaturamentoVO();\n\t\t\t\tString mesesTratado[] = new String[13];\n\n\t\t\t\tfaturamentoVOtratado.setAno(anoAnterior);\n\t\t\t\tfaturamentoVOtratado.setProduto(valorTextoApresentacao);\n\n\t\t\t\tdouble somaTotal = 0.0;\n\t\t\t\tfor (int k = 0; k <= 12; k++) {\n\n\t\t\t\t\tif (k != 12) {\n\n\t\t\t\t\t\tsomaTotal += Double.parseDouble(listaAnoAnterior.get(i).getMeses()[k]);\n\n\t\t\t\t\t\tString tratada = roundForm.format(Double.parseDouble(listaAnoAnterior.get(i).getMeses()[k]));\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(tratada);\n\n\t\t\t\t\t} else { // total\n\n\t\t\t\t\t\tString tratada = roundForm.format(somaTotal);\n\n\t\t\t\t\t\tmesesTratado[k] = uteis.insereSeparadores(tratada);\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfaturamentoVOtratado.setMeses(mesesTratado);\n\t\t\t\t}\n\t\t\t\tlistaTratada.add(faturamentoVOtratado);\n\n\t\t\t}\n\t\t} // for anoAnterior\n\n\t\tbyte qtdAnoParam = 0;\n\t\tbyte qtdAnoAnterior = 2;\n\n\t\tbyte vlrAnoParam = 1;\n\t\tbyte vlrAnoAnterior = 3;\n\n\t\t// *******************************************\n\t\t// *******************************************\n\t\t// Variacao 16/15 QTD\n\t\tString[] mesesQtdTratado = new String[13];\n\t\tdouble totalQtd = 0.0D;\n\t\tFaturamentoVO variacaoQtdVO = new FaturamentoVO();\n\n\t\tfor (int j = 0; j <= 12; j++) {\n\t\t\tBigDecimal bigQtdAnoParam = new BigDecimal(\n\t\t\t\t\tDouble.parseDouble(listaTratada.get(qtdAnoParam).getMeses()[j].replace(\".\", \"\")));\n\n\t\t\ttry {\n\t\t\t\ttotalQtd = Double.parseDouble((bigQtdAnoParam.divide(\n\t\t\t\t\t\tnew BigDecimal(listaTratada.get(qtdAnoAnterior).getMeses()[j].replace(\".\", \"\")), 4,\n\t\t\t\t\t\tRoundingMode.HALF_DOWN)).toString()) - 1;\n\t\t\t} catch (Exception e) {\n\t\t\t\ttotalQtd = 0D;\n\t\t\t}\n\n\t\t\tmesesQtdTratado[j] = percentForm.format(totalQtd);\n\n\t\t}\n\t\tvariacaoQtdVO.setProduto(\"Varia&ccedil;&atilde;o Qtd.\");\n\t\tvariacaoQtdVO.setMeses(mesesQtdTratado);\n\t\tlistaTratada.add(variacaoQtdVO);\n\n\t\t// *******************************************\n\t\t// *******************************************\n\t\t// Variacao 16/15 Valor\n\t\tString[] mesesVlrTratado = new String[13];\n\t\tdouble totalVlr = 0.0D;\n\t\tFaturamentoVO variacaoVlrVO = new FaturamentoVO();\n\n\t\tfor (int j = 0; j <= 12; j++) {\n\n\t\t\tBigDecimal bigVlrAnoParam = new BigDecimal(\n\t\t\t\t\tDouble.parseDouble(listaTratada.get(vlrAnoParam).getMeses()[j].replace(\".\", \"\").replace(\",\", \".\")));\n\n\t\t\ttry {\n\t\t\t\ttotalVlr = Double.parseDouble((bigVlrAnoParam.divide(\n\t\t\t\t\t\tnew BigDecimal(\n\t\t\t\t\t\t\t\tlistaTratada.get(vlrAnoAnterior).getMeses()[j].replace(\".\", \"\").replace(\",\", \".\")),\n\t\t\t\t\t\t4, RoundingMode.HALF_DOWN)).toString()) - 1;\n\t\t\t} catch (Exception e) {\n\t\t\t\ttotalVlr = 0D;\n\t\t\t}\n\n\t\t\tmesesVlrTratado[j] = percentForm.format(totalVlr);\n\n\t\t}\n\t\tvariacaoVlrVO.setProduto(\"Varia&ccedil;&atilde;o Valor\");\n\t\tvariacaoVlrVO.setMeses(mesesVlrTratado);\n\t\tlistaTratada.add(variacaoVlrVO);\n\n\t\t// *******************************************\n\t\t// *******************************************\n\t\t// Aviso Medio anoParam - anoAtual\n\t\tString[] mesesAvisoMedioAnoParamTratado = new String[13];\n\t\tdouble totalAvisoMedioAnoParam = 0.0D;\n\t\tFaturamentoVO variacaoAvisoMedioAnoParamVO = new FaturamentoVO();\n\n\t\tfor (int j = 0; j <= 12; j++) {\n\n\t\t\tBigDecimal bigVlrAnoParam = new BigDecimal(\n\t\t\t\t\tDouble.parseDouble(listaTratada.get(vlrAnoParam).getMeses()[j].replace(\".\", \"\").replace(\",\", \".\")));\n\n\t\t\ttry {\n\t\t\t\ttotalAvisoMedioAnoParam = Double.parseDouble((bigVlrAnoParam.divide(\n\t\t\t\t\t\tnew BigDecimal(listaTratada.get(qtdAnoParam).getMeses()[j].replace(\".\", \"\").replace(\",\", \".\")),\n\t\t\t\t\t\t2, RoundingMode.HALF_DOWN)).toString());\n\t\t\t} catch (Exception e) {\n\t\t\t\ttotalAvisoMedioAnoParam = 0D;\n\t\t\t}\n\t\t\tmesesAvisoMedioAnoParamTratado[j] = uteis.insereSeparadoresMoeda(roundForm.format(totalAvisoMedioAnoParam));\n\n\t\t}\n\t\tvariacaoAvisoMedioAnoParamVO.setAno(uteis.cortaRetornaAno(ano));\n\t\tvariacaoAvisoMedioAnoParamVO.setProduto(\"Aviso M&eacute;dio\");\n\t\tvariacaoAvisoMedioAnoParamVO.setMeses(mesesAvisoMedioAnoParamTratado);\n\t\tlistaTratada.add(variacaoAvisoMedioAnoParamVO);\n\n\t\t// *******************************************\n\t\t// *******************************************\n\t\t// Aviso Medio anoAnterior\n\t\tString[] mesesAvisoMedioAnoAnteriorTratado = new String[13];\n\t\tdouble totalAvisoMedioAnoAnterior = 0.0D;\n\t\tFaturamentoVO variacaoAvisoMedioAnoAnteriorVO = new FaturamentoVO();\n\n\t\tfor (int j = 0; j <= 12; j++) {\n\n\t\t\tBigDecimal bigVlrAnoAnterior = new BigDecimal(Double\n\t\t\t\t\t.parseDouble(listaTratada.get(vlrAnoAnterior).getMeses()[j].replace(\".\", \"\").replace(\",\", \".\")));\n\n\t\t\ttry {\n\t\t\t\ttotalAvisoMedioAnoAnterior = Double.parseDouble((bigVlrAnoAnterior.divide(\n\t\t\t\t\t\tnew BigDecimal(listaTratada.get(qtdAnoAnterior).getMeses()[j].replace(\".\", \"\")), 2,\n\t\t\t\t\t\tRoundingMode.HALF_DOWN)).toString());\n\t\t\t} catch (Exception e) {\n\t\t\t\ttotalAvisoMedioAnoAnterior = 0D;\n\t\t\t}\n\t\t\tmesesAvisoMedioAnoAnteriorTratado[j] = uteis\n\t\t\t\t\t.insereSeparadoresMoeda(roundForm.format(totalAvisoMedioAnoAnterior));\n\n\t\t}\n\t\tvariacaoAvisoMedioAnoAnteriorVO.setAno(anoAnterior);\n\t\tvariacaoAvisoMedioAnoAnteriorVO.setProduto(\"Aviso M&eacute;dio\");\n\t\tvariacaoAvisoMedioAnoAnteriorVO.setMeses(mesesAvisoMedioAnoAnteriorTratado);\n\t\tlistaTratada.add(variacaoAvisoMedioAnoAnteriorVO);\n\n\t\t// *******************************************\n\t\t// *******************************************\n\t\t// Variacao Media\n\t\tshort avisoMedioAnoParam = 6;\n\t\tshort avisoMedioAnoAnterior = 7;\n\n\t\tString[] meses_AM_Tratado = new String[13];// AM -aviso medio\n\t\tdouble total_AM = 0.0D;\n\t\tFaturamentoVO variacao_AM_VO = new FaturamentoVO();\n\n\t\tfor (int j = 0; j <= 12; j++) {\n\n\t\t\tBigDecimal big_AM_AnoParam = new BigDecimal(Double.parseDouble(\n\t\t\t\t\tlistaTratada.get(avisoMedioAnoParam).getMeses()[j].replace(\".\", \"\").replace(\",\", \".\")));\n\n\t\t\ttry {\n\t\t\t\ttotal_AM = Double\n\t\t\t\t\t\t.parseDouble((big_AM_AnoParam\n\t\t\t\t\t\t\t\t.divide(new BigDecimal(listaTratada.get(avisoMedioAnoAnterior).getMeses()[j]\n\t\t\t\t\t\t\t\t\t\t.replace(\".\", \"\").replace(\",\", \".\")), 4, RoundingMode.HALF_DOWN)).toString())\n\t\t\t\t\t\t- 1;\n\t\t\t} catch (Exception e) {\n\t\t\t\ttotal_AM = 0D;\n\t\t\t}\n\n\t\t\tmeses_AM_Tratado[j] = percentForm.format(total_AM);\n\n\t\t}\n\t\tvariacao_AM_VO.setProduto(\"Varia&ccedil;&atilde;o M&eacute;dia\");\n\t\tvariacao_AM_VO.setMeses(meses_AM_Tratado);\n\t\tlistaTratada.add(variacao_AM_VO);\n\n\t\treturn listaTratada;\n\t}", "public String[] imprimeProfessores() {\n\t\tString[] st = new String[PROFESSORES.size()];\n\n\t\tfor (int i = 0; i < st.length; i++) {\n\n\t\t\tst[i] = PROFESSORES.get(i).getCodProfessor() + \" \" + PROFESSORES.get(i).getNome();\n\t\t}\n\n\t\treturn st;\n\t}", "private Map<String, List<PreDocumentoEntrata>> raggruppaPrimoLivelloConStatoCompleto(List<PreDocumentoEntrata> preDocumentiEntrata) {\n\t\tString methodName = \"raggruppaPrimoLivelloConStatoCompleto\";\n\t\t\n\t\tMap<String, List<PreDocumentoEntrata>> result = new HashMap<String, List<PreDocumentoEntrata>>();\n\t\t\n\t\tfor(PreDocumentoEntrata preDoc : preDocumentiEntrata) {\n\t\t\t\n\t\t\tpreDoc = getDettaglioPreDocumentoEntrata(preDoc);\n\t\t\t\n\t\t\tString key = getDocumentoKey(preDoc);\n\t\t\t\t\t\t\n\t\t\tif(!isCompleto(preDoc)) {\t\n\t\t\t\tlog.info(methodName, \"Saltato perche' non completo: \"+key);\n\t\t\t\tinserisciDettaglioOperazioneAsinc(\"SALTATO\", \" predocumento: \" + preDoc.getNumero() + \" [\"+preDoc.getUid()+\"] - \" + preDoc.getDescrizione(), Esito.FALLIMENTO, \"Non completo\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tinserisciDettaglioOperazioneAsinc(\"AGGIORNATO\", \" predocumento: \" + preDoc.getNumero() + \" [\"+preDoc.getUid()+\"] - \" + preDoc.getDescrizione(), Esito.SUCCESSO);\n\t\t\t\n\t\t\t\n\t\t\tif(!result.containsKey(key)) {\n\t\t\t\tresult.put(key, new ArrayList<PreDocumentoEntrata>());\t\t\t\t\n\t\t\t\tlog.debug(methodName, \"Nuovo gruppo di primo livello: \"+key);\n\t\t\t}\n\t\t\t\n\t\t\tList<PreDocumentoEntrata> list = result.get(key);\t\t\t\n\t\t\tlist.add(preDoc);\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\treturn result;\n\t}", "private void calcularOtrosIngresos(Ingreso ingreso)throws Exception{\n\t\tfor(IngresoDetalle ingresoDetalle : ingreso.getListaIngresoDetalle()){\r\n\t\t\tif(ingresoDetalle.getIntPersPersonaGirado().equals(ingreso.getBancoFondo().getIntPersonabancoPk())\r\n\t\t\t&& ingresoDetalle.getBdAjusteDeposito()==null){\r\n\t\t\t\tbdOtrosIngresos = ingresoDetalle.getBdMontoAbono();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private int obstaculos() {\n\t\treturn this.quadricula.length * this.quadricula[0].length - \n\t\t\t\tthis.ardiveis();\n\t}", "private void aggiornamento()\n {\n\t gestoreTasti.aggiornamento();\n\t \n\t /*Se lo stato di gioco esiste eseguiamo il suo aggiornamento.*/\n if(Stato.getStato() != null)\n {\n \t Stato.getStato().aggiornamento();\n }\n }", "public void eisagwgiSintagis() {\n\t\t//Elegw ean mporei na eisaxthei suntagi\n\t\tif(numOfMedicine != 0 && numOfDoctors != 0 && numOfPatient != 0 && numOfPrescription < 1000) \n\t\t{\n\t\t\ttmp_1 = numOfPrescription + 1;\n\t\t\t// Emfanizw to synolo twn giatrwn pou yparxoun sto farmakeio\n\t\t\tfor(i = 0; i < numOfDoctors; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(i + \". STOIXEIA IATROU: \");\n\t \t \tdoctor[i].print();\n\t \t \tSystem.out.println();\n\t\t\t}\n\t\t\t// O xristis epilegei ton ari8mo pou antistoixei ston giatro pou egrapse thn syntagh\n\t\t\ttmp_1 = sir.readPositiveInt(\"EPILEKSTE TON GIATRO POU EGGRAPSE THN SYNTAGH: \"); \n\t\t\t// Elegxw an o yparxei o giatros pou edwse o xristis\n\t\t\twhile(tmp_1 < 0 || tmp_1 > numOfDoctors - 1)\n\t \t {\n\t\t\t\ttmp_1 = sir.readPositiveInt(\"DEN YPARXEI GIATROS ME TO NOUMERO POU PLIKTROLOGISATE! PARAKALW KSANADWSTE ARITHMO: \");\n\t\t\t\tSystem.out.println();\n\t \t }\n\t\t\t\n\t\t\ti = numOfPrescription + 1;\n\t\t\t// Emfanizw to synolo twn asthenwn pou yparxoun sto farmakeio\n\t\t\tfor(i = 0; i < numOfPatient; i++)\n\t\t {\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(i + \". STOIXEIA ASTHENOUS: \");\n\t patient[i].print();\n\t System.out.println();\n\t\t }\n\t\t\t// O xristis epilegei ton ari8mo pou antistoixei ston as8enh gia ton opoio proorizetai i syntagh\n\t\t\ti = sir.readPositiveInt(\"EPILEKSTE TON ASTHENH GIA TON OPOIO PROORIZETAI H SYNTAGH: \"); \n\t\t\t// Elegxw an o yparxei o as8enhs pou edwse o xristis\n\t\t\twhile(i < 0 || i > numOfPatient - 1)\n\t \t {\n\t\t\t\ti = sir.readPositiveInt(\"DEN YPARXEI ASTHENHS ME TO NOUMERO POU PLIKTROLOGISATE! PARAKALW KSANADWSTE ARITHMO: \");\n\t\t\t\tSystem.out.println();\n\t \t }\n\t\t\t\n\t\t\t// O xristis eisagei tn synoliko ar8mo farmakwn pou 8a exei h syntagh\n\t\t\tSystem.out.println();\n\t\t\ttmp_2= sir.readPositiveInt(\"EISAGETAI TON ARITHMO TWN FARMAKWN POU EPITHUMEITAI NA EXEI H SYNTAGH(1-6): \");\n\t\t\t// Elegxw an o ari8mos twn farmakwn pou edwse o xristis einai egkyros\n\t\t\twhile(tmp_2 < 0 || tmp_2 > 6)\n\t \t {\n\t\t\t\ttmp_2 = sir.readPositiveInt(\"PARAKALW KSANAEISAGETAI SYNOLIKO ARITHMO FARMAKWN(1-6): \");\n\t\t\t\tSystem.out.println();\n\t \t }\n\t\t\t// Apo8ikeuw tis times ston constructor Syntagi\n\t\t\tprescription[numOfPrescription] = new Syntagi(doctor[tmp_1], patient[i], sir.readDate(\"\\nEISAGETAI THN HMEROMHNIA EGGRAFHS THS SYNTAGHS: \"), tmp_2);\n\t\t\t\n\t\t\tprescription[numOfPrescription].dimiourgiaPinakaFarmakwn(); // Kalw tin methodo auti gia na dimiourgisw ton pinaka me ton arithmo twn farmakwn pou mou edwse o xrhsths\n\t\t\t\n\t\t\t// Emfanizw to synolo twn farmakwn\n\t\t\tfor(i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(i + \". STOIXEIA FARMAKOU: \");\n\t\t\t\tmedicine[i].print();\n\t\t\t}\n\t\t\t\n\t\t\tfor(i = 0; i < tmp_2; i++)\n \t \t{\n\t\t\t\ta = i + 1; \n\t\t\t\t// An h syntagh apoteleitai apo perissotera tou enos farmaka tote...\n\t\t\t\tif(tmp_2 != 1)\n \t \t \t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_1 = sir.readPositiveInt(\"ARITHMOS \" + a + \"ou FARMAKOU: \");\n\t\t\t\t\ttmp_3 = sir.readPositiveInt(\"POSOTHTA \" + a + \"ou FARMAKOU: \");\n \t \t \tSystem.out.println();\n \t \t \t}\n\t\t\t\t// An h syntagh apoteleitai apo ena farmako tote...\n\t\t\t\telse\n \t \t \t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_1 = sir.readPositiveInt(\"ARITHMOS FARMAKOU: \");\n\t\t\t\t\ttmp_3 = sir.readPositiveInt(\"POSOTHTA FARMAKOU: \");\n \t \t\t \tSystem.out.println();\n \t \t \t}\n \t \t \t// Elegxw an o ari8mos pou edwse o xristis einai egkyros\n\t\t\t\twhile(tmp_1 < 0 || tmp_1 > numOfMedicine - 1)\n \t \t \t{\n \t \t \t\ttmp_1 = sir.readPositiveInt(\"EISAGATAI LATHOS DEDOMENA!DWSTE KSANA TIMH: \");\n \t \t\t \tSystem.out.println();\n \t \t \t}\n \t \t \t\n\t\t\t\tprescription[numOfPrescription].gemismaPinakaFarmakwn(i, medicine[tmp_1], tmp_3); // Kalw tin methodo auti gia na gemisw ton pinaka twn farmakwn pou dimiourgisa proigoumenws\n \t \t}\n\t\t\tnumOfPrescription++;\n\t\t}\n\t\t// Elegxw pote den mporei na eisaxthei syntagh\n\t\telse\n\t\t{\n\t\t\t// An oi syntages pou exoun eisaxthei xeperasan to epitrepto orio\n\t\t\tif(numOfPrescription >= 1000)\n \t\t \t{\n \t\t\t\tSystem.out.print(\"DEN MPOREITAI NA EISAGETAI ALLES SYNTAGES!EXEI KALIFTHEI O MEGISTOS ARITHMOS TOUS\");\n \t\t\t\tSystem.out.println();\n \t\t \t}\n\t\t\t// An den yparxoun iatroi, astheneis kai farmaka sto farmakeio\n\t\t\telse if(numOfDoctors == 0 && numOfPatient == 0 && numOfMedicine == 0)\n \t\t \t{\n \t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI GIATROI, ASTHENEIS KAI FARMAKA WSTE NA OLOKLIRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI GIATROUS, ASTHENEIS KAI FARMAKA!\");\n \t\t\t\tSystem.out.println();\n \t\t \t}\n\t\t\t// An den yparxoun iatroi kai astheneis\n\t\t\telse if(numOfDoctors == 0 && numOfPatient == 0)\n \t \t{\n\t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI GIATROI KAI ASTHENEIS GIA NA OLOKLHRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI GIATROUS KAI ASTHENEIS!\");\n \t \t \tSystem.out.println();\n \t \t}\n\t\t\t// An den yparxoun iatroi kai farmaka\n\t\t\telse if(numOfDoctors == 0 && numOfMedicine == 0)\n \t \t{\n\t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI GIATROI KAI FARMAKA GIA NA OLOKLHRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI GIATROUS KAI FARMAKA!\");\n \t \t \tSystem.out.println();\n \t \t}\n\t\t\t// An den yparxoun astheneis kai farmaka\n\t\t\telse if(numOfPatient == 0 && numOfMedicine == 0)\n \t \t{\n\t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI ASTHENEIS KAI FARMAKA GIA NA OLOKLHRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI ASTHENEIS KAI FARMAKA!\");\n \t \t \tSystem.out.println();\n \t \t}\n\t\t\t// An den yparxoun iatroi\n\t\t\telse if (numOfDoctors == 0)\n \t\t \t{\n \t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI GIATROI GIA NA OLOKLHRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI GIATROUS!\");\n \t\t\t\tSystem.out.println();\n \t\t \t}\n \t\t \t// An den yparxoun astheneis\n\t\t\telse\n \t\t \t{\n \t\t\t\tSystem.out.print(\"DEN YPARXOUN DIATHESIMOI ASTHENEIS GIA NA OLOKLHRWTHEI H EISAGWGH SYNTAGHS!PARAKALW EISAGETAI ASTHENEIS!\");\n \t\t\t\tSystem.out.println();\n \t\t \t}\n\t\t}\n\t}", "public List<ChamadosAtendidos> contaChamadosAtendidos(int servico) throws SQLException {\r\n\r\n List<ChamadosAtendidos> CAList = new ArrayList<>();\r\n PreparedStatement ps = conn.prepareStatement(\"SELECT * FROM `solicitacoes` WHERE servico_id_servico =? \");\r\n\r\n ps.setInt(1, servico);\r\n ChamadosAtendidos ch = new ChamadosAtendidos();\r\n int contador1 = 0, contador2 = 0, contador3 = 0;\r\n\r\n ResultSet rs = ps.executeQuery();\r\n while (rs.next()) {\r\n contador1++;\r\n }\r\n PreparedStatement ps2 = conn.prepareStatement(\"SELECT * FROM `solicitacoes` WHERE servico_id_servico =? and em_chamado= 4 \");\r\n ps2.setInt(1, servico);\r\n ResultSet rs2 = ps2.executeQuery();\r\n while (rs2.next()) {\r\n contador2++;\r\n }\r\n PreparedStatement ps3 = conn.prepareStatement(\"SELECT Qtde_tentativas FROM `solicitacoes` WHERE servico_id_servico=?\");\r\n ps3.setInt(1, servico);\r\n ResultSet rs3 = ps3.executeQuery();\r\n while (rs3.next()) {\r\n\r\n contador3 = contador3 + rs3.getInt(1);\r\n }\r\n PreparedStatement ps4 = conn.prepareStatement(\"SELECT * FROM `solicitacoes` WHERE servico_id_servico =? and em_chamado= 2 \");\r\n ps4.setInt(1, servico);\r\n\r\n ResultSet rs4 = ps4.executeQuery();\r\n while (rs4.next()) {\r\n\r\n contador3++;\r\n }\r\n ch.setTotalDeChamados(contador1);\r\n ch.setChamadosConcluidos(contador2);\r\n ch.setChamadosRealizados(contador3 + contador2);\r\n CAList.add(ch);\r\n return CAList;\r\n }", "private void initializeData() {\n ListaOfertas.removeAll(ListaOfertas);\n for(Articulo listaJuegos: ArticuloRepository.getListArticulo()){\n if(listaJuegos.getOferta().contains(\"S\")){\n listaJuegos.setValorDescuento(String.valueOf(listaJuegos.getPrecioArticulo()-(listaJuegos.getPrecioArticulo()*listaJuegos.getPorcentajeDescuento()/100)));\n ListaOfertas.add(listaJuegos);\n }\n\n }\n }", "public void transcribir() \r\n\t{\r\n\t\tpalabras = new ArrayList<List<CruciCasillas>>();\r\n\t\tmanejadorArchivos = new CruciSerializacion();\r\n\t\tint contador = 0;\r\n\t\t\r\n\t\tmanejadorArchivos.leer(\"src/Archivos/crucigrama.txt\");\r\n\t\t\r\n\t\tfor(int x = 0;x<manejadorArchivos.getPalabras().size();x++){\r\n\t\t\t\r\n\t\t\tcontador++;\r\n\t\t\t\r\n\t\t\tif (contador == 4) {\r\n\t\t\t\r\n\t\t\t\tList<CruciCasillas> generico = new ArrayList<CruciCasillas>();\r\n\t\t\t\t\r\n\t\t\t\tfor(int y = 0; y < manejadorArchivos.getPalabras().get(x).length();y++)\r\n\t\t\t\t{\r\n\t\t\t\t\t\tgenerico.add(new CruciCasillas(manejadorArchivos.getPalabras().get(x).charAt(y)));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (y == (manejadorArchivos.getPalabras().get(x).length() - 1)) \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tpalabras.add(generico);\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}\r\n\t\t\t\tcontador = 0;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t}", "private ArrayList<Tarea> getTareas(Date desde, Date hasta) {\n BDConsulter consulter = new BDConsulter(DATABASE_URL, DATABASE_USER, DATABASE_PASS);//genero la clase, que se conecta a la base postgresql\n consulter.connect();//establezco la conexion\n\n //Si no hay ningun integrante seleccionado, selecciono todos\n List<String> integrantesSeleccionados = jListIntegrantes.getSelectedValuesList();\n DefaultListModel<String> model = (DefaultListModel<String>) jListIntegrantes.getModel();\n List<String> integrantes = new ArrayList<String>();\n if (integrantesSeleccionados.size() == 0) {\n for (int i = 0; i < model.getSize(); i++) {\n System.out.println((model.getElementAt(i)));\n integrantes.add(model.getElementAt(i));\n }\n integrantesSeleccionados = integrantes;\n }\n\n ArrayList<Tarea> tareas = new ArrayList<>();\n for (String s : integrantesSeleccionados) {\n tareas.addAll(consulter.getTareas(desde, hasta, (String) jComboBoxProyecto.getSelectedItem(), (String) jComboBoxGrupos.getSelectedItem(), s));//obtengo las tareas creadas entre un rango de fecha dado\n }\n consulter.disconnect();//termino la conexion con la base//termino la conexion con la base\n return tareas;\n }", "public void imprimeAgencias() {\n System.out.println(\"\\n\\n=============== RELATORIO DE AGENCIAS DO BANCO ==================\\n\");\n System.out.println(\"Numero de agencias abertas: \" + numAgenciasAbertas);\n for (int i = 0; i < numAgenciasAbertas; i++) {\n agencias[i].imprimeDados();\n }\n System.out.println(\"===============================================\");\n }", "private void listadoEstados() {\r\n sessionProyecto.getEstados().clear();\r\n sessionProyecto.setEstados(itemService.buscarPorCatalogo(CatalogoEnum.ESTADOPROYECTO.getTipo()));\r\n }", "public void distribuirAportes1(){\n\n if(null == comprobanteSeleccionado.getAporteuniversidad()){\n System.out.println(\"comprobanteSeleccionado.getAporteuniversidad() >> NULO\");\n }\n\n if(null == comprobanteSeleccionado.getAporteorganismo()){\n System.out.println(\"comprobanteSeleccionado.getAporteorganismo() >> NULO\");\n }\n\n if(null == comprobanteSeleccionado.getMontoaprobado()){\n System.out.println(\"comprobanteSeleccionado.getMontoaprobado() >> NULO\");\n }\n\n try{\n if(comprobanteSeleccionado.getAporteuniversidad().floatValue() > 0f){\n comprobanteSeleccionado.setAporteorganismo(comprobanteSeleccionado.getMontoaprobado().subtract(comprobanteSeleccionado.getAporteuniversidad()));\n comprobanteSeleccionado.setAportecomitente(BigDecimal.ZERO);\n }\n } catch(NullPointerException npe){\n System.out.println(\"Error de NullPointerException\");\n npe.printStackTrace();\n }\n\n }", "private void estadoInicial(){\n double referencias[] = new double[sigmas.length];\n for(int i=0;i<sigmas.length;i++){\n referencias[i] = (ppl.limiteSuperiorR(i+1)+ppl.limiteInferiorR(i+1))/2;\n System.out.printf(\"limS:%g, limI:%g, Referencias[%d] = %g\\n\",ppl.limiteSuperiorR(i+1),ppl.limiteInferiorR(i+1),i,referencias[i]);\n }\n\n double Zc = ppl.Z(referencias[0],referencias[1]);\n TActual = Zc*0.2;\n System.out.printf(\"TActual:T%g \\n\",TActual);\n\n estadoMejor = new Estado(\n iteracionActual, \n TActual, \n referencias,\n Zc);\n\n calcularSoluciones(estadoMejor);\n calcularProbabilidadAceptacion(estadoMejor);\n\n historialEstados.add(estadoMejor);\n }", "public void getGerarEscalaGeral(ActionEvent actionEvent) {\n\t\tEventoRepository eventoRep = new EventoRepository(JPAFactory.getEntityManager());\r\n\t\tlistaEvento = eventoRep.buscarEventos(inicio,fim);\r\n\t\t\r\n\t\t//CorEquipesController grupoCores = new CorEquipesController();\r\n\t\tTurmaVoluntarioRepository repository = new TurmaVoluntarioRepository(JPAFactory.getEntityManager());\r\n\t\tList<CorEquipes> listaCorGeral = repository.buscarCorGeral();\r\n\t\tList<Voluntario> listaVoluntarioGeral = repository.buscarVoluntarioGeral();\r\n\t\tList<Voluntario> equipeA = new ArrayList<Voluntario>();\r\n\t\tList<Voluntario> equipeB = new ArrayList<Voluntario>();\r\n\t\tList<Voluntario> listPopulacaoI = new ArrayList<Voluntario>();\t\t\t\r\n\t\tList<Voluntario> escalaA = new ArrayList<Voluntario>();\r\n\t\tList<Voluntario> escalaB = new ArrayList<Voluntario>();\r\n\t\tList<Integer> intervaloSorteio = new ArrayList<Integer>();\r\n\r\n\t//\tFor de verificação para não repetição dos campos sorteados\r\n\t\tfor (int i=0; i<listaVoluntarioGeral.size(); i++) {\r\n\t\t\tintervaloSorteio.add(i);\r\n\t\t}\r\n\t\t//População inicial\t\r\n\t\tfor (int i=0; i<listaVoluntarioGeral.size(); i++) {\r\n\t\t\tRandom rand = new Random();\r\n\t\t\t\r\n\t\t\tint posicaoSorteada = rand.nextInt(intervaloSorteio.size());\r\n\t\t\t\r\n\t\t\tint conteudoSorteado = intervaloSorteio.get(posicaoSorteada);\r\n\t\t\t\r\n\t\t\tlistPopulacaoI.add(listaVoluntarioGeral.get(conteudoSorteado));\r\n\t\r\n\t\t\tfor (int j = 0; j<intervaloSorteio.size(); j++) {\r\n\t\t\t\tif (conteudoSorteado==intervaloSorteio.get(j)) {\r\n\t\t\t\t\tintervaloSorteio.remove(j);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Gera os pais\r\n\t\tfor (int i=0; i<listaVoluntarioGeral.size(); i++) {\r\n\t\t\tintervaloSorteio.add(i);\r\n\t\t}\r\n\t\tfor(int k = 0; k<listPopulacaoI.size();k++) {\r\n\t\t\tRandom rand = new Random();\r\n\t\t\t//vrifica a lista para adicionar na equipe A (pai1)\r\n\t\t\tif (intervaloSorteio.isEmpty()) {\r\n\t\t\t\tbreak;\r\n\t\t\t}else {\r\n\t\t\t\tint posicaoSorteadaA = rand.nextInt(intervaloSorteio.size());\r\n\t\t\t\tint conteudoSorteadoA = intervaloSorteio.get(posicaoSorteadaA);\r\n\t\t\t\tequipeA.add(listPopulacaoI.get(conteudoSorteadoA));\r\n\t\t\t\tfor (int j = 0; j<intervaloSorteio.size(); j++) {\r\n\t\t\t\t\tif (conteudoSorteadoA==intervaloSorteio.get(j)) {\r\n\t\t\t\t\t\tintervaloSorteio.remove(j);\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\t//vrifica a lista para adicionar na equipe B (pai2)\r\n\t\t\tif(intervaloSorteio.isEmpty()) {\r\n\t\t\t\tbreak;\r\n\t\t\t}else {\r\n\t\t\t\tint posicaoSorteadaB = rand.nextInt(intervaloSorteio.size());\r\n\t\t\t\tint conteudoSorteadoB = intervaloSorteio.get(posicaoSorteadaB);\r\n\t\t\t\tequipeB.add(listPopulacaoI.get(conteudoSorteadoB));\r\n\t\t\t\tfor (int j = 0; j<intervaloSorteio.size(); j++) {\r\n\t\t\t\t\tif (conteudoSorteadoB==intervaloSorteio.get(j)) {\r\n\t\t\t\t\t\tintervaloSorteio.remove(j);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Cruzamento\r\n\t\tint tamanhoA = equipeA.size();\r\n\t\tint tamanhoB = equipeB.size();\r\n\t\tint metadeA = (int) tamanhoA/2;\r\n\t\tint metadeB = (int) tamanhoB/2;\r\n\t\tfor (int i=0; i<metadeA; i++) {\r\n\t\t\tescalaA.add(equipeA.get(i));\r\n\t\t}\r\n\t\tfor (int i=metadeA; i<tamanhoA; i++) {\r\n\t\t\tescalaB.add(equipeA.get(i));\r\n\t\t}\r\n\t\tfor (int i=0; i<metadeB; i++) {\r\n\t\t\tescalaB.add(equipeB.get(i));\r\n\t\t}\r\n\t\tfor (int i=metadeB; i<tamanhoB; i++) {\r\n\t\t\tescalaA.add(equipeB.get(i));\r\n\t\t}\r\n\t\t\r\n\t\t//grava dados na base\r\n\t\tint tamanhoEvanto = listaEvento.size();\r\n\t\tint metadeTamanhoEv = tamanhoEvanto/2;\r\n\t\tfor (int i = 0; i < listaEvento.size(); i ++) {\r\n\t\t\tif (listaEvento.get(i).getTipoEvento().getValor().equals(0)) {\t\r\n\t\t\t\tfor(int j = 0; j < equipeA.size(); j++) {\r\n//\t\t\t\t\tgetEntity().setCorE(listaCorGeral.get(i));\r\n\t\t\t\t\tgetEntity().setEvento(listaEvento.get(i));\r\n\t\t\t\t\tgetEntity().setVoluntario(equipeA.get(j));\r\n\t\t\t\t\tinsert(actionEvent);\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\ti++;\r\n\t\t\t\tfor(int j = 0; j < equipeB.size(); j++) {\r\n//\t\t\t\t\tgetEntity().setCorE(listaCorGeral.get(i));\r\n\t\t\t\t\tgetEntity().setEvento(listaEvento.get(i));\r\n\t\t\t\t\tgetEntity().setVoluntario(equipeB.get(j));\r\n\t\t\t\t\tinsert(actionEvent);\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}else {\r\n\t\t\t\tfor(int j = 0; j < listPopulacaoI.size(); j++) {\r\n//\t\t\t\t\tgetEntity().setCorE(listaCorGeral.get(i));\r\n\t\t\t\t\tgetEntity().setEvento(listaEvento.get(i));\r\n\t\t\t\t\tgetEntity().setVoluntario(listPopulacaoI.get(j));\r\n\t\t\t\t\tinsert(actionEvent);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n ArrayList<Persona> cola = new ArrayList<>();\r\n \r\n generarCola(cola);\r\n \r\n //Creamos variables que nos seran útiles\r\n double recaudacion;\r\n double recaudacionTotal=0;\r\n Persona espectadorActual;\r\n int edadActual;\r\n int contadorPersonas=0;\r\n \r\n //Creamos el iterator\r\n Iterator<Persona> it=cola.iterator();\r\n \r\n \r\n //Recorremos la cola\r\n while(it.hasNext()){\r\n \r\n espectadorActual=it.next();\r\n \r\n //\"Atendemos\" al espectador para que pague\r\n edadActual=espectadorActual.getEdad();\r\n \r\n //Comprobamosla edad\r\n if(edadActual>=5 && edadActual<=10) { \r\n \trecaudacion=1; \r\n } else if(edadActual>=11 && edadActual<=17) {\r\n \trecaudacion=2.5;\r\n } else {\r\n \trecaudacion=3.5;\r\n }\r\n contadorPersonas++;\r\n recaudacionTotal+=recaudacion;\r\n \r\n System.out.println(\"Una persona de \"+edadActual+\" años se le ha cobrado \" +recaudacion+ \" euros\");\r\n \r\n }\r\n \r\n //Mostramos el resultado\r\n System.out.println(\"La recaudación es de \"+recaudacionTotal+\" euros y han venido \"+contadorPersonas);\r\n \r\n }", "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 }", "@Override\r\n\tpublic List<Object> consultarVehiculos() {\r\n\t\t\r\n\t\tFormat formato = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\t\t\r\n\t\treturn AdminEstacionamientoImpl.getParqueadero().stream().map(\r\n\t\t\t\t temp -> {HashMap<String, String> lista = new HashMap<String, String>(); \r\n\t\t\t\t lista.put( \"placa\", temp.getVehiculo().getPlaca() );\r\n\t\t\t\t lista.put( \"tipo\", temp.getVehiculo().getTipo() );\r\n\t\t\t\t lista.put( \"fechaInicio\", formato.format( temp.getFechaInicio() ) );\r\n\r\n\t\t\t\t return lista;\r\n\t\t\t\t }\r\n\t\t\t\t).collect(Collectors.toList());\r\n\t}", "private int contabilizaHorasNoLectivas(ArrayList<FichajeRecuentoBean> listaFichajesRecuento, ProfesorBean profesor, boolean guardar, int mes) {\r\n int segundos=0;\r\n for (FichajeRecuentoBean fichajeRecuento : listaFichajesRecuento) {\r\n// System.out.println(fichajeRecuento.getFecha()+\" \"+fichajeRecuento.getHoraEntrada()+\"->\"+fichajeRecuento.getHoraSalida()+\" => \"+UtilsContabilizar.dimeDuracion(fichajeRecuento.getHoraEntrada(),fichajeRecuento.getHoraSalida()));\r\n segundos+=UtilsContabilizar.dimeDuracion(fichajeRecuento.getHoraEntrada(),fichajeRecuento.getHoraSalida());\r\n \r\n DetalleInformeBean detalleInforme=new DetalleInformeBean();\r\n detalleInforme.setIdProfesor(profesor.getIdProfesor());\r\n detalleInforme.setTotalHoras(UtilsContabilizar.dimeDuracion(fichajeRecuento.getHoraEntrada(),fichajeRecuento.getHoraSalida()));\r\n detalleInforme.setFecha(fichajeRecuento.getFecha());\r\n detalleInforme.setHoraIni(fichajeRecuento.getHoraEntrada());\r\n detalleInforme.setHoraFin(fichajeRecuento.getHoraSalida());\r\n detalleInforme.setTipoHora(\"NL\");\r\n if(guardar && detalleInforme.getTotalHoras()>0)GestionDetallesInformesBD.guardaDetalleInforme(detalleInforme, \"contabilizaHorasNoLectivas\", mes);\r\n \r\n }\r\n return segundos;\r\n }", "public static void main(String[] args) { \n /* Grafo grafo = new Grafo();\n \n No no;\n no = new No(\"1\");//0\n grafo.addNo(no);\n no = new No(\"2\");//1\n grafo.addNo(no);\n no = new No(\"3\");//2\n grafo.addNo(no);\n no = new No(\"4\");//3\n grafo.addNo(no);\n no = new No(\"5\");//4\n grafo.addNo(no);\n no = new No(\"6\");//5\n grafo.addNo(no);\n no = new No(\"7\");//6\n grafo.addNo(no);\n \n //Cria as arestas do nó\n \n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(1), 2);\n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(2), 5);\n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(3), 4);\n Aresta.inserirAresta(grafo.getNo(1), grafo.getNo(2), 2);\n Aresta.inserirAresta(grafo.getNo(1), grafo.getNo(4), 7);\n Aresta.inserirAresta(grafo.getNo(2), grafo.getNo(3), 1);\n Aresta.inserirAresta(grafo.getNo(2), grafo.getNo(4), 4);\n Aresta.inserirAresta(grafo.getNo(2), grafo.getNo(5), 3);\n Aresta.inserirAresta(grafo.getNo(3), grafo.getNo(5), 4);\n Aresta.inserirAresta(grafo.getNo(4), grafo.getNo(5), 1);\n Aresta.inserirAresta(grafo.getNo(4), grafo.getNo(6), 5);\n Aresta.inserirAresta(grafo.getNo(5), grafo.getNo(6), 7);\n \n No no;\n no = new No(\"SF\");//0\n grafo.addNo(no);\n no = new No(\"LA\");//1\n grafo.addNo(no);\n no = new No(\"D\");//2\n grafo.addNo(no);\n no = new No(\"C\");//3\n grafo.addNo(no);\n no = new No(\"A\");//4\n grafo.addNo(no);\n no = new No(\"B\");//5\n grafo.addNo(no);\n no = new No(\"NY\");//6\n grafo.addNo(no);\n no = new No(\"M\");//7\n grafo.addNo(no);\n \n \n //Cria as arestas do nó\n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(1), 39);\n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(2), 89);\n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(3), 120);\n Aresta.inserirAresta(grafo.getNo(0), grafo.getNo(6), 210);\n Aresta.inserirAresta(grafo.getNo(1), grafo.getNo(2), 50);\n Aresta.inserirAresta(grafo.getNo(1), grafo.getNo(6), 170);\n Aresta.inserirAresta(grafo.getNo(2), grafo.getNo(3), 65);\n Aresta.inserirAresta(grafo.getNo(3), grafo.getNo(5), 79);\n Aresta.inserirAresta(grafo.getNo(3), grafo.getNo(6), 59);\n Aresta.inserirAresta(grafo.getNo(3), grafo.getNo(4), 99);\n Aresta.inserirAresta(grafo.getNo(4), grafo.getNo(6), 80);\n Aresta.inserirAresta(grafo.getNo(4), grafo.getNo(7), 70);\n Aresta.inserirAresta(grafo.getNo(5), grafo.getNo(6), 20);\n Aresta.inserirAresta(grafo.getNo(6), grafo.getNo(7), 66);*/\n \n Grafo grafo = GrafoAleatorioKruskal.gerar(1000, 10, 10, 100);\n //Gera a arvore geradora com custo minimo\n grafo.kruskal();\n \n //TESTE\n int teste = grafo.getNo(0).getConjunto();\n boolean answer = true;\n for(No n : grafo.getNos()){\n if (teste!= n.getConjunto()){\n answer = false;\n }\n }\n if(answer){\n System.out.println(\"Todos os nós pertecem ao mesmo conjunto\");\n }\n else{\n System.out.println(\"Deu erro\");\n }\n }", "public List<String> Garsonkullanici(int masa_no) throws SQLException {\n ArrayList<Integer> kull = new ArrayList<>();\r\n ArrayList<String> kullad = new ArrayList<>();\r\n sqlsorgular.baglanti vb = new baglanti();\r\n vb.baglan();\r\n try {\r\n\r\n String sorgu = \"select kullanici_no from ilisk_masa where masa_no=\" + masa_no + \";\";\r\n ps = vb.con.prepareStatement(sorgu);\r\n rs = ps.executeQuery(sorgu);\r\n\r\n while (rs.next()) {\r\n kull.add(rs.getInt(1));\r\n }\r\n System.out.println(kull);\r\n } catch (Exception e) {\r\n System.out.println(\"Garson kullanicisini alirken hata olustu\");\r\n\r\n }\r\n\r\n for (Integer kullanici_no : kull) {\r\n String deger = \" \";\r\n String sorgu2 = \"select kullanici_adi from kullanicilar where kullanici_no=\" + kullanici_no + \" and durum='GARSON';\";\r\n try {\r\n ps = vb.con.prepareStatement(sorgu2);\r\n rs = ps.executeQuery(sorgu2);\r\n while (rs.next()) {\r\n deger = rs.getString(1);\r\n\r\n if (deger != null) {\r\n kullad.add(deger);\r\n }\r\n }\r\n } catch (Exception e) {\r\n System.out.println(\"Garson kullanici Alinirken hata oldu\");\r\n }\r\n\r\n System.out.println(kullad);\r\n\r\n }\r\n vb.con.close();\r\n return kullad;\r\n\r\n }", "public List<Integer> codificarDigitoASieteSegmentos(int numero) {\n\n\t\tList<Integer> segList = new ArrayList<>();\n\n\t\tswitch (numero) {\n\t\tcase 1:\n\t\t\tsegList.add(3);\n\t\t\tsegList.add(4);\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tsegList.add(5);\n\t\t\tsegList.add(3);\n\t\t\tsegList.add(6);\n\t\t\tsegList.add(2);\n\t\t\tsegList.add(7);\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tsegList.add(5);\n\t\t\tsegList.add(3);\n\t\t\tsegList.add(6);\n\t\t\tsegList.add(4);\n\t\t\tsegList.add(7);\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tsegList.add(1);\n\t\t\tsegList.add(6);\n\t\t\tsegList.add(3);\n\t\t\tsegList.add(4);\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tsegList.add(5);\n\t\t\tsegList.add(1);\n\t\t\tsegList.add(6);\n\t\t\tsegList.add(4);\n\t\t\tsegList.add(7);\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\tsegList.add(5);\n\t\t\tsegList.add(1);\n\t\t\tsegList.add(6);\n\t\t\tsegList.add(2);\n\t\t\tsegList.add(7);\n\t\t\tsegList.add(4);\n\t\t\tbreak;\n\t\tcase 7:\n\t\t\tsegList.add(5);\n\t\t\tsegList.add(3);\n\t\t\tsegList.add(4);\n\t\t\tbreak;\n\t\tcase 8:\n\t\t\tsegList.add(1);\n\t\t\tsegList.add(2);\n\t\t\tsegList.add(3);\n\t\t\tsegList.add(4);\n\t\t\tsegList.add(5);\n\t\t\tsegList.add(6);\n\t\t\tsegList.add(7);\n\t\t\tbreak;\n\t\tcase 9:\n\t\t\tsegList.add(1);\n\t\t\tsegList.add(3);\n\t\t\tsegList.add(4);\n\t\t\tsegList.add(5);\n\t\t\tsegList.add(6);\n\t\t\tsegList.add(7);\n\t\t\tbreak;\n\t\tcase 0:\n\t\t\tsegList.add(1);\n\t\t\tsegList.add(2);\n\t\t\tsegList.add(3);\n\t\t\tsegList.add(4);\n\t\t\tsegList.add(5);\n\t\t\tsegList.add(7);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t\treturn segList;\n\t}", "public String recomendarProgramasPYP(){\n \n String text = \"\";\n \n for (int i = 0; i < EmpleadosPrioridadAlta.size(); i++) {\n //mayores de 70 años, con enfermedades preexistentes, pueden ser hombres\n text += \"Empleado: \"+EmpleadosPrioridadAlta.get(i).getNombre()+\"\\n\";\n text += \"PROGRAMAS DE PREVENCION Y PROMOCION RECOMENDADOS:\\n\"+\"-\"+programasPYP[1]+\"\\n\"+\"-\"+programasPYP[5]+\n \"\\n\"+\"-\"+programasPYP[6]+\"\\n--------------------------\\n\"; \n }\n \n for (int i = 0; i < EmpleadosPrioridadMediaAlta.size(); i++) {\n //entre 40 y 60, enfermedades preexistentes, pueden ser hombres.\n text += \"Empleado: \"+EmpleadosPrioridadMediaAlta.get(i).getNombre()+\"\\n\";\n \n if(EmpleadosPrioridadMediaAlta.get(i).getSexo().equals(\"hombre\")){\n text += \"PROGRAMAS DE PREVENCION Y PROMOCION RECOMENDADOS:\\n\"+\"-\"+programasPYP[1]+\n \"\\n\"+\"-\"+programasPYP[5]+\"\\n\"+\"-\"+programasPYP[6]+\"\\n--------------------------\\n\";\n }else{\n text += \"PROGRAMAS DE PREVENCION Y PROMOCION RECOMENDADOS:\\n\"+\"-\"+programasPYP[0]+\"\\n\"+\"-\"+programasPYP[1]+\n \"\\n\"+\"-\"+programasPYP[4]+\"\\n\"+\"-\"+programasPYP[5]+\"\\n\"+\"-\"+programasPYP[6]+\"\\n--------------------------\\n\";\n \n } \n }\n \n for (int i = 0; i < EmpleadosPrioridadMedia.size(); i++) {\n //personas con enfermedades preexistente entr 20 y 40\n text += \"Empleado: \"+EmpleadosPrioridadMedia.get(i).getNombre()+\"\\n\";\n if(EmpleadosPrioridadMedia.get(i).getSexo().equals(\"hombre\")){\n text += \"PROGRAMAS DE PREVENCION Y PROMOCION RECOMENDADOS:\\n\"+\"-\"+programasPYP[1]+\"\\n\"+\"-\"+programasPYP[3]+\"\\n\"+\"-\"+programasPYP[5]+\n \"\\n\"+\"-\"+programasPYP[6]+\"\\n--------------------------\\n\"; \n }else{\n text += \"PROGRAMAS DE PREVENCION Y PROMOCION RECOMENDADOS:\\n\"+\"-\"+programasPYP[0]+\"\\n\"+\"-\"+programasPYP[1]+\"\\n\"+\"-\"+programasPYP[2]+\n \"\\n\"+\"-\"+programasPYP[3]+\"\\n\"+\"-\"+programasPYP[5]+\"\\n\"+\"-\"+programasPYP[6]+\"\\n--------------------------\\n\"; \n }\n }\n \n for (int i = 0; i < EmpleadosPrioridadBaja.size(); i++) {\n //hombres o mujeres sanos.\n text += \"Empleado: \"+EmpleadosPrioridadBaja.get(i).getNombre()+\"\\n\";\n \n if(EmpleadosPrioridadBaja.get(i).getSexo().equals(\"hombre\")){\n text += \"PROGRAMAS DE PREVENCION Y PROMOCION RECOMENDADOS:\"+\"\\n\"+\"-\"+programasPYP[1]+\n \"\\n\"+\"-\"+programasPYP[3]+\"\\n\"+\"-\"+programasPYP[5]+\"\\n\"+\"-\"+programasPYP[6]+\"\\n--------------------------\\n\";\n }else{\n text += \"PROGRAMAS DE PREVENCION Y PROMOCION RECOMENDADOS:\"+\"\\n\"+\"-\"+programasPYP[0]+\"\\n\"+\"-\"+programasPYP[1]+\n \"\\n\"+\"-\"+programasPYP[2]+\"\\n\"+\"-\"+programasPYP[3]+\"\\n\"+\"-\"+programasPYP[5]+\"\\n\"+\"-\"+programasPYP[6]+\"\\n--------------------------\\n\";\n \n }\n }\n return text;\n }", "public Vector listaAsignaturas(String nombre_titulacion)\n {\n try\n {\n Date fechaActual = new Date();\n SimpleDateFormat formato = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\n //Se obtiene una conexion\n Connection conexion = this.bbdd.getConexion();\n\n //Se prepara la query\n String query = \"SELECT * FROM asignaturatotal \";\n query += \"WHERE fechainicio <='\" + formato.format(fechaActual) +\"' \";\n query += \"AND fechafin >= '\"+formato.format(fechaActual)+\"' AND tit_nombre='\"+nombre_titulacion+\"' AND activa = 's'\";\n\n //Se crea un vector de asignaturas\n Vector vectorAsignaturas = new Vector();\n\n //Se ejecuta la query \n Statement st = conexion.createStatement();\n ResultSet resultado = st.executeQuery(query);\n \n //Para cada fila se creará un objeto y se rellenará\n //con los valores de las columnas.\n while(resultado.next())\n {\n asignatura asignatura = new asignatura();\n \n asignatura.setCodigo(resultado.getString(\"codigo\"));\n asignatura.setTitulo(resultado.getString(\"titulo\"));\n asignatura.setFechaInicio(resultado.getDate(\"fechainicio\"));\n asignatura.setFechaFin(resultado.getDate(\"fechafin\"));\n asignatura.setResponsable(resultado.getString(\"responsable\"));\n asignatura.setEmail(resultado.getString(\"email\"));\n asignatura.setTelefono(resultado.getString(\"telefono\"));\n \n //Se añade la asignatura al vector de asignaturas\n vectorAsignaturas.add(asignatura);\n }\n\n //Se cierra la conexión\n this.bbdd.cerrarConexion(conexion);\n\n return vectorAsignaturas;\n }\n catch(SQLException e)\n {\n System.out.println(\"Error al acceder a las asignaturas de la Base de Datos: \"+e.getMessage());\n return null;\n }\n }", "public void eisagwgiGiatrou() {\n\t\t// Elegxw o arithmos twn iatrwn na mhn ypervei ton megisto dynato\n\t\tif(numOfDoctors < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tdoctor[numOfDoctors] = new Iatros();\n\t\t\tdoctor[numOfDoctors].setFname(sir.readString(\"DWSTE TO ONOMA TOU GIATROU: \")); // Pairnei apo ton xristi to onoma tou giatrou\n\t\t\tdoctor[numOfDoctors].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \")); // Pairnei apo ton xristi to epitheto tou giatrou\n\t\t\tdoctor[numOfDoctors].setAM(rnd.nextInt(1000000)); // To sistima dinei automata ton am tou giatrou\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t// Elegxos monadikotitas tou am tou giatrou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfDoctors; i++)\n\t\t\t{\n\t\t\t\tif(doctor[i].getAM() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfDoctors++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS GIATROUS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}", "private Map<String,Map<String,List<PreDocumentoEntrata>>> raggruppaGruppiDiSecondoLivello(Map<String, List<PreDocumentoEntrata>> documentiSpesaRaggruppati) {\n\t\t\n\t\tMap<String,Map<String,List<PreDocumentoEntrata>>> result = new HashMap<String, Map<String,List<PreDocumentoEntrata>>>();\n\t\t\n\t\t\n\t\tfor(Entry<String, List<PreDocumentoEntrata>> entry : documentiSpesaRaggruppati.entrySet()){\n\t\t\tString key = entry.getKey();\n\t\t\tList<PreDocumentoEntrata> listaDoc = entry.getValue();\n\t\t\t\n\t\t\tMap<String,List<PreDocumentoEntrata>> preDocumentiSecondoLivello = raggruppaSecondoLivello(listaDoc);\n\t\t\t\n\t\t\tresult.put(key, preDocumentiSecondoLivello);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public void inativarMovimentacoes() {\n\n\t\ttry {\n\n\t\t\tif (((auxMovimentacao.getDataMovimentacao())\n\t\t\t\t\t.before(permitirCadastrarMovimentacao(movimentacao.getAlunoTurma()).getDataMovimentacao()))\n\t\t\t\t\t|| (auxMovimentacao.getDataMovimentacao()).equals(\n\t\t\t\t\t\t\tpermitirCadastrarMovimentacao(movimentacao.getAlunoTurma()).getDataMovimentacao())\n\t\t\t\t\t) {\n\t\t\t\tExibirMensagem.exibirMensagem(Mensagem.MOVIMENTACOES_ANTERIORES);\n\t\t\t} else {\n\n\t\t\t\tDate dataFinal = auxMovimentacao.getDataMovimentacao();\n\t\t\t\tCalendar calendarData = Calendar.getInstance();\n\t\t\t\tcalendarData.setTime(dataFinal);\n\t\t\t\tcalendarData.add(Calendar.DATE, -1);\n\t\t\t\tDate dataInicial = calendarData.getTime();\n\n\t\t\t\tMovimentacao mov = new Movimentacao();\n\t\t\t\tmov = (Movimentacao) movimentacaoAlunoDAO.listarTodos(Movimentacao.class,\n\t\t\t\t\t\t\" a.dataMovimentacao = (select max(b.dataMovimentacao) \"\n\t\t\t\t\t\t\t\t+ \" from Movimentacao b where b.alunoTurma = a.alunoTurma) \"\n\t\t\t\t\t\t\t\t+ \" and a.status is true and a.alunoTurma.status = true and dataMovimentacaoFim = null and a.alunoTurma = \"\n\t\t\t\t\t\t\t\t+ movimentacao.getAlunoTurma().getId())\n\t\t\t\t\t\t.get(0);\n\n\t\t\t\tmov.setControle(false);\n\t\t\t\tmov.setDataMovimentacaoFim(dataInicial);\n\t\t\t\tmovimentacaoService.inserirAlterar(mov);\n\n\t\t\t\tAlunoTurma aluno = new AlunoTurma();\n\t\t\t\taluno = daoAlunoTurma.buscarPorId(AlunoTurma.class, movimentacao.getAlunoTurma().getId());\n\t\t\t\taluno.setControle(0);\n\t\t\t\t\n\n\t\t\t\tauxMovimentacao.setAlunoTurma(movimentacao.getAlunoTurma());\n\t\t\t\tauxMovimentacao.setStatus(true);\n\t\t\t\tauxMovimentacao.setControle(false);\n\n\t\t\t\tmovimentacaoService.inserirAlterar(auxMovimentacao);\n\t\t\t\t\n\t\t\t\tif(auxMovimentacao.getSituacao()==5){\n//\t\t\t\t\t\n//\t\t\t\t\tCurso cursoAluno = new Curso();\n//\t\t\t\t\tcursoAluno = daoCurso.buscarPorId(Curso.class, auxMovimentacao.getAlunoTurma().getTurma().getCurso().getId());\n\t\t\t\t\t\n\t\t\t\t\taluno.setSituacao(5);\n\t\t\t\t\taluno.setLiberado(false);\n\t\t\t\t\talunoTurmaService.inserirAlterar(aluno);\n\t\t\t\t\t\n\t\t\t\t\t//liberar para responder o questionário\n\t\t\t\t\tAluno alunoResponde = new Aluno(); \n\t\t\t\t\talunoResponde = daoAluno.buscarPorId(Aluno.class, aluno.getAluno().getId());\n\t\t\t\t\t \n\t\t\t\t // email.setCursos(auxMovimentacao.getAlunoTurma().getTurma().getCurso());\n\t\t\t\t\t//email.setTurma(auxMovimentacao.getAlunoTurma().getTurma());\n\t\t\t\t\temail.setEnviado(false);\n\t\t\t\t\temail.setStatus(true);\n\t\t\t\t\temail.setAlunoTurma(auxMovimentacao.getAlunoTurma());\n\t\t\t\t\t\n\t\t\t\t\t//email.setAluno(alunoResponde);\n\t\t\t\t\temailService.inserirAlterar(email);\n\t\t\t\t\t//enviar o email para responder \n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\taluno.setSituacao(0);\n\t\t\t\t\talunoTurmaService.inserirAlterar(aluno);\n\t\t\t\t}\n\t\t\t\taluno = new AlunoTurma();\n\t\t\t\temail = new Email();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tFecharDialog.fecharDialogAlunoCursoEditar();\n\t\t\t\tFecharDialog.fecharDialogAlunoEditarCurso();\n\t\t\t\tFecharDialog.fecharDialogAlunoTrancamento();\n\t\t\t\talterar(movimentacao);\n\n\t\t\t\tExibirMensagem.exibirMensagem(Mensagem.SUCESSO);\n\t\t\t\tauxMovimentacao = new Movimentacao();\n\n\t\t\t\talunoTurmaService.update(\" AlunoTurma set permiteCadastroCertificado = 2 where id = \"\n\t\t\t\t\t\t+ movimentacao.getAlunoTurma().getId());\n\n\t\t\t\n\t\t\t\tcriarNovoObjetoAluno();\n\t\t\t\tatualizarListas();\n\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tExibirMensagem.exibirMensagem(Mensagem.ERRO);\n\t\t}\n\n\t}" ]
[ "0.6777586", "0.6347688", "0.63117254", "0.6246811", "0.61990464", "0.61871374", "0.6157982", "0.61526054", "0.61401254", "0.6136713", "0.61256146", "0.6121901", "0.6059142", "0.6056857", "0.6045613", "0.60388124", "0.5989681", "0.59857434", "0.5985523", "0.5979148", "0.5977239", "0.5971991", "0.5937395", "0.592292", "0.5907697", "0.59062064", "0.5903683", "0.58776987", "0.5867294", "0.58574116", "0.5856931", "0.58554196", "0.5844811", "0.58394915", "0.5832534", "0.5826291", "0.582317", "0.58159196", "0.5810768", "0.5795674", "0.57846737", "0.5779846", "0.5777403", "0.57748055", "0.576821", "0.5764466", "0.5762655", "0.5762374", "0.57610047", "0.5759577", "0.5747797", "0.5738426", "0.5736583", "0.573416", "0.5732874", "0.5728188", "0.5725384", "0.5724519", "0.5716127", "0.5715694", "0.57118654", "0.5711722", "0.570467", "0.57033455", "0.5698892", "0.5693588", "0.56822854", "0.5678592", "0.5671093", "0.5666736", "0.56649864", "0.56568533", "0.5646936", "0.56459135", "0.56450796", "0.564461", "0.5642131", "0.5640259", "0.56336254", "0.5632299", "0.56291324", "0.5628795", "0.5628742", "0.5625114", "0.5624064", "0.5621666", "0.561671", "0.5616563", "0.56103414", "0.5609754", "0.5597413", "0.5597012", "0.5594878", "0.55925405", "0.5592461", "0.5590381", "0.55896956", "0.5585227", "0.5584305", "0.5582192" ]
0.58313805
35
calcola il numero di assegnamenti
public int calcola_num_assegnamenti(String id_autista,Calendar cal){ AssegnamentiDao ass=new AssegnamentiDao(); //gią assegnati all'autista per scegliere int n=ass.get_num_assegnamenti(id_autista,cal); //l'ora del prossimo assegnamento if(n>4) n++; //CONTA L'ORA DI SPACCO return n; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void aumentarAciertos() {\r\n this.aciertos += 1;\r\n this.intentos += 1; \r\n }", "int generarNumeroNota();", "public int getNumeroEspaciadorAdicionar() {\n return numeroEspaciadorAdicionar;\n }", "private int incrementarNumServ(String tipoServicio) throws BaseDeDatosExcepcion, ConexionExcepcion {\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"incrementarNumServ(String) - start\");\n\t\t}\n\n\t\tint numNoFiscal = MediadorBD.obtenerNumServicioCajaCentral(tipoServicio);\n\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"incrementarNumServ(String) - end\");\n\t\t}\n\t\treturn numNoFiscal;\n\t}", "public int getNUMSECFO() {\n return numsecfo;\n }", "private int pasarMilisegundoASegundo( long milisegundos )\n {\n return (int)(milisegundos/MILISEGUNDOS_EN_SEGUNDO);\n }", "@Override\n public int getSalida() {\n return 0;\n }", "private int aleatorizarNumero() {\n\t\tint aux;\n\t\taux = r.getIntRand(13) + 1;\n\t\treturn aux;\n\t}", "BigInteger getNumRegistro();", "public int getCantidadAvenidas();", "public int numAristas() { return numA; }", "@Override\n public void cantidad_Defensa(){\n defensa=2+nivel+aumentoD;\n }", "public int getNumeroGiocatori() {\n return 0;\r\n }", "public int aleatorioSeis(){\n\t\t\n\t\treturn (int)(Math.random() * 6) + 1;\n\t}", "int getAoisCount();", "@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}", "public int getSno() {\n return sno;\n }", "public int liczbaelnastosie() {\n\t\treturn 0;\n\t}", "public int getCyclomaticNumber() {\n\t\treturn (this.getKrawedzie().size() - this.getWierzcholki().size() + this.iloscSpojnychSkladowych());\n\t}", "public int idade() {\n\t\treturn 2020 - anoNascimento;\n\t}", "public Long numeroRegistrosFactura();", "private int aleatorizarNaipe() {\n\t\tint aux;\n\t\taux = r.getIntRand(4);\n\t\treturn aux;\n\t}", "public void aumentarMinas(){\n\r\n if(espM==false){\r\n minascerca++;\r\n }\r\n }", "@Override\n public int makeIDNum() {\n int iDCount = 0;\n for (int i = 0; i < super.getTitle().length(); i++) {\n iDCount += i + (int) super.getTitle().charAt(i);\n }\n return iDCount;\n }", "public int getNumNudo() {\n return numNudo;\n }", "private int getNumero() {\n\t\treturn numero;\n\t}", "public int getNumero() {\n return dado1;\n }", "public String generaNumPatente() {\n String numeroPatente = \"\";\r\n try {\r\n int valorRetornado = patenteActual.getPatCodigo();\r\n StringBuffer numSecuencial = new StringBuffer(valorRetornado + \"\");\r\n int valRequerido = 6;\r\n int valRetorno = numSecuencial.length();\r\n int valNecesita = valRequerido - valRetorno;\r\n StringBuffer sb = new StringBuffer(valNecesita);\r\n for (int i = 0; i < valNecesita; i++) {\r\n sb.append(\"0\");\r\n }\r\n numeroPatente = \"AE-MPM-\" + sb.toString() + valorRetornado;\r\n } catch (Exception ex) {\r\n LOGGER.log(Level.SEVERE, null, ex);\r\n }\r\n return numeroPatente;\r\n }", "public int getNumGruppoPacchetti();", "public int getNuevoNumRegCaja() throws BaseDeDatosExcepcion, ConexionExcepcion {\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"getNuevoNumRegCaja() - start\");\n\t\t}\n\n\t\tincrementarNumReg();\n\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"getNuevoNumRegCaja() - end\");\n\t\t}\n\t\treturn numRegistro;\n\t}", "public int usaAtaque() {\n\t\treturn dano;\n\t}", "public int getNumeroInicial()\r\n/* 180: */ {\r\n/* 181:194 */ return this.numeroInicial;\r\n/* 182: */ }", "int obtenerNumeroMovimiento();", "private int getNum(EngClass ec) {\n\t\treturn engClassService.getStuNum(ec);\n\t}", "private int incrementarNumReg() throws BaseDeDatosExcepcion, ConexionExcepcion {\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"incrementarNumReg() - start\");\n\t\t}\n\n\t\tnumRegistro++;\n\t\tMediadorBD.actualizarRegistroCaja(numRegistro);\n\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"incrementarNumReg() - end\");\n\t\t}\n\t\treturn numRegistro;\n\t}", "@Override\n\tpublic long getNumeroContrato() {\n\t\t// TODO Auto-generated method stub\n\t\treturn super.getNumeroContrato();\n\t}", "@Override\r\n\tpublic double aumentarSueldo() {\n\t\treturn 0;\r\n\t}", "public int getAno() {\n\t\t\treturn ano;\n\t\t}", "public int countRess()\n {\n int nbRess = 0;\n pw.println(13);\n try\n {\n nbRess = Integer.parseInt(bis.readLine()) ;\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return nbRess ;\n }", "@Override\n\tpublic long unidadesComida() {\n\t\treturn 3;\n\t}", "public int getNumeroAnterior()\r\n/* 200: */ {\r\n/* 201:210 */ return this.numeroAnterior;\r\n/* 202: */ }", "public int getNumeroEstudio() { return this.numeroEstudio; }", "public void anadir(int num){\n\t\tcantidad+=num;\n\t}", "public int getAno(){\n return ano;\n }", "private Integer calculaDiasSemanaTrabajoProyecto() {\r\n Integer dias = 0;\r\n List<ConfiguracionProyecto> configuracionProyectos = configuracionProyectoService.buscar(new ConfiguracionProyecto(\r\n docenteProyectoDM.getDocenteProyectoDTOSeleccionado().getDocenteProyecto().getProyectoId(), null, null,\r\n ConfiguracionProyectoEnum.DIASSEMANA.getTipo(), null));\r\n for (ConfiguracionProyecto cf : configuracionProyectos) {\r\n dias = Integer.parseInt(cf.getValor());\r\n break;\r\n }\r\n return dias;\r\n }", "public int rekisteroi() {\r\n alId = seuraavaNro;\r\n seuraavaNro++;\r\n\r\n return seuraavaNro;\r\n }", "public int getAnnoScolasticoId() {\r\n return this.annoScolasticoId;\r\n }", "public int computeNbEtudiant() {\n\t\treturn 0;\n\t}", "int getSnInfoCount();", "int getSnInfoCount();", "int getSnInfoCount();", "public int getNumeroScie() {\n\t\treturn numeroScie;\n\t}", "public int getAciertos() {\r\n return aciertos;\r\n }", "public int getDefensa() {\r\n\t\treturn this.unidad.getDefensa() - REDUCCION_DEFENSA;\r\n\t}", "int getNumberOfInfantry();", "public int nun_entidade_bd() {\r\n return 12;\r\n }", "public int getNumeroAgnelli() {\n\t\treturn numeroAgelli;\n\t}", "public void setAno( int ano ){\n this.ano = ano;\n }", "public int obtenerSiguienteNumeroOrden() {\n try {\n controlOC = new ControlOrdenCompra();\n bitacora.info(\"Registro OrdenCompra Iniciado correctamente\");\n } catch (IOException ex) {\n bitacora.error(\"No se pudo iniciar el registro OrdenCompra por \" + ex.getMessage());\n }\n return controlOC.obtenerSiguienteNumeroOrden();\n }", "public int entradasAno(String tipo, int ano){\n\t\tint quant = 0;\n\t\tfor (Animal animal : animais) {\t\n\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\tcal.setTime(animal.getDataEntrada());\t\t\t\t\n\t\t\tif (animal.getMotivoEntrada().getDescricao().equals(tipo) && cal.get(Calendar.YEAR) == ano) {\n\t\t\t\tquant++;\t\t\t\n\t\t\t}\n\t\t}\t\t\n\n\t\treturn quant;\n\t}", "private int incrementarNumTrans() throws BaseDeDatosExcepcion, ConexionExcepcion {\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"incrementarNumTrans() - start\");\n\t\t}\n\n\t\tnumTransaccion++;\n\t\tMediadorBD.actualizarTransaccionCaja(numTransaccion);\n\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"incrementarNumTrans() - end\");\n\t\t}\n\t\treturn numTransaccion;\n\t}", "public void aumentarIntentos() {\r\n this.intentos += 1;\r\n }", "public int getNumero()\r\n/* 190: */ {\r\n/* 191:202 */ return this.numero;\r\n/* 192: */ }", "public int masVendido(int cantidad){\r\n \r\n return cantidad;\r\n }", "Integer getNLNDreu();", "@Override\n\tpublic int getNotaFiscal(Ingresso ingresso) throws DBException {\n\t\treturn 0;\n\t}", "private void atualizarNumeroBombas() {\n\t\tlblNumeroBombas.setText(Integer.toString(this.numeroBombas));\r\n\t}", "public void generarNumeroFacura(){\n try{\n FacturaDao facturaDao = new FacturaDaoImp();\n //Comprobamos si hay registros en la tabla Factura de la BD\n this.numeroFactura = facturaDao.numeroRegistrosFactura();\n \n //Si no hay registros hacemos el numero de factura igual a 1\n if(numeroFactura <= 0 || numeroFactura == null){\n numeroFactura = Long.valueOf(\"1\");\n this.factura.setNumeroFactura(this.numeroFactura.intValue());\n this.factura.setTotalVenta(new BigDecimal(0));\n }else{\n //Recuperamos el ultimo registro que existe en la tabla Factura\n Factura factura = facturaDao.getMaxNumeroFactura();\n //Le pasamos a la variable local el numero de factura incrementado en 1\n this.numeroFactura = Long.valueOf(factura.getNumeroFactura() + 1);\n this.factura.setNumeroFactura(this.numeroFactura.intValue());\n this.factura.setTotalVenta(new BigDecimal(0));\n }\n \n \n }catch(Exception e){\n e.printStackTrace();\n }\n \n }", "public void setSeccion(Integer seccion) {\r\n this.seccion = seccion;\r\n }", "public int arn() {\n return 383;\n }", "int getCantidad();", "public int rekisteroi() {\n this.tunnusNro = seuraavaNro;\n Tuote.seuraavaNro++;\n return tunnusNro;\n }", "public int getNumero() { return this.numero; }", "public int getCantidadCalles();", "@Transient\n\tpublic String getNumerosREcibos(){\n\t\tString numerosrecibos=\" \";\n\t\n\t\tfor (ReciboDocumentoFiscal recibo : documento.getRecibos()) {\n\t numerosrecibos= numerosrecibos+recibo.getRecibo().getControl()+\" / \";\t\t\n\t\t}\n\t\treturn numerosrecibos;\n\t}", "void verEnPantalla() {\r\n\t\tSystem.out.println( numEnPantalla );\r\n\t}", "public abstract int getCntPoa();", "public static int getNos() {\n\t\treturn numberOfStudents;\n\t}", "public static String n_estratto(Integer n_estratto){\r\n\r\n\t\tString stringafinale=null;\r\n\t\tif(n_estratto!=null){\r\n\t\t\tstringafinale=\"OK#\";\r\n\t\t\tstringafinale=stringafinale+n_estratto+\"\\n\";//+numero estratto\r\n\t\t}\r\n\t\telse{\r\n\t\t\tstringafinale=\"OK#sono finiti i numeri\\n\";\r\n\t\t}\r\n\t\treturn stringafinale;\r\n\t}", "public int obtenerSegundo() { return segundo; }", "public abstract int getCntCod();", "@Override\n public void cantidad_Ataque(){\n ataque=5+2*nivel+aumentoT;\n }", "public static int getNumeroId(){\r\n idConsecutivo++;\r\n return idConsecutivo;\r\n }", "public int obtenerDatos() {\n codigo =Integer.parseInt(modelo.getValueAt(fila,0).toString());\n return codigo;\n }", "private void asignaNombre() {\r\n\r\n\t\tswitch (this.getNumero()) {\r\n\r\n\t\tcase 1:\r\n\t\t\tthis.setNombre(\"As de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tthis.setNombre(\"Dos de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tthis.setNombre(\"Tres de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tthis.setNombre(\"Cuatro de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\tthis.setNombre(\"Cinco de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 6:\r\n\t\t\tthis.setNombre(\"Seis de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 7:\r\n\t\t\tthis.setNombre(\"Siete de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 10:\r\n\t\t\tthis.setNombre(\"Diez de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 11:\r\n\t\t\tthis.setNombre(\"Once de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\tthis.setNombre(\"Doce de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public int obtenerNumeroFacturas(){\n return historialFacturas.size();\n }", "public int cantidades(){\n\t\t\r\n\t\tint cantidad=0;\r\n\t\t DefaultTableModel modelo = vc.returnModelo();\r\n\t\t int numeroFilas= modelo.getRowCount();\r\n\t\t\tif(numeroFilas!=0){\r\n\t\t\t\r\n\t\t\t\tfor (int i = 0; i < numeroFilas; i++) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tcantidad = cantidad + Integer.valueOf(modelo.getValueAt(i, 2).toString());\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\treturn cantidad;\r\n\r\n\t\t\t}else\r\n\t\t\t\tcantidad=0;\r\n\r\n\t\treturn cantidad;\r\n\t\t\r\n\t}", "@Override\r\n\tpublic int buscarIndice(String nomeEmpresa) {\n\t\treturn 0;\r\n\t}", "String getCountInt();", "int getSumaAdunata();", "public static int getNbSemestres() {\n\t\treturn nbSemestres;\n\t}", "public void setNUMSECFO(int value) {\n this.numsecfo = value;\n }", "public void setNUMARGEO(int value) {\n this.numargeo = value;\n }", "public int generarNombreAleatori() {\n\t\tRandom random = new Random();\n\t\treturn random.nextInt((9) - 1) + 1;\n\t}", "public int getAnnoIscrizione() {\n\t\treturn annoIscrizione;\n\t}", "public static int size_infos_seq_num() {\n return (16 / 8);\n }", "public int getNumeroDeSeguidores(String idSessao) throws SessaoInexistenteException, SessaoInvalidaException {\r\n\t\tString login = gerenciaSessao.getLoginUser(idSessao);\r\n\t\treturn gerenciaUsuario.getNumeroDeSeguidores(login);\r\n\t}", "public int getEgresosPorCompras(){\n return this.egresosPorCompras;\n }", "int getCazuriCount();", "public Calificacion(String asignatura, int nota) {\n\t\tthis.asignatura = asignatura;\n\t\tthis.nota = nota;\n\t}" ]
[ "0.6409024", "0.6285901", "0.6169832", "0.6125384", "0.6114764", "0.6101811", "0.60768175", "0.6052186", "0.6052074", "0.6048357", "0.60427773", "0.6031816", "0.60225517", "0.6013427", "0.60048246", "0.5996718", "0.5994903", "0.5985603", "0.5963765", "0.5955817", "0.5871507", "0.5852079", "0.58477324", "0.5838324", "0.58318704", "0.5824165", "0.58183026", "0.5815855", "0.58063453", "0.58043224", "0.58028907", "0.57897127", "0.5785548", "0.5785226", "0.57833904", "0.57823116", "0.57551104", "0.5733793", "0.57288504", "0.57237256", "0.57190293", "0.57142663", "0.57105637", "0.56957966", "0.5694686", "0.56941676", "0.5693315", "0.5670147", "0.56680524", "0.56680524", "0.56680524", "0.5663405", "0.56546956", "0.564596", "0.5643372", "0.5634647", "0.56317115", "0.5625957", "0.56186277", "0.56137705", "0.56127936", "0.5608055", "0.5606232", "0.56027347", "0.56016576", "0.5601478", "0.5600885", "0.5600266", "0.55985093", "0.55938685", "0.55888253", "0.558687", "0.5582875", "0.5579216", "0.5565683", "0.55622953", "0.5559991", "0.55590516", "0.5554681", "0.555015", "0.5542148", "0.55391103", "0.55379754", "0.55375105", "0.5532057", "0.55282253", "0.5524634", "0.5524356", "0.55174965", "0.5509053", "0.55056083", "0.54991096", "0.5495741", "0.5493682", "0.54858065", "0.5481917", "0.54758054", "0.5467669", "0.54602057", "0.54589045" ]
0.6856419
0
/AutomezziDao SearchAutomezzi= new AutomezziDao(); String id_automezzo = SearchAutomezzi.Get_id_AutomezzoByTarga(id_automezzo); ClienteDao SearchCliente = new ClienteDao(); String id_cliente = SearchCliente.get_id_cliente_by_nome(att_cliente); AutistaDao SearchAutista = new AutistaDao(); String id_autista = SearchAutista.get_id_autista_by_username(att_autista);
public String GenerateApprovaAssegnamentoLink(String id_cliente, String id_autista, String id_automezzo,String data){ if(id_autista!=null && id_cliente!=null &&id_automezzo!=null){ return "<a class='approve-link' href='approva-assegnamento?id_automezzo="+id_automezzo+"&id_cliente="+id_cliente+"&id_autista="+id_autista+"&data="+data+"'>Approva</a>"; } return "Non disponibile"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Dao\npublic interface sekolahDAO {\n\n @Query(\"SELECT * FROM Sekolah\")\n List<Sekolah>getAll();\n\n// @Query(\"SELECT * FROM Sekolah WHERE NPSN LIKE :NPSN AND nama_sekolah LIKE :nama_dusun AND bentuk_pendidikan LIKE :bentuk_pendidikan AND status_lembaga LIKE :status_lembaga AND sk_izin_operasional LIKE :sk_izin_operasional AND tanggal_sk_izin_operasional LIKE :tanggal_sk_izin_operasional\")\n// Sekolah findByName(Integer NPSN, String nama_sekolah, String bentuk_pendidikan, String status_lembaga, String sk_izin_operasional, Date tanggal_sk_izin_operasional);\n\n @Query(\"SELECT COUNT (NPSN) FROM Sekolah\")\n int getAllCount();\n\n @Query(\"UPDATE Sekolah SET alamat = :alamat, nama_dusun = :nama_dusun, provinsi = :provinsi, kecamatan = :kecamatan, kabupaten = :kabupaten, nomor_telpon = :nomor_telpon, email = :email\")\n void update(String alamat,String nama_dusun, String provinsi, String kecamatan, String kabupaten, Integer nomor_telpon, String email);\n\n @Insert\n void insertAll(Sekolah sekolah);\n\n @Delete\n public void deleteSekolah(Sekolah NPSN);\n\n @Update\n public void update(Sekolah sekolah);\n\n @Delete\n public void deleteAll(Sekolah user1, Sekolah user2);\n\n\n}", "protected abstract T findDao(UtenteUtenti user, CommessaUtenti commessa);", "public interface ProcesoMAEClasificacionClientesDAO extends DAO {\n\n\t/**\n\t * Proceso que realiza la actualizacin de clasificacion de Clientes\n\t * \n\t * @param criteria\n\t */\n\tpublic void executeProcesarClasificacion(Map criteria);\n\n\t/**\n\t * Proceso que realiza la actualizacin de clasificacion LOVE de Clientes\n\t * \n\t * @param criteria\n\t */\n\tpublic void executeProcesarClasificacionLove(Map criteria);\n\n\t/**\n\t * Proceso que realiza la actualizacin de datos de Clientes\n\t * \n\t * @param criteria\n\t */\n\tpublic void executeActualizarDatosClientes(Map criteria);\n\n\t/**Proceso q se encarga de ejecutar las validaciones de MAE\n\t * @param criteria\n\t */\n\tpublic void executeValidacionClientes(Map criteria);\n\n\t/**\n\t * Proceso que realiza la Inactivación de conultoras registradas \n\t * despues de dos capañasde creadas en el maestro\n\t * \n\t * @param criteria\n\t */\n\tpublic void executeInactivarConsultora2campanas(Map criteria);\n}", "public interface XiaoShouContactDao extends EntityObjectDao {\n \n List<XiaoShouContact> findOverviewXiaoShouContact(String keyWords, String userUuid, String startTime, String endTime, String sortBy, String sortWay, String contactStatus, int startPosition, int pageSize);\n\n int findOverviewXiaoShouSize(String keyWords, String userUuid, String startTime, String endTime, String sortBy, String sortWay, String contactStatus);\n\n //查找重复的编号\n boolean findXiaoShouOrderDuplicate(String temp);\n\n //未付账单用户\n List<Object[]> obtainAllCompanyWithOnCreateBillOnLoginUser();\n\n //特定用户所有未付款history\n List<XiaoShouContactRentingFeeHistory> findSpecUserOnCreateBill(String selectCarrierUuid);\n\n /*******************************************扣款历史*******************************************/\n List<XiaoShouContactRentingFeeHistory> findXiaoShouHistory(List<String> historyUuids);\n\n List<XiaoShouContactRentingFeeHistory> obtainXiaoShouHistoryByVehicleNumber(String contactUuid, String vehicleNumber);\n}", "public interface ReadDao {\n\n /**\n * 根据手机号码获取用户\n *\n * @param phone\n * @return\n */\n @Select(\"select * from t_user where phone=#{phone}\")\n UserModel getUserByPhone(@Param(\"phone\") String phone);\n\n /**\n * 根据用户名密码获取用户\n *\n * @param phone\n * @return\n */\n @Select(\"select * from t_user where phone=#{phone} and passwd=substr(md5(#{pwd}),9,8)\")\n UserModel getUserByPassword(@Param(\"phone\") String phone, @Param(\"pwd\") String pwd);\n\n /**\n * 根据商品名查询商品\n *\n * @return\n */\n @Select(\"select id goodsid,name,price from t_goods where name like #{name}\")\n List<Commodity> queryCommodity(@Param(\"name\") String name);\n\n /**\n * 根据关键字查询\n *\n * @param keyword\n * @param size\n * @return\n */\n @Select(\"select * from t_goods where name like #{keyword} limit 0,#{size}\")\n public List<Commodity> getCommodityByKeyword(@Param(\"keyword\") String keyword, @Param(\"size\") int size);\n\n\n /**\n * 根据ID获取商品\n *\n * @param id\n * @return\n */\n @Select(\"select * from t_goods where id=#{id}\")\n public Commodity getCommodityById(@Param(\"id\") long id);\n\n /**\n * 查询所有商品类别\n * @return\n */\n @Select(\"select id,category1,category2 from t_goods_category\")\n public List<CommodityCategory> queryCategorys();\n\n /**\n * 查询所有商品\n * @return\n */\n @Select(\"select * from t_goods\")\n public List<Commodity> queryAllCommodityes();\n\n\n /**\n * 根据父级名称获取子级名称\n *\n * @param name\n * @return\n */\n @Select(\"select * from t_goods_category where category1=#{name}\")\n public List<CommodityCategory> getCommodityCategoryByParentName(@Param(\"name\") String name);\n\n /**\n * 获取一级分类名称\n *\n * @return\n */\n @Select(\"select DISTINCT(category1) as category1 from t_goods_category\")\n public List<CommodityCategory> getParentCommodityCateory();\n}", "public interface ServicoDao extends EntidadeDao<Servico> {\n Long contarTotalServicos();\n Long contarServicosStatus(StatusServico statusServico);\n @Override\n List<Servico> listar();\n\n List<Servico> listarServicos();\n public List<Servico> listarMeusServicos(Long id);\n public List<Servico> listarServicosEmAberto();\n Long servicoPorSetor(Long id);\n Servico BuscarPorId(Long id);\n void salvarLogServico(LogServico logServico);\n\n public void verificarConlusaoEAtualizar(Long id);\n\n Long meusServicos();\n Long contarPorSetor(Long id);\n List<Object[]> contarDeAteDataPorSetorDESC(LocalDate dtDe, LocalDate dtAte);\n List<Object[]> contarAPartirDePorSetorDESC(LocalDate dtDe);\n List<Object[]> contarAteDataPorSetorDESC(LocalDate dtAte);\n List<Object[]> contarDeAteDataDESC(LocalDate dtDe, LocalDate dtAte);\n List<Servico> filtrarDeAteDataPorSetorDESC(Long id, LocalDate dtDe, LocalDate dtAte);\n List<Servico> filtrarAPartirDePorSetorDESC(Long id, LocalDate dtDe);\n List<Servico> filtrarAteDataPorSetorDESC(Long id, LocalDate dtAte);\n List<Servico> filtrarDeAteDataDESC(LocalDate dtDe, LocalDate dtAte);\n\n List<Servico> filtrarMaisRecentesPorSetor(Long id);\n}", "public Maquina cargarDetalle(int idMaquina)\r\n/* 49: */ {\r\n/* 50:103 */ return this.maquinaDao.cargarDetalle(idMaquina);\r\n/* 51: */ }", "public interface FakturaTekstVDAO extends DAO<FakturaTekstV> {\r\n\t/**\r\n\t * Finner tekster tilhørende faktura\r\n\t * \r\n\t * @param fakturaId\r\n\t * @return tekster\r\n\t */\r\n\tList<FakturaTekstV> findByFakturaId(Integer fakturaId);\r\n}", "public interface UsuarioDao extends GenericDao<Usuario, Integer> {\n\n List<Usuario> getAllUsuario();\n List<Usuario> getUsuarioByEstado(Object[] parameters);\n\n}", "public interface IFakturyDao {\n public Firma getFirma(long id);\n public void saveFirma(Firma firma);\n public Stawka_vat getStawka_vat(long id);\n public void saveStawka_vat(Stawka_vat stawka_vat);\n public Faktura getFaktura(long id);\n public void saveFaktura(Faktura faktura);\n public Pozycja getPozycja(long id);\n public void savePozycja(Pozycja pozycja);\n public Wplata getWplata(long id);\n public void saveWplata(Wplata wplata);\n}", "public interface ClientDao extends BaseDao<Client> {\n /**\n * 根据一个条件模糊搜索数据\n * @param param 值\n * @param condition 条件\n * @return\n */\n List<Client> fuzzySearch(String param, String condition);\n}", "public interface TEndProjectCommentDAO extends BaseDao<TEndProjectComment> {\n //获取一个教师可以评审的结题\n List<TEndProjectComment> findMyReviewEndPros(String teaCode, PageBean pageBean);\n\n int findMyReviewEndProsCount(String teaCode);\n\n List findByEndprojectcommentAdvise(Object endprojectcommentAdvise);\n\n List findByEndprojectcommentContent(Object endprojectcommentContent);\n\n List findByIsdeleted(Object isdeleted);\n}", "public interface TipoDao {\r\n\r\n /**\r\n * Inserta un nuevo registro en la tabla Tipos.\r\n */\r\n public TipoPk insert(Tipo dto) throws TipoDaoException;\r\n\r\n /**\r\n * Actualiza un unico registro en la tabla Tipos.\r\n */\r\n public void update(TipoPk pk, Tipo dto) throws TipoDaoException;\r\n\r\n /**\r\n * Elimina un unico registro en la tabla Tipos.\r\n */\r\n public void delete(TipoPk pk) throws TipoDaoException;\r\n\r\n /**\r\n * Retorna un unico registro en la tabla Tipos que conicida con la\r\n * primary-key especificada.\r\n */\r\n public Tipo findByPrimaryKey(TipoPk pk) throws TipoDaoException;\r\n\r\n /**\r\n * Retorna un registro de la tabla Tipos que coincida con el criterio\r\n * 'id_tipo = :idTipo'.\r\n */\r\n public Tipo findByPrimaryKey(Integer idTipo) throws TipoDaoException;\r\n\r\n /**\r\n * Retorna todos los registros de la tabla Tipos que coincidan con el\r\n * criterio 'nombre_tipo LIKE %:nombre%'.\r\n */\r\n public Tipo[] findByName(String nombre) throws TipoDaoException;\r\n\r\n /**\r\n * Retorna un registro de la tabla Tipos que coincida con el\r\n * criterio 'nombre_tipo = :nombre'.\r\n */\r\n public Tipo findByFullName(String nombre) throws TipoDaoException;\r\n\r\n /**\r\n * Retorna todas las filas de la tabla Tipos.\r\n */\r\n public Tipo[] findAll() throws TipoDaoException;\r\n\r\n /**\r\n * Retorna todos los registros de la tabla Tipos que coincidan con la\r\n * sentencia SQL especificada arbitrariamente\r\n */\r\n public Tipo[] findByDynamicSelect(String sql, Object[] sqlParams)\r\n throws TipoDaoException;\r\n\r\n /**\r\n * Retorna todos los registros de la tabla Tipos que coincidan con el WHERE\r\n * SQL especificado arbitrariamente\r\n */\r\n public Tipo[] findByDynamicWhere(String sql, Object[] sqlParams)\r\n throws TipoDaoException;\r\n\r\n /**\r\n * Sets the value of maxRows\r\n */\r\n public void setMaxRows(int maxRows);\r\n\r\n /**\r\n * Gets the value of maxRows\r\n */\r\n public int getMaxRows();\r\n\r\n /**\r\n * Retorna la conexión actual del usuario\r\n * \r\n * @return Connection\r\n */\r\n public Connection getUserConn();\r\n\r\n /**\r\n * Setea la conexión a usar con la BD\r\n * \r\n * @param userConn\r\n */\r\n public void setUserConn(Connection userConn);\r\n\r\n}", "public Cliente findByPrimaryKey(int idCliente) throws ClienteDaoException;", "public interface SiacTAttoLeggeDao extends Dao<SiacTAttoLegge,Integer> {\n\t\n\t\n\t/**\n\t * Creates the.\n\t *\n\t * @param attoLegge the atto legge\n\t * @return the siac t atto legge\n\t */\n\tSiacTAttoLegge create(SiacTAttoLegge attoLegge);\n\n\t/* (non-Javadoc)\n\t * @see it.csi.siac.siaccommonser.integration.dao.base.Dao#update(java.lang.Object)\n\t */\n\tSiacTAttoLegge update(SiacTAttoLegge attoDiLeggeDB);\n\t\n\t/* (non-Javadoc)\n\t * @see it.csi.siac.siaccommonser.integration.dao.base.Dao#findById(java.lang.Object)\n\t */\n\tSiacTAttoLegge findById (Integer uid);\n\t\n}", "public interface IndentDao extends BaseDao<Indent,Integer>{\n\n /**\n * 通过订单关联查询到买家信息\n */\n void queryBuyerByIndentNO();\n}", "public interface Idao {\r\n\r\n\tpublic void seconnecter(String login, String mdp);\r\n\r\n\tpublic void creerClient(Client c);\r\n\tpublic void lireClient(Client c);\r\n\tpublic void modifierClient(Client c);\r\n\tpublic void supprimerClient(Client c);\r\n\t\r\n\tpublic void creerConseiller(Conseiller c);\r\n\tpublic Conseiller lireConseiller(int id);\r\n\tpublic void modifierConseiller(int id, String nom, String prenom, String login, String mdp, String email);\r\n\tpublic void supprimerConseiller(Conseiller c);\r\n\tpublic void attribuerAgence(Agence a, Employe e);\r\n\tpublic void ajouterEmploye(Employe e, Agence a);\r\n\tpublic void attribuerGerant(Gerant g, Conseiller c);\r\n\tpublic void ajouterConseiller(Conseiller c, Gerant g);\r\n\t\r\n\tpublic void creerCompte(Compte c);\r\n\tpublic CompteCourant lireCompteCourant(int idCompte);\r\n\tpublic CompteCourant lireCompteCourant(long numCompte);\r\n\tpublic CompteEpargne lireCompteEpargne(int idCompte);\r\n\tpublic CompteEpargne lireCompteEpargne(long numCompte);\r\n\tpublic void modifierCompteCourant(long numCompte, double solde, int decouvert);\r\n\tpublic void modifierCompteEpargne(long numCompte, double solde, float tauxEpargne);\r\n\tpublic void supprimerCompte(long numCompte);\r\n\tpublic void faireVirement(Compte c);\r\n\tpublic void simuler();\r\n\tpublic void placerArgent(float montant, Compte c);\r\n\tpublic void attribuerClient(Client cl, Compte c);\r\n\tpublic void ajouterCompte(Compte c, Client cl);\r\n\tpublic void attibuerConseiller(Conseiller c, Client cl);\r\n\tpublic void ajouterClient(Client cl, Conseiller c);\r\n\r\n\tpublic void auditer();\r\n\r\n}", "public interface ICampaniaDAO {\n\t/**\n\t * Crear la campania en el repositorio\n\t * @param campania\n\t */\n\tvoid crearCampania(GestionPrecioDTO campania);\n\t\n\t\n\t/**\n\t * Actualizar la campania en el repositorio\n\t * @param campania\n\t */\n\tvoid actualizarCampania(GestionPrecioDTO campania, UserDto user);\n\t\n\t/** Metodo actualizarCampania, utilizado para actualizar una campania\n\t * @author srodriguez\n\t * 27/2/2015\n\t * @param campania\n\t * @param user\n\t * @return void\n\t */\n\tvoid actualizarCampania(GestionPrecioDTO campania, String user);\n\t\n\t/**\n\t * Buscar la campania por el c&oacute;digo de referencia\n\t * de Loyalty\n\t * @param codigoCampaniaReferencia C&oacute;digo de Loyalty\n\t * @return\n\t */\n\tGestionPrecioDTO findCampania(String codigoCampaniaReferencia);\n /**\n * Verifica si una campania existe dado su clave primaria como\n * par&aacute;metro de b&uacute;squeda\n * @param id\n * @returnS\n */\n Boolean findExistsCampania(GestionPrecioID id) ;\n /**\n * Obtener todas las campanias existentes en el repositorio\n * @return\n */\n Collection<GestionPrecioDTO> findCampaniasPendientes() ;\n /**\n * Buscar un listado de campanias dado una plantilla de b&uacute;squeda y el\n * estado de cobro\n * @param gestionPrecio Plantilla de b&uacute;squeda\n * @param estadoCobro Estado de cobro. Ej: PENDIENTE, CONFIGURADA, COBRADA, EN CURSO, etc.\n * @return\n */\n Collection<GestionPrecioDTO> findCampaniasFiltros (GestionPrecioDTO gestionPrecio,String estadoCobro);\n \n /**\n * @author cbarahona\n * @param campania\n */\n void actualizarCampaniaLoyalty (GestionPrecioDTO campania);\n \n SearchResultDTO<GestionPrecioDTO> findCampaniasPendientesLazy (Integer firstResult, Integer pageSize, Boolean countAgain);\n \n SearchResultDTO<GestionPrecioDTO> findCampaniasFiltrosLazy (GestionPrecioDTO gestionPrecio, String estadoCobro,Integer firstResult, Integer pageSize, Boolean countAgain);\n \n GestionPrecioDTO findCampania(final String codigoReferencia, final Integer codigoCompania) throws SICException;\n \n void actualizarCampania(GestionPrecioDTO campania) throws SICException;\n \n /**\n * Metodo que valida si una campaña tiene participantes\n * @param codigoReferencia\n * @return\n * @throws SICException\n */\n Boolean tieneParticipantesCampania(String codigoReferencia) throws SICException;\n}", "public interface ICommandeDao {\n public List<Commande> findAllCommandes();\n\n public Commande findCommandeById(int idCommande);\n\n public List<Commande> findCommandeByIdProduit(Integer idProduit);\n \n public List<Commande> findCommandeByIdUtilisateur(Integer idUtilisateur);\n\n public Commande createCommande(Commande commande);\n\n public Commande updateCommande(Commande commande);\n\n public boolean deleteCommande(Commande commande);\n}", "public interface UserDao {\n public List search(String log ,String pas);\n}", "public void findbyid() throws Exception {\n try {\n Con_contadorDAO con_contadorDAO = getCon_contadorDAO();\n List<Con_contadorT> listTemp = con_contadorDAO.getByPK( con_contadorT);\n\n con_contadorT= listTemp.size()>0?listTemp.get(0):new Con_contadorT();\n \n } catch (Exception e) {\n e.printStackTrace();\n setMsg(\"Falha ao realizar consulta!\");\t\n } finally {\n\tclose();\n }\n }", "public interface EscalaDAO {\r\n\r\n /**\r\n * Select numero manifiesto aeat.\r\n *\r\n * @param srvcId\r\n * the srvc id\r\n * @return the string\r\n */\r\n String selectNumeroManifiestoAeat(final Long srvcId);\r\n\r\n /**\r\n * Modificacion del estado de una escala a partir del estado de sus atraques.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateRecalcularEstado(final Long srvcId);\r\n\r\n /**\r\n * Modificacion del codigo de exencion de una escala a partir del codigo de exencion de sus atraques.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateExencion(final Long srvcId);\r\n\r\n /**\r\n * Modificacion del tipo de estancia de una escala a partir del tipo de estancia de sus atraques.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateEstancia(final Long srvcId);\r\n\r\n /**\r\n * Modificacion del tipo de navegacion de entrada de una escala a partir del puerto anterior.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateNavegacionEntrada(final Long srvcId);\r\n\r\n /**\r\n * Modificacion del tipo de navegacion de salida de una escala a partir del puerto siguiente.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateNavegacionSalida(final Long srvcId);\r\n\r\n /**\r\n * Modificacion del tipo de IVA de una escala a partir de datos de la escala.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateTipoIva(final Long srvcId);\r\n\r\n /**\r\n * Modificacion de las fechas de inicio/fin de una escala a partir las fechas de inicio/fin de sus\r\n * atraques.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateRecalcularFechas(final Long srvcId);\r\n}", "public interface InvMainDao extends GenericDao<InvMain, String> {\n\tpublic JQueryPager getInvMainCriteria(final JQueryPager paginatedList,List<PropertyFilter> filters);\n\tpublic boolean checkAllInitInvMainConfirm(String orgCode,String copyCode,String kjYear,String storeId);\n\tpublic InvMain getInvMainByNo(String no, String orgCode, String copyCode);\n\tpublic boolean checkAllDocsInStore(String storeId,String orgCode,String copyCode,String kjYear);\n\tpublic void deleteInvDictAccount(String storeId, String orgCode,String copyCode,String kjYear);\n\n}", "UserInfoDao getUserInfoDao();", "public static void main(String[] args) {\n\t\tContaDAO contaDAO = new ContaDAO();\n\n/*\n\t\tCartao cartao = new Cartao();\n\t\tcartao.setNumeroCartao(2);\n\t\tcartao.setNomeCartao(\"Saldanha\");\n\t\tcartao.setCpfCartao(\"12312312312\");\n\t\tcartao.setViaCartao(1);\n\t\tcartaoDAO.salvar(cartao);\n\t\tSystem.out.println(cartao.getIdCartao());\n\t\t\n\t\tConta conta = new Conta();\n\t\tconta.setConta(1234567898);\n\t\tconta.setCpf(\"12312312312\");\n\t\tconta.setNome(\"Saldanha\");\n\t\tconta.setSaldo(150.50f);\n\t\tcontaDAO.salvar(conta);\n\t\tSystem.out.println(conta.getSaldo());\n*/\t\tConta conta = new Conta();\n\t\tconta.setId(3);\n\t\tConta conta2 = contaDAO.obterPorId(conta.getId());\n\t\tSystem.out.println(\"Nome: \"+conta2.getNome() + \"\\nSaldo: R$\"+conta2.getSaldo());\n\t\t\n\t\t/*\t\tcartaoDAO.remover(cartao);\n\t\t\n\t\t\t\n\t\tList<Cliente> clientes = clienteDao.listarTodos();\n\t\t\t\t\n\t\tfor (Cliente cliente : clientes) {\n\t\t\tSystem.out.println(cliente.getNome());\n\t\t} */\n\t\n/*\t\tCliente cliente = clienteDao.obterPorId(2);\n\t\tcliente.setNome(\"Beltrano da Silva\");\n\t\t\n\t\tclienteDao.salvar(cliente);\n\t\tSystem.out.println(cliente.getNome());\n\t\t \n\t\t\n\t\tCartao cartao = cartaoDAO.obterPorId(2);\n\t\t\n\t\tcartaoDAO.remover(cartao);\n\t\t\n\t\tSystem.out.println(cartao.getNomeCartao());\n\t*/\n\t\n\t}", "public interface GuruDao {\n public int findTotal();\n public int insertGuru(@Param(\"guru\") Guru guru);\n public int updateGuru(@Param(\"guru\") Guru guru);\n public Guru findGuru(@Param(\"context\") String context);\n public List<Guru> findByPage(@Param(\"start\") int start,@Param(\"rows\")int rows);\n}", "public static void main(String[]args) {PostagemDAO pDAO = new PostagemDAO();\n////\t\tPostagem postagem = new Postagem();\n////\t\tString s = \"1999-3-9\";\n////\t\tDate data = Date.valueOf(s);\n////\t\tpostagem.setDescPostagem(\"john johnes\");\n////\t\tpostagem.setDataPostagem(data);\n////\t\tpDAO.inserirPostagem(postagem);\n//\t\t\n////\t\tImagensDAO iDAO = new ImagensDAO();\n////\t\tImagens imagens = new Imagens();\n////\t\t\n////\t\timagens.setTipoImagem((short)2);\n////\t\timagens.setArquivoImagem(\"busato\");\n////\t\tiDAO.inserirImagem(imagens);\n//\t\t\n//\t\tUsuarioDAO uDAO = new UsuarioDAO();\n//\t\tUsuario usuario = new Usuario();\n//\t\t\n////\t\tusuario.setEmail(\"sadasda\");\n////\t\tusuario.setNickname(\"sdasdasae\");\n////\t\tusuario.setSenha(\"12345\");\n////\t\tusuario.setSteamid(31231231);\n////\t\tusuario.setFotoPerfil(\"FOTO\");\n////\t\tuDAO.cadastrar(usuario);\n//\t\t\n//\t\t\n//\t\tComentariosDAO cDAO = new ComentariosDAO();\n//\t\tComentarios comentarios = new Comentarios();\n//\t\t\n//\t\tcomentarios.setCorpoComentario(\"comentario comentado\");\n//\t\tcomentarios.setDataComentario(Date.valueOf(\"2018-03-09\"));\n//\t\tcDAO.inserirComentarios(comentarios);\n//\t\t\n//\t\tSystem.out.println(\"sera que comitou\");\n//\t\t\n\t\t\n\t\tPostagem postagem = new Postagem();\n\t\tpostagem.setDescPostagem(\"Uma formiguinha subindo pela parede\");\n\t\tpostagem.setTituloPostagem(\"Formiguinha\");\n\t\t\n\t\tPostagemDAO poDAO = new PostagemDAO();\n\t\tpostagem = poDAO.inserirPostagem(postagem);\n\t\t\n\t\tSystem.out.println(postagem.getIdPostagem());\n\t\t\n\t}", "public interface DAO<PK extends Serializable, T> {\n\t/**\n\t * Enumerate para saber de que forma ordenar los resultados ASC o DESC\n\t * \n\t * @author Victor Huerta\n\t * \n\t */\n\tpublic enum Ord {\n\t\tASCENDING(\"ASC\"), DESCENDING(\"DESC\"), UNSORTED(\"\");\n\t\tprivate final String ord;\n\n\t\tprivate Ord(String ord) {\n\t\t\tthis.ord = ord;\n\t\t}\n\n\t\tpublic String getOrd() {\n\t\t\treturn ord;\n\t\t}\n\t}\n\n\t/**\n\t * Metodo para recuperar la session actual\n\t * \n\t * @return la session actual\n\t */\n\tSession getCurrentSession();\n\n\t/**\n\t * Metodo para guardar un registro\n\t * \n\t * @param entity\n\t * Entidad a guardar\n\t * @return true si se guardo correctamente false en otro caso\n\t */\n\tBoolean save(T entity);\n\n\t/**\n\t * Metodo para eliminar un registro\n\t * \n\t * @param entity\n\t * Registro a borrar\n\t * @return true si se elimino correctamente false en otro caso\n\t */\n\tBoolean delete(T entity);\n\n\t/**\n\t * Metodo para recuperar todos los objetos de la tabla\n\t * \n\t * @return lista con todos los objetos de la tabla\n\t */\n\tList<T> getAll();\n\n\t/**\n\t * Metodo para recuberar un objeto por el id, este metodo esta destinado a\n\t * los objetos que ya tienen definido el tipo T\n\t * \n\t * @param id\n\t * El id el objeto que se busca\n\t * @return El objeto encontrado\n\t */\n\tT getById(PK id);\n\n\t/**\n\t * Con este metodo se pueden buscar registros con propiedades similares a\n\t * las del objeto que se pasa, no sirve para buscaquedas por id.\n\t * \n\t * @param entity\n\t * Entidad con propiedades que se van a buscar\n\t * @return Lista de entidades encontradas\n\t */\n\tList<T> searchByExample(T entity);\n\n\t/**\n\t * Metodo para buscar registros con propiedades similares a la del objeto\n\t * que recibe, ordenarlos por el campo que manda con el limite y paginas\n\t * dadas\n\t * \n\t * @param entity\n\t * Ejemplo para la busqueda\n\t * @param sortBy\n\t * Campor por el que se desea ordenar\n\t * @param limit\n\t * Numero maximo de registros\n\t * @param page\n\t * Numero de pagina\n\t * @return\n\t */\n\tList<T> searchByExamplePages(T entity, String sortBy, Ord ord,\n\t\t\tInteger limit, Integer page);\n\n\t/**\n\t *\n\t * Metodo para buscar registros con propiedades similares a la del objeto\n\t * que recibe, ordenarlos por el campo que manda con el limite y paginas\n\t * dadas.\n\t * \n\t * @param entity\n\t * Ejemplo para la busqueda\n\t * @param sortBy\n\t * Campor por el que se desea ordenar\n\t * @param limit\n\t * Numero maximo de registros\n\t * @param page\n\t * Numero de pagina\n\t * @param associations\n\t * \t\t\t Mapa propiedad objeto\n\t * \n\t * @return List<T>\n\t */\n\n\tList<T> searchByExamplePages(T entity, String sortBy, Ord ord,\n\t\t\tInteger limit, Integer page, Map<String, Object> associations);\n\n\t/**\n\t * Cuenta todos los registros de la tabla\n\t * \n\t * @return Numero de registros en la tabla\n\t */\n\tInteger countAll();\n\n\t/**\n\t * Cuenta todos los resultados que coinciden con un ejemplo\n\t * \n\t * @param entity\n\t * Entidad de ejemplo para la busqueda\n\t * @return Numero de registros encontrados\n\t */\n\tInteger countByExample(T entity);\n\n\t/**\n\t * Numero de paginas que se obtendran buscando con el ejemplo dado y usando\n\t * un limite\n\t * \n\t * @param entity\n\t * Entidad de ejemplo para la busqueda\n\t * @param limit\n\t * Limite de registros por pagina\n\t * @return\n\t */\n\tInteger countByExamplePages(T entity, Integer limit);\n\n\t/**\n\t * Retorna la clase del tipo generico, la clase de la entidad. Destinada a\n\t * solo funcionar cuando se implemente esta interfaz definiendo el tipo T\n\t * \n\t * @return Clase del tipo generico\n\t */\n\tClass<?> getEntityClass();\n}", "public interface IAdresseDao {\n public List<Adresse> findAllAdresses();\n\n public Adresse findAdresseById(int idAdresse);\n\n public List<Adresse> findAdresseByRue(String rue);\n \n public List<Adresse> findAdresseByIdUtilisateur(int idUtilisateur);\n \n public Adresse findAdresseFacturationByIdUtilisateur(int idUtilisateur);\n\n public Adresse createAdresse(Adresse adresse);\n\n public Adresse updateAdresse(Adresse adresse);\n\n public boolean deleteAdresse(Adresse adresse);\n}", "@Override\n\n public void run(String... strings) throws Exception {\n \n Usuario u= new Usuario(1521L, \"Viridiana Hernandez\",\"[email protected]\");\n \n //la guardamos\n \n // repoUsu.save(u);\n \n //GENERAMOS LA DIRECCION QUE VAMOS A GUARDAR\n \n Direccion d = new Direccion(new Usuario(1521L),\"Calle 13\", 55120, \"Ecatepec\");\n //repoDir.save(d);\n \n \n //AQUI HAREMOS EL JOIN\n \n \n Direccion d2= repoDir.findOne(2L);\n System.out.println(\"Correo:\"+d2.getU().getEmail()+ \" municipio \"+d2.getMunicipio());\n \n \n \n \n \n \n //repoMensa.save (new Mensajito(\"Primero\",\"Mi primera vez con hibernate\"))\n /*\n Mensajito m= repoMensa.findOne(1);\n System.out.println(m.getTitulo());\n \n \n \n // repoMensa.save(new Mensajito(\"17 de octubre\",\"No temblo\"));\n System.out.println(\"vamos a uscar todos\");\n \n for (Mensajito mensa:repoMensa.findAll()){\n System.out.println(mensa);\n \n }\n \n //para buscar por id FINDONE\n System.out.println(\"vamos a buscar por id\");\n System.out.println(repoMensa.findOne(1));\n \n \n // Actualizar \n repoMensa.save(new Mensajito(1,\"nuevo titulo\",\"nuevo cuerpo\"));\n System.out.println(repoMensa.findOne(1));\n*/\n }", "public interface FakturaDao extends GenericDao<Faktura, Long> {\n\n}", "public void consultarEditorialesDAO() {\n Collection<Editorial> editoriales = em.createQuery(\"SELECT e\"\n + \" FROM Editorial e\").getResultList();\n\n //Iteramos entre autores\n for (Editorial e : editoriales) {\n\n System.out.println(e.getNombre());\n\n }\n\n }", "public interface AdDao extends GenericDao<Ad, Long> {\n\n\t/**\n\t * Retourne toutes les publicité éligible\n\t * @param date\n\t * @return\n\t * @throws Exception\n\t */\n\tList<Ad> getAll(Date date)throws Exception;\n\n \n}", "@Dao\npublic interface FParamDiskonItemVendorDao {\n /**\n * @param fParamDiskonItemVendor\n * Harus Menggunakan\n * .allowMainThreadQueries() pada Configurasi database utama agar tidak perlu menggunakan AsynT\n */\n @Insert\n void insert(FParamDiskonItemVendor fParamDiskonItemVendor);\n @Update\n void update(FParamDiskonItemVendor fParamDiskonItemVendor);\n @Delete\n void delete(FParamDiskonItemVendor fParamDiskonItemVendor);\n\n\n @Query(\"DELETE FROM fParamDiskonItemVendor\")\n void deleteAllFParamDiskonItemVendor();\n\n @Query(\"SELECT * FROM fParamDiskonItemVendor \")\n LiveData<List<FParamDiskonItemVendor>> getAllFParamDiskonItemVendorLive();\n\n @Query(\"SELECT * FROM fParamDiskonItemVendor \")\n List<FParamDiskonItemVendor> getAllFParamDiskonItemVendor();\n\n\n @Query(\"SELECT * FROM fParamDiskonItemVendor WHERE id = :id \")\n List<FParamDiskonItemVendor> getAllById(int id);\n\n @Query(\"SELECT * FROM fParamDiskonItemVendor WHERE fdivisionBean = :id \")\n List<FParamDiskonItemVendor> getAllByDivision(int id);\n\n}", "@Test\r\n public void testSearch() throws Exception {\r\n System.out.println(\"rechNom\");\r\n Bureau obj1 = new Bureau(0,\"Test\",\"000000000\",\"\");\r\n Bureau obj2 = new Bureau(0,\"Test2\",\"000000001\",\"\");\r\n String nomrech = \"Test\";\r\n BureauDAO instance = new BureauDAO();\r\n instance.setConnection(dbConnect);\r\n obj1=instance.create(obj1);\r\n obj2=instance.create(obj2);\r\n \r\n \r\n String result = instance.search(nomrech);\r\n if(result.contains(obj1.getSigle())) fail(\"record introuvable \"+obj1);\r\n if(result.contains(obj2.getSigle())) fail(\"record introuvable \"+obj2);\r\n instance.delete(obj1);\r\n instance.delete(obj2);\r\n }", "public ArrayList<ModelCliente> getListaClienteDAO() {\n ArrayList<ModelCliente> listamodelCliente = new ArrayList();\n ModelCliente modelCliente = new ModelCliente();\n try {\n this.conectar();\n this.executarSQL(\n \"SELECT \"\n + \"id_cli,\"\n + \"nome_cli,\"\n + \"fone_cli,\"\n + \"celular_cli,\"\n + \"email_cli,\"\n + \"end_cli,\"\n + \"complemento,\"\n + \"bairro,\"\n + \"cidade,\"\n + \"estado,\"\n + \"RG_cli,\"\n + \"cpf_cli\"\n + \" FROM\"\n + \" tbclientes\"\n + \";\"\n );\n while (this.getResultSet().next()) {\n modelCliente = new ModelCliente();\n modelCliente.setId_cli(this.getResultSet().getInt(1));\n modelCliente.setNome_cli(this.getResultSet().getString(2));\n modelCliente.setFone_cli(this.getResultSet().getString(3));\n modelCliente.setCelular_cli(this.getResultSet().getString(4));\n modelCliente.setEmail_cli(this.getResultSet().getString(5));\n modelCliente.setEnd_cli(this.getResultSet().getString(6));\n modelCliente.setComplemento(this.getResultSet().getString(7));\n modelCliente.setBairro(this.getResultSet().getString(8));\n modelCliente.setCidade(this.getResultSet().getString(9));\n modelCliente.setEstado(this.getResultSet().getString(10));\n modelCliente.setRG_cli(this.getResultSet().getString(11));\n modelCliente.setCpf_cli(this.getResultSet().getString(12));\n listamodelCliente.add(modelCliente);\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n this.fecharConexao();\n }\n return listamodelCliente;\n }", "public interface CamareroDAO extends CommonDAO<Camarero> {\n\n List<Object[]> obtenerConsultaCamarero(String queryNativo, String mapeador, Date fechaInicial, Date fechaFinal);\n\n}", "public interface PertenenciaDAO extends GenericDao<Pertenencia, Long> {\n\n}", "public interface ReWelfareDAO {\n int deleteByPrimaryKey(Long welfareId);\n\n void insert(ReWelfare record);\n\n void insertSelective(ReWelfare record);\n\n void insertBatch(List<ReWelfare> records);\n\n ReWelfare selectByPrimaryKey(Long welfareId);\n\n int updateByPrimaryKeySelective(ReWelfare record);\n\n int updateByPrimaryKey(ReWelfare record);\n\n /**\n * 精选列表\n * @param platform\n * @return\n */\n List<ReWelfare> selectSelectionListByPlatform(int platform);\n\n /**\n * 福利\n *\n * @param platform\n * @param welfareId\n * @param welfareType\n * @return\n */\n List<ReWelfare> selectListByPlatform(int platform, Long welfareId, Integer welfareType);\n\n /**\n * 从mysql中获取福利id列表\n * @param platform 平台\n * @param welfareType 类型\n * @return\n */\n List<Long> selectWelfareIdListOrderByUpdateTimeDesc(int platform,Integer welfareType);\n}", "public interface CabinClassDao extends Dao\n{\n\n\t/**\n\t * DAO service which returns a list of CabinClassModel types\n\t *\n\t * @return SearchResult<CabinClassModel> list\n\t */\n\tList<CabinClassModel> findCabinClasses();\n\n\t/**\n\t * Dao method which returns CabinClassModel for the given cabin code.\n\t *\n\t * @param cabinCode\n\t * \t\tstring representing cabin code.\n\t * @return CabinClassModel object.\n\t */\n\tCabinClassModel findCabinClass(String cabinCode);\n\n\t/**\n\t * Dao method which returns CabinClassModel for the given cabinclass index.\n\t *\n\t * @param cabinClassIndex\n\t * \t\tstring representing cabinclass index.\n\t * @return CabinClassModel object.\n\t */\n\tCabinClassModel findCabinClass(Integer cabinClassIndex);\n\n\t/**\n\t * Dao method which returns CabinClassModel for the given bundleTemplate.\n\t *\n\t * @param bundleTemplate\n\t * \t\tstring representing bundleTemplate.\n\t * @return CabinClassModel object.\n\t */\n\tCabinClassModel findCabinClassFromBundleTemplate(String bundleTemplate);\n}", "public interface IPackageActivateDao extends IBaseDao<PackageActivate>{\n\t/**\n\t * \n\t * <p>\n\t * Title: confirmationNumber\n\t * </p>\n\t * <p>\n\t * Description:广告主确认数录入\n\t * </p>\n\t * \n\t * @param id\n\t * @param number\n\t * @throws Exception\n\t * @author lichuang\n\t * @date 2013-5-23\n\t * @return void\n\t * @version 1.0\n\t */\n\tpublic void confirmationNumber(Long id, Integer number,Integer status) throws Exception;\n\n\n\t/**\n\t * <p>\n\t * Title: statusConfirm\n\t * </p>\n\t * <p>\n\t * Description:数据分完\n\t * </p>\n\t * \n\t * @param fraction_id\n\t * @throws Exception\n\t * @author lichuang\n\t * @date 2013-5-27\n\t * @return void\n\t * @version 1.0\n\t */\n\tpublic void updateStatus(Long id,Integer status) throws Exception;\n\n\t/**\n\t * <p>\n\t * Title: statusConfirm\n\t * </p>\n\t * <p>\n\t * Description:数据分完\n\t * </p>\n\t * \n\t * @param fraction_id\n\t * @throws Exception\n\t * @author lichuang\n\t * @date 2013-5-27\n\t * @return void\n\t * @version 1.0\n\t */\n\tpublic void updateStatu(String ids, Integer status) throws Exception;\n\n\t/**\n\t * <p>\n\t * Title: submitConfirmNumber\n\t * </p>\n\t * <p>\n\t * Description:TODO\n\t * </p>\n\t * \n\t * @param ids\n\t * @author cuidd\n\t * @date 2013-7-16\n\t * @return void\n\t * @version 1.0\n\t */\n\tpublic void submitConfirmNumber(String ids);\n\n\n\t/**\n\t* <p>Title: confirmationCpd</p>\n\t* <p>Description:cpd确认的钱</p>\n\t* @param id\n\t* @param amount\n\t* @throws Exception\n\t* @author lichuang\n\t* @date 2013-8-8\n\t* @return void\n\t* @version 1.0\n\t */\n\tpublic void confirmationCpd(Long id, Double amount)throws Exception;\n\n\t/**\n\t* <p>Title: getById</p>\n\t* <p>Description:读取提交android数据</p>\n\t* @param ids\n\t* @return\n\t* @author cuidd\n\t* @date 2014年11月14日\n\t* @return List<PackageActivateAndroid>\n\t* @version 1.0\n\t */\n\tpublic PackageActivateAndroid getById(Long id)throws Exception;\n\n}", "private DAOOfferta() {\r\n\t\ttry {\r\n\t\t\tClass.forName(driverName);\r\n\r\n\t\t\tconn = getConnection(usr, pass);\r\n\r\n\t\t\tps = conn.prepareStatement(createQuery);\r\n\r\n\t\t\tps.executeUpdate();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ConnectionException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\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} finally {\r\n\t\t\t/*closeResource()*/;\r\n\t\t}\r\n\t}", "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}", "int getIdRondaCancion(Cancion cancion,Date fecha) throws ExceptionDao;", "@Repository(\"userDao\")\npublic interface IUserDao extends IGenericDao<User, Long> {\n List<User> findByKullaniciAdi(String kullaniciAdi);\n}", "public interface BeeDataDao {\n\n /*获取兼职数据*/\n BeeJobTime getBeeJobTime();\n\n /*分页获取兼职数据*/\n BeeJobTime getBeeJobTimes(@Param(\"startIndex\") int startIndex, @Param(\"endAmount\") int endAmount);\n\n /*获取暑期工数据*/\n BeeSummerJob getBeeSummerJob();\n\n /*分页获取暑期工数据*/\n BeeSummerJob getBeeSummerJobs(@Param(\"startIndex\") int startIndex, @Param(\"endAmount\") int endAmount);\n\n /*根据JID获取兼职详细信息*/\n BeeJobTimeDetailed getBeeJobTimeDetailed(int jid);\n\n /*根据SID获取兼职详细信息*/\n BeeSummerJobDetailed getSummerJobDetailed(int sid);\n\n /*分页获取兼职报名信息*/\n UserMessageList getSignUpJobFairs(@Param(\"startIndex\") int startIndex, @Param(\"endAmount\") int endAmount);\n\n /*获取兼职报名List*/\n UserMessageList getSignUpJobFair();\n\n /*根据phone查询兼职报名人员*/\n UserMessageList selectJobFairUser(String phone);\n\n /*兼职报名*/\n void putSignUpJobFair(@Param(\"userMessage\") UserMessage userMessage);\n\n /*根据UserId查询报名人员*/\n String selectSignUpJobFairByUserId(int UserId);\n\n /*插入amount*/\n void insertAmount(@Param(\"amount\") String amount,@Param(\"jobNames\") String jobNames,@Param(\"userId\") int userId);\n\n /*暑期工报名*/\n void putSignUpSummerJob(@Param(\"userMessage\") UserMessage userMessage);\n\n /*暑期工发布*/\n void publishSummerJob(@Param(\"beeSummerJobDetailed\") BeeSummerJobDetailed beeSummerJobDetailed,@Param(\"tag\") String tag);\n\n /*兼职发布*/\n void publishJobFair(@Param(\"beeSummerJobDetailed\") BeeSummerJobDetailed beeSummerJobDetailed,@Param(\"tag\") String tag);\n\n /*分页获取暑期工报名信息*/\n UserMessageList getSignUpSummerJobs(@Param(\"startIndex\") int startIndex, @Param(\"endAmount\") int endAmount);\n\n /*获取暑期工报名List*/\n UserMessageList getSignUpSummerJob();\n\n BeeSummerJobDetailedList AuditingJobFairs(@Param(\"startIndex\") int startIndex, @Param(\"endAmount\") int endAmount);\n\n BeeSummerJobDetailedList AuditingJobFair();\n\n BeeSummerJobDetailedList AuditingSummerJob();\n\n BeeSummerJobDetailedList AuditingSummerJobs(@Param(\"startIndex\") int startIndex, @Param(\"endAmount\") int endAmount);\n\n String selectSignUpJobFairByJIDS(int userId);\n\n UserMessageList selectSummerJobUser(String phone);\n\n String selectSignUpSummerJobByJIDS(int userId);\n\n String selectSignUpSummerJobByUserId(int userId);\n\n void insertAmount1(String jids, String jobNameS, int userId);\n\n int getSid(int id);\n\n int getJid(int id);\n\n void putOpenId(@Param(\"openId\") Object openId,@Param(\"targetId\") int targetId);\n\n BeeJobTime getAuditingBeeJobTimeByOpenId(String openId);\n\n BeeJobTime getAuditingBeeJobTimesByOpenId(@Param(\"openId\") String openId, @Param(\"startIndex\") int startIndex, @Param(\"endAmount\") int endAmount);\n\n BeeJobTime getBeeJobTimesByOpenId(@Param(\"openId\") String openId, @Param(\"startIndex\") int startIndex, @Param(\"endAmount\") int endAmount);\n\n BeeJobTime getBeeJobTimeByOpenId(String openId);\n\n int selectIsGet(int i);\n\n UserMessageList getSignUpJobFairsByJid();\n\n UserMessageList getSignUpJobFairByJid(@Param(\"jid\") String jid,@Param(\"startIndex\") int startIndex, @Param(\"endAmount\") int endAmount);\n\n int selectargetId(String openId);\n\n BeeJobTimeDetailed getAuditingBeeJobTimeDetailed(int jid);\n\n int selectOpenId(Object openId);\n\n Object selectOpenIds(Object openId);\n\n List<Integer> getJidByOpenId(String openId);\n\n void getJobTimeUserByJid(List<Integer> jid);\n\n String getJidsByOpenId(String openId);\n\n BeeJobTime getJobTimeByOpenId(@Param(\"jidS\") List<String> jidS);\n\n BeeJobTime getBeeJobTimesByOpenIds(int startIndex, int endAmount);\n\n String getJidsByJid(int i);\n\n String[] getJids();\n}", "public interface TipoActividadDAO {\n \n /**\n * Funció que engloba les funcións que s'utilitzen per crear tipus d'activitat\n * @param tipoAct\n * @return String\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract String callCrear(TipoActividad tipoAct) throws PersistenceException, ClassNotFoundException;\n \n /**\n * Verifica que no existeixi un tipus amb el mateix nom\n * @param tipoAct\n * @return int\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract int getTipoByName(TipoActividad tipoAct) throws PersistenceException, ClassNotFoundException;\n \n /**\n * Inserta un tipus d'activitat en la base de dades\n * @param tipoAct\n * @return String\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract String insertarTipoActividad(TipoActividad tipoAct) throws PersistenceException, ClassNotFoundException;\n \n /**\n * Agafa els tipus d'activitats que esten actius\n * @return List de TipoActividad\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract List<TipoActividad> getTiposActividad() throws PersistenceException, ClassNotFoundException;\n \n /**\n * Agafa tots els tipus d'activitats \n * @return List de TipoActividad\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract List<TipoActividad> getTiposActividadAdm() throws PersistenceException, ClassNotFoundException;\n \n /**\n * Seleccionar el tipo de actividad d'una actividad\n * @param activity\n * @return String\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract String getTipoByAct(Actividad activity) throws PersistenceException, ClassNotFoundException;\n\n /**\n * Guarda la sessió del tipus d'activitat\n * @param tipoAct\n * @param pagina\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract void guardarSession(TipoActividad tipoAct, String pagina) throws PersistenceException, ClassNotFoundException;\n \n /**\n * Funció que engloba les funcións per editar un tipus d'activitat\n * @param tipoAct\n * @return String\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract String callEditar(TipoActividad tipoAct) throws PersistenceException, ClassNotFoundException;\n \n /**\n * Funció que permet editar el Tipus d'activitat\n * @param tipoAct\n * @return String\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract String editarTipoActividad(TipoActividad tipoAct) throws PersistenceException, ClassNotFoundException;\n}", "public interface AccommodationDao extends Dao\n{\n\n\t/**\n\t * Returns a list of AccommodationModel for the given accommodationOfferingCode\n\t *\n\t * @param accommodationOfferingCode\n\t * \t\tthe code of the AccommodationOffering to use to get the Accommodation\n\t * @return the list of AccommodationModel\n\t */\n\tList<AccommodationModel> findAccommodationForAccommodationOffering(String accommodationOfferingCode);\n\n\t/**\n\t * Returns a list of AccommodationModel for the given accommodationOfferingCode and catalogVersion\n\t *\n\t * @param accommodationOfferingCode\n\t * \t\tthe code of the AccommodationOffering to use to get the Accommodation\n\t * @param catalogVersion\n\t * \t\tthe catalog version to use to get the Accommodation\n\t * @return the list of AccommodationModel\n\t */\n\tList<AccommodationModel> findAccommodationForAccommodationOfferingAndCatalog(String accommodationOfferingCode,\n\t\t\tString catalogVersion);\n\n\t/**\n\t * Returns an object of AccommodationModel for the given accommodationOfferingCode and accommodationCode\n\t *\n\t * @param accommodationOfferingCode\n\t * \t\tthe code of the AccommodationOffering to use to get the Accommodation\n\t * @param accommodationCode\n\t * \t\tthe code of the Accommodation\n\t * @return object of AccommodationModel\n\t */\n\tAccommodationModel findAccommodationForAccommodationOffering(String accommodationOfferingCode, String accommodationCode);\n\n}", "public Cliente findByPrimaryKey(ClientePk pk) throws ClienteDaoException;", "public OnibusDAO() {}", "public interface ForecastDao extends SavableEntityDao<Forecast>, UpdatableEntityDao<Forecast>, RemovableEntityDao<Forecast> {\n\n Forecast getById(Long forecastId);\n\n List<Forecast> getAll();\n\n List<ResultadoQuery> findSumForecastAgrupadosGrupoGastos(int anio);\n\n List<ResultadoQuery> findImporteTotalMes(int anio);\n\n List<ResultadoQuery> findDetalleForecastsPorGrupoGastos(String grupoGasto, int anio);\n\n}", "public empresaDAO(){\r\n \r\n }", "public DTOConsultaCliente consultarCliente(DTOOID oid) throws MareException {\n UtilidadesLog.info(\" DAOMAEMaestroClientes.consultarCliente(DTOOID): Entrada\");\n\n Boolean bUsaGEOREFERENCIADOR = Boolean.FALSE;\n MONMantenimientoSEG mms;\n BelcorpService bs = UtilidadesEJB.getBelcorpService();\n RecordSet resultado = new RecordSet();\n StringBuffer query = new StringBuffer();\n DTOConsultaCliente dtos = new DTOConsultaCliente();\n\n try {\n query.append(\" select TICL_OID_TIPO_CLIE, SBTI_OID_SUBT_CLIE, I1.VAL_I18N DESC_TIPO_CLIENTE, \");\n query.append(\" I2.VAL_I18N DESC_SUB_TIPO_CLIENTE\");\n query.append(\" from MAE_CLIEN_TIPO_SUBTI T, V_GEN_I18N_SICC I1, V_GEN_I18N_SICC I2 \");\n query.append(\" where I1.ATTR_ENTI(+) = 'MAE_TIPO_CLIEN' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TICL_OID_TIPO_CLIE \");\n query.append(\" and I2.ATTR_ENTI(+) = 'MAE_SUBTI_CLIEN' \");\n query.append(\" and I2.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I2.VAL_OID(+) = SBTI_OID_SUBT_CLIE \");\n query.append(\" and T.CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" ORDER BY DESC_TIPO_CLIENTE ASC \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n dtos.setTiposSubtipos(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n query.append(\" select TDOC_OID_TIPO_DOCU, NUM_DOCU_IDEN, VAL_IDEN_DOCU_PRIN, VAL_IDEN_PERS_EMPR, \");\n query.append(\" I1.VAL_I18N DESC_TIPO_DOCUM from MAE_CLIEN_IDENT I, V_GEN_I18N_SICC I1 \");\n query.append(\" where I1.ATTR_ENTI(+) = 'MAE_TIPO_DOCUM' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TDOC_OID_TIPO_DOCU \");\n query.append(\" and I.CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n dtos.setIdentificaciones(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n // Se agrega campo \"cod_clie\" a la query.\n query.append(\" SELECT val_ape1, val_ape2, val_apel_casa, val_nom1, val_nom2, val_trat, \");\n query.append(\" cod_sexo, fec_ingr, fopa_oid_form_pago, i1.val_i18n desc_forma_pago, \");\n query.append(\" cod_clie \");\n query.append(\" FROM mae_clien m, v_gen_i18n_sicc i1 \");\n query.append(\" WHERE i1.val_oid(+) = fopa_oid_form_pago \");\n query.append(\" AND i1.attr_enti(+) = 'BEL_FORMA_PAGO' \");\n query.append(\" AND i1.idio_oid_idio(+) = \" + oid.getOidIdioma());\n query.append(\" AND m.oid_clie = \" + oid.getOid()); \n \n resultado = bs.dbService.executeStaticQuery(query.toString());\n\n if (!resultado.esVacio()) {\n dtos.setApellido1((String) resultado.getValueAt(0, 0));\n dtos.setApellido2((String) resultado.getValueAt(0, 1));\n dtos.setApellidoCasada((String) resultado.getValueAt(0, 2));\n dtos.setNombre1((String) resultado.getValueAt(0, 3));\n dtos.setNombre2((String) resultado.getValueAt(0, 4));\n\n String tratamiento = (String) resultado.getValueAt(0, 5);\n\n if ((tratamiento != null) && !(tratamiento.equals(\"\"))) {\n dtos.setTratamiento(new Byte(tratamiento));\n }\n\n String sexo = (String) resultado.getValueAt(0, 6);\n\n if ((sexo != null) && !(sexo.equals(\"\"))) {\n dtos.setSexo(new Character(sexo.toCharArray()[0]));\n }\n\n dtos.setFechaIngreso((Date) resultado.getValueAt(0, 7));\n dtos.setFormaPago((String) resultado.getValueAt(0, 9));\n \n // Agregado by ssantana, inc. BELC300021214\n // Se agrega asignacion de parametro CodigoCliente\n dtos.setCodigoCliente((String) resultado.getValueAt(0, 10) );\n }\n\n query = new StringBuffer();\n resultado = new RecordSet();\n query.append(\" SELECT FEC_NACI, COD_EMPL, SNON_OID_NACI, VAL_EDAD, ESCV_OID_ESTA_CIVI, VAL_OCUP, \");\n query.append(\" VAL_PROF, VAL_CENT_TRAB, VAL_CARG_DESE, VAL_CENT_ESTU, NUM_HIJO, NUM_PERS_DEPE, \");\n query.append(\" NSEP_OID_NSEP, TCLV_OID_CICL_VIDA, IND_CORR, IMP_INGR_FAMI, I1.VAL_I18N DESC_NACION, \");\n query.append(\" I2.VAL_I18N DESC_EDO_CIVIL, I3.VAL_I18N DESC_NESP, I4.VAL_I18N DESC_CICLO_VIDA, \");\n query.append(\" NIED_OID_NIVE_ESTU, i5.VAL_I18N desc_nivel_estu, IND_ACTI \");\n query.append(\" FROM MAE_CLIEN_DATOS_ADICI , V_GEN_I18N_SICC I1, V_GEN_I18N_SICC I2, V_GEN_I18N_SICC I3, V_GEN_I18N_SICC I4, v_gen_i18n_sicc i5 \");\n query.append(\" where I1.ATTR_ENTI(+) = 'SEG_NACIO' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = SNON_OID_NACI \");\n query.append(\" and I2.ATTR_ENTI(+) = 'MAE_ESTAD_CIVIL' \");\n query.append(\" and I2.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I2.VAL_OID(+) = ESCV_OID_ESTA_CIVI \");\n query.append(\" and I3.ATTR_ENTI(+) = 'MAE_TIPO_NIVEL_SOCEC_PERSO' \");\n query.append(\" and I3.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I3.VAL_OID(+) = NSEP_OID_NSEP \");\n query.append(\" and I4.ATTR_ENTI(+) = 'MAE_CICLO_VIDA' \");\n query.append(\" and I4.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I4.VAL_OID(+) = TCLV_OID_CICL_VIDA \");\n query.append(\" and i5.ATTR_ENTI(+) = 'MAE_NIVEL_ESTUD' \");\n query.append(\" AND i5.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" AND i5.VAL_OID(+) = NIED_OID_NIVE_ESTU \");\n query.append(\" and CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n\n if (!resultado.esVacio()) {\n UtilidadesLog.debug(\"resultado: \" + resultado);\n\n dtos.setFechaNacimiento((Date) resultado.getValueAt(0, 0));\n dtos.setCodigoEmpleado((String) resultado.getValueAt(0, 1));\n /*cleal incidencia 21311 fecha 28/10/2005*/\n // Modificado por ssantana, 8/11/2005\n // dtos.setNacionalidad((resultado.getValueAt(0, 2))!=null ? new String(((BigDecimal) resultado.getValueAt(0, 2)).toString()) : \"\");\n dtos.setNacionalidad((resultado.getValueAt(0, 16)) != null ? (String) resultado.getValueAt(0, 16) : \"\"); \n //(resultado.getValueAt(0, 10) != null) ? new String(((BigDecimal) resultado.getValueAt(0, 10)).toString()) : null\n\n // dtos.setEdad((String)resultado.getValueAt(0, 3));\n dtos.setEdad((resultado.getValueAt(0, 3) != null) ? new String(((BigDecimal) resultado.getValueAt(0, 3)).toString()) : \"\");\n dtos.setEstadoCivil((String) resultado.getValueAt(0, 17));\n dtos.setOcupacion((String) resultado.getValueAt(0, 5));\n dtos.setProfesion((String) resultado.getValueAt(0, 6));\n dtos.setCentroTrabajo((String) resultado.getValueAt(0, 7));\n dtos.setCargo((String) resultado.getValueAt(0, 8));\n dtos.setCentro((String) resultado.getValueAt(0, 9));\n\n //dtos.setNumeroHijos((BigDecimal)resultado.getValueAt(0, 10));\n /* dtos.setNumeroHijos((resultado.getValueAt(0, 10) != null)\n ? new String(\n ((BigDecimal) resultado.getValueAt(0, 10)).toString())\n : \"0\");*/\n dtos.setNumeroHijos((resultado.getValueAt(0, 10) != null) ? new String(((BigDecimal) resultado.getValueAt(0, 10)).toString()) : null);\n\n //dtos.setPersonasDependientes((String)resultado.getValueAt(0, 11));\n /* dtos.setPersonasDependientes((resultado.getValueAt(0, 11) != null)\n ? new String(\n ((BigDecimal) resultado.getValueAt(0, 11)).toString())\n : \"0\");*/\n dtos.setPersonasDependientes((resultado.getValueAt(0, 11) != null) ? new String(((BigDecimal) resultado.getValueAt(0, 11)).toString()) : null);\n\n dtos.setNSEP((String) resultado.getValueAt(0, 18));\n dtos.setCicloVidaFamiliar((String) resultado.getValueAt(0, 19));\n dtos.setNivelEstudios((String) resultado.getValueAt(0, 21));\n\n //String corres = (String)resultado.getValueAt(0, 14);\n String corres = (resultado.getValueAt(0, 14) != null) ? new String(((BigDecimal) resultado.getValueAt(0, 14)).toString()) : null;\n\n //String corres = ((BigDecimal) resultado.getValueAt(0,14)).toString();\n Boolean correspondencia = null;\n\n if ((corres != null) && !(corres.equals(\"\"))) {\n if (corres.equals(\"1\")) {\n correspondencia = Boolean.TRUE;\n } else {\n correspondencia = Boolean.FALSE;\n }\n }\n\n dtos.setDeseaCorrespondencia(correspondencia);\n\n BigDecimal big = (BigDecimal) resultado.getValueAt(0, 15);\n\n if (big == null) {\n dtos.setImporteIngreso(\"\");\n } else {\n dtos.setImporteIngreso(big.toString());\n }\n \n //SICC-DMCO-MAE-GCC-006 - Cleal\n Boolean indActi = null;\n if(((BigDecimal) resultado.getValueAt(0, 22))!=null){\n\n if(((BigDecimal) resultado.getValueAt(0, 22)).longValue()==1){\n indActi = new Boolean(true);\n } else if(((BigDecimal) resultado.getValueAt(0, 22)).longValue()==0){\n indActi = new Boolean(false); \n }\n }\n dtos.setIndicadorActivo(indActi);\n }\n\n query = new StringBuffer();\n resultado = new RecordSet();\n query.append(\" SELECT I2.VAL_I18N, C.COD_CLIE, FEC_DESD, FEC_HAST, TIVC_OID_TIPO_VINC, IND_VINC_PPAL, I1.VAL_I18N DESC_TIPO_VINCU \");\n query.append(\" FROM MAE_CLIEN_VINCU, V_GEN_I18N_SICC I1, mae_tipo_vincu tv, seg_pais p, v_gen_i18n_sicc i2, mae_clien c \");\n query.append(\" where I1.ATTR_ENTI(+) = 'MAE_TIPO_VINCU' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TIVC_OID_TIPO_VINC \");\n \n /* inicio deshace modif ciglesias incidencia 24377 17/11/2006\n // SPLATAS - 26/10/2006 - Error al obtener clientes vinculados \n // query.append(\" and CLIE_OID_CLIE_VNDO = \" + oid.getOid() + \" \");\n query.append(\" and CLIE_OID_CLIE_VNTE = \" + oid.getOid() + \" \");\n */\n query.append(\" and CLIE_OID_CLIE_VNDO = \" + oid.getOid() + \" \");\n /*fin deshace ciglesias 24377*/\n \n query.append(\" AND mae_clien_vincu.TIVC_OID_TIPO_VINC = tv.OID_TIPO_VINC \");\n \n // SPLATAS - 26/10/2006 - Error al obtener clientes vinculados \n query.append(\" AND mae_clien_vincu.CLIE_OID_CLIE_VNTE = c.OID_CLIE \"); //eiraola 30/11/2006 Incidencia DBLG7...165\n \n //query.append(\" AND mae_clien_vincu.CLIE_OID_CLIE_VNDO = c.OID_CLIE \");\n \n query.append(\" AND tv.PAIS_OID_PAIS = p.OID_PAIS \");\n query.append(\" AND i2.VAL_OID = p.OID_PAIS \");\n query.append(\" AND i2.ATTR_ENTI = 'SEG_PAIS' \");\n query.append(\" AND i2.IDIO_OID_IDIO = \" + oid.getOidIdioma());\n\n resultado = bs.dbService.executeStaticQuery(query.toString());\n\n //UtilidadesLog.info(\"resultado Vinculo: \" + resultado.toString() );\n dtos.setVinculos(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n\n /*query.append(\" SELECT DES_CLIE_PREF, TIPF_OID_TIPO_PREF, DES_CLIE_PREF \");\n query.append(\" FROM MAE_CLIEN_PREFE \");\n query.append(\" where CLIE_OID_CLIE = \" + oid.getOid() + \" \");*/\n query.append(\" SELECT i1.VAL_I18N descripcionTipo , a.TIPF_OID_TIPO_PREF, a.DES_CLIE_PREF \");\n query.append(\" FROM MAE_CLIEN_PREFE a , v_gen_i18n_sicc i1 \");\n query.append(\" where a.CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" and i1.ATTR_ENTI = 'MAE_TIPO_PREFE' \");\n query.append(\" and i1.VAL_OID = a.TIPF_OID_TIPO_PREF \");\n query.append(\" and i1.IDIO_OID_IDIO = \" + oid.getOidIdioma());\n query.append(\" and i1.ATTR_NUM_ATRI = 1 \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n dtos.setPreferencias(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n query.append(\" SELECT MARC_OID_MARC, NUM_OBSE, VAL_TEXT, DES_MARC \");\n query.append(\" FROM MAE_CLIEN_OBSER M, SEG_MARCA S \");\n query.append(\" where CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" and M.MARC_OID_MARC = S.OID_MARC \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n dtos.setObservaciones(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n\n /* query.append(\" SELECT c.PAIS_OID_PAIS , c.COD_CLIE, t. TICL_OID_TIPO_CLIE, p.COD_TIPO_CONT, \");\n query.append(\" p.FEC_CONT, p.FEC_SIGU_CONT, I1.VAL_I18N DESC_PAIS, I2.VAL_I18N DESC_TIPO_CLIENTE \");\n query.append(\" FROM MAE_CLIEN_PRIME_CONTA p, MAE_CLIEN c, MAE_CLIEN_TIPO_SUBTI t, V_GEN_I18N_SICC I1, \");\n query.append(\" V_GEN_I18N_SICC I2 \");\n query.append(\" where I1.ATTR_ENTI(+) = 'SEG_PAIS' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = c.PAIS_OID_PAIS \");\n query.append(\" and I2.ATTR_ENTI(+) = 'MAE_TIPO_CLIEN' \");\n query.append(\" and I2.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I2.VAL_OID(+) = TICL_OID_TIPO_CLIE \");\n query.append(\" AND p.CTSU_CLIE_CONT = t.OID_CLIE_TIPO_SUBT \");\n query.append(\" AND t.CLIE_OID_CLIE = c.OID_CLIE \");\n query.append(\" and p.CLIE_OID_CLIE = \" + oid.getOid() + \" \"); */\n query.append(\" SELECT c.pais_oid_pais, c.cod_clie, t.ticl_oid_tipo_clie, p.cod_tipo_cont, \");\n query.append(\" p.fec_cont, p.fec_sigu_cont, i1.val_i18n desc_pais, \");\n query.append(\" i2.val_i18n desc_tipo_cliente, i3.val_i18n, perio.val_nomb_peri, marca.DES_MARC \");\n query.append(\" FROM mae_clien_prime_conta p, \");\n query.append(\" mae_clien c, \");\n query.append(\" mae_clien_tipo_subti t, \");\n query.append(\" seg_canal canal, \");\n query.append(\" cra_perio perio, \");\n query.append(\" seg_marca marca, \");\n query.append(\" v_gen_i18n_sicc i1, \");\n query.append(\" v_gen_i18n_sicc i2, \");\n query.append(\" v_gen_i18n_sicc i3 \");\n query.append(\" WHERE i1.attr_enti(+) = 'SEG_PAIS' \");\n query.append(\" AND i1.idio_oid_idio(+) = \" + oid.getOidIdioma().toString());\n query.append(\" AND i1.val_oid(+) = c.pais_oid_pais \");\n query.append(\" AND i2.attr_enti(+) = 'MAE_TIPO_CLIEN' \");\n query.append(\" AND i2.idio_oid_idio(+) = \" + oid.getOidIdioma().toString());\n query.append(\" AND i2.val_oid(+) = ticl_oid_tipo_clie \");\n query.append(\" AND p.ctsu_clie_cont = t.oid_clie_tipo_subt \");\n query.append(\" AND t.clie_oid_clie = c.oid_clie \");\n query.append(\" AND p.clie_oid_clie = \" + oid.getOid().toString());\n query.append(\" AND p.perd_oid_peri = perio.oid_peri(+) \");\n query.append(\" AND p.cana_oid_cana = canal.oid_cana(+) \");\n query.append(\" AND canal.oid_cana = i3.val_oid(+) \");\n query.append(\" AND i3.attr_enti(+) = 'SEG_CANAL' \");\n query.append(\" AND i3.attr_num_atri(+) = 1 \");\n query.append(\" AND i3.idio_oid_idio(+) = \" + oid.getOidIdioma().toString());\n query.append(\" and p.MARC_OID_MARC = marca.OID_MARC(+) \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n\n if (!resultado.esVacio()) {\n // by Ssantana, 29/7/04 - Se corren algunos indices en -1 al quitar\n // campo Primer Pedido Contacto. \n // 5/8//2004 - Se agregan descripciones de Marca, Canal y Periodo\n dtos.setPaisContactado((String) resultado.getValueAt(0, 6));\n dtos.setCodigoClienteContactado((String) resultado.getValueAt(0, 1));\n dtos.setTipoClienteContactado((String) resultado.getValueAt(0, 7));\n dtos.setTipoContacto((String) resultado.getValueAt(0, 3));\n dtos.setFechaContacto((Date) resultado.getValueAt(0, 4));\n dtos.setFechaSiguienteContacto((Date) resultado.getValueAt(0, 5));\n dtos.setMarcaContactoDesc((String) resultado.getValueAt(0, 10));\n dtos.setCanalContactoDesc((String) resultado.getValueAt(0, 8));\n dtos.setPeriodoContactoDesc((String) resultado.getValueAt(0, 9));\n\n /* dtos.setPaisContactado((String)resultado.getValueAt(0, 7));\n dtos.setCodigoClienteContactado((String)resultado.getValueAt(0, 1));\n dtos.setTipoClienteContactado((String)resultado.getValueAt(0, 8));\n dtos.setTipoContacto((String)resultado.getValueAt(0, 3));\n dtos.setFechaContacto((Date)resultado.getValueAt(0, 4));\n //dtos.setFechaPrimerPedido((Date)resultado.getValueAt(0, 5));\n dtos.setFechaSiguienteContacto((Date)resultado.getValueAt(0, 6));*/\n }\n //Cleal Mae-03\n MONMantenimientoSEGHome mmsHome = SEGEjbLocators.getMONMantenimientoSEGHome();\n mms = mmsHome.create();\n bUsaGEOREFERENCIADOR = mms.usaGeoreferenciador(oid.getOidPais());\n \n resultado = new RecordSet();\n if(Boolean.FALSE.equals(bUsaGEOREFERENCIADOR)){\n UtilidadesLog.debug(\"*** No usa GEO\");\n resultado = obtieneDireccionSinGEO(oid);\n } else{\n UtilidadesLog.debug(\"*** Usa GEO\");\n resultado = obtieneDireccionConGEO(oid);\n }//\n \n //\n /*\n query = new StringBuffer();\n resultado = new RecordSet();\n query.append(\" SELECT dir.TIDC_OID_TIPO_DIRE, dir.TIVI_OID_TIPO_VIA, \");\n //SICC-GCC-MAE-005 - Cleal\n query.append(\" NVL(dir.VAL_NOMB_VIA,vi.NOM_VIA) AS VIA, \");\n \n query.append(\" dir.NUM_PPAL, dir.VAL_COD_POST, \");\n query.append(\" dir.VAL_OBSE, I1.VAL_I18N DESC_TIPO_DIREC, I2.VAL_I18N DESC_TIPO_VIA, ind_dire_ppal, VAL.DES_GEOG \");\n query.append(\" FROM MAE_CLIEN_DIREC dir, ZON_VIA vi, ZON_VALOR_ESTRU_GEOPO val, \");\n //Cleal MAE-03\n if(bUsaGEOREFERENCIADOR.equals(Boolean.FALSE)){\n query.append(\" ZON_TERRI terr, \");\n }\n //\n query.append(\" V_GEN_I18N_SICC I1, V_GEN_I18N_SICC I2 \");\n query.append(\" WHERE I1.ATTR_ENTI(+) = 'MAE_TIPO_DIREC' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TIDC_OID_TIPO_DIRE \");\n query.append(\" and I2.ATTR_ENTI(+) = 'SEG_TIPO_VIA' \");\n query.append(\" and I2.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n\n //query.append(\" and I2.VAL_OID(+) = vi.TIVI_OID_TIPO_VIA \");\n query.append(\" and I2.VAL_OID(+) = dir.tivi_oid_tipo_via \");\n query.append(\" and dir.CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" AND dir.ZVIA_OID_VIA = vi.OID_VIA(+) \");\n //Cleal MAE-03\n if(bUsaGEOREFERENCIADOR.equals(Boolean.FALSE)){\n query.append(\" AND dir.TERR_OID_TERR = terr.OID_TERR \");\n query.append(\" AND terr.VEPO_OID_VALO_ESTR_GEOP = val.OID_VALO_ESTR_GEOP \");\n //SICC-GCC-MAE-005 - Cleal\n query.append(\" AND vi.PAIS_OID_PAIS = \"+oid.getOidPais());\n } else{\n \n query.append(\" \");\n \n }\n resultado = bs.dbService.executeStaticQuery(query.toString());\n */\n dtos.setDirecciones(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n\n /* query.append(\" SELECT TICM_OID_TIPO_COMU, VAL_DIA_COMU, VAL_TEXT_COMU, FEC_HORA_DESD, \");\n query.append(\" FEC_HORA_HAST, VAL_INTE_COMU, IND_COMU_PPAL, I1.VAL_I18N DESC_TIPO_COMUN \");\n query.append(\" FROM MAE_CLIEN_COMUN, V_GEN_I18N_SICC I1 \");\n query.append(\" where I1.ATTR_ENTI(+) = 'MAE_TIPO_COMUN' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TICM_OID_TIPO_COMU \");\n query.append(\" and CLIE_OID_CLIE = \" + oid.getOid() + \" \");*/\n query.append(\" SELECT i1.val_i18n desc_tipo_comun, val_dia_comu, val_text_comu, ind_comu_ppal, \");\n\n /* query.append(\" DECODE(to_char(FEC_HORA_DESD, 'HH24:MI'), NULL, ' ', to_char(FEC_HORA_DESD, 'HH24:MI')), \");\n query.append(\" DECODE(to_char(FEC_HORA_HAST, 'HH24:MI'), NULL, ' ', to_char(FEC_HORA_HAST, 'HH24:MI')), \");*/\n query.append(\" to_char(FEC_HORA_DESD, 'HH24:MI'), \");\n query.append(\" to_char(FEC_HORA_HAST, 'HH24:MI'), \");\n query.append(\" val_inte_comu \");\n query.append(\" FROM mae_clien_comun, v_gen_i18n_sicc i1 \");\n query.append(\" WHERE i1.attr_enti(+) = 'MAE_TIPO_COMUN' \");\n query.append(\" AND i1.idio_oid_idio(+) = \" + oid.getOidIdioma().toString());\n query.append(\" AND i1.val_oid(+) = ticm_oid_tipo_comu \");\n query.append(\" AND clie_oid_clie = \" + oid.getOid().toString());\n\n /* query.append(\" SELECT TICM_OID_TIPO_COMU, VAL_DIA_COMU, VAL_TEXT_COMU, FEC_HORA_DESD, \");\n query.append(\" FEC_HORA_HAST, VAL_INTE_COMU, IND_COMU_PPAL, I1.VAL_I18N DESC_TIPO_COMUN \");\n query.append(\" FROM MAE_CLIEN_COMUN, V_GEN_I18N_SICC I1 \");\n query.append(\" where I1.ATTR_ENTI(+) = 'MAE_TIPO_COMUN' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TICM_OID_TIPO_COMU \");\n query.append(\" and CLIE_OID_CLIE = \" + oid.getOid() + \" \"); */\n resultado = bs.dbService.executeStaticQuery(query.toString());\n UtilidadesLog.debug(\"----- resultado Comunicaciones: \" + resultado);\n dtos.setComunicaciones(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n query.append(\" SELECT MARC_OID_MARC, S.DES_MARC \");\n query.append(\" FROM MAE_CLIEN_MARCA M, SEG_MARCA S \");\n query.append(\" where CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" and M.MARC_OID_MARC = S.OID_MARC \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n\n String[] marcas = new String[resultado.getRowCount()];\n\n for (int i = 0; i < resultado.getRowCount(); i++)\n marcas[i] = (String) resultado.getValueAt(i, 1);\n\n dtos.setMarcas(marcas);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n query.append(\" SELECT TITR_OID_TIPO_TARJ, CLTA_OID_CLAS_TARJ, CBAN_OID_BANC, I1.VAL_I18N DESC_TIPO_TARJ, \");\n query.append(\" DES_CLAS_TARJ, DES_BANC \");\n query.append(\" FROM MAE_CLIEN_TARJE, V_GEN_I18N_SICC I1, MAE_CLASE_TARJE, CCC_BANCO \");\n query.append(\" where I1.ATTR_ENTI(+) = 'MAE_TIPO_TARJE' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TITR_OID_TIPO_TARJ \");\n query.append(\" and CLTA_OID_CLAS_TARJ = OID_CLAS_TARJ \");\n query.append(\" and CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" and CBAN_OID_BANC = OID_BANC \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n dtos.setTarjetas(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n\n /* query.append(\" SELECT t.TICL_OID_TIPO_CLIE, t.SBTI_OID_SUBT_CLIE, c.CLAS_OID_CLAS, c.TCCL_OID_TIPO_CLASI, \");\n query.append(\n \" c.FEC_CLAS, PERD_OID_PERI, I1.VAL_I18N DESC_TIPO_CLIENTE, I2.VAL_I18N DESC_SUB_TIPO_CLIENTE, I3.VAL_I18N DESC_CLASI, I4.VAL_I18N DESC_TIPO_CLASI_CLIENTE, I5.VAL_I18N DESC_PERIODO, \");\n query.append(\" i6.VAL_I18N desc_canal, m.DES_MARC desc_marca \");\n query.append(\" FROM MAE_CLIEN_TIPO_SUBTI t, MAE_CLIEN_CLASI c, V_GEN_I18N_SICC I1, V_GEN_I18N_SICC I2, \");\n query.append(\" V_GEN_I18N_SICC I3, V_GEN_I18N_SICC I4, V_GEN_I18N_SICC I5, \");\n query.append(\" cra_perio p, seg_marca m, v_gen_i18n_sicc i6 \");\n query.append(\" WHERE I1.ATTR_ENTI(+) = 'MAE_TIPO_CLIEN' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = t.TICL_OID_TIPO_CLIE \");\n query.append(\" and I2.ATTR_ENTI(+) = 'MAE_SUBTI_CLIEN' \");\n query.append(\" and I2.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I2.VAL_OID(+) = t.SBTI_OID_SUBT_CLIE \");\n query.append(\" and I3.ATTR_ENTI(+) = 'MAE_CLASI' \");\n query.append(\" and I3.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I3.VAL_OID(+) = c.CLAS_OID_CLAS \");\n query.append(\" and I4.ATTR_ENTI(+) = 'MAE_TIPO_CLASI_CLIEN' \");\n query.append(\" and I4.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I4.VAL_OID(+) = c.TCCL_OID_TIPO_CLASI \");\n query.append(\" and I5.ATTR_ENTI(+) = 'CRA_PERIO' \");\n query.append(\" and I5.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I5.VAL_OID(+) = PERD_OID_PERI \");\n query.append(\" and t.OID_CLIE_TIPO_SUBT = c.CTSU_OID_CLIE_TIPO_SUBT \");\n query.append(\" AND t.CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" AND perd_oid_peri = p.OID_PERI \");\n query.append(\" AND i6.VAL_OID(+) = p.CANA_OID_CANA \");\n query.append(\" AND i6.ATTR_ENTI(+) = 'SEG_CANAL' \");\n query.append(\" AND i6.IDIO_OID_IDIO = \" + oid.getOidIdioma() + \" \");\n query.append(\" AND i6.ATTR_NUM_ATRI = 1 \");\n query.append(\" AND p.MARC_OID_MARC = m.OID_MARC \"); */\n query.append(\" SELECT m.DES_MARC, v1.VAL_I18N, v2.VAL_I18N, \");\n query.append(\" v3.VAL_I18N, v4.VAL_I18N, v5.VAL_I18N \");\n query.append(\" FROM mae_clien_tipo_subti t, mae_clien_clasi c, cra_perio p, seg_marca m, v_gen_i18n_sicc v1, \");\n query.append(\" v_gen_i18n_sicc v2, v_gen_i18n_sicc v3, v_gen_i18n_sicc v4, v_gen_i18n_sicc v5 \");\n query.append(\" WHERE t.oid_clie_tipo_subt = c.ctsu_oid_clie_tipo_subt \");\n query.append(\" AND c.perd_oid_peri = p.oid_peri \");\n query.append(\" AND t.clie_oid_clie = \" + oid.getOid().toString());\n query.append(\" AND p.MARC_OID_MARC = m.OID_MARC \"); // MARCA\n query.append(\" AND p.CANA_OID_CANA = v1.VAL_OID \"); // CANAL\n query.append(\" AND v1.ATTR_NUM_ATRI = 1 \");\n query.append(\" AND v1.ATTR_ENTI = 'SEG_CANAL' \");\n query.append(\" AND v1.IDIO_OID_IDIO = \" + oid.getOidIdioma());\n query.append(\" AND t.TICL_OID_TIPO_CLIE = v2.VAL_OID \"); // TIPO CLIENTE\n query.append(\" AND v2.ATTR_ENTI = 'MAE_TIPO_CLIEN' \");\n query.append(\" AND v2.ATTR_NUM_ATRI = 1 \");\n query.append(\" AND v2.IDIO_OID_IDIO = \" + oid.getOidIdioma());\n query.append(\" AND t.SBTI_OID_SUBT_CLIE = v3.VAL_OID \"); // SUBTIPO CLIENTE\n query.append(\" AND v3.ATTR_ENTI = 'MAE_SUBTI_CLIEN' \");\n query.append(\" AND v3.ATTR_NUM_ATRI = 1 \");\n query.append(\" AND v3.IDIO_OID_IDIO = \" + oid.getOidIdioma());\n query.append(\" AND c.TCCL_OID_TIPO_CLASI = v4.VAL_OID \"); // TIPO CLASIFICACION\n query.append(\" AND v4.ATTR_ENTI = 'MAE_TIPO_CLASI_CLIEN' \");\n query.append(\" AND v4.ATTR_NUM_ATRI = 1 \");\n query.append(\" AND v4.IDIO_OID_IDIO = \" + oid.getOidIdioma());\n query.append(\" AND c.CLAS_OID_CLAS = v5.VAL_OID \"); // CLASIFICACION\n query.append(\" AND v5.ATTR_ENTI = 'MAE_CLASI' \");\n query.append(\" AND v5.ATTR_NUM_ATRI = 1 \");\n query.append(\" AND v5.IDIO_OID_IDIO = \" + oid.getOidIdioma());\n\n resultado = bs.dbService.executeStaticQuery(query.toString());\n \n // BELC300023061 - 04/07/2006\n // Si no se obtuvo ninguna clasificacion para el cliente en la consulta anterior, \n // insertar una fila en el atributo clasificaciones, con el indicador principal activo, \n // sólo con la marca y el canal\n if (!resultado.esVacio()) {\n dtos.setClasificaciones(resultado);\n } else {\n query = new StringBuffer();\n resultado = new RecordSet();\n \n query.append(\" SELECT mar.DES_MARC, \");\n query.append(\" \t\t iCa.VAL_I18N, null VAL_I18N, null VAL_I18N, null VAL_I18N, null VAL_I18N \");\n query.append(\" FROM MAE_CLIEN_UNIDA_ADMIN uA, \");\n query.append(\" \t CRA_PERIO per, \");\n query.append(\" \t\t SEG_MARCA mar, \");\n query.append(\" \t V_GEN_I18N_SICC iCa \");\n query.append(\" WHERE uA.CLIE_OID_CLIE = \" + oid.getOid().toString());\n query.append(\" AND uA.IND_ACTI = 1 \");\n query.append(\" \t AND uA.PERD_OID_PERI_INI = per.OID_PERI \");\n query.append(\" \t AND per.MARC_OID_MARC = mar.OID_MARC \");\n query.append(\" AND per.CANA_OID_CANA = iCa.VAL_OID \");\n query.append(\" AND iCa.ATTR_NUM_ATRI = 1 \");\n query.append(\" AND iCa.ATTR_ENTI = 'SEG_CANAL' \");\n query.append(\" AND iCa.IDIO_OID_IDIO = \" + oid.getOidIdioma());\n query.append(\" ORDER BY uA.OID_CLIE_UNID_ADMI ASC \");\n \n resultado = bs.dbService.executeStaticQuery(query.toString());\n dtos.setClasificaciones(resultado);\n }\n\n query = new StringBuffer();\n resultado = new RecordSet();\n\n //el false se utiliza para indicar que estas filas son de problemas \n //el true indica que estas filas son de soluciones \n query.append(\" SELECT i1.VAL_I18N, DES_PROB, decode(IND_SOLU,0,'false',1,'true') IND_SOLU, I2.VAL_I18N TSOC_OID_TIPO_SOLU, DES_SOLU, VAL_NEGO_PROD \");\n query.append(\" FROM MAE_CLIEN_PROBL, V_GEN_I18N_SICC I1, V_GEN_I18N_SICC I2 \");\n query.append(\" where I1.ATTR_ENTI(+) = 'MAE_TIPO_PROBL' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TIPB_OID_TIPO_PROB \");\n query.append(\" and I2.ATTR_ENTI(+) = 'MAE_TIPO_SOLUC' \");\n query.append(\" and I2.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I2.VAL_OID(+) = TSOC_OID_TIPO_SOLU \");\n query.append(\" and CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n\n resultado = bs.dbService.executeStaticQuery(query.toString());\n dtos.setProblemasSoluciones(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n\n /*SELECT s.des_marc, i1.val_i18n desc_tipo_perfil_psico, cod_test, fec_psic\n FROM mae_psico, v_gen_i18n_sicc i1, seg_marca s\n WHERE i1.attr_enti(+) = 'MAE_TIPO_PERFI_PSICO'\n AND i1.idio_oid_idio(+) = 1\n AND i1.val_oid(+) = tpoid_tipo_perf_psic\n AND clie_oid_clie = 152\n AND marc_oid_marc = s.oid_marc */\n query.append(\" SELECT s.des_marc, i1.val_i18n desc_tipo_perfil_psico, cod_test, fec_psic \");\n query.append(\" FROM mae_psico, v_gen_i18n_sicc i1, seg_marca s \");\n query.append(\" WHERE i1.attr_enti(+) = 'MAE_TIPO_PERFI_PSICO' \");\n query.append(\" AND i1.idio_oid_idio(+) = \" + oid.getOidIdioma().toString());\n query.append(\" AND i1.val_oid(+) = tpoid_tipo_perf_psic \");\n query.append(\" AND clie_oid_clie = \" + oid.getOid().toString());\n query.append(\" AND marc_oid_marc = s.oid_marc \");\n\n /* query.append(\" SELECT MARC_OID_MARC, TPOID_TIPO_PERF_PSIC, COD_TEST, FEC_PSIC, \");\n query.append(\" I1.VAL_I18N DESC_TIPO_PERFIL_PSICO, S.DES_MARC \");\n query.append(\" FROM MAE_PSICO, V_GEN_I18N_SICC I1, SEG_MARCA S \");\n query.append(\" where I1.ATTR_ENTI(+) = 'MAE_TIPO_PERFI_PSICO' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TPOID_TIPO_PERF_PSIC \");\n query.append(\" and CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" and MARC_OID_MARC = S.OID_MARC \");*/\n resultado = bs.dbService.executeStaticQuery(query.toString());\n dtos.setPsicografias(resultado);\n } catch (CreateException re) {\n throw new MareException(re, UtilidadesError.armarCodigoError(CodigosError.ERROR_AL_LOCALIZAR_UN_COMPONENTE_EJB));\n } catch (RemoteException re) {\n throw new MareException(re, UtilidadesError.armarCodigoError(CodigosError.ERROR_AL_LOCALIZAR_UN_COMPONENTE_EJB));\n } catch (Exception e) {\n e.printStackTrace();\n throw new MareException(e, UtilidadesError.armarCodigoError(CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS));\n }\n\n UtilidadesLog.debug(\"DTO a retornar: \" + dtos.toString());\n UtilidadesLog.info(\" DAOMAEMaestroClientes.consultarCliente(DTOOID): Salida\");\n\n return dtos;\n }", "public interface QueryAllianceDao extends BaseMapper<Alliance> {\r\n//\r\n List<AllianceRecord> findAlliancePage(Page<AllianceRecord> page, @Param(\"record\") AllianceRecord record,\r\n @Param(\"search\") String search, @Param(\"orderBy\") String orderBy,\r\n @Param(\"startingCycleStartTime\") Date startingCycleStartTime,\r\n @Param(\"startingCycleEndTime\") Date startingCycleEndTime,\r\n @Param(\"leftNumber\") Integer leftNumber, @Param(\"rightNumber\") Integer rightNumber);\r\n //rpc分页列表\r\n List<AllianceRecord> findAlliancePageShip(Page<AllianceRecord> page, @Param(\"record\") AllianceRecord record,\r\n @Param(\"search\") String search, @Param(\"orderBy\") String orderBy,\r\n @Param(\"startingCycleStartTime\") Date startingCycleStartTime,\r\n @Param(\"startingCycleEndTime\") Date startingCycleEndTime);\r\n //根据userID查询当月的订单\r\n List<Map> getCurrentMonthOrderByUserId(@Param(\"id\") Long id);\r\n //根据userID 查询盟友信息\r\n AllianceRecord selectAllianceOneByUserId(@Param(\"id\") Long id);\r\n //查询自营商品\r\n public List<Map> getSelfProductByUserId(@Param(\"id\") Long id);\r\n //充值套餐\r\n @Select(\"select CONCAT('充值',value) as title,value from t_config_field where group_id=1\")\r\n List<JSONObject> getSetMeal();\r\n //查询邀请码\r\n Long selectUserIdByInvitationCode(@Param(\"invitationCode\") String invitationCode);\r\n\r\n //查询盟友详情\r\n AllianceRecord allianceDetails(@Param(\"id\") Long id);\r\n //查询电话号码是否存在\r\n @Select(\"select alliance_phone from t_alliance where alliance_phone=#{phone} \")\r\n String queryPhone(@Param(\"phone\") String phone);\r\n\r\n //查询自己的团队\r\n List<AllianceRecord> myTeam(Page<AllianceRecord> page,\r\n @Param(\"id\") Long id,\r\n @Param(\"record\") AllianceRecord record,\r\n @Param(\"search\") String search);\r\n //查询自己的订单总额\r\n @Select(\"select total_price as totalPrice,user_id as userId from t_order where id=#{orderId}\")\r\n public JSONObject queryOrderMoney(@Param(\"orderId\") Long orderId);\r\n\r\n //一周内加入的盟友\r\n @Select(\"select b.* from t_alliance a INNER JOIN t_alliance b ON b.invitor_alliance_id=a.id where a.user_id=#{userId} and DATE_SUB(CURDATE(), INTERVAL 7 DAY)<b.alliance_ship_time\")\r\n public List<Alliance> queryWeekAlliance(@Param(\"userId\")Long userId);\r\n\r\n //一周内发货订单\r\n @Select(\"select * from t_order where user_id = 11 and status='DELIVERED_CONFIRM_PENDING' and DATE_SUB(CURDATE(), INTERVAL 7 DAY) <= created_date\\n\")\r\n public List<JSONObject> queryWeekOrderDeliver(@Param(\"userId\") Long userId);\r\n\r\n //一周内盟友下单\r\n @Select(\"select a.alliance_name as allianceName,o.* from t_order o,(select b.user_id,b.alliance_name from t_alliance a INNER JOIN t_alliance b ON b.invitor_alliance_id=a.id where a.user_id=#{userId}\\n\" +\r\n \"and b.alliance_ship=0) as a where o.user_id = a.user_id and DATE_SUB(CURDATE(), INTERVAL 7 DAY) <= o.created_date and o.status='PAID_CONFIRM_PENDING'\")\r\n public List<JSONObject> queryWeekOrder(@Param(\"userId\") Long userId);\r\n\r\n //重置userID\r\n @Update(\"update t_alliance set user_id=null where id=#{id}\")\r\n Integer resetUserId(@Param(\"id\")Long id);\r\n\r\n //团队下单奖励\r\n\r\n //团队盟友升级\r\n\r\n //删除表的数据\r\n @Delete(\"delete from ${tableName}\")\r\n public Integer deleteTableData(@Param(\"tableName\") String tableName);\r\n //获取数据库json字段信息测试\r\n @Select(\"select JSON_EXTRACT(t_product_settlement_proportion.proportion, '$.value') from t_product_settlement_proportion\")\r\n public List<Float> getJson();\r\n\r\n //查询userid\r\n @Select(\"select id from t_user where phone=${phone}\")\r\n Long queryUserIdByPhone(@Param(\"phone\") String phone);\r\n //同步t_user real_name 和 alliance表 alliance_name\r\n @Update(\"update t_user set real_name=#{name} where phone=#{alliancePhone}\")\r\n Integer upUserRealNameByPhone(@Param(\"alliancePhone\") String alliancePhone,@Param(\"name\") String name);\r\n\r\n //获取所有盟友的id\r\n @Select(\"select id from t_alliance\")\r\n List<Long> getAllAllianceIds();\r\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}", "public interface WebRecommendationDao extends GenericDao<WebRecommendation, Long> {\n\t\n\t/**\n\t * Fetches a list of all web recommendations ordered by sequence number.\n\t * \n\t * @return A list of web recommendations.\n\t */\n\tpublic List<WebRecommendation> findAllOrderBySequence();\n\n}", "public GenericDao<Client> getClientDao();", "@Override\n public Asesor getAsesorId(int idUsuarioSistema){\n Asesor asesor = null;\n ConexionSQL conexionSql = new ConexionSQL();\n Connection conexion = conexionSql.getConexion();\n try{\n PreparedStatement orden = conexion.prepareStatement(\"select * from asesor where idUsuarioSistema =?\");\n orden.setInt(1, idUsuarioSistema);\n ResultSet resultadoConsulta = orden.executeQuery();\n if(resultadoConsulta.first()){\n String nombre;\n String idioma;\n String correo;\n String telefono;\n String numeroPersonal;\n nombre = resultadoConsulta.getString(4) +\" \"+ resultadoConsulta.getString(6) +\" \"+ resultadoConsulta.getString(5);\n idioma = resultadoConsulta.getString(2);\n telefono = resultadoConsulta.getString(8);\n correo = resultadoConsulta.getString(7);\n numeroPersonal = resultadoConsulta.getString(1);\n asesor = new Asesor(numeroPersonal, nombre, idioma,telefono,correo);\n }else{\n Logger logger = Logger.getLogger(\"Logger\");\n logger.log(Level.WARNING, \"No se encuentra el asesor\");\n }\n }catch(SQLException | NullPointerException excepcion){\n Logger logger = Logger.getLogger(\"Logger\");\n logger.log(Level.WARNING, \"La conexión podría ser nula | la sentencia SQL esta mal\");\n }\n return asesor;\n }", "public interface IdeaCommentDao extends GenericDao<IdeaComment, Long>{\n\n\tList<IdeaComment> findIdeaCommentList(String ideaId);\n\n}", "public interface ClothDao {\n /**\n * 判断衣服Id是否存在\n * @param id\n * @return boolean\n */\n boolean isClothIdExists(int id);\n /**\n * 返回图片\n * @param clothId\n * @return Clothinfostring\n */\n String getClothById(int clothId);\n /**\n * 返回图片\n * @param none\n * @return Cloth Ids\n */\n String getAllCloth();\n\n}", "public interface ExamineDao extends CrudRepository<Examine,Integer>{\n public Examine findByCodeeAndIdtemplate(String codee, int idtemplate);\n public List<Examine> findByIdtemplate(int idtemplate);\n public List<Examine> findByCodee(String codee);\n}", "public static void main(String [] args){\n\t\t\r\n\t\tEstadoDAO dao = new EstadoDAO();\r\n\t//\tdao.salvar(estado);\r\n\t\tList<Estado> estados= dao.list();\r\n\t\t \r\n\t\t for(Estado est: estados){\r\n\t\t System.out.println(est.getEstado());\r\n\t\t \r\n\t\t\t\t\r\n\r\n\t\t \r\n\t\t // CidadeDAO dao = new CidadeDAO();\r\n\t\t // cidades = dao.buscartudo();\r\n\t\t // for(Cidade cid: cidades){\r\n\t\t // System.out.println(cid.getNome_cidade());\r\n\t\t }\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t}", "@Repository\npublic interface WeatherAqiDao {\n /**\n * 根据参数查询AQI\n * @param selParams\n * @return\n */\n List<WeatherAQI> selectAqis(HashMap<String, Object> selParams);\n\n /**\n * 入库AQI\n * @param weatherAQI\n */\n void insert(WeatherAQI weatherAQI);\n\n /**\n * 更新AQI\n * @param weatherAQI\n */\n void update(WeatherAQI weatherAQI);\n\n /**\n * 根据id查询空气质量\n * @param params\n * @return\n */\n WeatherAQI selectById(Map<String, Object> params);\n}", "UserDao getUserDao();", "public interface IEjsinoDao {\n\n public List<EjsinoCityInfo> getCityInfo();\n\n /**\n * 记录e车险订单 根据业务场景因此业务量少,做使用一个表做记录即可\n * @param ejsinoFormModel\n * @return\n */\n public int insertEjsinoInfo(EjsinoFormModel ejsinoFormModel);\n\n /**\n * 完善e车险订单信息\n * @param ejsinoFormModel\n * @return\n */\n public int updateEjsinoInfo(EjsinoFormModel ejsinoFormModel);\n\n /**\n * 判断交易号是否存在\n * @param outerno\n * @return\n */\n public int getEjsinoCountByOuterno(String outerno);\n}", "public interface IMAE1007DAO extends IGenericDao<MAE1007> {\n\n\tMAE1007 findDisplayByDefault(Boolean defaul);\n\n\tList<MAE1007> findDisplayByUsed(Boolean isused);\n}", "public interface IUserParserDao extends IBaseDao<UserParserRecord>{\n List<UserParserRecord> queryByFileNameAndUserSign(String fileName, String userSign);\n\n List<UserParserRecord> queryByUserSignAndStatus(String userName,Integer status);\n}", "protected abstract Dao getDaoIntance(Context context);", "public interface DevmessDao {\n public List<Devmess> selectDevmessByName(@Param(value = \"name\") String name,\n @Param(value = \"startTime\") String startTime,\n @Param(value = \"endTime\") String endTime);\n\n\n public List<Devmess> selectDevmessByPages(@Param(value = \"pretotal\") String pretotal,\n @Param(value = \"len\") String len);\n\n public int modifyDevmessById(@Param(value = \"id\") String id,\n @Param(value = \"name\")String name,\n @Param(value = \"value\")String value,\n @Param(value = \"time\")String time,\n @Param(value = \"quality\")String quality);\n\n public Integer getDevmessTotalCount();\n\n public Integer getDevmessFilteredCount(@Param(value = \"sumSqlWhere\") String sumSqlWhere,\n @Param(value = \"search\")String search);\n\n\n public Integer getDevmessTimeFilteredCount(@Param(value = \"startTime\")String startTime,\n @Param(value = \"endTime\")String endTime);\n\n public List<Devmess> getDevmessByConditions(@Param(value = \"start\")String start,\n @Param(value = \"end\")String end,\n @Param(value = \"search\")String search,\n @Param(value = \"orderSql\")String orderSql,\n @Param(value = \"sumSqlWhere\")String sumSqlWhere);\n\n\n public List<Devmess> getDevmessByTimeConditions(@Param(value = \"start\")String start,\n @Param(value = \"end\")String end,\n @Param(value = \"startTime\")String startTime,\n @Param(value = \"endTime\")String endTime,\n @Param(value = \"orderSql\")String orderSql);\n public Devmess selectDevmessMax(@Param(value = \"name\") String name,\n @Param(value = \"startTime\") String startTime,\n @Param(value = \"endTime\") String endTime);\n\n public Devmess selectDevmessMin(@Param(value = \"name\") String name,\n @Param(value = \"startTime\") String startTime,\n @Param(value = \"endTime\") String endTime);\n\n public List<Devmess> getLatestDevmessByDeviceId(@Param(value = \"deviceId\")String deviceId);\n\n public Devmess getLatestDevmessByName(@Param(value = \"name\")String name);\n\n public int addDevmessItem(@Param(value = \"name\")String name,\n @Param(value = \"value\")String value,\n @Param(value = \"time\")String time,\n @Param(value = \"quality\")String quality);\n}", "public interface TScientificEntityDao {\n\n public Page<TScientificEntity> listRecordsByCondition(Page page);\n public List<TScientificEntity> getLists(Page.FilterModel condition);\n\n public String getNumber(int uer_id);\n\n}", "public interface RecuPromotionAccordeeDAO {\n \n public RecuPromotionAccordee findById(int id);\n\t\t\n\t\tpublic void add(RecuPromotionAccordee recuPromotionAccordee);\n\t\t\n\t\tpublic RecuPromotionAccordee edit(RecuPromotionAccordee e);\n\t\t\n\t\tpublic void delete(RecuPromotionAccordee e); \n\t\t\n\t\tpublic List<RecuPromotionAccordee> findAll();\n \n public List<RecuPromotionAccordee> findByEtat (String etat);\n}", "public interface ShowingDao extends BaseDao<Showing> {\n\n public List<Showing> findShowingByCinemaId(String id);\n}", "public interface OrganismDao extends IntactBaseDao<IntactOrganism>{\n\n public IntactOrganism getByAc(String ac);\n\n public IntactOrganism getByShortName(String value);\n\n public Collection<IntactOrganism> getByShortNameLike(String value);\n\n public Collection<IntactOrganism> getByScientificName(String value);\n\n public Collection<IntactOrganism> getByScientificNameLike(String value);\n\n public Collection<IntactOrganism> getByTaxid(int taxid);\n\n /**\n * Biosources with only a taxid, no celltype or tissue\n * @param taxid Organism taxon identifier\n * @return the IntAct organism representation\n */\n public IntactOrganism getByTaxidOnly(int taxid);\n\n public Collection<IntactOrganism> getByAliasName(String name);\n\n public Collection<IntactOrganism> getByAliasTypeAndName(String typeName, String typeMI, String name);\n\n public Collection<IntactOrganism> getByAliasNameLike(String name);\n\n public Collection<IntactOrganism> getByAliasTypeAndNameLike(String typeName, String typeMI, String name);\n\n public Collection<IntactOrganism> getByCellTypeAc(String cellAc);\n\n public Collection<IntactOrganism> getByTissueAc(String tissueAc);\n\n public Collection<IntactOrganism> getByCellTypeName(String cellName);\n\n public Collection<IntactOrganism> getByTissueName(String tissueName);\n\n public Collection<IntactOrganism> getByCellTypeNameLike(String cellName);\n\n public Collection<IntactOrganism> getByTissueNameLike(String tissueName);\n\n public Collection<Alias> getAliasesForOrganism(String ac);\n\n public Collection<IntactOrganism> getAllOrganisms(boolean allowOrganismWithCellType, boolean allowOrganismWithTissue);\n\n public int countAliasesForOrganism(String ac);\n}", "Tablero consultarTablero();", "public interface RightInfoDAO extends BaseDAO {\n /** The name of the DAO */\n public static final String NAME = \"RightInfoDAO\";\n\n\t/**\n\t * Insert one <tt>RightInfoDTO</tt> object to DB table <tt>azdai_right_info</tt>, return primary key\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>insert into azdai_right_info(code,title,memo,gmt_create,gmt_modify) values (?, ?, ?, ?, ?)</tt>\n\t *\n\t *\t@param rightInfo\n\t *\t@return String\n\t *\t@throws DataAccessException\n\t */\t \n public String insert(RightInfoDTO rightInfo) throws DataAccessException;\n\n\t/**\n\t * Update DB table <tt>azdai_right_info</tt>.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>update azdai_right_info set title=?, memo=?, gmt_modify='NOW' where (code = ?)</tt>\n\t *\n\t *\t@param rightInfo\n\t *\t@return int\n\t *\t@throws DataAccessException\n\t */\t \n public int update(RightInfoDTO rightInfo) throws DataAccessException;\n\n\t/**\n\t * Query DB table <tt>azdai_right_info</tt> for records.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>select * from azdai_right_info where (code = ?)</tt>\n\t *\n\t *\t@param code\n\t *\t@return RightInfoDTO\n\t *\t@throws DataAccessException\n\t */\t \n public RightInfoDTO find(String code) throws DataAccessException;\n\n\t/**\n\t * Query DB table <tt>azdai_right_info</tt> for records.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>select * from azdai_right_info order by code ASC</tt>\n\t *\n\t *\t@return List<RightInfoDTO>\n\t *\t@throws DataAccessException\n\t */\t \n public List<RightInfoDTO> findAll() throws DataAccessException;\n\n\t/**\n\t * Query DB table <tt>azdai_right_info</tt> for records.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>select * from azdai_right_info order by code ASC</tt>\n\t *\n\t *\t@param userNo\n\t *\t@return List<RightInfoDTO>\n\t *\t@throws DataAccessException\n\t */\t \n public List<RightInfoDTO> findUserRights(String userNo) throws DataAccessException;\n\n\t/**\n\t * Delete records from DB table <tt>azdai_right_info</tt>.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>delete from azdai_right_info where (code = ?)</tt>\n\t *\n\t *\t@param code\n\t *\t@return int\n\t *\t@throws DataAccessException\n\t */\t \n public int delete(String code) throws DataAccessException;\n\n}", "public interface PreguntaDao {\n\n\t/** Devuelve las preguntas mas recientes, ordenadas desde la mas reciente hacia la mas antigua.\n\t * @param page La pagina de preguntas (comienza de la 1)\n\t * @param pageSize El numero de resultados a devolver por pagina. */\n\tpublic List<Pregunta> getPreguntasRecientes(int page, int pageSize);\n\n\t/** Devuelve las preguntas hechas por el usuario indicado. */\n\tpublic List<Pregunta> getPreguntasUsuario(Usuario user);\n\n\t/** Devuelve las preguntas que contienen el tag especificado. */\n\tpublic List<Pregunta> getPreguntasConTag(TagPregunta tag);\n\n\t/** Devuelve todas las preguntas que tengan al menos uno de los tags especificados. */\n\tpublic List<Pregunta> getPreguntasConTags(Set<TagPregunta> tags);\n\n\t/** Devuelve las preguntas que contienen el tag especificado. */\n\tpublic List<Pregunta> getPreguntasConTag(String tag);\n\n\t/** Devuelve los tags mas utilizados en preguntas.\n\t * @param limit El numero maximo de tags a devolver. */\n\tpublic List<TagPregunta> getTagsPopulares(int limit);\n\n\t/** Devuelve la pregunta con el id especificado. */\n\tpublic Pregunta getPregunta(int id);\n\n\t/** Devuelve las respuestas a la pregunta especificada.\n\t * @param pageSize El numero maximo de preguntas a devolver.\n\t * @param page El numero de pagina a devolver (la primera pagina es 1)\n\t * @param crono Indica si se deben ordenar las respuestas en orden cronologico, en vez de por votos\n\t * (default es por votos). */\n\tpublic List<Respuesta> getRespuestas(Pregunta q, int pageSize, int page, boolean crono);\n\n\t/** Devuelve la lista de preguntas con mas votos positivos.\n\t * @param limit El numero maximo de preguntas a devolver. */\n\tpublic List<Pregunta> getPreguntasMasVotadas(int limit);\n\n\t/** Devuelve la lista de preguntas que no tienen ni una sola respuesta. */\n\tpublic List<Pregunta> getPreguntasSinResponder(int limit);\n\n\t/** Devuelve la lista de preguntas cuyo autor no ha elegido una respuesta. */\n\tpublic List<Pregunta> getPreguntasSinResolver(int limit);\n\n\t/** Registra un voto que un usuario hace a una pregunta.\n\t * @param user El usuario que hace el voto\n\t * @param pregunta La pregunta a la cual se aplica el voto\n\t * @param up Indica si el voto es positivo (true) o negativo (false).\n\t * @throws PrivilegioInsuficienteException si el usuario no tiene reputacion suficiente para dar un voto negativo. */\n\tpublic VotoPregunta vota(Usuario user, Pregunta pregunta, boolean up) throws PrivilegioInsuficienteException;\n\n\t/** Registra un voto que un usuario hace a una respuesta que se hizo a una pregunta.\n\t * @param user El usuario que hace el voto.\n\t * @param resp La respuesta a la cual se aplica el voto.\n\t * @param up Indica si el voto es positivo (true) o negativo (false).\n\t * @throws PrivilegioInsuficienteException si el usuario no tiene reputacion suficiente para dar un voto negativo. */\n\tpublic VotoRespuesta vota(Usuario user, Respuesta resp, boolean up) throws PrivilegioInsuficienteException;\n\n\t/** Busca y devuelve el voto realizado por el usuario indicado a la pregunta especificada, si es que existe. */\n\tpublic VotoPregunta findVoto(Usuario user, Pregunta pregunta);\n\n\t/** Busca y devuelve el voto hecho por el usuario indicado a la respuesta especificada, si es que existe. */\n\tpublic VotoRespuesta findVoto(Usuario user, Respuesta respuesta);\n\n\tpublic void insert(Pregunta p);\n\n\tpublic void update(Pregunta p);\n\n\tpublic void delete(Pregunta p);\n\n\t/** Crea una respuesta con el texto especificado, para la pregunta especificada, por el autor especificado.\n\t * @return La respuesta recien creada. */\n\tpublic Respuesta addRespuesta(String resp, Pregunta p, Usuario autor);\n\n\t/** Agrega un comentario a la pregunta especificada, a nombre del usuario especificado. */\n\tpublic ComentPregunta addComentario(String c, Pregunta p, Usuario autor);\n\n\t/** Agrega un comentario a la respuesta especificada, a nombre del usuario especificado. */\n\tpublic ComentRespuesta addComentario(String c, Respuesta r, Usuario autor);\n\n\t/** Agrega el tag especificado a la pregunta. Primero se busca el tag existente para relacionarlo con la\n\t * pregunta, pero si no existe, se crea uno nuevo. */\n\tpublic void addTag(String tag, Pregunta p);\n\n\t/** Devuelve una lista con tags que contengan el texto parcial especificado. */\n\tpublic List<TagPregunta> findMatchingTags(String parcial);\n\n}", "public interface BookDao {\n //////////////////////小试牛刀///////////////////\n //加载所有图书信息\n public List<Book> bookList()throws Exception;\n //按ID查询图书信息\n public Book byIdSelect(int id) throws IOException;\n //添加图书\n public int Add(Book book) throws IOException;\n //删除图书\n public int Del(int id)throws IOException;\n //修改图书\n public int Up(Book book)throws Exception;\n //模糊查询 显示图书信息 (单条件)\n public List<Book> LikeBookInfo(@Param(\"bookname\") String name)throws Exception;\n //多条件查询 显示图书信息\n public List<Book> ByNeedSelect( Book book)throws Exception;\n //多条件查询2\n public List<Book> LikeBookName(Map<String,Object> map)throws Exception;\n //查询图书的分类和作者 在Book实体类中加上分类名称属性- private String catename;\n public List<Book> SelectBookTypeAndAuthor()throws Exception;\n //按图书ID查询图书的分类和作者 重复练习加强记忆\n public Book ByIdSelectBookTypeAndAuthor(@Param(\"bookid\") int id)throws Exception;\n //按图书类型ID获取该类型图书信息\n public List<Book> ByTypeIdGetBookInfo(@Param(\"bookcategory\")int id)throws Exception;\n //按图书类型ID获取该类型图书信息2\n public List<Book> ByTypeIdGetBookInfo2(@Param(\"bookcategory\")int id)throws Exception;\n //智能标签if\n public List<Book> BookListByIf(Book book)throws Exception;\n //智能标签choose\n public List<Book> BookListChoose(int[] ints)throws Exception;\n //智能标签List\n public List<Book> BookListList(List<Book> list)throws Exception;\n\n\n\n\n\n\n}", "public interface VedioDao {\n void addVedio(Vedio vedio);\n\n void deleteVedio(Vedio news);\n\n int findCountVedioByCondition(int typeId, String vedioKey);\n\n List<Vedio> findVedioByCondition(int begin, int pageCount, int typeId, String vedioKey);\n\n void deleteMoreVedio(String[] checkVedioIDs);\n \n Vedio find(int vedio_id);\n}", "@Dao\npublic interface FSalesmanDao {\n /**\n * @param fSalesman\n * Harus Menggunakan\n * .allowMainThreadQueries() pada Configurasi database utama agar tidak perlu menggunakan AsynT\n */\n @Insert\n void insert(FSalesman fSalesman);\n @Update\n void update(FSalesman fSalesman);\n @Delete\n void delete(FSalesman fSalesman);\n\n\n @Query(\"DELETE FROM fSalesman\")\n void deleteAllFSalesman();\n\n @Query(\"SELECT * FROM fSalesman \")\n LiveData<List<FSalesman>> getAllFSalesmanLive();\n\n @Query(\"SELECT * FROM fSalesman \")\n List<FSalesman> getAllFSalesman();\n\n\n @Query(\"SELECT * FROM fSalesman WHERE id = :id \")\n List<FSalesman> getAllById(int id);\n\n @Query(\"SELECT * FROM fSalesman WHERE fdivisionBean = :id \")\n List<FSalesman> getAllByDivision(int id);\n\n}", "public EntityAisle getByMatricule(int matricule ){\n\n\n DatabaseHelper databaseHelper = DatabaseHelper.getInstance(this.mExecutionContext);\n SQLiteDatabase sqLiteDatabase = databaseHelper.getReadableDatabase();\n\n EntityAisle result = null;\n\n Cursor cursor = null;\n try {\n\n cursor = sqLiteDatabase.query(ConfigDAO.TABLE_AISLE, null, ConfigDAO.COLUMN_RAYON_ID +\" = \" + matricule , null, null, null, null, null);\n\n /**\n // If you want to execute raw query then uncomment below 2 lines. And comment out above line.\n\n String SELECT_QUERY = String.format(\"SELECT %s, %s, %s, %s, %s FROM %s\", Config.COLUMN_Employee_ID, Config.COLUMN_Employee_NAME, Config.COLUMN_Employee_REGISTRATION, Config.COLUMN_Employee_EMAIL, Config.COLUMN_Employee_PHONE, Config.TABLE_Employee);\n cursor = sqLiteDatabase.rawQuery(SELECT_QUERY, null);\n */\n\n if(cursor!=null)\n if(cursor.moveToFirst()){\n List<EntityAisle> AisleList = new ArrayList<>();\n do {\n int id = cursor.getInt(cursor.getColumnIndex(ConfigDAO.COLUMN_RAYON_ID));\n String name = cursor.getString(cursor.getColumnIndex(ConfigDAO.COLUMN_RAYON_NAME));\n\n\n\n AisleList.add(new EntityAisle(id, name));\n } while (cursor.moveToNext());\n result = AisleList.get(0);\n return result;\n }\n } catch (Exception e){\n Log.i(TAG, \"getAllAisle: \"+e.getMessage());\n Toast.makeText(this.mExecutionContext, \"Operation failed\", Toast.LENGTH_SHORT).show();\n } finally {\n if(cursor!=null)\n cursor.close();\n sqLiteDatabase.close();\n }\n\n return result;\n }", "public interface AdminDao extends BaseDao{\n\n /**\n * 根据用户名查询该用户信息\n * @param admin\n * @return\n */\n public Admin findAdminByName(Admin admin);\n}", "public Reporteador cargarDetalle(int idReporte)\r\n/* 197: */ {\r\n/* 198:214 */ return this.reporteadorDao.cargarDetalle(idReporte);\r\n/* 199: */ }", "public interface PhieuNhapDao extends GenericDao<PhieuNhap, Integer>{\n}", "@Repository\npublic interface UserDao {\n int getuid(String user_name);\n void addqiandao(qiandao qiandao);\n List<Role> getqx(String user_name);\n List<qiandao> gety(String user_name);\n List<qiandao> getj();\n List<qiandao> getall();\n Timestamp getoldtime(int uid);\n void delete1(int qid);\n\n\n}", "public interface DotaMaxDAO {\n\n\n /**\n * 将hero实例存储到数据库。\n */\n void insertHeroes(List<Heroes> heroList);\n\n /**\n * 将Item实例存储到数据库。\n */\n void insertItems(List<Items> itemsList);\n\n\n /**\n * 加载英雄列表\n * @return\n */\n Heroes getHeroes(int id);\n\n\n\n\n\n\n void insertMatch(MatchDetails match);\n\n /**\n * 加载数据库里已有的数据\n * @param id\n * @return\n */\n MatchDetails getMatch(long id);\n\n /**\n * 加载用户的数据\n * @param account_id\n * @return\n */\n List<MatchDetails> getMatchByAccountId(long account_id);\n\n\n String getItemsNameById(String item_id);\n\n\n\n /**\n * 添加到User表\n */\n boolean insertUser(User user);\n\n /**\n * 从User表读取所有的用户\n */\n List<Long> getUser();\n\n\n\n}", "@Local\npublic interface CobranzaDaoLocal extends GenericDAOLocal<String,Cobranza> {\n\t\n\tString generarNumeroOperacion(Integer anho) throws Exception;\n\t\n\t/**\n\t * Generar id Cobranza.\n\t *\n\t * @param Cobranza el cuota concepto\n\t * @return the long\n\t * @throws Exception the exception\n\t */\n\tString generarIdCobranza(String idAnhoSemestre) throws Exception;\n\t\n\t/**\n\t * Listar control pago.\n\t *\n\t * @param Cobranza el control pagoDTO\n\t * @return the list\n\t * @throws Exception the exception\n\t */\n\tList<Cobranza> listarCobranza(CobranzaDTO cobranza) throws Exception;\n\t\n\t/**\n\t * contar lista control pago.\n\t *\n\t * @param Cobranza el control pago\n\t * @return the list\n\t * @throws Exception the exception\n\t */\n\tint contarListarCobranza(CobranzaDTO cobranza);\n\t/**\n\t * Generar id Cobranza.\n\t *\n\t * @return the String\n\t * @throws Exception the exception\n\t */\n\tString generarIdCobranza() throws Exception;\n\t\t\n\t\n\tCobranza findAlumnoByCobranza(String idDetCobranza) throws Exception ;\n\t\n\tBigDecimal contarMontoTotalCobranza(String userName,Date fecha) ;\n\t\n\tList<IngresoVoDTO> listarIngresos(IngresoVoDTO filtro) throws Exception;\n}", "public void obtenerTipificacionesCliente(Participante cliente)\n throws MareException {\n \n UtilidadesLog.info(\" DAOSolicitudes.obtenerTipificacionesCliente(Par\"\n +\"ticipante cliente):Entrada\");\n BelcorpService bs;\n RecordSet respuesta;\n String codigoError;\n StringBuffer query = new StringBuffer();\n\n if (cliente.getOidCliente() == null) {\n cliente.setTipificacionCliente(null);\n if(log.isDebugEnabled()) {//sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"---- NULO : \");\n UtilidadesLog.debug(\"---- cliente : \" + cliente.getOidCliente());\n } \n } else {\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 query.append(\" SELECT CLIE_OID_CLIE, \");\n query.append(\" CLAS_OID_CLAS, \");\n query.append(\" SBTI_OID_SUBT_CLIE, \");\n query.append(\" TCCL_OID_TIPO_CLASI, \");\n query.append(\" TICL_OID_TIPO_CLIE \");\n query.append(\" FROM V_MAE_TIPIF_CLIEN \");\n query.append(\" WHERE CLIE_OID_CLIE = \" + cliente\n .getOidCliente());\n respuesta = bs.dbService.executeStaticQuery(query.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"---- TIPIF : \" + 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 cliente.setTipificacionCliente(null);\n } else {\n TipificacionCliente[] tipificaciones = new TipificacionCliente[\n respuesta.getRowCount()];\n\n for (int i = 0; i < respuesta.getRowCount(); i++) {\n tipificaciones[i] = new TipificacionCliente();\n\n {\n BigDecimal oidClasificacionCliente = (BigDecimal) \n respuesta.getValueAt(i, \"CLAS_OID_CLAS\");\n tipificaciones[i].setOidClasificacionCliente((\n oidClasificacionCliente != null) ? new Long(\n oidClasificacionCliente.longValue()) : null);\n }\n\n tipificaciones[i].setOidSubTipoCliente(new Long((\n (BigDecimal) respuesta\n .getValueAt(i, \"SBTI_OID_SUBT_CLIE\")).longValue()));\n\n {\n BigDecimal oidTipoClasificacionCliente = (BigDecimal) \n respuesta.getValueAt(i, \"TCCL_OID_TIPO_CLASI\");\n tipificaciones[i].setOidTipoClasificacionCliente(\n (oidTipoClasificacionCliente != null)? new Long(\n oidTipoClasificacionCliente.longValue()) \n : null);\n }\n\n tipificaciones[i].setOidTipoCliente(new Long(((BigDecimal)\n respuesta.getValueAt(i, \"TICL_OID_TIPO_CLIE\"))\n .longValue()));\n }\n\n cliente.setTipificacionCliente(tipificaciones);\n }\n }\n UtilidadesLog.info(\" DAOSolicitudes.obtenerTipificacionesCliente(Par\"\n +\"ticipante cliente):Salida\");\n }", "public interface DemoDao {\r\n /**\r\n * 保存用户\r\n * @param user\r\n * @throws Exception\r\n */\r\n void insert(DemoUser user)throws Exception;\r\n\r\n /**\r\n * 根据用户Id查询用户信息\r\n * @param userId\r\n * @return\r\n * @throws Exception\r\n */\r\n DemoUser selectById(Integer userId)throws Exception;\r\n\r\n /**\r\n * 更新用户信息\r\n * @param demoUser\r\n * @throws Exception\r\n */\r\n void updateById(DemoUser demoUser)throws Exception;\r\n\r\n\r\n /**\r\n * 根据Id删除用户信息\r\n * @param userId\r\n * @throws Exception\r\n */\r\n void deleteById(Integer userId)throws Exception;\r\n\r\n /**\r\n * 根据用户信息查询用户列表\r\n * 可以传一个对象,或是多个参数\r\n * @param userName\r\n * @param age\r\n * @return\r\n * @throws Exception\r\n */\r\n List<DemoUser> selectList(@Param(\"userName\")String userName, @Param(\"age\")Integer age)throws Exception;\r\n}", "public Coche consultarUno(int id) {\n Coche coche =cochedao.consultarUno(id);\r\n \r\n return coche;\r\n }", "public interface UserDao extends BaseDao<User, Long> {\n\n User findByJaccountUid(String jaccountUid);\n\n User findByJaccountId(String jaccountId);\n\n User findByJaccountChinesename(String jaccountChinesename);\n\n User findByUsername(String username);\n\n User findById(Long id);\n\n List<User> findByRole(User.Role role);\n\n}", "@Dao\npublic interface IngredienteDao extends BaseDao<Ingrediente> {\n\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n long insert(Ingrediente entity);\n\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n long[] insertAll(List<Ingrediente> entities);\n\n @Update(onConflict = OnConflictStrategy.REPLACE)\n void update(Ingrediente entity);\n\n @Delete\n void delete(Ingrediente entity);\n\n @Query(\"SELECT * FROM Ingrediente\")\n List<Ingrediente> getAll();\n\n @Query(\"SELECT * FROM Ingrediente WHERE deletedAt IS NULL AND localChange = 1\")\n List<Ingrediente> getLocallyChanged();\n\n @Query(\"SELECT Count(*) FROM Ingrediente WHERE deletedAt IS NULL\")\n int getCountAll();\n\n @Query(\"SELECT Count(*) FROM Ingrediente WHERE deletedAt IS NULL AND localChange = 1\")\n int getCountChanged();\n\n @Query(\"SELECT * FROM Ingrediente WHERE id = :id AND deletedAt IS NULL\")\n Ingrediente getById(int id);\n\n @Query(\"DELETE FROM Ingrediente WHERE id = :id\")\n void deleteById(int id);\n}", "public interface UserDao {\n public List<User> findAll();\n //新增\n public void insert(User user);\n //删除\n public void deleteById(Integer id);\n //修改\n public void update(User user);\n //根据id查询\n public User findById(Integer id);\n //模糊查询\n public List<User> findByName(String name);\n\n //根据username和sex查询\n public List<User> findByUsernameAdnSex(User user);\n\n //测试foreach标签\n public List<User> findByIds(User user);\n\n //测试foreach标签 in\n public List<User> findByIds1(User user);\n\n //一对多关联查询\n public List<User> findAlls();\n\n //多对多查询\n public List<User> findManyToMany();\n\n //一对多延迟加载\n public List<User> findAll1();\n\n //根据id查询测试2及缓存使用\n public User findById1(Integer id);\n}", "public String borra(Cliente cliente) {\n clienteDAO.borra(cliente.getId());\n return \"listado\";\n }", "public void findbyid() throws Exception {\n try {\n Ume_unidade_medidaDAO ume_unidade_medidaDAO = getUme_unidade_medidaDAO();\n List<Ume_unidade_medidaT> listTemp = ume_unidade_medidaDAO.getByPK( ume_unidade_medidaT);\t \n\n ume_unidade_medidaT= listTemp.size()>0?listTemp.get(0):new Ume_unidade_medidaT();\n \n } catch (Exception e) {\n e.printStackTrace();\n setMsg(\"Falha ao realizar consulta!\");\t\n } finally {\n\tclose();\n }\n }", "public interface ActivityReservationDao {\n List<ActivityReservationBo> query(Map<String,Object> map);\n int querycount();\n int queryListcount(Map<String,Object> map);\n void updatestatus(ActivityReservationBo activityReservationBo);\n ActivityReservationBo queryById(Integer id);\n\n}", "public interface InterfaceDao<T>{\n //int COUNT_ROWS = 8;\n /**\n *\n * Чья реализауия.\n * @return\n */\n String WhoIsIt();\n\n /**\n *\n * @param El Добавление обьекта <b>EL<b>\n * @throws SQLException\n */\n void insert(T El) throws SQLException;\n\n /**\n *\n * @param El Обновить обьект <b>EL<b>\n * @throws SQLException\n */\n void update(T El) throws SQLException;\n\n /**\n * Получить обьекта по id\n * @param id идентификатор\n * @return возвращает обьект заданного типа\n * @throws SQLException\n */\n\n /**\n * Получить список обьектов\n * @return список\n * @throws SQLException\n */\n List getAll(Class <T> clazz) throws SQLException;\n\n /**\n * Удалить элемент из БД\n * @param El\n * @throws SQLException\n */\n void delete(T El) throws SQLException;\n\n long getCount(Class<T> clazz) throws SQLException;\n\n List getSubList(int position, int count, Class<T> clazz) throws SQLException;\n}", "@Override\n\t@Transactional\n\tpublic List<Cliente> getClienteByAnyWord(String nombre, Long idcliente, Long idGrupo, Long idPunto) {\n\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\tList<Cliente> cliente =getCurrentSession().createQuery(\"select clientes from Grupo g join g.clientes clientes where clientes.nombre like '\"+nombre+\"%\"+\"'\"+\"and g.id=\"+idGrupo+\" and clientes.activo=1\").list();\n\n\t\t\t\treturn cliente;\n\t}", "D getDao();", "public interface AreaDao extends BaseDao<Area,String>\n{\n\n Area findByAreaId(String id);\n}", "public interface IUserBaseInfoDao<UserBaseInfo> extends ICommomBaseDao<UserBaseInfo>{\n\n public UserBaseInfo findOneByUserId(int userId);\n public UserBaseInfo findOneByGldUserId(String gldUserId);\n public UserBaseInfo findAdminOneByCompanyId(Integer comapnyId);\n /**\n * companyId对应所有的用户(未离职)\n * @param companyId\n * @return\n **/\n public List<UserBaseInfo> findListByCompanyId(int companyId);\n\n /**\n * companyId对应所有的用户(包含已离职)\n * @param companyId\n * @return\n **/\n public List<UserBaseInfo> findAllListByCompanyId(int companyId);\n\n /**\n * \tgldUsrId和CompanyID查找用户(未离职)\n * @param gldUserId\n * @param companyId\n * @return\n **/\n public UserBaseInfo findOneByCompanyId(String gldUserId,int companyId);\n\n /**\n * 通过广联云id集合返回UserBaseInfo集合\n * @param gldUserIdList\n * @return\n **/\n public List<UserBaseInfo> getListByGldUserId(List<String> gldUserIdList);\n\n /**\n *\tgldUsrId和CompanyID查找用户(未包含已离职)\n * @param gldUserId\n * @param companyId\n * @return\n **/\n public UserBaseInfo nfindOneByCompanyId(String gldUserId,int companyId);\n /**\n * \tcreator和CompanyID查找用户(未离职)\n * @param creator\n * @param companyId\n * @return\n **/\n public UserBaseInfo findOneByCompanyId(int creator,int companyId);\n //逻辑删除用户\n /**\n * 通过UserID逻辑删除用户\n * @param userId\n **/\n public boolean LogicDelUser(int userId);\n /**\n * 通过UserID逻辑还原用户\n * @param userId\n **/\n public boolean RecoverDelUser(int userId);\n\n /**\n * companyId对应所有的离职用户\n * @param companyId\n * @return\n **/\n public List<UserBaseInfo> getDelUserByCompanyId(int companyId);\n /**\n * 通过UserType和CompanyID查找用户(未离职)\n * @param userType\n * @param companyId\n * @return\n **/\n public List<UserBaseInfo> findOneByUserType(int userType,int companyId);\n /**\n * \t通过gldUserIds集合和CompanyID查找用户(未离职)\n * @param gldUserIds\n * @param companyId\n * @return\n **/\n public List<UserBaseInfo> findListByGldUserIds(List<String> gldUserIds,int companyId);\n /**\n * \t通过creator集合和CompanyID查找用户(未离职)\n * @param userIds\n * @return\n **/\n public List<UserBaseInfo> findListByUserIds(List<Integer> userIds);\n /**\n * \t通过roleId集合和CompanyID查找用户(未离职)\n * @param companyId\n * @param roleId\n * @return\n **/\n public List<UserBaseInfo> getListByRoleId(int companyId,int roleId);\n\n /**\n * 三表关联查库\n * @param companyId\n * @param roleId\n * @return\n */\n public List<User> getUsersByRoleId(int companyId, int roleId);\n //查询离职用户\n /**\n * \t通过companyId集合和gldUserId查找离职用户\n * @param companyId\n * @param gldUserId\n * @return\n **/\n public UserBaseInfo getRemoveUser(int companyId,String gldUserId);\n\n /**\n * 通过userId查找离职用户\n * @param userId\n * @return\n **/\n public UserBaseInfo getRemoveUserById(int userId);\n\n public List<Map<String, Object>> getUserNamesByUserIdAndCompanyId(Integer companyid, Set<Integer> userIds);\n\n public List<HashMap<String, Object>> getUsersWithRole(Integer companyID);\n\n /**\n * 通过companyId查找公司下所有用户\n * @param companyID\n * @return\n */\n public List<User> findUserListByCompanyId(Integer companyID);\n\n /**\n * 通过userId查找用户信息\n * @param userId\n * @return\n */\n public User findOneUserByUserId(int userId);\n\n /**\n * 通过companyId查找admin用户信息\n * @param comapnyId\n * @return\n */\n public User findAdminOneUserByCompanyId(Integer comapnyId);\n\n /**\n * 根据userId查找离职用户信息\n * @param userId\n * @return\n */\n public User getRemoveUserInfoById(int userId);\n\n /**\n * 根据account查找用户信息\n * @param account\n * @return\n */\n public User findOneUserByAccount(String account);\n\n /**\n *\tgldUsrId和CompanyID查找用户(未包含已离职)\n * @param gldUserId\n * @param companyId\n * @return\n **/\n public User nfindOneUserByCompanyId(String gldUserId,int companyId);\n\n /**\n *\n * @param gldUserId\n * @return\n */\n public User findOneUserByGldUserId(String gldUserId);\n\n /**\n * \t通过companyId集合和gldUserId查找离职用户\n * @param companyId\n * @param gldUserId\n * @return\n **/\n public User getRemoveUserInfo(int companyId,String gldUserId);\n\n /**\n * \tgldUsrId和CompanyID查找用户(未离职)\n * @param gldUserId\n * @param companyId\n * @return\n **/\n public User findOneUserByCompanyId(String gldUserId,int companyId);\n\n\n\n}", "public interface ResourceDAO {\n //通过资源信息获取id\n @Select(\" SELECT r.resourceId \" +\n \" FROM btl_resource r \" +\n \" WHERE r.resourceURL = #{resourceURL} \" +\n \" AND r.resourceMethodType = #{resourceMethodType} \" +\n \" AND r.systemId = #{systemId} \")\n public List<Long> findIdByResourceInfo(@Param(\"resourceURL\") String resourceURL,\n @Param(\"resourceMethodType\") int resourceMethodType,\n @Param(\"systemId\") int systemId) ;\n\n //通过资源信息和可用性获取可用id\n @Select(\" SELECT r.resourceId \" +\n \" FROM btl_resource r \" +\n \" WHERE r.resourceURL = #{resourceURL} \" +\n \" AND r.resourceMethodType = #{resourceMethodType} \" +\n \" AND r.systemId = #{systemId} \" +\n \" AND r.state = #{state} \")\n public List<Long> findIdByResourceInfoAndState(@Param(\"resourceURL\") String resourceURL,\n @Param(\"resourceMethodType\") int resourceMethodType,\n @Param(\"systemId\") int systemId,\n @Param(\"state\") int state) ;\n\n //通过ids获取资源记录\n @Select({\"<script>\" ,\n \" SELECT * \",\n \" FROM btl_resource r \",\n \" WHERE r.resourceId IN \",\n \"<foreach item='id' index='index' collection='ids' open='(' separator=',' close=')'>\",\n \"#{id}\",\n \"</foreach>\",\n \"</script>\"})\n public List<ResourceRecord> findByIds(@Param(\"ids\") List<Long> ids) ;\n\n //通过ids获取可用的资源记录\n @Select({\"<script>\" ,\n \" SELECT * \",\n \" FROM btl_resource r \",\n \" WHERE r.state = #{state} \",\n \" AND r.resourceId IN \",\n \"<foreach item='id' index='index' collection='ids' open='(' separator=',' close=')'>\",\n \"#{id}\",\n \"</foreach>\",\n \"</script>\"})\n public List<ResourceRecord> findByIdsAndState(@Param(\"ids\") List<Long> ids , @Param(\"state\") int state) ;\n\n //通过ids获取资源信息\n @Select({\"<script>\" ,\n \" SELECT r.resourceId , r.resourceURL , r.resourceMethodType , r.systemId \",\n \" FROM btl_resource r \",\n \" WHERE r.resourceId IN \",\n \"<foreach item='id' index='index' collection='ids' open='(' separator=',' close=')'>\",\n \"#{id}\",\n \"</foreach>\",\n \"</script>\"})\n public List<ResourceRecord> findIdsWithResourceInfosByIds(@Param(\"ids\") List<Long> ids) ;\n\n //通过ids获取资源名称\n @Select({\"<script>\" ,\n \" SELECT r.resourceId , r.resourceName \",\n \" FROM btl_resource r \",\n \" WHERE r.resourceId IN \",\n \"<foreach item='id' index='index' collection='ids' open='(' separator=',' close=')'>\",\n \"#{id}\",\n \"</foreach>\",\n \"</script>\"})\n public List<ResourceRecord> findIdsWithResourceNameByIds(@Param(\"ids\") List<Long> ids) ;\n\n //通过ids获取资源可用信息\n @Select({\"<script>\" ,\n \" SELECT r.resourceId , r.state \",\n \" FROM btl_resource r \",\n \" WHERE r.resourceId IN \",\n \"<foreach item='id' index='index' collection='ids' open='(' separator=',' close=')'>\",\n \"#{id}\",\n \"</foreach>\",\n \"</script>\"})\n public List<ResourceRecord> findIdsWithStateByIds(@Param(\"ids\") List<Long> ids) ;\n\n\n //获取所有处于某种状态下的资源信息\n @Select(\" SELECT r.resourceId , r.resourceURL , r.resourceMethodType , r.systemId \" +\n \" FROM btl_resource r \" +\n \" WHERE r.state = #{state} \")\n public List<ResourceRecord> findIdsWithResourceInfoByState(@Param(\"state\") int state) ;\n\n //通过名字获取资源记录(分页)\n @Select(\" SELECT * \" +\n \" FROM btl_resource r \" +\n \" WHERE r.resourceName LIKE CONCAT('%' , #{name} , '%') \" +\n \" LIMIT ${skip},${size} \")\n public List<ResourceRecord> findByNameInPage(@Param(\"name\") String name,\n @Param(\"skip\") int skip,\n @Param(\"size\") int size);\n //通过名字获取资源数\n @Select(\" SELECT count(1) \" +\n \" FROM btl_resource r \" +\n \" WHERE r.resourceName LIKE CONCAT('%' , #{name} , '%') \")\n long getCountByName(@Param(\"name\") String name);\n\n\n //获取资源树信息\n @Select(\"SELECT r.resourceId , r.resourceName , r.parentId , r.state FROM btl_resource r\")\n public List<ResourceRecord> findAllRoleIdsWithRoleNameAndParentIdAndState() ;\n\n //添加资源\n @Insert(\" INSERT IGNORE INTO btl_resource(createTime , resourceCode , resourceName , resourceURL , resourceMethodType , systemId , state , parentId , resourceMemo) \" +\n \" VALUES(now() , #{re.resourceCode} , #{re.resourceName} , #{re.resourceURL} , #{re.resourceMethodType} , #{re.systemId} , #{re.state} , #{re.parentId} , #{re.resourceMemo}) \")\n public int insertResource(@Param(\"re\") ResourceRecord re);\n\n //删除资源\n @Delete(\"DELETE FROM btl_resource WHERE resourceId=#{resourceId}\")\n public int deleteById(@Param(\"resourceId\") long resourceId);\n\n //更新资源\n @Update(\"UPDATE btl_resource SET \" +\n \" resourceCode = #{re.resourceCode} , \" +\n \" resourceName = #{re.resourceName} , \" +\n \" resourceURL = #{re.resourceURL} , \" +\n \" resourceMethodType = #{re.resourceMethodType} , \" +\n \" systemId = #{re.systemId} , \" +\n \" state = #{re.state} , \" +\n \" parentId = #{re.parentId} , \" +\n \" resourceMemo = #{re.resourceMemo} \" +\n \" WHERE resourceId = #{re.resourceId}\")\n public int updateResource(@Param(\"re\") ResourceRecord re);\n\n}" ]
[ "0.6648181", "0.66174054", "0.65012705", "0.64933175", "0.6490511", "0.6475708", "0.6448742", "0.64361197", "0.638023", "0.63711405", "0.63683236", "0.6358596", "0.6355655", "0.63325006", "0.63053405", "0.6303692", "0.630273", "0.62892175", "0.6271485", "0.6260979", "0.62593013", "0.62509704", "0.62456805", "0.6239896", "0.622966", "0.6204979", "0.62029666", "0.6202898", "0.6202175", "0.6199286", "0.61824274", "0.6179826", "0.6170935", "0.61688197", "0.6160238", "0.61589307", "0.61556274", "0.6152348", "0.6152017", "0.61515707", "0.61376166", "0.61371136", "0.61325264", "0.6127281", "0.61121374", "0.60990447", "0.6095913", "0.6094238", "0.60917574", "0.6090427", "0.608305", "0.6078568", "0.6077237", "0.6074954", "0.6072029", "0.60666955", "0.60577554", "0.6054769", "0.6050912", "0.60492104", "0.60473937", "0.6046323", "0.60437995", "0.60435396", "0.60415167", "0.6040257", "0.6038227", "0.6032089", "0.60255635", "0.6024271", "0.60239923", "0.60172963", "0.6016056", "0.6006627", "0.5993684", "0.59922886", "0.59906924", "0.5989455", "0.598032", "0.5980059", "0.59792364", "0.59777844", "0.5973207", "0.59729344", "0.5971019", "0.59676784", "0.5964273", "0.5958914", "0.5947422", "0.5946996", "0.59460914", "0.59435356", "0.5937667", "0.5924963", "0.59233475", "0.5920656", "0.5919024", "0.5913135", "0.59077775", "0.58994806", "0.5897252" ]
0.0
-1
/AutomezziDao SearchAutomezzi= new AutomezziDao(); String id_automezzo = SearchAutomezzi.Get_id_AutomezzoByTarga(att_automezzo); ClienteDao SearchCliente = new ClienteDao(); String id_cliente = SearchCliente.get_id_cliente_by_nome(att_cliente); AutistaDao SearchAutista = new AutistaDao(); String id_autista = SearchAutista.get_id_autista_by_username(att_autista);
public String GenerateRifiutaAssegnamentoLink(String id_cliente, String id_autista, String id_automezzo,String data){ if(id_autista!=null && id_cliente!=null &&id_automezzo!=null){ return "<a class='rifiuta-link' href='rifiuta-assegnamento?id_automezzo="+id_automezzo+"&id_cliente="+id_cliente+"&id_autista="+id_autista+"&data="+data+"'>Rifiuta</a>"; } return "Non disponibile"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Dao\npublic interface sekolahDAO {\n\n @Query(\"SELECT * FROM Sekolah\")\n List<Sekolah>getAll();\n\n// @Query(\"SELECT * FROM Sekolah WHERE NPSN LIKE :NPSN AND nama_sekolah LIKE :nama_dusun AND bentuk_pendidikan LIKE :bentuk_pendidikan AND status_lembaga LIKE :status_lembaga AND sk_izin_operasional LIKE :sk_izin_operasional AND tanggal_sk_izin_operasional LIKE :tanggal_sk_izin_operasional\")\n// Sekolah findByName(Integer NPSN, String nama_sekolah, String bentuk_pendidikan, String status_lembaga, String sk_izin_operasional, Date tanggal_sk_izin_operasional);\n\n @Query(\"SELECT COUNT (NPSN) FROM Sekolah\")\n int getAllCount();\n\n @Query(\"UPDATE Sekolah SET alamat = :alamat, nama_dusun = :nama_dusun, provinsi = :provinsi, kecamatan = :kecamatan, kabupaten = :kabupaten, nomor_telpon = :nomor_telpon, email = :email\")\n void update(String alamat,String nama_dusun, String provinsi, String kecamatan, String kabupaten, Integer nomor_telpon, String email);\n\n @Insert\n void insertAll(Sekolah sekolah);\n\n @Delete\n public void deleteSekolah(Sekolah NPSN);\n\n @Update\n public void update(Sekolah sekolah);\n\n @Delete\n public void deleteAll(Sekolah user1, Sekolah user2);\n\n\n}", "protected abstract T findDao(UtenteUtenti user, CommessaUtenti commessa);", "public interface ReadDao {\n\n /**\n * 根据手机号码获取用户\n *\n * @param phone\n * @return\n */\n @Select(\"select * from t_user where phone=#{phone}\")\n UserModel getUserByPhone(@Param(\"phone\") String phone);\n\n /**\n * 根据用户名密码获取用户\n *\n * @param phone\n * @return\n */\n @Select(\"select * from t_user where phone=#{phone} and passwd=substr(md5(#{pwd}),9,8)\")\n UserModel getUserByPassword(@Param(\"phone\") String phone, @Param(\"pwd\") String pwd);\n\n /**\n * 根据商品名查询商品\n *\n * @return\n */\n @Select(\"select id goodsid,name,price from t_goods where name like #{name}\")\n List<Commodity> queryCommodity(@Param(\"name\") String name);\n\n /**\n * 根据关键字查询\n *\n * @param keyword\n * @param size\n * @return\n */\n @Select(\"select * from t_goods where name like #{keyword} limit 0,#{size}\")\n public List<Commodity> getCommodityByKeyword(@Param(\"keyword\") String keyword, @Param(\"size\") int size);\n\n\n /**\n * 根据ID获取商品\n *\n * @param id\n * @return\n */\n @Select(\"select * from t_goods where id=#{id}\")\n public Commodity getCommodityById(@Param(\"id\") long id);\n\n /**\n * 查询所有商品类别\n * @return\n */\n @Select(\"select id,category1,category2 from t_goods_category\")\n public List<CommodityCategory> queryCategorys();\n\n /**\n * 查询所有商品\n * @return\n */\n @Select(\"select * from t_goods\")\n public List<Commodity> queryAllCommodityes();\n\n\n /**\n * 根据父级名称获取子级名称\n *\n * @param name\n * @return\n */\n @Select(\"select * from t_goods_category where category1=#{name}\")\n public List<CommodityCategory> getCommodityCategoryByParentName(@Param(\"name\") String name);\n\n /**\n * 获取一级分类名称\n *\n * @return\n */\n @Select(\"select DISTINCT(category1) as category1 from t_goods_category\")\n public List<CommodityCategory> getParentCommodityCateory();\n}", "public interface ProcesoMAEClasificacionClientesDAO extends DAO {\n\n\t/**\n\t * Proceso que realiza la actualizacin de clasificacion de Clientes\n\t * \n\t * @param criteria\n\t */\n\tpublic void executeProcesarClasificacion(Map criteria);\n\n\t/**\n\t * Proceso que realiza la actualizacin de clasificacion LOVE de Clientes\n\t * \n\t * @param criteria\n\t */\n\tpublic void executeProcesarClasificacionLove(Map criteria);\n\n\t/**\n\t * Proceso que realiza la actualizacin de datos de Clientes\n\t * \n\t * @param criteria\n\t */\n\tpublic void executeActualizarDatosClientes(Map criteria);\n\n\t/**Proceso q se encarga de ejecutar las validaciones de MAE\n\t * @param criteria\n\t */\n\tpublic void executeValidacionClientes(Map criteria);\n\n\t/**\n\t * Proceso que realiza la Inactivación de conultoras registradas \n\t * despues de dos capañasde creadas en el maestro\n\t * \n\t * @param criteria\n\t */\n\tpublic void executeInactivarConsultora2campanas(Map criteria);\n}", "public interface XiaoShouContactDao extends EntityObjectDao {\n \n List<XiaoShouContact> findOverviewXiaoShouContact(String keyWords, String userUuid, String startTime, String endTime, String sortBy, String sortWay, String contactStatus, int startPosition, int pageSize);\n\n int findOverviewXiaoShouSize(String keyWords, String userUuid, String startTime, String endTime, String sortBy, String sortWay, String contactStatus);\n\n //查找重复的编号\n boolean findXiaoShouOrderDuplicate(String temp);\n\n //未付账单用户\n List<Object[]> obtainAllCompanyWithOnCreateBillOnLoginUser();\n\n //特定用户所有未付款history\n List<XiaoShouContactRentingFeeHistory> findSpecUserOnCreateBill(String selectCarrierUuid);\n\n /*******************************************扣款历史*******************************************/\n List<XiaoShouContactRentingFeeHistory> findXiaoShouHistory(List<String> historyUuids);\n\n List<XiaoShouContactRentingFeeHistory> obtainXiaoShouHistoryByVehicleNumber(String contactUuid, String vehicleNumber);\n}", "public interface ServicoDao extends EntidadeDao<Servico> {\n Long contarTotalServicos();\n Long contarServicosStatus(StatusServico statusServico);\n @Override\n List<Servico> listar();\n\n List<Servico> listarServicos();\n public List<Servico> listarMeusServicos(Long id);\n public List<Servico> listarServicosEmAberto();\n Long servicoPorSetor(Long id);\n Servico BuscarPorId(Long id);\n void salvarLogServico(LogServico logServico);\n\n public void verificarConlusaoEAtualizar(Long id);\n\n Long meusServicos();\n Long contarPorSetor(Long id);\n List<Object[]> contarDeAteDataPorSetorDESC(LocalDate dtDe, LocalDate dtAte);\n List<Object[]> contarAPartirDePorSetorDESC(LocalDate dtDe);\n List<Object[]> contarAteDataPorSetorDESC(LocalDate dtAte);\n List<Object[]> contarDeAteDataDESC(LocalDate dtDe, LocalDate dtAte);\n List<Servico> filtrarDeAteDataPorSetorDESC(Long id, LocalDate dtDe, LocalDate dtAte);\n List<Servico> filtrarAPartirDePorSetorDESC(Long id, LocalDate dtDe);\n List<Servico> filtrarAteDataPorSetorDESC(Long id, LocalDate dtAte);\n List<Servico> filtrarDeAteDataDESC(LocalDate dtDe, LocalDate dtAte);\n\n List<Servico> filtrarMaisRecentesPorSetor(Long id);\n}", "public Maquina cargarDetalle(int idMaquina)\r\n/* 49: */ {\r\n/* 50:103 */ return this.maquinaDao.cargarDetalle(idMaquina);\r\n/* 51: */ }", "public interface FakturaTekstVDAO extends DAO<FakturaTekstV> {\r\n\t/**\r\n\t * Finner tekster tilhørende faktura\r\n\t * \r\n\t * @param fakturaId\r\n\t * @return tekster\r\n\t */\r\n\tList<FakturaTekstV> findByFakturaId(Integer fakturaId);\r\n}", "public interface IFakturyDao {\n public Firma getFirma(long id);\n public void saveFirma(Firma firma);\n public Stawka_vat getStawka_vat(long id);\n public void saveStawka_vat(Stawka_vat stawka_vat);\n public Faktura getFaktura(long id);\n public void saveFaktura(Faktura faktura);\n public Pozycja getPozycja(long id);\n public void savePozycja(Pozycja pozycja);\n public Wplata getWplata(long id);\n public void saveWplata(Wplata wplata);\n}", "public interface TEndProjectCommentDAO extends BaseDao<TEndProjectComment> {\n //获取一个教师可以评审的结题\n List<TEndProjectComment> findMyReviewEndPros(String teaCode, PageBean pageBean);\n\n int findMyReviewEndProsCount(String teaCode);\n\n List findByEndprojectcommentAdvise(Object endprojectcommentAdvise);\n\n List findByEndprojectcommentContent(Object endprojectcommentContent);\n\n List findByIsdeleted(Object isdeleted);\n}", "public interface SiacTAttoLeggeDao extends Dao<SiacTAttoLegge,Integer> {\n\t\n\t\n\t/**\n\t * Creates the.\n\t *\n\t * @param attoLegge the atto legge\n\t * @return the siac t atto legge\n\t */\n\tSiacTAttoLegge create(SiacTAttoLegge attoLegge);\n\n\t/* (non-Javadoc)\n\t * @see it.csi.siac.siaccommonser.integration.dao.base.Dao#update(java.lang.Object)\n\t */\n\tSiacTAttoLegge update(SiacTAttoLegge attoDiLeggeDB);\n\t\n\t/* (non-Javadoc)\n\t * @see it.csi.siac.siaccommonser.integration.dao.base.Dao#findById(java.lang.Object)\n\t */\n\tSiacTAttoLegge findById (Integer uid);\n\t\n}", "public Cliente findByPrimaryKey(int idCliente) throws ClienteDaoException;", "public interface TipoDao {\r\n\r\n /**\r\n * Inserta un nuevo registro en la tabla Tipos.\r\n */\r\n public TipoPk insert(Tipo dto) throws TipoDaoException;\r\n\r\n /**\r\n * Actualiza un unico registro en la tabla Tipos.\r\n */\r\n public void update(TipoPk pk, Tipo dto) throws TipoDaoException;\r\n\r\n /**\r\n * Elimina un unico registro en la tabla Tipos.\r\n */\r\n public void delete(TipoPk pk) throws TipoDaoException;\r\n\r\n /**\r\n * Retorna un unico registro en la tabla Tipos que conicida con la\r\n * primary-key especificada.\r\n */\r\n public Tipo findByPrimaryKey(TipoPk pk) throws TipoDaoException;\r\n\r\n /**\r\n * Retorna un registro de la tabla Tipos que coincida con el criterio\r\n * 'id_tipo = :idTipo'.\r\n */\r\n public Tipo findByPrimaryKey(Integer idTipo) throws TipoDaoException;\r\n\r\n /**\r\n * Retorna todos los registros de la tabla Tipos que coincidan con el\r\n * criterio 'nombre_tipo LIKE %:nombre%'.\r\n */\r\n public Tipo[] findByName(String nombre) throws TipoDaoException;\r\n\r\n /**\r\n * Retorna un registro de la tabla Tipos que coincida con el\r\n * criterio 'nombre_tipo = :nombre'.\r\n */\r\n public Tipo findByFullName(String nombre) throws TipoDaoException;\r\n\r\n /**\r\n * Retorna todas las filas de la tabla Tipos.\r\n */\r\n public Tipo[] findAll() throws TipoDaoException;\r\n\r\n /**\r\n * Retorna todos los registros de la tabla Tipos que coincidan con la\r\n * sentencia SQL especificada arbitrariamente\r\n */\r\n public Tipo[] findByDynamicSelect(String sql, Object[] sqlParams)\r\n throws TipoDaoException;\r\n\r\n /**\r\n * Retorna todos los registros de la tabla Tipos que coincidan con el WHERE\r\n * SQL especificado arbitrariamente\r\n */\r\n public Tipo[] findByDynamicWhere(String sql, Object[] sqlParams)\r\n throws TipoDaoException;\r\n\r\n /**\r\n * Sets the value of maxRows\r\n */\r\n public void setMaxRows(int maxRows);\r\n\r\n /**\r\n * Gets the value of maxRows\r\n */\r\n public int getMaxRows();\r\n\r\n /**\r\n * Retorna la conexión actual del usuario\r\n * \r\n * @return Connection\r\n */\r\n public Connection getUserConn();\r\n\r\n /**\r\n * Setea la conexión a usar con la BD\r\n * \r\n * @param userConn\r\n */\r\n public void setUserConn(Connection userConn);\r\n\r\n}", "public interface IndentDao extends BaseDao<Indent,Integer>{\n\n /**\n * 通过订单关联查询到买家信息\n */\n void queryBuyerByIndentNO();\n}", "public interface ClientDao extends BaseDao<Client> {\n /**\n * 根据一个条件模糊搜索数据\n * @param param 值\n * @param condition 条件\n * @return\n */\n List<Client> fuzzySearch(String param, String condition);\n}", "public interface UsuarioDao extends GenericDao<Usuario, Integer> {\n\n List<Usuario> getAllUsuario();\n List<Usuario> getUsuarioByEstado(Object[] parameters);\n\n}", "public interface Idao {\r\n\r\n\tpublic void seconnecter(String login, String mdp);\r\n\r\n\tpublic void creerClient(Client c);\r\n\tpublic void lireClient(Client c);\r\n\tpublic void modifierClient(Client c);\r\n\tpublic void supprimerClient(Client c);\r\n\t\r\n\tpublic void creerConseiller(Conseiller c);\r\n\tpublic Conseiller lireConseiller(int id);\r\n\tpublic void modifierConseiller(int id, String nom, String prenom, String login, String mdp, String email);\r\n\tpublic void supprimerConseiller(Conseiller c);\r\n\tpublic void attribuerAgence(Agence a, Employe e);\r\n\tpublic void ajouterEmploye(Employe e, Agence a);\r\n\tpublic void attribuerGerant(Gerant g, Conseiller c);\r\n\tpublic void ajouterConseiller(Conseiller c, Gerant g);\r\n\t\r\n\tpublic void creerCompte(Compte c);\r\n\tpublic CompteCourant lireCompteCourant(int idCompte);\r\n\tpublic CompteCourant lireCompteCourant(long numCompte);\r\n\tpublic CompteEpargne lireCompteEpargne(int idCompte);\r\n\tpublic CompteEpargne lireCompteEpargne(long numCompte);\r\n\tpublic void modifierCompteCourant(long numCompte, double solde, int decouvert);\r\n\tpublic void modifierCompteEpargne(long numCompte, double solde, float tauxEpargne);\r\n\tpublic void supprimerCompte(long numCompte);\r\n\tpublic void faireVirement(Compte c);\r\n\tpublic void simuler();\r\n\tpublic void placerArgent(float montant, Compte c);\r\n\tpublic void attribuerClient(Client cl, Compte c);\r\n\tpublic void ajouterCompte(Compte c, Client cl);\r\n\tpublic void attibuerConseiller(Conseiller c, Client cl);\r\n\tpublic void ajouterClient(Client cl, Conseiller c);\r\n\r\n\tpublic void auditer();\r\n\r\n}", "public void findbyid() throws Exception {\n try {\n Con_contadorDAO con_contadorDAO = getCon_contadorDAO();\n List<Con_contadorT> listTemp = con_contadorDAO.getByPK( con_contadorT);\n\n con_contadorT= listTemp.size()>0?listTemp.get(0):new Con_contadorT();\n \n } catch (Exception e) {\n e.printStackTrace();\n setMsg(\"Falha ao realizar consulta!\");\t\n } finally {\n\tclose();\n }\n }", "UserInfoDao getUserInfoDao();", "public interface ICommandeDao {\n public List<Commande> findAllCommandes();\n\n public Commande findCommandeById(int idCommande);\n\n public List<Commande> findCommandeByIdProduit(Integer idProduit);\n \n public List<Commande> findCommandeByIdUtilisateur(Integer idUtilisateur);\n\n public Commande createCommande(Commande commande);\n\n public Commande updateCommande(Commande commande);\n\n public boolean deleteCommande(Commande commande);\n}", "public interface EscalaDAO {\r\n\r\n /**\r\n * Select numero manifiesto aeat.\r\n *\r\n * @param srvcId\r\n * the srvc id\r\n * @return the string\r\n */\r\n String selectNumeroManifiestoAeat(final Long srvcId);\r\n\r\n /**\r\n * Modificacion del estado de una escala a partir del estado de sus atraques.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateRecalcularEstado(final Long srvcId);\r\n\r\n /**\r\n * Modificacion del codigo de exencion de una escala a partir del codigo de exencion de sus atraques.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateExencion(final Long srvcId);\r\n\r\n /**\r\n * Modificacion del tipo de estancia de una escala a partir del tipo de estancia de sus atraques.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateEstancia(final Long srvcId);\r\n\r\n /**\r\n * Modificacion del tipo de navegacion de entrada de una escala a partir del puerto anterior.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateNavegacionEntrada(final Long srvcId);\r\n\r\n /**\r\n * Modificacion del tipo de navegacion de salida de una escala a partir del puerto siguiente.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateNavegacionSalida(final Long srvcId);\r\n\r\n /**\r\n * Modificacion del tipo de IVA de una escala a partir de datos de la escala.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateTipoIva(final Long srvcId);\r\n\r\n /**\r\n * Modificacion de las fechas de inicio/fin de una escala a partir las fechas de inicio/fin de sus\r\n * atraques.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateRecalcularFechas(final Long srvcId);\r\n}", "public interface ICampaniaDAO {\n\t/**\n\t * Crear la campania en el repositorio\n\t * @param campania\n\t */\n\tvoid crearCampania(GestionPrecioDTO campania);\n\t\n\t\n\t/**\n\t * Actualizar la campania en el repositorio\n\t * @param campania\n\t */\n\tvoid actualizarCampania(GestionPrecioDTO campania, UserDto user);\n\t\n\t/** Metodo actualizarCampania, utilizado para actualizar una campania\n\t * @author srodriguez\n\t * 27/2/2015\n\t * @param campania\n\t * @param user\n\t * @return void\n\t */\n\tvoid actualizarCampania(GestionPrecioDTO campania, String user);\n\t\n\t/**\n\t * Buscar la campania por el c&oacute;digo de referencia\n\t * de Loyalty\n\t * @param codigoCampaniaReferencia C&oacute;digo de Loyalty\n\t * @return\n\t */\n\tGestionPrecioDTO findCampania(String codigoCampaniaReferencia);\n /**\n * Verifica si una campania existe dado su clave primaria como\n * par&aacute;metro de b&uacute;squeda\n * @param id\n * @returnS\n */\n Boolean findExistsCampania(GestionPrecioID id) ;\n /**\n * Obtener todas las campanias existentes en el repositorio\n * @return\n */\n Collection<GestionPrecioDTO> findCampaniasPendientes() ;\n /**\n * Buscar un listado de campanias dado una plantilla de b&uacute;squeda y el\n * estado de cobro\n * @param gestionPrecio Plantilla de b&uacute;squeda\n * @param estadoCobro Estado de cobro. Ej: PENDIENTE, CONFIGURADA, COBRADA, EN CURSO, etc.\n * @return\n */\n Collection<GestionPrecioDTO> findCampaniasFiltros (GestionPrecioDTO gestionPrecio,String estadoCobro);\n \n /**\n * @author cbarahona\n * @param campania\n */\n void actualizarCampaniaLoyalty (GestionPrecioDTO campania);\n \n SearchResultDTO<GestionPrecioDTO> findCampaniasPendientesLazy (Integer firstResult, Integer pageSize, Boolean countAgain);\n \n SearchResultDTO<GestionPrecioDTO> findCampaniasFiltrosLazy (GestionPrecioDTO gestionPrecio, String estadoCobro,Integer firstResult, Integer pageSize, Boolean countAgain);\n \n GestionPrecioDTO findCampania(final String codigoReferencia, final Integer codigoCompania) throws SICException;\n \n void actualizarCampania(GestionPrecioDTO campania) throws SICException;\n \n /**\n * Metodo que valida si una campaña tiene participantes\n * @param codigoReferencia\n * @return\n * @throws SICException\n */\n Boolean tieneParticipantesCampania(String codigoReferencia) throws SICException;\n}", "public static void main(String[] args) {\n\t\tContaDAO contaDAO = new ContaDAO();\n\n/*\n\t\tCartao cartao = new Cartao();\n\t\tcartao.setNumeroCartao(2);\n\t\tcartao.setNomeCartao(\"Saldanha\");\n\t\tcartao.setCpfCartao(\"12312312312\");\n\t\tcartao.setViaCartao(1);\n\t\tcartaoDAO.salvar(cartao);\n\t\tSystem.out.println(cartao.getIdCartao());\n\t\t\n\t\tConta conta = new Conta();\n\t\tconta.setConta(1234567898);\n\t\tconta.setCpf(\"12312312312\");\n\t\tconta.setNome(\"Saldanha\");\n\t\tconta.setSaldo(150.50f);\n\t\tcontaDAO.salvar(conta);\n\t\tSystem.out.println(conta.getSaldo());\n*/\t\tConta conta = new Conta();\n\t\tconta.setId(3);\n\t\tConta conta2 = contaDAO.obterPorId(conta.getId());\n\t\tSystem.out.println(\"Nome: \"+conta2.getNome() + \"\\nSaldo: R$\"+conta2.getSaldo());\n\t\t\n\t\t/*\t\tcartaoDAO.remover(cartao);\n\t\t\n\t\t\t\n\t\tList<Cliente> clientes = clienteDao.listarTodos();\n\t\t\t\t\n\t\tfor (Cliente cliente : clientes) {\n\t\t\tSystem.out.println(cliente.getNome());\n\t\t} */\n\t\n/*\t\tCliente cliente = clienteDao.obterPorId(2);\n\t\tcliente.setNome(\"Beltrano da Silva\");\n\t\t\n\t\tclienteDao.salvar(cliente);\n\t\tSystem.out.println(cliente.getNome());\n\t\t \n\t\t\n\t\tCartao cartao = cartaoDAO.obterPorId(2);\n\t\t\n\t\tcartaoDAO.remover(cartao);\n\t\t\n\t\tSystem.out.println(cartao.getNomeCartao());\n\t*/\n\t\n\t}", "public interface InvMainDao extends GenericDao<InvMain, String> {\n\tpublic JQueryPager getInvMainCriteria(final JQueryPager paginatedList,List<PropertyFilter> filters);\n\tpublic boolean checkAllInitInvMainConfirm(String orgCode,String copyCode,String kjYear,String storeId);\n\tpublic InvMain getInvMainByNo(String no, String orgCode, String copyCode);\n\tpublic boolean checkAllDocsInStore(String storeId,String orgCode,String copyCode,String kjYear);\n\tpublic void deleteInvDictAccount(String storeId, String orgCode,String copyCode,String kjYear);\n\n}", "public interface UserDao {\n public List search(String log ,String pas);\n}", "int getIdRondaCancion(Cancion cancion,Date fecha) throws ExceptionDao;", "public interface DAO<PK extends Serializable, T> {\n\t/**\n\t * Enumerate para saber de que forma ordenar los resultados ASC o DESC\n\t * \n\t * @author Victor Huerta\n\t * \n\t */\n\tpublic enum Ord {\n\t\tASCENDING(\"ASC\"), DESCENDING(\"DESC\"), UNSORTED(\"\");\n\t\tprivate final String ord;\n\n\t\tprivate Ord(String ord) {\n\t\t\tthis.ord = ord;\n\t\t}\n\n\t\tpublic String getOrd() {\n\t\t\treturn ord;\n\t\t}\n\t}\n\n\t/**\n\t * Metodo para recuperar la session actual\n\t * \n\t * @return la session actual\n\t */\n\tSession getCurrentSession();\n\n\t/**\n\t * Metodo para guardar un registro\n\t * \n\t * @param entity\n\t * Entidad a guardar\n\t * @return true si se guardo correctamente false en otro caso\n\t */\n\tBoolean save(T entity);\n\n\t/**\n\t * Metodo para eliminar un registro\n\t * \n\t * @param entity\n\t * Registro a borrar\n\t * @return true si se elimino correctamente false en otro caso\n\t */\n\tBoolean delete(T entity);\n\n\t/**\n\t * Metodo para recuperar todos los objetos de la tabla\n\t * \n\t * @return lista con todos los objetos de la tabla\n\t */\n\tList<T> getAll();\n\n\t/**\n\t * Metodo para recuberar un objeto por el id, este metodo esta destinado a\n\t * los objetos que ya tienen definido el tipo T\n\t * \n\t * @param id\n\t * El id el objeto que se busca\n\t * @return El objeto encontrado\n\t */\n\tT getById(PK id);\n\n\t/**\n\t * Con este metodo se pueden buscar registros con propiedades similares a\n\t * las del objeto que se pasa, no sirve para buscaquedas por id.\n\t * \n\t * @param entity\n\t * Entidad con propiedades que se van a buscar\n\t * @return Lista de entidades encontradas\n\t */\n\tList<T> searchByExample(T entity);\n\n\t/**\n\t * Metodo para buscar registros con propiedades similares a la del objeto\n\t * que recibe, ordenarlos por el campo que manda con el limite y paginas\n\t * dadas\n\t * \n\t * @param entity\n\t * Ejemplo para la busqueda\n\t * @param sortBy\n\t * Campor por el que se desea ordenar\n\t * @param limit\n\t * Numero maximo de registros\n\t * @param page\n\t * Numero de pagina\n\t * @return\n\t */\n\tList<T> searchByExamplePages(T entity, String sortBy, Ord ord,\n\t\t\tInteger limit, Integer page);\n\n\t/**\n\t *\n\t * Metodo para buscar registros con propiedades similares a la del objeto\n\t * que recibe, ordenarlos por el campo que manda con el limite y paginas\n\t * dadas.\n\t * \n\t * @param entity\n\t * Ejemplo para la busqueda\n\t * @param sortBy\n\t * Campor por el que se desea ordenar\n\t * @param limit\n\t * Numero maximo de registros\n\t * @param page\n\t * Numero de pagina\n\t * @param associations\n\t * \t\t\t Mapa propiedad objeto\n\t * \n\t * @return List<T>\n\t */\n\n\tList<T> searchByExamplePages(T entity, String sortBy, Ord ord,\n\t\t\tInteger limit, Integer page, Map<String, Object> associations);\n\n\t/**\n\t * Cuenta todos los registros de la tabla\n\t * \n\t * @return Numero de registros en la tabla\n\t */\n\tInteger countAll();\n\n\t/**\n\t * Cuenta todos los resultados que coinciden con un ejemplo\n\t * \n\t * @param entity\n\t * Entidad de ejemplo para la busqueda\n\t * @return Numero de registros encontrados\n\t */\n\tInteger countByExample(T entity);\n\n\t/**\n\t * Numero de paginas que se obtendran buscando con el ejemplo dado y usando\n\t * un limite\n\t * \n\t * @param entity\n\t * Entidad de ejemplo para la busqueda\n\t * @param limit\n\t * Limite de registros por pagina\n\t * @return\n\t */\n\tInteger countByExamplePages(T entity, Integer limit);\n\n\t/**\n\t * Retorna la clase del tipo generico, la clase de la entidad. Destinada a\n\t * solo funcionar cuando se implemente esta interfaz definiendo el tipo T\n\t * \n\t * @return Clase del tipo generico\n\t */\n\tClass<?> getEntityClass();\n}", "@Override\n\n public void run(String... strings) throws Exception {\n \n Usuario u= new Usuario(1521L, \"Viridiana Hernandez\",\"[email protected]\");\n \n //la guardamos\n \n // repoUsu.save(u);\n \n //GENERAMOS LA DIRECCION QUE VAMOS A GUARDAR\n \n Direccion d = new Direccion(new Usuario(1521L),\"Calle 13\", 55120, \"Ecatepec\");\n //repoDir.save(d);\n \n \n //AQUI HAREMOS EL JOIN\n \n \n Direccion d2= repoDir.findOne(2L);\n System.out.println(\"Correo:\"+d2.getU().getEmail()+ \" municipio \"+d2.getMunicipio());\n \n \n \n \n \n \n //repoMensa.save (new Mensajito(\"Primero\",\"Mi primera vez con hibernate\"))\n /*\n Mensajito m= repoMensa.findOne(1);\n System.out.println(m.getTitulo());\n \n \n \n // repoMensa.save(new Mensajito(\"17 de octubre\",\"No temblo\"));\n System.out.println(\"vamos a uscar todos\");\n \n for (Mensajito mensa:repoMensa.findAll()){\n System.out.println(mensa);\n \n }\n \n //para buscar por id FINDONE\n System.out.println(\"vamos a buscar por id\");\n System.out.println(repoMensa.findOne(1));\n \n \n // Actualizar \n repoMensa.save(new Mensajito(1,\"nuevo titulo\",\"nuevo cuerpo\"));\n System.out.println(repoMensa.findOne(1));\n*/\n }", "public static void main(String[]args) {PostagemDAO pDAO = new PostagemDAO();\n////\t\tPostagem postagem = new Postagem();\n////\t\tString s = \"1999-3-9\";\n////\t\tDate data = Date.valueOf(s);\n////\t\tpostagem.setDescPostagem(\"john johnes\");\n////\t\tpostagem.setDataPostagem(data);\n////\t\tpDAO.inserirPostagem(postagem);\n//\t\t\n////\t\tImagensDAO iDAO = new ImagensDAO();\n////\t\tImagens imagens = new Imagens();\n////\t\t\n////\t\timagens.setTipoImagem((short)2);\n////\t\timagens.setArquivoImagem(\"busato\");\n////\t\tiDAO.inserirImagem(imagens);\n//\t\t\n//\t\tUsuarioDAO uDAO = new UsuarioDAO();\n//\t\tUsuario usuario = new Usuario();\n//\t\t\n////\t\tusuario.setEmail(\"sadasda\");\n////\t\tusuario.setNickname(\"sdasdasae\");\n////\t\tusuario.setSenha(\"12345\");\n////\t\tusuario.setSteamid(31231231);\n////\t\tusuario.setFotoPerfil(\"FOTO\");\n////\t\tuDAO.cadastrar(usuario);\n//\t\t\n//\t\t\n//\t\tComentariosDAO cDAO = new ComentariosDAO();\n//\t\tComentarios comentarios = new Comentarios();\n//\t\t\n//\t\tcomentarios.setCorpoComentario(\"comentario comentado\");\n//\t\tcomentarios.setDataComentario(Date.valueOf(\"2018-03-09\"));\n//\t\tcDAO.inserirComentarios(comentarios);\n//\t\t\n//\t\tSystem.out.println(\"sera que comitou\");\n//\t\t\n\t\t\n\t\tPostagem postagem = new Postagem();\n\t\tpostagem.setDescPostagem(\"Uma formiguinha subindo pela parede\");\n\t\tpostagem.setTituloPostagem(\"Formiguinha\");\n\t\t\n\t\tPostagemDAO poDAO = new PostagemDAO();\n\t\tpostagem = poDAO.inserirPostagem(postagem);\n\t\t\n\t\tSystem.out.println(postagem.getIdPostagem());\n\t\t\n\t}", "public ArrayList<ModelCliente> getListaClienteDAO() {\n ArrayList<ModelCliente> listamodelCliente = new ArrayList();\n ModelCliente modelCliente = new ModelCliente();\n try {\n this.conectar();\n this.executarSQL(\n \"SELECT \"\n + \"id_cli,\"\n + \"nome_cli,\"\n + \"fone_cli,\"\n + \"celular_cli,\"\n + \"email_cli,\"\n + \"end_cli,\"\n + \"complemento,\"\n + \"bairro,\"\n + \"cidade,\"\n + \"estado,\"\n + \"RG_cli,\"\n + \"cpf_cli\"\n + \" FROM\"\n + \" tbclientes\"\n + \";\"\n );\n while (this.getResultSet().next()) {\n modelCliente = new ModelCliente();\n modelCliente.setId_cli(this.getResultSet().getInt(1));\n modelCliente.setNome_cli(this.getResultSet().getString(2));\n modelCliente.setFone_cli(this.getResultSet().getString(3));\n modelCliente.setCelular_cli(this.getResultSet().getString(4));\n modelCliente.setEmail_cli(this.getResultSet().getString(5));\n modelCliente.setEnd_cli(this.getResultSet().getString(6));\n modelCliente.setComplemento(this.getResultSet().getString(7));\n modelCliente.setBairro(this.getResultSet().getString(8));\n modelCliente.setCidade(this.getResultSet().getString(9));\n modelCliente.setEstado(this.getResultSet().getString(10));\n modelCliente.setRG_cli(this.getResultSet().getString(11));\n modelCliente.setCpf_cli(this.getResultSet().getString(12));\n listamodelCliente.add(modelCliente);\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n this.fecharConexao();\n }\n return listamodelCliente;\n }", "public interface IAdresseDao {\n public List<Adresse> findAllAdresses();\n\n public Adresse findAdresseById(int idAdresse);\n\n public List<Adresse> findAdresseByRue(String rue);\n \n public List<Adresse> findAdresseByIdUtilisateur(int idUtilisateur);\n \n public Adresse findAdresseFacturationByIdUtilisateur(int idUtilisateur);\n\n public Adresse createAdresse(Adresse adresse);\n\n public Adresse updateAdresse(Adresse adresse);\n\n public boolean deleteAdresse(Adresse adresse);\n}", "public interface GuruDao {\n public int findTotal();\n public int insertGuru(@Param(\"guru\") Guru guru);\n public int updateGuru(@Param(\"guru\") Guru guru);\n public Guru findGuru(@Param(\"context\") String context);\n public List<Guru> findByPage(@Param(\"start\") int start,@Param(\"rows\")int rows);\n}", "public void consultarEditorialesDAO() {\n Collection<Editorial> editoriales = em.createQuery(\"SELECT e\"\n + \" FROM Editorial e\").getResultList();\n\n //Iteramos entre autores\n for (Editorial e : editoriales) {\n\n System.out.println(e.getNombre());\n\n }\n\n }", "public interface FakturaDao extends GenericDao<Faktura, Long> {\n\n}", "public interface IPackageActivateDao extends IBaseDao<PackageActivate>{\n\t/**\n\t * \n\t * <p>\n\t * Title: confirmationNumber\n\t * </p>\n\t * <p>\n\t * Description:广告主确认数录入\n\t * </p>\n\t * \n\t * @param id\n\t * @param number\n\t * @throws Exception\n\t * @author lichuang\n\t * @date 2013-5-23\n\t * @return void\n\t * @version 1.0\n\t */\n\tpublic void confirmationNumber(Long id, Integer number,Integer status) throws Exception;\n\n\n\t/**\n\t * <p>\n\t * Title: statusConfirm\n\t * </p>\n\t * <p>\n\t * Description:数据分完\n\t * </p>\n\t * \n\t * @param fraction_id\n\t * @throws Exception\n\t * @author lichuang\n\t * @date 2013-5-27\n\t * @return void\n\t * @version 1.0\n\t */\n\tpublic void updateStatus(Long id,Integer status) throws Exception;\n\n\t/**\n\t * <p>\n\t * Title: statusConfirm\n\t * </p>\n\t * <p>\n\t * Description:数据分完\n\t * </p>\n\t * \n\t * @param fraction_id\n\t * @throws Exception\n\t * @author lichuang\n\t * @date 2013-5-27\n\t * @return void\n\t * @version 1.0\n\t */\n\tpublic void updateStatu(String ids, Integer status) throws Exception;\n\n\t/**\n\t * <p>\n\t * Title: submitConfirmNumber\n\t * </p>\n\t * <p>\n\t * Description:TODO\n\t * </p>\n\t * \n\t * @param ids\n\t * @author cuidd\n\t * @date 2013-7-16\n\t * @return void\n\t * @version 1.0\n\t */\n\tpublic void submitConfirmNumber(String ids);\n\n\n\t/**\n\t* <p>Title: confirmationCpd</p>\n\t* <p>Description:cpd确认的钱</p>\n\t* @param id\n\t* @param amount\n\t* @throws Exception\n\t* @author lichuang\n\t* @date 2013-8-8\n\t* @return void\n\t* @version 1.0\n\t */\n\tpublic void confirmationCpd(Long id, Double amount)throws Exception;\n\n\t/**\n\t* <p>Title: getById</p>\n\t* <p>Description:读取提交android数据</p>\n\t* @param ids\n\t* @return\n\t* @author cuidd\n\t* @date 2014年11月14日\n\t* @return List<PackageActivateAndroid>\n\t* @version 1.0\n\t */\n\tpublic PackageActivateAndroid getById(Long id)throws Exception;\n\n}", "@Dao\npublic interface FParamDiskonItemVendorDao {\n /**\n * @param fParamDiskonItemVendor\n * Harus Menggunakan\n * .allowMainThreadQueries() pada Configurasi database utama agar tidak perlu menggunakan AsynT\n */\n @Insert\n void insert(FParamDiskonItemVendor fParamDiskonItemVendor);\n @Update\n void update(FParamDiskonItemVendor fParamDiskonItemVendor);\n @Delete\n void delete(FParamDiskonItemVendor fParamDiskonItemVendor);\n\n\n @Query(\"DELETE FROM fParamDiskonItemVendor\")\n void deleteAllFParamDiskonItemVendor();\n\n @Query(\"SELECT * FROM fParamDiskonItemVendor \")\n LiveData<List<FParamDiskonItemVendor>> getAllFParamDiskonItemVendorLive();\n\n @Query(\"SELECT * FROM fParamDiskonItemVendor \")\n List<FParamDiskonItemVendor> getAllFParamDiskonItemVendor();\n\n\n @Query(\"SELECT * FROM fParamDiskonItemVendor WHERE id = :id \")\n List<FParamDiskonItemVendor> getAllById(int id);\n\n @Query(\"SELECT * FROM fParamDiskonItemVendor WHERE fdivisionBean = :id \")\n List<FParamDiskonItemVendor> getAllByDivision(int id);\n\n}", "public interface ReWelfareDAO {\n int deleteByPrimaryKey(Long welfareId);\n\n void insert(ReWelfare record);\n\n void insertSelective(ReWelfare record);\n\n void insertBatch(List<ReWelfare> records);\n\n ReWelfare selectByPrimaryKey(Long welfareId);\n\n int updateByPrimaryKeySelective(ReWelfare record);\n\n int updateByPrimaryKey(ReWelfare record);\n\n /**\n * 精选列表\n * @param platform\n * @return\n */\n List<ReWelfare> selectSelectionListByPlatform(int platform);\n\n /**\n * 福利\n *\n * @param platform\n * @param welfareId\n * @param welfareType\n * @return\n */\n List<ReWelfare> selectListByPlatform(int platform, Long welfareId, Integer welfareType);\n\n /**\n * 从mysql中获取福利id列表\n * @param platform 平台\n * @param welfareType 类型\n * @return\n */\n List<Long> selectWelfareIdListOrderByUpdateTimeDesc(int platform,Integer welfareType);\n}", "private DAOOfferta() {\r\n\t\ttry {\r\n\t\t\tClass.forName(driverName);\r\n\r\n\t\t\tconn = getConnection(usr, pass);\r\n\r\n\t\t\tps = conn.prepareStatement(createQuery);\r\n\r\n\t\t\tps.executeUpdate();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ConnectionException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\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} finally {\r\n\t\t\t/*closeResource()*/;\r\n\t\t}\r\n\t}", "public interface PertenenciaDAO extends GenericDao<Pertenencia, Long> {\n\n}", "public interface AdDao extends GenericDao<Ad, Long> {\n\n\t/**\n\t * Retourne toutes les publicité éligible\n\t * @param date\n\t * @return\n\t * @throws Exception\n\t */\n\tList<Ad> getAll(Date date)throws Exception;\n\n \n}", "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 interface CabinClassDao extends Dao\n{\n\n\t/**\n\t * DAO service which returns a list of CabinClassModel types\n\t *\n\t * @return SearchResult<CabinClassModel> list\n\t */\n\tList<CabinClassModel> findCabinClasses();\n\n\t/**\n\t * Dao method which returns CabinClassModel for the given cabin code.\n\t *\n\t * @param cabinCode\n\t * \t\tstring representing cabin code.\n\t * @return CabinClassModel object.\n\t */\n\tCabinClassModel findCabinClass(String cabinCode);\n\n\t/**\n\t * Dao method which returns CabinClassModel for the given cabinclass index.\n\t *\n\t * @param cabinClassIndex\n\t * \t\tstring representing cabinclass index.\n\t * @return CabinClassModel object.\n\t */\n\tCabinClassModel findCabinClass(Integer cabinClassIndex);\n\n\t/**\n\t * Dao method which returns CabinClassModel for the given bundleTemplate.\n\t *\n\t * @param bundleTemplate\n\t * \t\tstring representing bundleTemplate.\n\t * @return CabinClassModel object.\n\t */\n\tCabinClassModel findCabinClassFromBundleTemplate(String bundleTemplate);\n}", "public Cliente findByPrimaryKey(ClientePk pk) throws ClienteDaoException;", "@Override\n public Asesor getAsesorId(int idUsuarioSistema){\n Asesor asesor = null;\n ConexionSQL conexionSql = new ConexionSQL();\n Connection conexion = conexionSql.getConexion();\n try{\n PreparedStatement orden = conexion.prepareStatement(\"select * from asesor where idUsuarioSistema =?\");\n orden.setInt(1, idUsuarioSistema);\n ResultSet resultadoConsulta = orden.executeQuery();\n if(resultadoConsulta.first()){\n String nombre;\n String idioma;\n String correo;\n String telefono;\n String numeroPersonal;\n nombre = resultadoConsulta.getString(4) +\" \"+ resultadoConsulta.getString(6) +\" \"+ resultadoConsulta.getString(5);\n idioma = resultadoConsulta.getString(2);\n telefono = resultadoConsulta.getString(8);\n correo = resultadoConsulta.getString(7);\n numeroPersonal = resultadoConsulta.getString(1);\n asesor = new Asesor(numeroPersonal, nombre, idioma,telefono,correo);\n }else{\n Logger logger = Logger.getLogger(\"Logger\");\n logger.log(Level.WARNING, \"No se encuentra el asesor\");\n }\n }catch(SQLException | NullPointerException excepcion){\n Logger logger = Logger.getLogger(\"Logger\");\n logger.log(Level.WARNING, \"La conexión podría ser nula | la sentencia SQL esta mal\");\n }\n return asesor;\n }", "@Test\r\n public void testSearch() throws Exception {\r\n System.out.println(\"rechNom\");\r\n Bureau obj1 = new Bureau(0,\"Test\",\"000000000\",\"\");\r\n Bureau obj2 = new Bureau(0,\"Test2\",\"000000001\",\"\");\r\n String nomrech = \"Test\";\r\n BureauDAO instance = new BureauDAO();\r\n instance.setConnection(dbConnect);\r\n obj1=instance.create(obj1);\r\n obj2=instance.create(obj2);\r\n \r\n \r\n String result = instance.search(nomrech);\r\n if(result.contains(obj1.getSigle())) fail(\"record introuvable \"+obj1);\r\n if(result.contains(obj2.getSigle())) fail(\"record introuvable \"+obj2);\r\n instance.delete(obj1);\r\n instance.delete(obj2);\r\n }", "public OnibusDAO() {}", "public interface TipoActividadDAO {\n \n /**\n * Funció que engloba les funcións que s'utilitzen per crear tipus d'activitat\n * @param tipoAct\n * @return String\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract String callCrear(TipoActividad tipoAct) throws PersistenceException, ClassNotFoundException;\n \n /**\n * Verifica que no existeixi un tipus amb el mateix nom\n * @param tipoAct\n * @return int\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract int getTipoByName(TipoActividad tipoAct) throws PersistenceException, ClassNotFoundException;\n \n /**\n * Inserta un tipus d'activitat en la base de dades\n * @param tipoAct\n * @return String\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract String insertarTipoActividad(TipoActividad tipoAct) throws PersistenceException, ClassNotFoundException;\n \n /**\n * Agafa els tipus d'activitats que esten actius\n * @return List de TipoActividad\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract List<TipoActividad> getTiposActividad() throws PersistenceException, ClassNotFoundException;\n \n /**\n * Agafa tots els tipus d'activitats \n * @return List de TipoActividad\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract List<TipoActividad> getTiposActividadAdm() throws PersistenceException, ClassNotFoundException;\n \n /**\n * Seleccionar el tipo de actividad d'una actividad\n * @param activity\n * @return String\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract String getTipoByAct(Actividad activity) throws PersistenceException, ClassNotFoundException;\n\n /**\n * Guarda la sessió del tipus d'activitat\n * @param tipoAct\n * @param pagina\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract void guardarSession(TipoActividad tipoAct, String pagina) throws PersistenceException, ClassNotFoundException;\n \n /**\n * Funció que engloba les funcións per editar un tipus d'activitat\n * @param tipoAct\n * @return String\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract String callEditar(TipoActividad tipoAct) throws PersistenceException, ClassNotFoundException;\n \n /**\n * Funció que permet editar el Tipus d'activitat\n * @param tipoAct\n * @return String\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract String editarTipoActividad(TipoActividad tipoAct) throws PersistenceException, ClassNotFoundException;\n}", "public interface CamareroDAO extends CommonDAO<Camarero> {\n\n List<Object[]> obtenerConsultaCamarero(String queryNativo, String mapeador, Date fechaInicial, Date fechaFinal);\n\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}", "public interface IMAE1007DAO extends IGenericDao<MAE1007> {\n\n\tMAE1007 findDisplayByDefault(Boolean defaul);\n\n\tList<MAE1007> findDisplayByUsed(Boolean isused);\n}", "public interface AccommodationDao extends Dao\n{\n\n\t/**\n\t * Returns a list of AccommodationModel for the given accommodationOfferingCode\n\t *\n\t * @param accommodationOfferingCode\n\t * \t\tthe code of the AccommodationOffering to use to get the Accommodation\n\t * @return the list of AccommodationModel\n\t */\n\tList<AccommodationModel> findAccommodationForAccommodationOffering(String accommodationOfferingCode);\n\n\t/**\n\t * Returns a list of AccommodationModel for the given accommodationOfferingCode and catalogVersion\n\t *\n\t * @param accommodationOfferingCode\n\t * \t\tthe code of the AccommodationOffering to use to get the Accommodation\n\t * @param catalogVersion\n\t * \t\tthe catalog version to use to get the Accommodation\n\t * @return the list of AccommodationModel\n\t */\n\tList<AccommodationModel> findAccommodationForAccommodationOfferingAndCatalog(String accommodationOfferingCode,\n\t\t\tString catalogVersion);\n\n\t/**\n\t * Returns an object of AccommodationModel for the given accommodationOfferingCode and accommodationCode\n\t *\n\t * @param accommodationOfferingCode\n\t * \t\tthe code of the AccommodationOffering to use to get the Accommodation\n\t * @param accommodationCode\n\t * \t\tthe code of the Accommodation\n\t * @return object of AccommodationModel\n\t */\n\tAccommodationModel findAccommodationForAccommodationOffering(String accommodationOfferingCode, String accommodationCode);\n\n}", "protected abstract Dao getDaoIntance(Context context);", "public interface ClothDao {\n /**\n * 判断衣服Id是否存在\n * @param id\n * @return boolean\n */\n boolean isClothIdExists(int id);\n /**\n * 返回图片\n * @param clothId\n * @return Clothinfostring\n */\n String getClothById(int clothId);\n /**\n * 返回图片\n * @param none\n * @return Cloth Ids\n */\n String getAllCloth();\n\n}", "@Repository(\"userDao\")\npublic interface IUserDao extends IGenericDao<User, Long> {\n List<User> findByKullaniciAdi(String kullaniciAdi);\n}", "public interface WebRecommendationDao extends GenericDao<WebRecommendation, Long> {\n\t\n\t/**\n\t * Fetches a list of all web recommendations ordered by sequence number.\n\t * \n\t * @return A list of web recommendations.\n\t */\n\tpublic List<WebRecommendation> findAllOrderBySequence();\n\n}", "UserDao getUserDao();", "public interface QueryAllianceDao extends BaseMapper<Alliance> {\r\n//\r\n List<AllianceRecord> findAlliancePage(Page<AllianceRecord> page, @Param(\"record\") AllianceRecord record,\r\n @Param(\"search\") String search, @Param(\"orderBy\") String orderBy,\r\n @Param(\"startingCycleStartTime\") Date startingCycleStartTime,\r\n @Param(\"startingCycleEndTime\") Date startingCycleEndTime,\r\n @Param(\"leftNumber\") Integer leftNumber, @Param(\"rightNumber\") Integer rightNumber);\r\n //rpc分页列表\r\n List<AllianceRecord> findAlliancePageShip(Page<AllianceRecord> page, @Param(\"record\") AllianceRecord record,\r\n @Param(\"search\") String search, @Param(\"orderBy\") String orderBy,\r\n @Param(\"startingCycleStartTime\") Date startingCycleStartTime,\r\n @Param(\"startingCycleEndTime\") Date startingCycleEndTime);\r\n //根据userID查询当月的订单\r\n List<Map> getCurrentMonthOrderByUserId(@Param(\"id\") Long id);\r\n //根据userID 查询盟友信息\r\n AllianceRecord selectAllianceOneByUserId(@Param(\"id\") Long id);\r\n //查询自营商品\r\n public List<Map> getSelfProductByUserId(@Param(\"id\") Long id);\r\n //充值套餐\r\n @Select(\"select CONCAT('充值',value) as title,value from t_config_field where group_id=1\")\r\n List<JSONObject> getSetMeal();\r\n //查询邀请码\r\n Long selectUserIdByInvitationCode(@Param(\"invitationCode\") String invitationCode);\r\n\r\n //查询盟友详情\r\n AllianceRecord allianceDetails(@Param(\"id\") Long id);\r\n //查询电话号码是否存在\r\n @Select(\"select alliance_phone from t_alliance where alliance_phone=#{phone} \")\r\n String queryPhone(@Param(\"phone\") String phone);\r\n\r\n //查询自己的团队\r\n List<AllianceRecord> myTeam(Page<AllianceRecord> page,\r\n @Param(\"id\") Long id,\r\n @Param(\"record\") AllianceRecord record,\r\n @Param(\"search\") String search);\r\n //查询自己的订单总额\r\n @Select(\"select total_price as totalPrice,user_id as userId from t_order where id=#{orderId}\")\r\n public JSONObject queryOrderMoney(@Param(\"orderId\") Long orderId);\r\n\r\n //一周内加入的盟友\r\n @Select(\"select b.* from t_alliance a INNER JOIN t_alliance b ON b.invitor_alliance_id=a.id where a.user_id=#{userId} and DATE_SUB(CURDATE(), INTERVAL 7 DAY)<b.alliance_ship_time\")\r\n public List<Alliance> queryWeekAlliance(@Param(\"userId\")Long userId);\r\n\r\n //一周内发货订单\r\n @Select(\"select * from t_order where user_id = 11 and status='DELIVERED_CONFIRM_PENDING' and DATE_SUB(CURDATE(), INTERVAL 7 DAY) <= created_date\\n\")\r\n public List<JSONObject> queryWeekOrderDeliver(@Param(\"userId\") Long userId);\r\n\r\n //一周内盟友下单\r\n @Select(\"select a.alliance_name as allianceName,o.* from t_order o,(select b.user_id,b.alliance_name from t_alliance a INNER JOIN t_alliance b ON b.invitor_alliance_id=a.id where a.user_id=#{userId}\\n\" +\r\n \"and b.alliance_ship=0) as a where o.user_id = a.user_id and DATE_SUB(CURDATE(), INTERVAL 7 DAY) <= o.created_date and o.status='PAID_CONFIRM_PENDING'\")\r\n public List<JSONObject> queryWeekOrder(@Param(\"userId\") Long userId);\r\n\r\n //重置userID\r\n @Update(\"update t_alliance set user_id=null where id=#{id}\")\r\n Integer resetUserId(@Param(\"id\")Long id);\r\n\r\n //团队下单奖励\r\n\r\n //团队盟友升级\r\n\r\n //删除表的数据\r\n @Delete(\"delete from ${tableName}\")\r\n public Integer deleteTableData(@Param(\"tableName\") String tableName);\r\n //获取数据库json字段信息测试\r\n @Select(\"select JSON_EXTRACT(t_product_settlement_proportion.proportion, '$.value') from t_product_settlement_proportion\")\r\n public List<Float> getJson();\r\n\r\n //查询userid\r\n @Select(\"select id from t_user where phone=${phone}\")\r\n Long queryUserIdByPhone(@Param(\"phone\") String phone);\r\n //同步t_user real_name 和 alliance表 alliance_name\r\n @Update(\"update t_user set real_name=#{name} where phone=#{alliancePhone}\")\r\n Integer upUserRealNameByPhone(@Param(\"alliancePhone\") String alliancePhone,@Param(\"name\") String name);\r\n\r\n //获取所有盟友的id\r\n @Select(\"select id from t_alliance\")\r\n List<Long> getAllAllianceIds();\r\n}", "public interface IdeaCommentDao extends GenericDao<IdeaComment, Long>{\n\n\tList<IdeaComment> findIdeaCommentList(String ideaId);\n\n}", "public DTOConsultaCliente consultarCliente(DTOOID oid) throws MareException {\n UtilidadesLog.info(\" DAOMAEMaestroClientes.consultarCliente(DTOOID): Entrada\");\n\n Boolean bUsaGEOREFERENCIADOR = Boolean.FALSE;\n MONMantenimientoSEG mms;\n BelcorpService bs = UtilidadesEJB.getBelcorpService();\n RecordSet resultado = new RecordSet();\n StringBuffer query = new StringBuffer();\n DTOConsultaCliente dtos = new DTOConsultaCliente();\n\n try {\n query.append(\" select TICL_OID_TIPO_CLIE, SBTI_OID_SUBT_CLIE, I1.VAL_I18N DESC_TIPO_CLIENTE, \");\n query.append(\" I2.VAL_I18N DESC_SUB_TIPO_CLIENTE\");\n query.append(\" from MAE_CLIEN_TIPO_SUBTI T, V_GEN_I18N_SICC I1, V_GEN_I18N_SICC I2 \");\n query.append(\" where I1.ATTR_ENTI(+) = 'MAE_TIPO_CLIEN' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TICL_OID_TIPO_CLIE \");\n query.append(\" and I2.ATTR_ENTI(+) = 'MAE_SUBTI_CLIEN' \");\n query.append(\" and I2.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I2.VAL_OID(+) = SBTI_OID_SUBT_CLIE \");\n query.append(\" and T.CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" ORDER BY DESC_TIPO_CLIENTE ASC \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n dtos.setTiposSubtipos(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n query.append(\" select TDOC_OID_TIPO_DOCU, NUM_DOCU_IDEN, VAL_IDEN_DOCU_PRIN, VAL_IDEN_PERS_EMPR, \");\n query.append(\" I1.VAL_I18N DESC_TIPO_DOCUM from MAE_CLIEN_IDENT I, V_GEN_I18N_SICC I1 \");\n query.append(\" where I1.ATTR_ENTI(+) = 'MAE_TIPO_DOCUM' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TDOC_OID_TIPO_DOCU \");\n query.append(\" and I.CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n dtos.setIdentificaciones(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n // Se agrega campo \"cod_clie\" a la query.\n query.append(\" SELECT val_ape1, val_ape2, val_apel_casa, val_nom1, val_nom2, val_trat, \");\n query.append(\" cod_sexo, fec_ingr, fopa_oid_form_pago, i1.val_i18n desc_forma_pago, \");\n query.append(\" cod_clie \");\n query.append(\" FROM mae_clien m, v_gen_i18n_sicc i1 \");\n query.append(\" WHERE i1.val_oid(+) = fopa_oid_form_pago \");\n query.append(\" AND i1.attr_enti(+) = 'BEL_FORMA_PAGO' \");\n query.append(\" AND i1.idio_oid_idio(+) = \" + oid.getOidIdioma());\n query.append(\" AND m.oid_clie = \" + oid.getOid()); \n \n resultado = bs.dbService.executeStaticQuery(query.toString());\n\n if (!resultado.esVacio()) {\n dtos.setApellido1((String) resultado.getValueAt(0, 0));\n dtos.setApellido2((String) resultado.getValueAt(0, 1));\n dtos.setApellidoCasada((String) resultado.getValueAt(0, 2));\n dtos.setNombre1((String) resultado.getValueAt(0, 3));\n dtos.setNombre2((String) resultado.getValueAt(0, 4));\n\n String tratamiento = (String) resultado.getValueAt(0, 5);\n\n if ((tratamiento != null) && !(tratamiento.equals(\"\"))) {\n dtos.setTratamiento(new Byte(tratamiento));\n }\n\n String sexo = (String) resultado.getValueAt(0, 6);\n\n if ((sexo != null) && !(sexo.equals(\"\"))) {\n dtos.setSexo(new Character(sexo.toCharArray()[0]));\n }\n\n dtos.setFechaIngreso((Date) resultado.getValueAt(0, 7));\n dtos.setFormaPago((String) resultado.getValueAt(0, 9));\n \n // Agregado by ssantana, inc. BELC300021214\n // Se agrega asignacion de parametro CodigoCliente\n dtos.setCodigoCliente((String) resultado.getValueAt(0, 10) );\n }\n\n query = new StringBuffer();\n resultado = new RecordSet();\n query.append(\" SELECT FEC_NACI, COD_EMPL, SNON_OID_NACI, VAL_EDAD, ESCV_OID_ESTA_CIVI, VAL_OCUP, \");\n query.append(\" VAL_PROF, VAL_CENT_TRAB, VAL_CARG_DESE, VAL_CENT_ESTU, NUM_HIJO, NUM_PERS_DEPE, \");\n query.append(\" NSEP_OID_NSEP, TCLV_OID_CICL_VIDA, IND_CORR, IMP_INGR_FAMI, I1.VAL_I18N DESC_NACION, \");\n query.append(\" I2.VAL_I18N DESC_EDO_CIVIL, I3.VAL_I18N DESC_NESP, I4.VAL_I18N DESC_CICLO_VIDA, \");\n query.append(\" NIED_OID_NIVE_ESTU, i5.VAL_I18N desc_nivel_estu, IND_ACTI \");\n query.append(\" FROM MAE_CLIEN_DATOS_ADICI , V_GEN_I18N_SICC I1, V_GEN_I18N_SICC I2, V_GEN_I18N_SICC I3, V_GEN_I18N_SICC I4, v_gen_i18n_sicc i5 \");\n query.append(\" where I1.ATTR_ENTI(+) = 'SEG_NACIO' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = SNON_OID_NACI \");\n query.append(\" and I2.ATTR_ENTI(+) = 'MAE_ESTAD_CIVIL' \");\n query.append(\" and I2.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I2.VAL_OID(+) = ESCV_OID_ESTA_CIVI \");\n query.append(\" and I3.ATTR_ENTI(+) = 'MAE_TIPO_NIVEL_SOCEC_PERSO' \");\n query.append(\" and I3.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I3.VAL_OID(+) = NSEP_OID_NSEP \");\n query.append(\" and I4.ATTR_ENTI(+) = 'MAE_CICLO_VIDA' \");\n query.append(\" and I4.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I4.VAL_OID(+) = TCLV_OID_CICL_VIDA \");\n query.append(\" and i5.ATTR_ENTI(+) = 'MAE_NIVEL_ESTUD' \");\n query.append(\" AND i5.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" AND i5.VAL_OID(+) = NIED_OID_NIVE_ESTU \");\n query.append(\" and CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n\n if (!resultado.esVacio()) {\n UtilidadesLog.debug(\"resultado: \" + resultado);\n\n dtos.setFechaNacimiento((Date) resultado.getValueAt(0, 0));\n dtos.setCodigoEmpleado((String) resultado.getValueAt(0, 1));\n /*cleal incidencia 21311 fecha 28/10/2005*/\n // Modificado por ssantana, 8/11/2005\n // dtos.setNacionalidad((resultado.getValueAt(0, 2))!=null ? new String(((BigDecimal) resultado.getValueAt(0, 2)).toString()) : \"\");\n dtos.setNacionalidad((resultado.getValueAt(0, 16)) != null ? (String) resultado.getValueAt(0, 16) : \"\"); \n //(resultado.getValueAt(0, 10) != null) ? new String(((BigDecimal) resultado.getValueAt(0, 10)).toString()) : null\n\n // dtos.setEdad((String)resultado.getValueAt(0, 3));\n dtos.setEdad((resultado.getValueAt(0, 3) != null) ? new String(((BigDecimal) resultado.getValueAt(0, 3)).toString()) : \"\");\n dtos.setEstadoCivil((String) resultado.getValueAt(0, 17));\n dtos.setOcupacion((String) resultado.getValueAt(0, 5));\n dtos.setProfesion((String) resultado.getValueAt(0, 6));\n dtos.setCentroTrabajo((String) resultado.getValueAt(0, 7));\n dtos.setCargo((String) resultado.getValueAt(0, 8));\n dtos.setCentro((String) resultado.getValueAt(0, 9));\n\n //dtos.setNumeroHijos((BigDecimal)resultado.getValueAt(0, 10));\n /* dtos.setNumeroHijos((resultado.getValueAt(0, 10) != null)\n ? new String(\n ((BigDecimal) resultado.getValueAt(0, 10)).toString())\n : \"0\");*/\n dtos.setNumeroHijos((resultado.getValueAt(0, 10) != null) ? new String(((BigDecimal) resultado.getValueAt(0, 10)).toString()) : null);\n\n //dtos.setPersonasDependientes((String)resultado.getValueAt(0, 11));\n /* dtos.setPersonasDependientes((resultado.getValueAt(0, 11) != null)\n ? new String(\n ((BigDecimal) resultado.getValueAt(0, 11)).toString())\n : \"0\");*/\n dtos.setPersonasDependientes((resultado.getValueAt(0, 11) != null) ? new String(((BigDecimal) resultado.getValueAt(0, 11)).toString()) : null);\n\n dtos.setNSEP((String) resultado.getValueAt(0, 18));\n dtos.setCicloVidaFamiliar((String) resultado.getValueAt(0, 19));\n dtos.setNivelEstudios((String) resultado.getValueAt(0, 21));\n\n //String corres = (String)resultado.getValueAt(0, 14);\n String corres = (resultado.getValueAt(0, 14) != null) ? new String(((BigDecimal) resultado.getValueAt(0, 14)).toString()) : null;\n\n //String corres = ((BigDecimal) resultado.getValueAt(0,14)).toString();\n Boolean correspondencia = null;\n\n if ((corres != null) && !(corres.equals(\"\"))) {\n if (corres.equals(\"1\")) {\n correspondencia = Boolean.TRUE;\n } else {\n correspondencia = Boolean.FALSE;\n }\n }\n\n dtos.setDeseaCorrespondencia(correspondencia);\n\n BigDecimal big = (BigDecimal) resultado.getValueAt(0, 15);\n\n if (big == null) {\n dtos.setImporteIngreso(\"\");\n } else {\n dtos.setImporteIngreso(big.toString());\n }\n \n //SICC-DMCO-MAE-GCC-006 - Cleal\n Boolean indActi = null;\n if(((BigDecimal) resultado.getValueAt(0, 22))!=null){\n\n if(((BigDecimal) resultado.getValueAt(0, 22)).longValue()==1){\n indActi = new Boolean(true);\n } else if(((BigDecimal) resultado.getValueAt(0, 22)).longValue()==0){\n indActi = new Boolean(false); \n }\n }\n dtos.setIndicadorActivo(indActi);\n }\n\n query = new StringBuffer();\n resultado = new RecordSet();\n query.append(\" SELECT I2.VAL_I18N, C.COD_CLIE, FEC_DESD, FEC_HAST, TIVC_OID_TIPO_VINC, IND_VINC_PPAL, I1.VAL_I18N DESC_TIPO_VINCU \");\n query.append(\" FROM MAE_CLIEN_VINCU, V_GEN_I18N_SICC I1, mae_tipo_vincu tv, seg_pais p, v_gen_i18n_sicc i2, mae_clien c \");\n query.append(\" where I1.ATTR_ENTI(+) = 'MAE_TIPO_VINCU' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TIVC_OID_TIPO_VINC \");\n \n /* inicio deshace modif ciglesias incidencia 24377 17/11/2006\n // SPLATAS - 26/10/2006 - Error al obtener clientes vinculados \n // query.append(\" and CLIE_OID_CLIE_VNDO = \" + oid.getOid() + \" \");\n query.append(\" and CLIE_OID_CLIE_VNTE = \" + oid.getOid() + \" \");\n */\n query.append(\" and CLIE_OID_CLIE_VNDO = \" + oid.getOid() + \" \");\n /*fin deshace ciglesias 24377*/\n \n query.append(\" AND mae_clien_vincu.TIVC_OID_TIPO_VINC = tv.OID_TIPO_VINC \");\n \n // SPLATAS - 26/10/2006 - Error al obtener clientes vinculados \n query.append(\" AND mae_clien_vincu.CLIE_OID_CLIE_VNTE = c.OID_CLIE \"); //eiraola 30/11/2006 Incidencia DBLG7...165\n \n //query.append(\" AND mae_clien_vincu.CLIE_OID_CLIE_VNDO = c.OID_CLIE \");\n \n query.append(\" AND tv.PAIS_OID_PAIS = p.OID_PAIS \");\n query.append(\" AND i2.VAL_OID = p.OID_PAIS \");\n query.append(\" AND i2.ATTR_ENTI = 'SEG_PAIS' \");\n query.append(\" AND i2.IDIO_OID_IDIO = \" + oid.getOidIdioma());\n\n resultado = bs.dbService.executeStaticQuery(query.toString());\n\n //UtilidadesLog.info(\"resultado Vinculo: \" + resultado.toString() );\n dtos.setVinculos(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n\n /*query.append(\" SELECT DES_CLIE_PREF, TIPF_OID_TIPO_PREF, DES_CLIE_PREF \");\n query.append(\" FROM MAE_CLIEN_PREFE \");\n query.append(\" where CLIE_OID_CLIE = \" + oid.getOid() + \" \");*/\n query.append(\" SELECT i1.VAL_I18N descripcionTipo , a.TIPF_OID_TIPO_PREF, a.DES_CLIE_PREF \");\n query.append(\" FROM MAE_CLIEN_PREFE a , v_gen_i18n_sicc i1 \");\n query.append(\" where a.CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" and i1.ATTR_ENTI = 'MAE_TIPO_PREFE' \");\n query.append(\" and i1.VAL_OID = a.TIPF_OID_TIPO_PREF \");\n query.append(\" and i1.IDIO_OID_IDIO = \" + oid.getOidIdioma());\n query.append(\" and i1.ATTR_NUM_ATRI = 1 \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n dtos.setPreferencias(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n query.append(\" SELECT MARC_OID_MARC, NUM_OBSE, VAL_TEXT, DES_MARC \");\n query.append(\" FROM MAE_CLIEN_OBSER M, SEG_MARCA S \");\n query.append(\" where CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" and M.MARC_OID_MARC = S.OID_MARC \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n dtos.setObservaciones(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n\n /* query.append(\" SELECT c.PAIS_OID_PAIS , c.COD_CLIE, t. TICL_OID_TIPO_CLIE, p.COD_TIPO_CONT, \");\n query.append(\" p.FEC_CONT, p.FEC_SIGU_CONT, I1.VAL_I18N DESC_PAIS, I2.VAL_I18N DESC_TIPO_CLIENTE \");\n query.append(\" FROM MAE_CLIEN_PRIME_CONTA p, MAE_CLIEN c, MAE_CLIEN_TIPO_SUBTI t, V_GEN_I18N_SICC I1, \");\n query.append(\" V_GEN_I18N_SICC I2 \");\n query.append(\" where I1.ATTR_ENTI(+) = 'SEG_PAIS' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = c.PAIS_OID_PAIS \");\n query.append(\" and I2.ATTR_ENTI(+) = 'MAE_TIPO_CLIEN' \");\n query.append(\" and I2.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I2.VAL_OID(+) = TICL_OID_TIPO_CLIE \");\n query.append(\" AND p.CTSU_CLIE_CONT = t.OID_CLIE_TIPO_SUBT \");\n query.append(\" AND t.CLIE_OID_CLIE = c.OID_CLIE \");\n query.append(\" and p.CLIE_OID_CLIE = \" + oid.getOid() + \" \"); */\n query.append(\" SELECT c.pais_oid_pais, c.cod_clie, t.ticl_oid_tipo_clie, p.cod_tipo_cont, \");\n query.append(\" p.fec_cont, p.fec_sigu_cont, i1.val_i18n desc_pais, \");\n query.append(\" i2.val_i18n desc_tipo_cliente, i3.val_i18n, perio.val_nomb_peri, marca.DES_MARC \");\n query.append(\" FROM mae_clien_prime_conta p, \");\n query.append(\" mae_clien c, \");\n query.append(\" mae_clien_tipo_subti t, \");\n query.append(\" seg_canal canal, \");\n query.append(\" cra_perio perio, \");\n query.append(\" seg_marca marca, \");\n query.append(\" v_gen_i18n_sicc i1, \");\n query.append(\" v_gen_i18n_sicc i2, \");\n query.append(\" v_gen_i18n_sicc i3 \");\n query.append(\" WHERE i1.attr_enti(+) = 'SEG_PAIS' \");\n query.append(\" AND i1.idio_oid_idio(+) = \" + oid.getOidIdioma().toString());\n query.append(\" AND i1.val_oid(+) = c.pais_oid_pais \");\n query.append(\" AND i2.attr_enti(+) = 'MAE_TIPO_CLIEN' \");\n query.append(\" AND i2.idio_oid_idio(+) = \" + oid.getOidIdioma().toString());\n query.append(\" AND i2.val_oid(+) = ticl_oid_tipo_clie \");\n query.append(\" AND p.ctsu_clie_cont = t.oid_clie_tipo_subt \");\n query.append(\" AND t.clie_oid_clie = c.oid_clie \");\n query.append(\" AND p.clie_oid_clie = \" + oid.getOid().toString());\n query.append(\" AND p.perd_oid_peri = perio.oid_peri(+) \");\n query.append(\" AND p.cana_oid_cana = canal.oid_cana(+) \");\n query.append(\" AND canal.oid_cana = i3.val_oid(+) \");\n query.append(\" AND i3.attr_enti(+) = 'SEG_CANAL' \");\n query.append(\" AND i3.attr_num_atri(+) = 1 \");\n query.append(\" AND i3.idio_oid_idio(+) = \" + oid.getOidIdioma().toString());\n query.append(\" and p.MARC_OID_MARC = marca.OID_MARC(+) \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n\n if (!resultado.esVacio()) {\n // by Ssantana, 29/7/04 - Se corren algunos indices en -1 al quitar\n // campo Primer Pedido Contacto. \n // 5/8//2004 - Se agregan descripciones de Marca, Canal y Periodo\n dtos.setPaisContactado((String) resultado.getValueAt(0, 6));\n dtos.setCodigoClienteContactado((String) resultado.getValueAt(0, 1));\n dtos.setTipoClienteContactado((String) resultado.getValueAt(0, 7));\n dtos.setTipoContacto((String) resultado.getValueAt(0, 3));\n dtos.setFechaContacto((Date) resultado.getValueAt(0, 4));\n dtos.setFechaSiguienteContacto((Date) resultado.getValueAt(0, 5));\n dtos.setMarcaContactoDesc((String) resultado.getValueAt(0, 10));\n dtos.setCanalContactoDesc((String) resultado.getValueAt(0, 8));\n dtos.setPeriodoContactoDesc((String) resultado.getValueAt(0, 9));\n\n /* dtos.setPaisContactado((String)resultado.getValueAt(0, 7));\n dtos.setCodigoClienteContactado((String)resultado.getValueAt(0, 1));\n dtos.setTipoClienteContactado((String)resultado.getValueAt(0, 8));\n dtos.setTipoContacto((String)resultado.getValueAt(0, 3));\n dtos.setFechaContacto((Date)resultado.getValueAt(0, 4));\n //dtos.setFechaPrimerPedido((Date)resultado.getValueAt(0, 5));\n dtos.setFechaSiguienteContacto((Date)resultado.getValueAt(0, 6));*/\n }\n //Cleal Mae-03\n MONMantenimientoSEGHome mmsHome = SEGEjbLocators.getMONMantenimientoSEGHome();\n mms = mmsHome.create();\n bUsaGEOREFERENCIADOR = mms.usaGeoreferenciador(oid.getOidPais());\n \n resultado = new RecordSet();\n if(Boolean.FALSE.equals(bUsaGEOREFERENCIADOR)){\n UtilidadesLog.debug(\"*** No usa GEO\");\n resultado = obtieneDireccionSinGEO(oid);\n } else{\n UtilidadesLog.debug(\"*** Usa GEO\");\n resultado = obtieneDireccionConGEO(oid);\n }//\n \n //\n /*\n query = new StringBuffer();\n resultado = new RecordSet();\n query.append(\" SELECT dir.TIDC_OID_TIPO_DIRE, dir.TIVI_OID_TIPO_VIA, \");\n //SICC-GCC-MAE-005 - Cleal\n query.append(\" NVL(dir.VAL_NOMB_VIA,vi.NOM_VIA) AS VIA, \");\n \n query.append(\" dir.NUM_PPAL, dir.VAL_COD_POST, \");\n query.append(\" dir.VAL_OBSE, I1.VAL_I18N DESC_TIPO_DIREC, I2.VAL_I18N DESC_TIPO_VIA, ind_dire_ppal, VAL.DES_GEOG \");\n query.append(\" FROM MAE_CLIEN_DIREC dir, ZON_VIA vi, ZON_VALOR_ESTRU_GEOPO val, \");\n //Cleal MAE-03\n if(bUsaGEOREFERENCIADOR.equals(Boolean.FALSE)){\n query.append(\" ZON_TERRI terr, \");\n }\n //\n query.append(\" V_GEN_I18N_SICC I1, V_GEN_I18N_SICC I2 \");\n query.append(\" WHERE I1.ATTR_ENTI(+) = 'MAE_TIPO_DIREC' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TIDC_OID_TIPO_DIRE \");\n query.append(\" and I2.ATTR_ENTI(+) = 'SEG_TIPO_VIA' \");\n query.append(\" and I2.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n\n //query.append(\" and I2.VAL_OID(+) = vi.TIVI_OID_TIPO_VIA \");\n query.append(\" and I2.VAL_OID(+) = dir.tivi_oid_tipo_via \");\n query.append(\" and dir.CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" AND dir.ZVIA_OID_VIA = vi.OID_VIA(+) \");\n //Cleal MAE-03\n if(bUsaGEOREFERENCIADOR.equals(Boolean.FALSE)){\n query.append(\" AND dir.TERR_OID_TERR = terr.OID_TERR \");\n query.append(\" AND terr.VEPO_OID_VALO_ESTR_GEOP = val.OID_VALO_ESTR_GEOP \");\n //SICC-GCC-MAE-005 - Cleal\n query.append(\" AND vi.PAIS_OID_PAIS = \"+oid.getOidPais());\n } else{\n \n query.append(\" \");\n \n }\n resultado = bs.dbService.executeStaticQuery(query.toString());\n */\n dtos.setDirecciones(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n\n /* query.append(\" SELECT TICM_OID_TIPO_COMU, VAL_DIA_COMU, VAL_TEXT_COMU, FEC_HORA_DESD, \");\n query.append(\" FEC_HORA_HAST, VAL_INTE_COMU, IND_COMU_PPAL, I1.VAL_I18N DESC_TIPO_COMUN \");\n query.append(\" FROM MAE_CLIEN_COMUN, V_GEN_I18N_SICC I1 \");\n query.append(\" where I1.ATTR_ENTI(+) = 'MAE_TIPO_COMUN' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TICM_OID_TIPO_COMU \");\n query.append(\" and CLIE_OID_CLIE = \" + oid.getOid() + \" \");*/\n query.append(\" SELECT i1.val_i18n desc_tipo_comun, val_dia_comu, val_text_comu, ind_comu_ppal, \");\n\n /* query.append(\" DECODE(to_char(FEC_HORA_DESD, 'HH24:MI'), NULL, ' ', to_char(FEC_HORA_DESD, 'HH24:MI')), \");\n query.append(\" DECODE(to_char(FEC_HORA_HAST, 'HH24:MI'), NULL, ' ', to_char(FEC_HORA_HAST, 'HH24:MI')), \");*/\n query.append(\" to_char(FEC_HORA_DESD, 'HH24:MI'), \");\n query.append(\" to_char(FEC_HORA_HAST, 'HH24:MI'), \");\n query.append(\" val_inte_comu \");\n query.append(\" FROM mae_clien_comun, v_gen_i18n_sicc i1 \");\n query.append(\" WHERE i1.attr_enti(+) = 'MAE_TIPO_COMUN' \");\n query.append(\" AND i1.idio_oid_idio(+) = \" + oid.getOidIdioma().toString());\n query.append(\" AND i1.val_oid(+) = ticm_oid_tipo_comu \");\n query.append(\" AND clie_oid_clie = \" + oid.getOid().toString());\n\n /* query.append(\" SELECT TICM_OID_TIPO_COMU, VAL_DIA_COMU, VAL_TEXT_COMU, FEC_HORA_DESD, \");\n query.append(\" FEC_HORA_HAST, VAL_INTE_COMU, IND_COMU_PPAL, I1.VAL_I18N DESC_TIPO_COMUN \");\n query.append(\" FROM MAE_CLIEN_COMUN, V_GEN_I18N_SICC I1 \");\n query.append(\" where I1.ATTR_ENTI(+) = 'MAE_TIPO_COMUN' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TICM_OID_TIPO_COMU \");\n query.append(\" and CLIE_OID_CLIE = \" + oid.getOid() + \" \"); */\n resultado = bs.dbService.executeStaticQuery(query.toString());\n UtilidadesLog.debug(\"----- resultado Comunicaciones: \" + resultado);\n dtos.setComunicaciones(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n query.append(\" SELECT MARC_OID_MARC, S.DES_MARC \");\n query.append(\" FROM MAE_CLIEN_MARCA M, SEG_MARCA S \");\n query.append(\" where CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" and M.MARC_OID_MARC = S.OID_MARC \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n\n String[] marcas = new String[resultado.getRowCount()];\n\n for (int i = 0; i < resultado.getRowCount(); i++)\n marcas[i] = (String) resultado.getValueAt(i, 1);\n\n dtos.setMarcas(marcas);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n query.append(\" SELECT TITR_OID_TIPO_TARJ, CLTA_OID_CLAS_TARJ, CBAN_OID_BANC, I1.VAL_I18N DESC_TIPO_TARJ, \");\n query.append(\" DES_CLAS_TARJ, DES_BANC \");\n query.append(\" FROM MAE_CLIEN_TARJE, V_GEN_I18N_SICC I1, MAE_CLASE_TARJE, CCC_BANCO \");\n query.append(\" where I1.ATTR_ENTI(+) = 'MAE_TIPO_TARJE' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TITR_OID_TIPO_TARJ \");\n query.append(\" and CLTA_OID_CLAS_TARJ = OID_CLAS_TARJ \");\n query.append(\" and CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" and CBAN_OID_BANC = OID_BANC \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n dtos.setTarjetas(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n\n /* query.append(\" SELECT t.TICL_OID_TIPO_CLIE, t.SBTI_OID_SUBT_CLIE, c.CLAS_OID_CLAS, c.TCCL_OID_TIPO_CLASI, \");\n query.append(\n \" c.FEC_CLAS, PERD_OID_PERI, I1.VAL_I18N DESC_TIPO_CLIENTE, I2.VAL_I18N DESC_SUB_TIPO_CLIENTE, I3.VAL_I18N DESC_CLASI, I4.VAL_I18N DESC_TIPO_CLASI_CLIENTE, I5.VAL_I18N DESC_PERIODO, \");\n query.append(\" i6.VAL_I18N desc_canal, m.DES_MARC desc_marca \");\n query.append(\" FROM MAE_CLIEN_TIPO_SUBTI t, MAE_CLIEN_CLASI c, V_GEN_I18N_SICC I1, V_GEN_I18N_SICC I2, \");\n query.append(\" V_GEN_I18N_SICC I3, V_GEN_I18N_SICC I4, V_GEN_I18N_SICC I5, \");\n query.append(\" cra_perio p, seg_marca m, v_gen_i18n_sicc i6 \");\n query.append(\" WHERE I1.ATTR_ENTI(+) = 'MAE_TIPO_CLIEN' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = t.TICL_OID_TIPO_CLIE \");\n query.append(\" and I2.ATTR_ENTI(+) = 'MAE_SUBTI_CLIEN' \");\n query.append(\" and I2.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I2.VAL_OID(+) = t.SBTI_OID_SUBT_CLIE \");\n query.append(\" and I3.ATTR_ENTI(+) = 'MAE_CLASI' \");\n query.append(\" and I3.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I3.VAL_OID(+) = c.CLAS_OID_CLAS \");\n query.append(\" and I4.ATTR_ENTI(+) = 'MAE_TIPO_CLASI_CLIEN' \");\n query.append(\" and I4.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I4.VAL_OID(+) = c.TCCL_OID_TIPO_CLASI \");\n query.append(\" and I5.ATTR_ENTI(+) = 'CRA_PERIO' \");\n query.append(\" and I5.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I5.VAL_OID(+) = PERD_OID_PERI \");\n query.append(\" and t.OID_CLIE_TIPO_SUBT = c.CTSU_OID_CLIE_TIPO_SUBT \");\n query.append(\" AND t.CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" AND perd_oid_peri = p.OID_PERI \");\n query.append(\" AND i6.VAL_OID(+) = p.CANA_OID_CANA \");\n query.append(\" AND i6.ATTR_ENTI(+) = 'SEG_CANAL' \");\n query.append(\" AND i6.IDIO_OID_IDIO = \" + oid.getOidIdioma() + \" \");\n query.append(\" AND i6.ATTR_NUM_ATRI = 1 \");\n query.append(\" AND p.MARC_OID_MARC = m.OID_MARC \"); */\n query.append(\" SELECT m.DES_MARC, v1.VAL_I18N, v2.VAL_I18N, \");\n query.append(\" v3.VAL_I18N, v4.VAL_I18N, v5.VAL_I18N \");\n query.append(\" FROM mae_clien_tipo_subti t, mae_clien_clasi c, cra_perio p, seg_marca m, v_gen_i18n_sicc v1, \");\n query.append(\" v_gen_i18n_sicc v2, v_gen_i18n_sicc v3, v_gen_i18n_sicc v4, v_gen_i18n_sicc v5 \");\n query.append(\" WHERE t.oid_clie_tipo_subt = c.ctsu_oid_clie_tipo_subt \");\n query.append(\" AND c.perd_oid_peri = p.oid_peri \");\n query.append(\" AND t.clie_oid_clie = \" + oid.getOid().toString());\n query.append(\" AND p.MARC_OID_MARC = m.OID_MARC \"); // MARCA\n query.append(\" AND p.CANA_OID_CANA = v1.VAL_OID \"); // CANAL\n query.append(\" AND v1.ATTR_NUM_ATRI = 1 \");\n query.append(\" AND v1.ATTR_ENTI = 'SEG_CANAL' \");\n query.append(\" AND v1.IDIO_OID_IDIO = \" + oid.getOidIdioma());\n query.append(\" AND t.TICL_OID_TIPO_CLIE = v2.VAL_OID \"); // TIPO CLIENTE\n query.append(\" AND v2.ATTR_ENTI = 'MAE_TIPO_CLIEN' \");\n query.append(\" AND v2.ATTR_NUM_ATRI = 1 \");\n query.append(\" AND v2.IDIO_OID_IDIO = \" + oid.getOidIdioma());\n query.append(\" AND t.SBTI_OID_SUBT_CLIE = v3.VAL_OID \"); // SUBTIPO CLIENTE\n query.append(\" AND v3.ATTR_ENTI = 'MAE_SUBTI_CLIEN' \");\n query.append(\" AND v3.ATTR_NUM_ATRI = 1 \");\n query.append(\" AND v3.IDIO_OID_IDIO = \" + oid.getOidIdioma());\n query.append(\" AND c.TCCL_OID_TIPO_CLASI = v4.VAL_OID \"); // TIPO CLASIFICACION\n query.append(\" AND v4.ATTR_ENTI = 'MAE_TIPO_CLASI_CLIEN' \");\n query.append(\" AND v4.ATTR_NUM_ATRI = 1 \");\n query.append(\" AND v4.IDIO_OID_IDIO = \" + oid.getOidIdioma());\n query.append(\" AND c.CLAS_OID_CLAS = v5.VAL_OID \"); // CLASIFICACION\n query.append(\" AND v5.ATTR_ENTI = 'MAE_CLASI' \");\n query.append(\" AND v5.ATTR_NUM_ATRI = 1 \");\n query.append(\" AND v5.IDIO_OID_IDIO = \" + oid.getOidIdioma());\n\n resultado = bs.dbService.executeStaticQuery(query.toString());\n \n // BELC300023061 - 04/07/2006\n // Si no se obtuvo ninguna clasificacion para el cliente en la consulta anterior, \n // insertar una fila en el atributo clasificaciones, con el indicador principal activo, \n // sólo con la marca y el canal\n if (!resultado.esVacio()) {\n dtos.setClasificaciones(resultado);\n } else {\n query = new StringBuffer();\n resultado = new RecordSet();\n \n query.append(\" SELECT mar.DES_MARC, \");\n query.append(\" \t\t iCa.VAL_I18N, null VAL_I18N, null VAL_I18N, null VAL_I18N, null VAL_I18N \");\n query.append(\" FROM MAE_CLIEN_UNIDA_ADMIN uA, \");\n query.append(\" \t CRA_PERIO per, \");\n query.append(\" \t\t SEG_MARCA mar, \");\n query.append(\" \t V_GEN_I18N_SICC iCa \");\n query.append(\" WHERE uA.CLIE_OID_CLIE = \" + oid.getOid().toString());\n query.append(\" AND uA.IND_ACTI = 1 \");\n query.append(\" \t AND uA.PERD_OID_PERI_INI = per.OID_PERI \");\n query.append(\" \t AND per.MARC_OID_MARC = mar.OID_MARC \");\n query.append(\" AND per.CANA_OID_CANA = iCa.VAL_OID \");\n query.append(\" AND iCa.ATTR_NUM_ATRI = 1 \");\n query.append(\" AND iCa.ATTR_ENTI = 'SEG_CANAL' \");\n query.append(\" AND iCa.IDIO_OID_IDIO = \" + oid.getOidIdioma());\n query.append(\" ORDER BY uA.OID_CLIE_UNID_ADMI ASC \");\n \n resultado = bs.dbService.executeStaticQuery(query.toString());\n dtos.setClasificaciones(resultado);\n }\n\n query = new StringBuffer();\n resultado = new RecordSet();\n\n //el false se utiliza para indicar que estas filas son de problemas \n //el true indica que estas filas son de soluciones \n query.append(\" SELECT i1.VAL_I18N, DES_PROB, decode(IND_SOLU,0,'false',1,'true') IND_SOLU, I2.VAL_I18N TSOC_OID_TIPO_SOLU, DES_SOLU, VAL_NEGO_PROD \");\n query.append(\" FROM MAE_CLIEN_PROBL, V_GEN_I18N_SICC I1, V_GEN_I18N_SICC I2 \");\n query.append(\" where I1.ATTR_ENTI(+) = 'MAE_TIPO_PROBL' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TIPB_OID_TIPO_PROB \");\n query.append(\" and I2.ATTR_ENTI(+) = 'MAE_TIPO_SOLUC' \");\n query.append(\" and I2.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I2.VAL_OID(+) = TSOC_OID_TIPO_SOLU \");\n query.append(\" and CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n\n resultado = bs.dbService.executeStaticQuery(query.toString());\n dtos.setProblemasSoluciones(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n\n /*SELECT s.des_marc, i1.val_i18n desc_tipo_perfil_psico, cod_test, fec_psic\n FROM mae_psico, v_gen_i18n_sicc i1, seg_marca s\n WHERE i1.attr_enti(+) = 'MAE_TIPO_PERFI_PSICO'\n AND i1.idio_oid_idio(+) = 1\n AND i1.val_oid(+) = tpoid_tipo_perf_psic\n AND clie_oid_clie = 152\n AND marc_oid_marc = s.oid_marc */\n query.append(\" SELECT s.des_marc, i1.val_i18n desc_tipo_perfil_psico, cod_test, fec_psic \");\n query.append(\" FROM mae_psico, v_gen_i18n_sicc i1, seg_marca s \");\n query.append(\" WHERE i1.attr_enti(+) = 'MAE_TIPO_PERFI_PSICO' \");\n query.append(\" AND i1.idio_oid_idio(+) = \" + oid.getOidIdioma().toString());\n query.append(\" AND i1.val_oid(+) = tpoid_tipo_perf_psic \");\n query.append(\" AND clie_oid_clie = \" + oid.getOid().toString());\n query.append(\" AND marc_oid_marc = s.oid_marc \");\n\n /* query.append(\" SELECT MARC_OID_MARC, TPOID_TIPO_PERF_PSIC, COD_TEST, FEC_PSIC, \");\n query.append(\" I1.VAL_I18N DESC_TIPO_PERFIL_PSICO, S.DES_MARC \");\n query.append(\" FROM MAE_PSICO, V_GEN_I18N_SICC I1, SEG_MARCA S \");\n query.append(\" where I1.ATTR_ENTI(+) = 'MAE_TIPO_PERFI_PSICO' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TPOID_TIPO_PERF_PSIC \");\n query.append(\" and CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" and MARC_OID_MARC = S.OID_MARC \");*/\n resultado = bs.dbService.executeStaticQuery(query.toString());\n dtos.setPsicografias(resultado);\n } catch (CreateException re) {\n throw new MareException(re, UtilidadesError.armarCodigoError(CodigosError.ERROR_AL_LOCALIZAR_UN_COMPONENTE_EJB));\n } catch (RemoteException re) {\n throw new MareException(re, UtilidadesError.armarCodigoError(CodigosError.ERROR_AL_LOCALIZAR_UN_COMPONENTE_EJB));\n } catch (Exception e) {\n e.printStackTrace();\n throw new MareException(e, UtilidadesError.armarCodigoError(CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS));\n }\n\n UtilidadesLog.debug(\"DTO a retornar: \" + dtos.toString());\n UtilidadesLog.info(\" DAOMAEMaestroClientes.consultarCliente(DTOOID): Salida\");\n\n return dtos;\n }", "public interface BeeDataDao {\n\n /*获取兼职数据*/\n BeeJobTime getBeeJobTime();\n\n /*分页获取兼职数据*/\n BeeJobTime getBeeJobTimes(@Param(\"startIndex\") int startIndex, @Param(\"endAmount\") int endAmount);\n\n /*获取暑期工数据*/\n BeeSummerJob getBeeSummerJob();\n\n /*分页获取暑期工数据*/\n BeeSummerJob getBeeSummerJobs(@Param(\"startIndex\") int startIndex, @Param(\"endAmount\") int endAmount);\n\n /*根据JID获取兼职详细信息*/\n BeeJobTimeDetailed getBeeJobTimeDetailed(int jid);\n\n /*根据SID获取兼职详细信息*/\n BeeSummerJobDetailed getSummerJobDetailed(int sid);\n\n /*分页获取兼职报名信息*/\n UserMessageList getSignUpJobFairs(@Param(\"startIndex\") int startIndex, @Param(\"endAmount\") int endAmount);\n\n /*获取兼职报名List*/\n UserMessageList getSignUpJobFair();\n\n /*根据phone查询兼职报名人员*/\n UserMessageList selectJobFairUser(String phone);\n\n /*兼职报名*/\n void putSignUpJobFair(@Param(\"userMessage\") UserMessage userMessage);\n\n /*根据UserId查询报名人员*/\n String selectSignUpJobFairByUserId(int UserId);\n\n /*插入amount*/\n void insertAmount(@Param(\"amount\") String amount,@Param(\"jobNames\") String jobNames,@Param(\"userId\") int userId);\n\n /*暑期工报名*/\n void putSignUpSummerJob(@Param(\"userMessage\") UserMessage userMessage);\n\n /*暑期工发布*/\n void publishSummerJob(@Param(\"beeSummerJobDetailed\") BeeSummerJobDetailed beeSummerJobDetailed,@Param(\"tag\") String tag);\n\n /*兼职发布*/\n void publishJobFair(@Param(\"beeSummerJobDetailed\") BeeSummerJobDetailed beeSummerJobDetailed,@Param(\"tag\") String tag);\n\n /*分页获取暑期工报名信息*/\n UserMessageList getSignUpSummerJobs(@Param(\"startIndex\") int startIndex, @Param(\"endAmount\") int endAmount);\n\n /*获取暑期工报名List*/\n UserMessageList getSignUpSummerJob();\n\n BeeSummerJobDetailedList AuditingJobFairs(@Param(\"startIndex\") int startIndex, @Param(\"endAmount\") int endAmount);\n\n BeeSummerJobDetailedList AuditingJobFair();\n\n BeeSummerJobDetailedList AuditingSummerJob();\n\n BeeSummerJobDetailedList AuditingSummerJobs(@Param(\"startIndex\") int startIndex, @Param(\"endAmount\") int endAmount);\n\n String selectSignUpJobFairByJIDS(int userId);\n\n UserMessageList selectSummerJobUser(String phone);\n\n String selectSignUpSummerJobByJIDS(int userId);\n\n String selectSignUpSummerJobByUserId(int userId);\n\n void insertAmount1(String jids, String jobNameS, int userId);\n\n int getSid(int id);\n\n int getJid(int id);\n\n void putOpenId(@Param(\"openId\") Object openId,@Param(\"targetId\") int targetId);\n\n BeeJobTime getAuditingBeeJobTimeByOpenId(String openId);\n\n BeeJobTime getAuditingBeeJobTimesByOpenId(@Param(\"openId\") String openId, @Param(\"startIndex\") int startIndex, @Param(\"endAmount\") int endAmount);\n\n BeeJobTime getBeeJobTimesByOpenId(@Param(\"openId\") String openId, @Param(\"startIndex\") int startIndex, @Param(\"endAmount\") int endAmount);\n\n BeeJobTime getBeeJobTimeByOpenId(String openId);\n\n int selectIsGet(int i);\n\n UserMessageList getSignUpJobFairsByJid();\n\n UserMessageList getSignUpJobFairByJid(@Param(\"jid\") String jid,@Param(\"startIndex\") int startIndex, @Param(\"endAmount\") int endAmount);\n\n int selectargetId(String openId);\n\n BeeJobTimeDetailed getAuditingBeeJobTimeDetailed(int jid);\n\n int selectOpenId(Object openId);\n\n Object selectOpenIds(Object openId);\n\n List<Integer> getJidByOpenId(String openId);\n\n void getJobTimeUserByJid(List<Integer> jid);\n\n String getJidsByOpenId(String openId);\n\n BeeJobTime getJobTimeByOpenId(@Param(\"jidS\") List<String> jidS);\n\n BeeJobTime getBeeJobTimesByOpenIds(int startIndex, int endAmount);\n\n String getJidsByJid(int i);\n\n String[] getJids();\n}", "public interface ExamineDao extends CrudRepository<Examine,Integer>{\n public Examine findByCodeeAndIdtemplate(String codee, int idtemplate);\n public List<Examine> findByIdtemplate(int idtemplate);\n public List<Examine> findByCodee(String codee);\n}", "public empresaDAO(){\r\n \r\n }", "public GenericDao<Client> getClientDao();", "public interface ForecastDao extends SavableEntityDao<Forecast>, UpdatableEntityDao<Forecast>, RemovableEntityDao<Forecast> {\n\n Forecast getById(Long forecastId);\n\n List<Forecast> getAll();\n\n List<ResultadoQuery> findSumForecastAgrupadosGrupoGastos(int anio);\n\n List<ResultadoQuery> findImporteTotalMes(int anio);\n\n List<ResultadoQuery> findDetalleForecastsPorGrupoGastos(String grupoGasto, int anio);\n\n}", "public interface IUserParserDao extends IBaseDao<UserParserRecord>{\n List<UserParserRecord> queryByFileNameAndUserSign(String fileName, String userSign);\n\n List<UserParserRecord> queryByUserSignAndStatus(String userName,Integer status);\n}", "public interface IEjsinoDao {\n\n public List<EjsinoCityInfo> getCityInfo();\n\n /**\n * 记录e车险订单 根据业务场景因此业务量少,做使用一个表做记录即可\n * @param ejsinoFormModel\n * @return\n */\n public int insertEjsinoInfo(EjsinoFormModel ejsinoFormModel);\n\n /**\n * 完善e车险订单信息\n * @param ejsinoFormModel\n * @return\n */\n public int updateEjsinoInfo(EjsinoFormModel ejsinoFormModel);\n\n /**\n * 判断交易号是否存在\n * @param outerno\n * @return\n */\n public int getEjsinoCountByOuterno(String outerno);\n}", "public interface RecuPromotionAccordeeDAO {\n \n public RecuPromotionAccordee findById(int id);\n\t\t\n\t\tpublic void add(RecuPromotionAccordee recuPromotionAccordee);\n\t\t\n\t\tpublic RecuPromotionAccordee edit(RecuPromotionAccordee e);\n\t\t\n\t\tpublic void delete(RecuPromotionAccordee e); \n\t\t\n\t\tpublic List<RecuPromotionAccordee> findAll();\n \n public List<RecuPromotionAccordee> findByEtat (String etat);\n}", "@Repository\npublic interface WeatherAqiDao {\n /**\n * 根据参数查询AQI\n * @param selParams\n * @return\n */\n List<WeatherAQI> selectAqis(HashMap<String, Object> selParams);\n\n /**\n * 入库AQI\n * @param weatherAQI\n */\n void insert(WeatherAQI weatherAQI);\n\n /**\n * 更新AQI\n * @param weatherAQI\n */\n void update(WeatherAQI weatherAQI);\n\n /**\n * 根据id查询空气质量\n * @param params\n * @return\n */\n WeatherAQI selectById(Map<String, Object> params);\n}", "public interface OrganismDao extends IntactBaseDao<IntactOrganism>{\n\n public IntactOrganism getByAc(String ac);\n\n public IntactOrganism getByShortName(String value);\n\n public Collection<IntactOrganism> getByShortNameLike(String value);\n\n public Collection<IntactOrganism> getByScientificName(String value);\n\n public Collection<IntactOrganism> getByScientificNameLike(String value);\n\n public Collection<IntactOrganism> getByTaxid(int taxid);\n\n /**\n * Biosources with only a taxid, no celltype or tissue\n * @param taxid Organism taxon identifier\n * @return the IntAct organism representation\n */\n public IntactOrganism getByTaxidOnly(int taxid);\n\n public Collection<IntactOrganism> getByAliasName(String name);\n\n public Collection<IntactOrganism> getByAliasTypeAndName(String typeName, String typeMI, String name);\n\n public Collection<IntactOrganism> getByAliasNameLike(String name);\n\n public Collection<IntactOrganism> getByAliasTypeAndNameLike(String typeName, String typeMI, String name);\n\n public Collection<IntactOrganism> getByCellTypeAc(String cellAc);\n\n public Collection<IntactOrganism> getByTissueAc(String tissueAc);\n\n public Collection<IntactOrganism> getByCellTypeName(String cellName);\n\n public Collection<IntactOrganism> getByTissueName(String tissueName);\n\n public Collection<IntactOrganism> getByCellTypeNameLike(String cellName);\n\n public Collection<IntactOrganism> getByTissueNameLike(String tissueName);\n\n public Collection<Alias> getAliasesForOrganism(String ac);\n\n public Collection<IntactOrganism> getAllOrganisms(boolean allowOrganismWithCellType, boolean allowOrganismWithTissue);\n\n public int countAliasesForOrganism(String ac);\n}", "public static void main(String [] args){\n\t\t\r\n\t\tEstadoDAO dao = new EstadoDAO();\r\n\t//\tdao.salvar(estado);\r\n\t\tList<Estado> estados= dao.list();\r\n\t\t \r\n\t\t for(Estado est: estados){\r\n\t\t System.out.println(est.getEstado());\r\n\t\t \r\n\t\t\t\t\r\n\r\n\t\t \r\n\t\t // CidadeDAO dao = new CidadeDAO();\r\n\t\t // cidades = dao.buscartudo();\r\n\t\t // for(Cidade cid: cidades){\r\n\t\t // System.out.println(cid.getNome_cidade());\r\n\t\t }\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t}", "public EntityAisle getByMatricule(int matricule ){\n\n\n DatabaseHelper databaseHelper = DatabaseHelper.getInstance(this.mExecutionContext);\n SQLiteDatabase sqLiteDatabase = databaseHelper.getReadableDatabase();\n\n EntityAisle result = null;\n\n Cursor cursor = null;\n try {\n\n cursor = sqLiteDatabase.query(ConfigDAO.TABLE_AISLE, null, ConfigDAO.COLUMN_RAYON_ID +\" = \" + matricule , null, null, null, null, null);\n\n /**\n // If you want to execute raw query then uncomment below 2 lines. And comment out above line.\n\n String SELECT_QUERY = String.format(\"SELECT %s, %s, %s, %s, %s FROM %s\", Config.COLUMN_Employee_ID, Config.COLUMN_Employee_NAME, Config.COLUMN_Employee_REGISTRATION, Config.COLUMN_Employee_EMAIL, Config.COLUMN_Employee_PHONE, Config.TABLE_Employee);\n cursor = sqLiteDatabase.rawQuery(SELECT_QUERY, null);\n */\n\n if(cursor!=null)\n if(cursor.moveToFirst()){\n List<EntityAisle> AisleList = new ArrayList<>();\n do {\n int id = cursor.getInt(cursor.getColumnIndex(ConfigDAO.COLUMN_RAYON_ID));\n String name = cursor.getString(cursor.getColumnIndex(ConfigDAO.COLUMN_RAYON_NAME));\n\n\n\n AisleList.add(new EntityAisle(id, name));\n } while (cursor.moveToNext());\n result = AisleList.get(0);\n return result;\n }\n } catch (Exception e){\n Log.i(TAG, \"getAllAisle: \"+e.getMessage());\n Toast.makeText(this.mExecutionContext, \"Operation failed\", Toast.LENGTH_SHORT).show();\n } finally {\n if(cursor!=null)\n cursor.close();\n sqLiteDatabase.close();\n }\n\n return result;\n }", "public interface RightInfoDAO extends BaseDAO {\n /** The name of the DAO */\n public static final String NAME = \"RightInfoDAO\";\n\n\t/**\n\t * Insert one <tt>RightInfoDTO</tt> object to DB table <tt>azdai_right_info</tt>, return primary key\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>insert into azdai_right_info(code,title,memo,gmt_create,gmt_modify) values (?, ?, ?, ?, ?)</tt>\n\t *\n\t *\t@param rightInfo\n\t *\t@return String\n\t *\t@throws DataAccessException\n\t */\t \n public String insert(RightInfoDTO rightInfo) throws DataAccessException;\n\n\t/**\n\t * Update DB table <tt>azdai_right_info</tt>.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>update azdai_right_info set title=?, memo=?, gmt_modify='NOW' where (code = ?)</tt>\n\t *\n\t *\t@param rightInfo\n\t *\t@return int\n\t *\t@throws DataAccessException\n\t */\t \n public int update(RightInfoDTO rightInfo) throws DataAccessException;\n\n\t/**\n\t * Query DB table <tt>azdai_right_info</tt> for records.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>select * from azdai_right_info where (code = ?)</tt>\n\t *\n\t *\t@param code\n\t *\t@return RightInfoDTO\n\t *\t@throws DataAccessException\n\t */\t \n public RightInfoDTO find(String code) throws DataAccessException;\n\n\t/**\n\t * Query DB table <tt>azdai_right_info</tt> for records.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>select * from azdai_right_info order by code ASC</tt>\n\t *\n\t *\t@return List<RightInfoDTO>\n\t *\t@throws DataAccessException\n\t */\t \n public List<RightInfoDTO> findAll() throws DataAccessException;\n\n\t/**\n\t * Query DB table <tt>azdai_right_info</tt> for records.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>select * from azdai_right_info order by code ASC</tt>\n\t *\n\t *\t@param userNo\n\t *\t@return List<RightInfoDTO>\n\t *\t@throws DataAccessException\n\t */\t \n public List<RightInfoDTO> findUserRights(String userNo) throws DataAccessException;\n\n\t/**\n\t * Delete records from DB table <tt>azdai_right_info</tt>.\n\t *\n\t * <p>\n\t * The sql statement for this operation is <br>\n\t * <tt>delete from azdai_right_info where (code = ?)</tt>\n\t *\n\t *\t@param code\n\t *\t@return int\n\t *\t@throws DataAccessException\n\t */\t \n public int delete(String code) throws DataAccessException;\n\n}", "public interface ShowingDao extends BaseDao<Showing> {\n\n public List<Showing> findShowingByCinemaId(String id);\n}", "public interface TScientificEntityDao {\n\n public Page<TScientificEntity> listRecordsByCondition(Page page);\n public List<TScientificEntity> getLists(Page.FilterModel condition);\n\n public String getNumber(int uer_id);\n\n}", "Tablero consultarTablero();", "public interface DevmessDao {\n public List<Devmess> selectDevmessByName(@Param(value = \"name\") String name,\n @Param(value = \"startTime\") String startTime,\n @Param(value = \"endTime\") String endTime);\n\n\n public List<Devmess> selectDevmessByPages(@Param(value = \"pretotal\") String pretotal,\n @Param(value = \"len\") String len);\n\n public int modifyDevmessById(@Param(value = \"id\") String id,\n @Param(value = \"name\")String name,\n @Param(value = \"value\")String value,\n @Param(value = \"time\")String time,\n @Param(value = \"quality\")String quality);\n\n public Integer getDevmessTotalCount();\n\n public Integer getDevmessFilteredCount(@Param(value = \"sumSqlWhere\") String sumSqlWhere,\n @Param(value = \"search\")String search);\n\n\n public Integer getDevmessTimeFilteredCount(@Param(value = \"startTime\")String startTime,\n @Param(value = \"endTime\")String endTime);\n\n public List<Devmess> getDevmessByConditions(@Param(value = \"start\")String start,\n @Param(value = \"end\")String end,\n @Param(value = \"search\")String search,\n @Param(value = \"orderSql\")String orderSql,\n @Param(value = \"sumSqlWhere\")String sumSqlWhere);\n\n\n public List<Devmess> getDevmessByTimeConditions(@Param(value = \"start\")String start,\n @Param(value = \"end\")String end,\n @Param(value = \"startTime\")String startTime,\n @Param(value = \"endTime\")String endTime,\n @Param(value = \"orderSql\")String orderSql);\n public Devmess selectDevmessMax(@Param(value = \"name\") String name,\n @Param(value = \"startTime\") String startTime,\n @Param(value = \"endTime\") String endTime);\n\n public Devmess selectDevmessMin(@Param(value = \"name\") String name,\n @Param(value = \"startTime\") String startTime,\n @Param(value = \"endTime\") String endTime);\n\n public List<Devmess> getLatestDevmessByDeviceId(@Param(value = \"deviceId\")String deviceId);\n\n public Devmess getLatestDevmessByName(@Param(value = \"name\")String name);\n\n public int addDevmessItem(@Param(value = \"name\")String name,\n @Param(value = \"value\")String value,\n @Param(value = \"time\")String time,\n @Param(value = \"quality\")String quality);\n}", "public interface PhieuNhapDao extends GenericDao<PhieuNhap, Integer>{\n}", "public interface AdminDao extends BaseDao{\n\n /**\n * 根据用户名查询该用户信息\n * @param admin\n * @return\n */\n public Admin findAdminByName(Admin admin);\n}", "public interface BookDao {\n //////////////////////小试牛刀///////////////////\n //加载所有图书信息\n public List<Book> bookList()throws Exception;\n //按ID查询图书信息\n public Book byIdSelect(int id) throws IOException;\n //添加图书\n public int Add(Book book) throws IOException;\n //删除图书\n public int Del(int id)throws IOException;\n //修改图书\n public int Up(Book book)throws Exception;\n //模糊查询 显示图书信息 (单条件)\n public List<Book> LikeBookInfo(@Param(\"bookname\") String name)throws Exception;\n //多条件查询 显示图书信息\n public List<Book> ByNeedSelect( Book book)throws Exception;\n //多条件查询2\n public List<Book> LikeBookName(Map<String,Object> map)throws Exception;\n //查询图书的分类和作者 在Book实体类中加上分类名称属性- private String catename;\n public List<Book> SelectBookTypeAndAuthor()throws Exception;\n //按图书ID查询图书的分类和作者 重复练习加强记忆\n public Book ByIdSelectBookTypeAndAuthor(@Param(\"bookid\") int id)throws Exception;\n //按图书类型ID获取该类型图书信息\n public List<Book> ByTypeIdGetBookInfo(@Param(\"bookcategory\")int id)throws Exception;\n //按图书类型ID获取该类型图书信息2\n public List<Book> ByTypeIdGetBookInfo2(@Param(\"bookcategory\")int id)throws Exception;\n //智能标签if\n public List<Book> BookListByIf(Book book)throws Exception;\n //智能标签choose\n public List<Book> BookListChoose(int[] ints)throws Exception;\n //智能标签List\n public List<Book> BookListList(List<Book> list)throws Exception;\n\n\n\n\n\n\n}", "public interface VedioDao {\n void addVedio(Vedio vedio);\n\n void deleteVedio(Vedio news);\n\n int findCountVedioByCondition(int typeId, String vedioKey);\n\n List<Vedio> findVedioByCondition(int begin, int pageCount, int typeId, String vedioKey);\n\n void deleteMoreVedio(String[] checkVedioIDs);\n \n Vedio find(int vedio_id);\n}", "public Reporteador cargarDetalle(int idReporte)\r\n/* 197: */ {\r\n/* 198:214 */ return this.reporteadorDao.cargarDetalle(idReporte);\r\n/* 199: */ }", "public interface DotaMaxDAO {\n\n\n /**\n * 将hero实例存储到数据库。\n */\n void insertHeroes(List<Heroes> heroList);\n\n /**\n * 将Item实例存储到数据库。\n */\n void insertItems(List<Items> itemsList);\n\n\n /**\n * 加载英雄列表\n * @return\n */\n Heroes getHeroes(int id);\n\n\n\n\n\n\n void insertMatch(MatchDetails match);\n\n /**\n * 加载数据库里已有的数据\n * @param id\n * @return\n */\n MatchDetails getMatch(long id);\n\n /**\n * 加载用户的数据\n * @param account_id\n * @return\n */\n List<MatchDetails> getMatchByAccountId(long account_id);\n\n\n String getItemsNameById(String item_id);\n\n\n\n /**\n * 添加到User表\n */\n boolean insertUser(User user);\n\n /**\n * 从User表读取所有的用户\n */\n List<Long> getUser();\n\n\n\n}", "public Coche consultarUno(int id) {\n Coche coche =cochedao.consultarUno(id);\r\n \r\n return coche;\r\n }", "public void findbyid() throws Exception {\n try {\n Ume_unidade_medidaDAO ume_unidade_medidaDAO = getUme_unidade_medidaDAO();\n List<Ume_unidade_medidaT> listTemp = ume_unidade_medidaDAO.getByPK( ume_unidade_medidaT);\t \n\n ume_unidade_medidaT= listTemp.size()>0?listTemp.get(0):new Ume_unidade_medidaT();\n \n } catch (Exception e) {\n e.printStackTrace();\n setMsg(\"Falha ao realizar consulta!\");\t\n } finally {\n\tclose();\n }\n }", "@Repository\npublic interface UserDao {\n int getuid(String user_name);\n void addqiandao(qiandao qiandao);\n List<Role> getqx(String user_name);\n List<qiandao> gety(String user_name);\n List<qiandao> getj();\n List<qiandao> getall();\n Timestamp getoldtime(int uid);\n void delete1(int qid);\n\n\n}", "@Dao\npublic interface FSalesmanDao {\n /**\n * @param fSalesman\n * Harus Menggunakan\n * .allowMainThreadQueries() pada Configurasi database utama agar tidak perlu menggunakan AsynT\n */\n @Insert\n void insert(FSalesman fSalesman);\n @Update\n void update(FSalesman fSalesman);\n @Delete\n void delete(FSalesman fSalesman);\n\n\n @Query(\"DELETE FROM fSalesman\")\n void deleteAllFSalesman();\n\n @Query(\"SELECT * FROM fSalesman \")\n LiveData<List<FSalesman>> getAllFSalesmanLive();\n\n @Query(\"SELECT * FROM fSalesman \")\n List<FSalesman> getAllFSalesman();\n\n\n @Query(\"SELECT * FROM fSalesman WHERE id = :id \")\n List<FSalesman> getAllById(int id);\n\n @Query(\"SELECT * FROM fSalesman WHERE fdivisionBean = :id \")\n List<FSalesman> getAllByDivision(int id);\n\n}", "@Local\npublic interface CobranzaDaoLocal extends GenericDAOLocal<String,Cobranza> {\n\t\n\tString generarNumeroOperacion(Integer anho) throws Exception;\n\t\n\t/**\n\t * Generar id Cobranza.\n\t *\n\t * @param Cobranza el cuota concepto\n\t * @return the long\n\t * @throws Exception the exception\n\t */\n\tString generarIdCobranza(String idAnhoSemestre) throws Exception;\n\t\n\t/**\n\t * Listar control pago.\n\t *\n\t * @param Cobranza el control pagoDTO\n\t * @return the list\n\t * @throws Exception the exception\n\t */\n\tList<Cobranza> listarCobranza(CobranzaDTO cobranza) throws Exception;\n\t\n\t/**\n\t * contar lista control pago.\n\t *\n\t * @param Cobranza el control pago\n\t * @return the list\n\t * @throws Exception the exception\n\t */\n\tint contarListarCobranza(CobranzaDTO cobranza);\n\t/**\n\t * Generar id Cobranza.\n\t *\n\t * @return the String\n\t * @throws Exception the exception\n\t */\n\tString generarIdCobranza() throws Exception;\n\t\t\n\t\n\tCobranza findAlumnoByCobranza(String idDetCobranza) throws Exception ;\n\t\n\tBigDecimal contarMontoTotalCobranza(String userName,Date fecha) ;\n\t\n\tList<IngresoVoDTO> listarIngresos(IngresoVoDTO filtro) throws Exception;\n}", "public void obtenerTipificacionesCliente(Participante cliente)\n throws MareException {\n \n UtilidadesLog.info(\" DAOSolicitudes.obtenerTipificacionesCliente(Par\"\n +\"ticipante cliente):Entrada\");\n BelcorpService bs;\n RecordSet respuesta;\n String codigoError;\n StringBuffer query = new StringBuffer();\n\n if (cliente.getOidCliente() == null) {\n cliente.setTipificacionCliente(null);\n if(log.isDebugEnabled()) {//sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"---- NULO : \");\n UtilidadesLog.debug(\"---- cliente : \" + cliente.getOidCliente());\n } \n } else {\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 query.append(\" SELECT CLIE_OID_CLIE, \");\n query.append(\" CLAS_OID_CLAS, \");\n query.append(\" SBTI_OID_SUBT_CLIE, \");\n query.append(\" TCCL_OID_TIPO_CLASI, \");\n query.append(\" TICL_OID_TIPO_CLIE \");\n query.append(\" FROM V_MAE_TIPIF_CLIEN \");\n query.append(\" WHERE CLIE_OID_CLIE = \" + cliente\n .getOidCliente());\n respuesta = bs.dbService.executeStaticQuery(query.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"---- TIPIF : \" + 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 cliente.setTipificacionCliente(null);\n } else {\n TipificacionCliente[] tipificaciones = new TipificacionCliente[\n respuesta.getRowCount()];\n\n for (int i = 0; i < respuesta.getRowCount(); i++) {\n tipificaciones[i] = new TipificacionCliente();\n\n {\n BigDecimal oidClasificacionCliente = (BigDecimal) \n respuesta.getValueAt(i, \"CLAS_OID_CLAS\");\n tipificaciones[i].setOidClasificacionCliente((\n oidClasificacionCliente != null) ? new Long(\n oidClasificacionCliente.longValue()) : null);\n }\n\n tipificaciones[i].setOidSubTipoCliente(new Long((\n (BigDecimal) respuesta\n .getValueAt(i, \"SBTI_OID_SUBT_CLIE\")).longValue()));\n\n {\n BigDecimal oidTipoClasificacionCliente = (BigDecimal) \n respuesta.getValueAt(i, \"TCCL_OID_TIPO_CLASI\");\n tipificaciones[i].setOidTipoClasificacionCliente(\n (oidTipoClasificacionCliente != null)? new Long(\n oidTipoClasificacionCliente.longValue()) \n : null);\n }\n\n tipificaciones[i].setOidTipoCliente(new Long(((BigDecimal)\n respuesta.getValueAt(i, \"TICL_OID_TIPO_CLIE\"))\n .longValue()));\n }\n\n cliente.setTipificacionCliente(tipificaciones);\n }\n }\n UtilidadesLog.info(\" DAOSolicitudes.obtenerTipificacionesCliente(Par\"\n +\"ticipante cliente):Salida\");\n }", "public interface PreguntaDao {\n\n\t/** Devuelve las preguntas mas recientes, ordenadas desde la mas reciente hacia la mas antigua.\n\t * @param page La pagina de preguntas (comienza de la 1)\n\t * @param pageSize El numero de resultados a devolver por pagina. */\n\tpublic List<Pregunta> getPreguntasRecientes(int page, int pageSize);\n\n\t/** Devuelve las preguntas hechas por el usuario indicado. */\n\tpublic List<Pregunta> getPreguntasUsuario(Usuario user);\n\n\t/** Devuelve las preguntas que contienen el tag especificado. */\n\tpublic List<Pregunta> getPreguntasConTag(TagPregunta tag);\n\n\t/** Devuelve todas las preguntas que tengan al menos uno de los tags especificados. */\n\tpublic List<Pregunta> getPreguntasConTags(Set<TagPregunta> tags);\n\n\t/** Devuelve las preguntas que contienen el tag especificado. */\n\tpublic List<Pregunta> getPreguntasConTag(String tag);\n\n\t/** Devuelve los tags mas utilizados en preguntas.\n\t * @param limit El numero maximo de tags a devolver. */\n\tpublic List<TagPregunta> getTagsPopulares(int limit);\n\n\t/** Devuelve la pregunta con el id especificado. */\n\tpublic Pregunta getPregunta(int id);\n\n\t/** Devuelve las respuestas a la pregunta especificada.\n\t * @param pageSize El numero maximo de preguntas a devolver.\n\t * @param page El numero de pagina a devolver (la primera pagina es 1)\n\t * @param crono Indica si se deben ordenar las respuestas en orden cronologico, en vez de por votos\n\t * (default es por votos). */\n\tpublic List<Respuesta> getRespuestas(Pregunta q, int pageSize, int page, boolean crono);\n\n\t/** Devuelve la lista de preguntas con mas votos positivos.\n\t * @param limit El numero maximo de preguntas a devolver. */\n\tpublic List<Pregunta> getPreguntasMasVotadas(int limit);\n\n\t/** Devuelve la lista de preguntas que no tienen ni una sola respuesta. */\n\tpublic List<Pregunta> getPreguntasSinResponder(int limit);\n\n\t/** Devuelve la lista de preguntas cuyo autor no ha elegido una respuesta. */\n\tpublic List<Pregunta> getPreguntasSinResolver(int limit);\n\n\t/** Registra un voto que un usuario hace a una pregunta.\n\t * @param user El usuario que hace el voto\n\t * @param pregunta La pregunta a la cual se aplica el voto\n\t * @param up Indica si el voto es positivo (true) o negativo (false).\n\t * @throws PrivilegioInsuficienteException si el usuario no tiene reputacion suficiente para dar un voto negativo. */\n\tpublic VotoPregunta vota(Usuario user, Pregunta pregunta, boolean up) throws PrivilegioInsuficienteException;\n\n\t/** Registra un voto que un usuario hace a una respuesta que se hizo a una pregunta.\n\t * @param user El usuario que hace el voto.\n\t * @param resp La respuesta a la cual se aplica el voto.\n\t * @param up Indica si el voto es positivo (true) o negativo (false).\n\t * @throws PrivilegioInsuficienteException si el usuario no tiene reputacion suficiente para dar un voto negativo. */\n\tpublic VotoRespuesta vota(Usuario user, Respuesta resp, boolean up) throws PrivilegioInsuficienteException;\n\n\t/** Busca y devuelve el voto realizado por el usuario indicado a la pregunta especificada, si es que existe. */\n\tpublic VotoPregunta findVoto(Usuario user, Pregunta pregunta);\n\n\t/** Busca y devuelve el voto hecho por el usuario indicado a la respuesta especificada, si es que existe. */\n\tpublic VotoRespuesta findVoto(Usuario user, Respuesta respuesta);\n\n\tpublic void insert(Pregunta p);\n\n\tpublic void update(Pregunta p);\n\n\tpublic void delete(Pregunta p);\n\n\t/** Crea una respuesta con el texto especificado, para la pregunta especificada, por el autor especificado.\n\t * @return La respuesta recien creada. */\n\tpublic Respuesta addRespuesta(String resp, Pregunta p, Usuario autor);\n\n\t/** Agrega un comentario a la pregunta especificada, a nombre del usuario especificado. */\n\tpublic ComentPregunta addComentario(String c, Pregunta p, Usuario autor);\n\n\t/** Agrega un comentario a la respuesta especificada, a nombre del usuario especificado. */\n\tpublic ComentRespuesta addComentario(String c, Respuesta r, Usuario autor);\n\n\t/** Agrega el tag especificado a la pregunta. Primero se busca el tag existente para relacionarlo con la\n\t * pregunta, pero si no existe, se crea uno nuevo. */\n\tpublic void addTag(String tag, Pregunta p);\n\n\t/** Devuelve una lista con tags que contengan el texto parcial especificado. */\n\tpublic List<TagPregunta> findMatchingTags(String parcial);\n\n}", "D getDao();", "public interface InterfaceDao<T>{\n //int COUNT_ROWS = 8;\n /**\n *\n * Чья реализауия.\n * @return\n */\n String WhoIsIt();\n\n /**\n *\n * @param El Добавление обьекта <b>EL<b>\n * @throws SQLException\n */\n void insert(T El) throws SQLException;\n\n /**\n *\n * @param El Обновить обьект <b>EL<b>\n * @throws SQLException\n */\n void update(T El) throws SQLException;\n\n /**\n * Получить обьекта по id\n * @param id идентификатор\n * @return возвращает обьект заданного типа\n * @throws SQLException\n */\n\n /**\n * Получить список обьектов\n * @return список\n * @throws SQLException\n */\n List getAll(Class <T> clazz) throws SQLException;\n\n /**\n * Удалить элемент из БД\n * @param El\n * @throws SQLException\n */\n void delete(T El) throws SQLException;\n\n long getCount(Class<T> clazz) throws SQLException;\n\n List getSubList(int position, int count, Class<T> clazz) throws SQLException;\n}", "public interface AreaDao extends BaseDao<Area,String>\n{\n\n Area findByAreaId(String id);\n}", "@Dao\npublic interface IngredienteDao extends BaseDao<Ingrediente> {\n\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n long insert(Ingrediente entity);\n\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n long[] insertAll(List<Ingrediente> entities);\n\n @Update(onConflict = OnConflictStrategy.REPLACE)\n void update(Ingrediente entity);\n\n @Delete\n void delete(Ingrediente entity);\n\n @Query(\"SELECT * FROM Ingrediente\")\n List<Ingrediente> getAll();\n\n @Query(\"SELECT * FROM Ingrediente WHERE deletedAt IS NULL AND localChange = 1\")\n List<Ingrediente> getLocallyChanged();\n\n @Query(\"SELECT Count(*) FROM Ingrediente WHERE deletedAt IS NULL\")\n int getCountAll();\n\n @Query(\"SELECT Count(*) FROM Ingrediente WHERE deletedAt IS NULL AND localChange = 1\")\n int getCountChanged();\n\n @Query(\"SELECT * FROM Ingrediente WHERE id = :id AND deletedAt IS NULL\")\n Ingrediente getById(int id);\n\n @Query(\"DELETE FROM Ingrediente WHERE id = :id\")\n void deleteById(int id);\n}", "public interface UserDao extends BaseDao<User, Long> {\n\n User findByJaccountUid(String jaccountUid);\n\n User findByJaccountId(String jaccountId);\n\n User findByJaccountChinesename(String jaccountChinesename);\n\n User findByUsername(String username);\n\n User findById(Long id);\n\n List<User> findByRole(User.Role role);\n\n}", "public interface DemoDao {\r\n /**\r\n * 保存用户\r\n * @param user\r\n * @throws Exception\r\n */\r\n void insert(DemoUser user)throws Exception;\r\n\r\n /**\r\n * 根据用户Id查询用户信息\r\n * @param userId\r\n * @return\r\n * @throws Exception\r\n */\r\n DemoUser selectById(Integer userId)throws Exception;\r\n\r\n /**\r\n * 更新用户信息\r\n * @param demoUser\r\n * @throws Exception\r\n */\r\n void updateById(DemoUser demoUser)throws Exception;\r\n\r\n\r\n /**\r\n * 根据Id删除用户信息\r\n * @param userId\r\n * @throws Exception\r\n */\r\n void deleteById(Integer userId)throws Exception;\r\n\r\n /**\r\n * 根据用户信息查询用户列表\r\n * 可以传一个对象,或是多个参数\r\n * @param userName\r\n * @param age\r\n * @return\r\n * @throws Exception\r\n */\r\n List<DemoUser> selectList(@Param(\"userName\")String userName, @Param(\"age\")Integer age)throws Exception;\r\n}", "public interface ActivityReservationDao {\n List<ActivityReservationBo> query(Map<String,Object> map);\n int querycount();\n int queryListcount(Map<String,Object> map);\n void updatestatus(ActivityReservationBo activityReservationBo);\n ActivityReservationBo queryById(Integer id);\n\n}", "public interface UserDao {\n public List<User> findAll();\n //新增\n public void insert(User user);\n //删除\n public void deleteById(Integer id);\n //修改\n public void update(User user);\n //根据id查询\n public User findById(Integer id);\n //模糊查询\n public List<User> findByName(String name);\n\n //根据username和sex查询\n public List<User> findByUsernameAdnSex(User user);\n\n //测试foreach标签\n public List<User> findByIds(User user);\n\n //测试foreach标签 in\n public List<User> findByIds1(User user);\n\n //一对多关联查询\n public List<User> findAlls();\n\n //多对多查询\n public List<User> findManyToMany();\n\n //一对多延迟加载\n public List<User> findAll1();\n\n //根据id查询测试2及缓存使用\n public User findById1(Integer id);\n}", "public interface ResourceDAO {\n //通过资源信息获取id\n @Select(\" SELECT r.resourceId \" +\n \" FROM btl_resource r \" +\n \" WHERE r.resourceURL = #{resourceURL} \" +\n \" AND r.resourceMethodType = #{resourceMethodType} \" +\n \" AND r.systemId = #{systemId} \")\n public List<Long> findIdByResourceInfo(@Param(\"resourceURL\") String resourceURL,\n @Param(\"resourceMethodType\") int resourceMethodType,\n @Param(\"systemId\") int systemId) ;\n\n //通过资源信息和可用性获取可用id\n @Select(\" SELECT r.resourceId \" +\n \" FROM btl_resource r \" +\n \" WHERE r.resourceURL = #{resourceURL} \" +\n \" AND r.resourceMethodType = #{resourceMethodType} \" +\n \" AND r.systemId = #{systemId} \" +\n \" AND r.state = #{state} \")\n public List<Long> findIdByResourceInfoAndState(@Param(\"resourceURL\") String resourceURL,\n @Param(\"resourceMethodType\") int resourceMethodType,\n @Param(\"systemId\") int systemId,\n @Param(\"state\") int state) ;\n\n //通过ids获取资源记录\n @Select({\"<script>\" ,\n \" SELECT * \",\n \" FROM btl_resource r \",\n \" WHERE r.resourceId IN \",\n \"<foreach item='id' index='index' collection='ids' open='(' separator=',' close=')'>\",\n \"#{id}\",\n \"</foreach>\",\n \"</script>\"})\n public List<ResourceRecord> findByIds(@Param(\"ids\") List<Long> ids) ;\n\n //通过ids获取可用的资源记录\n @Select({\"<script>\" ,\n \" SELECT * \",\n \" FROM btl_resource r \",\n \" WHERE r.state = #{state} \",\n \" AND r.resourceId IN \",\n \"<foreach item='id' index='index' collection='ids' open='(' separator=',' close=')'>\",\n \"#{id}\",\n \"</foreach>\",\n \"</script>\"})\n public List<ResourceRecord> findByIdsAndState(@Param(\"ids\") List<Long> ids , @Param(\"state\") int state) ;\n\n //通过ids获取资源信息\n @Select({\"<script>\" ,\n \" SELECT r.resourceId , r.resourceURL , r.resourceMethodType , r.systemId \",\n \" FROM btl_resource r \",\n \" WHERE r.resourceId IN \",\n \"<foreach item='id' index='index' collection='ids' open='(' separator=',' close=')'>\",\n \"#{id}\",\n \"</foreach>\",\n \"</script>\"})\n public List<ResourceRecord> findIdsWithResourceInfosByIds(@Param(\"ids\") List<Long> ids) ;\n\n //通过ids获取资源名称\n @Select({\"<script>\" ,\n \" SELECT r.resourceId , r.resourceName \",\n \" FROM btl_resource r \",\n \" WHERE r.resourceId IN \",\n \"<foreach item='id' index='index' collection='ids' open='(' separator=',' close=')'>\",\n \"#{id}\",\n \"</foreach>\",\n \"</script>\"})\n public List<ResourceRecord> findIdsWithResourceNameByIds(@Param(\"ids\") List<Long> ids) ;\n\n //通过ids获取资源可用信息\n @Select({\"<script>\" ,\n \" SELECT r.resourceId , r.state \",\n \" FROM btl_resource r \",\n \" WHERE r.resourceId IN \",\n \"<foreach item='id' index='index' collection='ids' open='(' separator=',' close=')'>\",\n \"#{id}\",\n \"</foreach>\",\n \"</script>\"})\n public List<ResourceRecord> findIdsWithStateByIds(@Param(\"ids\") List<Long> ids) ;\n\n\n //获取所有处于某种状态下的资源信息\n @Select(\" SELECT r.resourceId , r.resourceURL , r.resourceMethodType , r.systemId \" +\n \" FROM btl_resource r \" +\n \" WHERE r.state = #{state} \")\n public List<ResourceRecord> findIdsWithResourceInfoByState(@Param(\"state\") int state) ;\n\n //通过名字获取资源记录(分页)\n @Select(\" SELECT * \" +\n \" FROM btl_resource r \" +\n \" WHERE r.resourceName LIKE CONCAT('%' , #{name} , '%') \" +\n \" LIMIT ${skip},${size} \")\n public List<ResourceRecord> findByNameInPage(@Param(\"name\") String name,\n @Param(\"skip\") int skip,\n @Param(\"size\") int size);\n //通过名字获取资源数\n @Select(\" SELECT count(1) \" +\n \" FROM btl_resource r \" +\n \" WHERE r.resourceName LIKE CONCAT('%' , #{name} , '%') \")\n long getCountByName(@Param(\"name\") String name);\n\n\n //获取资源树信息\n @Select(\"SELECT r.resourceId , r.resourceName , r.parentId , r.state FROM btl_resource r\")\n public List<ResourceRecord> findAllRoleIdsWithRoleNameAndParentIdAndState() ;\n\n //添加资源\n @Insert(\" INSERT IGNORE INTO btl_resource(createTime , resourceCode , resourceName , resourceURL , resourceMethodType , systemId , state , parentId , resourceMemo) \" +\n \" VALUES(now() , #{re.resourceCode} , #{re.resourceName} , #{re.resourceURL} , #{re.resourceMethodType} , #{re.systemId} , #{re.state} , #{re.parentId} , #{re.resourceMemo}) \")\n public int insertResource(@Param(\"re\") ResourceRecord re);\n\n //删除资源\n @Delete(\"DELETE FROM btl_resource WHERE resourceId=#{resourceId}\")\n public int deleteById(@Param(\"resourceId\") long resourceId);\n\n //更新资源\n @Update(\"UPDATE btl_resource SET \" +\n \" resourceCode = #{re.resourceCode} , \" +\n \" resourceName = #{re.resourceName} , \" +\n \" resourceURL = #{re.resourceURL} , \" +\n \" resourceMethodType = #{re.resourceMethodType} , \" +\n \" systemId = #{re.systemId} , \" +\n \" state = #{re.state} , \" +\n \" parentId = #{re.parentId} , \" +\n \" resourceMemo = #{re.resourceMemo} \" +\n \" WHERE resourceId = #{re.resourceId}\")\n public int updateResource(@Param(\"re\") ResourceRecord re);\n\n}", "public static void main(String[] args) {\n\t\tUsuarioDAO usuarioDAO = DAOFactory.getFactory().getUsuarioDAO();\r\n\t\tTelefonoDAO telefonoDAO= DAOFactory.getFactory().getTelefonoDAO();\r\n\t\t\r\n\t\t\r\n\t\t//System.out.println( telefonoDAO.findByUsuarioId(\"0106232812\"));\r\n\t\t//System.out.println(usuarioDAO.findByCorreo(\"[email protected]\"));\r\n\t\t//System.out.println(telefonoDAO.findByNumero(\"0981951042\"));\r\n\t\tSystem.out.println(telefonoDAO.findultimoid());\r\n\t}", "public String borra(Cliente cliente) {\n clienteDAO.borra(cliente.getId());\n return \"listado\";\n }", "public interface IUserBaseInfoDao<UserBaseInfo> extends ICommomBaseDao<UserBaseInfo>{\n\n public UserBaseInfo findOneByUserId(int userId);\n public UserBaseInfo findOneByGldUserId(String gldUserId);\n public UserBaseInfo findAdminOneByCompanyId(Integer comapnyId);\n /**\n * companyId对应所有的用户(未离职)\n * @param companyId\n * @return\n **/\n public List<UserBaseInfo> findListByCompanyId(int companyId);\n\n /**\n * companyId对应所有的用户(包含已离职)\n * @param companyId\n * @return\n **/\n public List<UserBaseInfo> findAllListByCompanyId(int companyId);\n\n /**\n * \tgldUsrId和CompanyID查找用户(未离职)\n * @param gldUserId\n * @param companyId\n * @return\n **/\n public UserBaseInfo findOneByCompanyId(String gldUserId,int companyId);\n\n /**\n * 通过广联云id集合返回UserBaseInfo集合\n * @param gldUserIdList\n * @return\n **/\n public List<UserBaseInfo> getListByGldUserId(List<String> gldUserIdList);\n\n /**\n *\tgldUsrId和CompanyID查找用户(未包含已离职)\n * @param gldUserId\n * @param companyId\n * @return\n **/\n public UserBaseInfo nfindOneByCompanyId(String gldUserId,int companyId);\n /**\n * \tcreator和CompanyID查找用户(未离职)\n * @param creator\n * @param companyId\n * @return\n **/\n public UserBaseInfo findOneByCompanyId(int creator,int companyId);\n //逻辑删除用户\n /**\n * 通过UserID逻辑删除用户\n * @param userId\n **/\n public boolean LogicDelUser(int userId);\n /**\n * 通过UserID逻辑还原用户\n * @param userId\n **/\n public boolean RecoverDelUser(int userId);\n\n /**\n * companyId对应所有的离职用户\n * @param companyId\n * @return\n **/\n public List<UserBaseInfo> getDelUserByCompanyId(int companyId);\n /**\n * 通过UserType和CompanyID查找用户(未离职)\n * @param userType\n * @param companyId\n * @return\n **/\n public List<UserBaseInfo> findOneByUserType(int userType,int companyId);\n /**\n * \t通过gldUserIds集合和CompanyID查找用户(未离职)\n * @param gldUserIds\n * @param companyId\n * @return\n **/\n public List<UserBaseInfo> findListByGldUserIds(List<String> gldUserIds,int companyId);\n /**\n * \t通过creator集合和CompanyID查找用户(未离职)\n * @param userIds\n * @return\n **/\n public List<UserBaseInfo> findListByUserIds(List<Integer> userIds);\n /**\n * \t通过roleId集合和CompanyID查找用户(未离职)\n * @param companyId\n * @param roleId\n * @return\n **/\n public List<UserBaseInfo> getListByRoleId(int companyId,int roleId);\n\n /**\n * 三表关联查库\n * @param companyId\n * @param roleId\n * @return\n */\n public List<User> getUsersByRoleId(int companyId, int roleId);\n //查询离职用户\n /**\n * \t通过companyId集合和gldUserId查找离职用户\n * @param companyId\n * @param gldUserId\n * @return\n **/\n public UserBaseInfo getRemoveUser(int companyId,String gldUserId);\n\n /**\n * 通过userId查找离职用户\n * @param userId\n * @return\n **/\n public UserBaseInfo getRemoveUserById(int userId);\n\n public List<Map<String, Object>> getUserNamesByUserIdAndCompanyId(Integer companyid, Set<Integer> userIds);\n\n public List<HashMap<String, Object>> getUsersWithRole(Integer companyID);\n\n /**\n * 通过companyId查找公司下所有用户\n * @param companyID\n * @return\n */\n public List<User> findUserListByCompanyId(Integer companyID);\n\n /**\n * 通过userId查找用户信息\n * @param userId\n * @return\n */\n public User findOneUserByUserId(int userId);\n\n /**\n * 通过companyId查找admin用户信息\n * @param comapnyId\n * @return\n */\n public User findAdminOneUserByCompanyId(Integer comapnyId);\n\n /**\n * 根据userId查找离职用户信息\n * @param userId\n * @return\n */\n public User getRemoveUserInfoById(int userId);\n\n /**\n * 根据account查找用户信息\n * @param account\n * @return\n */\n public User findOneUserByAccount(String account);\n\n /**\n *\tgldUsrId和CompanyID查找用户(未包含已离职)\n * @param gldUserId\n * @param companyId\n * @return\n **/\n public User nfindOneUserByCompanyId(String gldUserId,int companyId);\n\n /**\n *\n * @param gldUserId\n * @return\n */\n public User findOneUserByGldUserId(String gldUserId);\n\n /**\n * \t通过companyId集合和gldUserId查找离职用户\n * @param companyId\n * @param gldUserId\n * @return\n **/\n public User getRemoveUserInfo(int companyId,String gldUserId);\n\n /**\n * \tgldUsrId和CompanyID查找用户(未离职)\n * @param gldUserId\n * @param companyId\n * @return\n **/\n public User findOneUserByCompanyId(String gldUserId,int companyId);\n\n\n\n}" ]
[ "0.6602798", "0.65695256", "0.6423411", "0.6420727", "0.6415331", "0.6395709", "0.63862115", "0.637675", "0.63318825", "0.63147867", "0.6310408", "0.6310246", "0.62939614", "0.628318", "0.6281627", "0.627064", "0.62667686", "0.62434405", "0.62308335", "0.6207944", "0.62058", "0.6200636", "0.61959773", "0.6187344", "0.6178141", "0.61497605", "0.61379266", "0.61378354", "0.6137153", "0.61310536", "0.6129046", "0.61280936", "0.6126269", "0.6120928", "0.6119134", "0.6116536", "0.6112459", "0.61118996", "0.6101777", "0.6088599", "0.6086239", "0.60810196", "0.6071847", "0.6061353", "0.60583836", "0.6048833", "0.60482186", "0.60472506", "0.6045816", "0.60420144", "0.6036841", "0.60319716", "0.6031695", "0.6029796", "0.60238224", "0.60213387", "0.6021132", "0.60178", "0.6016346", "0.6016227", "0.6013324", "0.60083675", "0.6001896", "0.5998236", "0.5996042", "0.5994779", "0.59922487", "0.59877014", "0.5983436", "0.59822035", "0.5973571", "0.5969221", "0.59665716", "0.59584045", "0.595605", "0.5948367", "0.5942023", "0.59383404", "0.5931357", "0.5926203", "0.5925747", "0.5920929", "0.5918302", "0.59178567", "0.591363", "0.59125775", "0.59106684", "0.590856", "0.590488", "0.590053", "0.5893996", "0.5892221", "0.58875453", "0.58859867", "0.5878296", "0.5874782", "0.58743286", "0.5874323", "0.5863866", "0.58614343", "0.5857045" ]
0.0
-1
Log.i("jq", "speed = " + speed);
private float getPaintWidth(float speed) { float max_width = 15f; float min_width = 3f; float max_dif = 0.35f;//0.35f较为合适 float max_speed = 30f; float min_speed = 1.5f; float width; speed = Math.max(min_speed, speed); speed = Math.min(max_speed, speed); //将 speed (min_speed-max_speed) 映射到 (width min_width-max_width) // width = (1 / (speed - min_speed) / (max_speed - min_speed)) * (max_width - min_width) + min_width;//反比例关系 速度越快 画笔越细 width = (speed - min_speed) / (max_speed - min_speed) * (max_width - min_width) + min_width;//正比例关系 速度越快 画笔越粗 // Log.i("jq", "width = " + width); width = Math.max(min_width, width); width = Math.min(max_width, width); if (!isNew) {//如果不是新的一笔,则进行宽度渐变 if (Math.abs(width - paintWidthPrevious) > max_dif) { if (width > paintWidthPrevious) width = paintWidthPrevious + max_dif; else width = paintWidthPrevious - max_dif; } } isNew = false; return width; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void increaseSpeed() {\n\t\tSystem.out.println(\"increaseSpeed\");\n\t\t\n\t}", "int getSpeed();", "int getSpeed();", "int getSpeed();", "int getSpeed();", "int getSpeed();", "int getSpeed();", "public int getSpeed(){return this.speed;}", "double getSpeed();", "@Override\r\n\tpublic void showSpeed() {\n\t\tSystem.out.println(\"i can run at 100km/h\");\r\n\t}", "public float getSpeed (){\n return speed;\n }", "public double getCurrentSpeed(){\r\n return speed;\r\n }", "@Override\r\n\tpublic void speed() {\n\t}", "public double speed()\r\n {\r\n return speed;\r\n }", "public int getSpeed(){\r\n\t\treturn speed;\r\n\t}", "public void faster()\n {\n if(speed < 9){\n speed += 1;\n }\n }", "public void setSpeed(float val) {speed = val;}", "public double getSpeed();", "public double getSpeed() {\n return speed;\n }", "public int getSpeed() {\r\n return speed;\r\n }", "public int getSpeed() {\n return speed;\n }", "public int getSpeed() {\n return speed;\n }", "public int getSpeed() {\n return speed;\n }", "public int getSpeed() {\n return speed;\n }", "public int getSpeed() {\n return speed;\n }", "public double getSpeed() {\n return speed;\n }", "public double getSpeed() {\n return speed;\n }", "public double getSpeed() {\n return speed;\n }", "public double getSpeed() {\n return speed;\n }", "void OnSpeedChanges(float speed);", "public double getSlowToFire();", "public double getCurrentSpeed(){\n return currentSpeed;\n }", "public double getCurrentSpeed(){\n return currentSpeed;\n }", "@Override\n\tpublic\n\tvoid speed() {\n\t\t\n\t}", "public int getSpeed() {\n return speed_;\n }", "public int getSpeed() {\n return speed_;\n }", "public int getSpeed() {\n return speed_;\n }", "public int getSpeed() {\n return speed_;\n }", "public int getSpeed() {\n return speed_;\n }", "public int getSpeed() {\n return speed_;\n }", "public float getSpeed() {\n return speed;\n }", "public float getSpeed() {\n return speed;\n }", "int getSimspeed();", "@Override\npublic int run(int speed) {\n\t\n\treturn getSpeed();\n}", "public abstract int getSpeed();", "public abstract int getSpeed();", "@Override\r\n\tpublic double getSlowness() {\n\t\treturn 10;\r\n\t}", "public int getSpeed()\n\t{\n\t\treturn speed;\n\t}", "public double getCurrentSpeed();", "public double getSpeed() {\r\n\t\treturn speed;\r\n\t}", "public int getWalkSpeed()\n{\n return walkSpeed;\n}", "@Override\npublic int accelerate(int speed) {\n\tint carSpeed=getSpeed();\n\treturn carSpeed;\n}", "@Override\n\t\tpublic int getSpeed() {\n\t\t\treturn i+20;\n\t\t}", "@Override\r\n\tpublic double getSpeed() {\n\t\treturn this.speed;\r\n\t}", "private int speed() {\n final int slowfactor = 3;\n return speed * (cd.isSlow(curpos) ? slowfactor : 1);\n }", "public void setSpeed(double speed)\r\n {\r\n this.speed = speed;\r\n }", "public int getSpeed() {\n\t\treturn speed;\n\t}", "public int getSpeed() {\n\t\treturn speed;\n\t}", "public int getSpeed() {\n\t\treturn speed;\n\t}", "public int getSpeed()\r\n\t{\n\t\treturn 90;\r\n\t}", "public float getSpeed()\n\t{\n\t\treturn speed;\n\t}", "public void setSpeed(double speed) {\n \tthis.speed = speed;\n }", "public abstract double getSpeed();", "public int getInitSpeed() {\n \t\treturn 1;\n \t}", "private void updateSpeed(CLocation location) {\n try {\n\n i = i + 1;\n Log.i(\"111\", \"====updateSpeed=====i===\" + i);\n // Log.i(\"111\",\"====location=====getLongitude===\"+location.getLongitude());\n // Log.i(\"111\",\"====location=====getLatitude===\"+location.getLatitude());\n\n\n float nCurrentSpeed = 0;\n\n if (location != null) {\n location.setUseMetricunits(true);\n nCurrentSpeed = location.getSpeed();\n }\n\n Formatter fmt = new Formatter(new StringBuilder());\n fmt.format(Locale.US, \"%5.1f\", nCurrentSpeed);\n String strCurrentSpeed = fmt.toString();\n strCurrentSpeed = strCurrentSpeed.replace(' ', '0');\n\n String strUnits = \"miles/hour\";\n\n\n strLog = strLog +\n \"\\n--------------\\n \" +\n strCurrentSpeed + \" \" + strUnits +\n \"\\n--------------\\n \";\n\n tvData.append(\"\\n Speed2 = \" + strCurrentSpeed + \" \" + strUnits);\n\n /* float speed = Float.parseFloat(strCurrentSpeed);\n if(speed<100)\n mGaugeView.setTargetValue(speed);\n else\n {\n tvLog.setText(\"out of speed\"+strLog);\n }*/\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public int getWalkSpeedInc()\n{\n return walkSpeedInc;\n}", "public int getSpeed() {\n return speed_;\n }", "public int getSpeed() {\n return speed_;\n }", "public int getSpeed() {\n return speed_;\n }", "public int getSpeed() {\n return speed_;\n }", "public int getSpeed() {\n return speed_;\n }", "public int getSpeed() {\n return speed_;\n }", "void changeUpdateSpeed();", "public float getSpeed() {\n return this.speedValue;\n }", "@Override\n\tpublic int topSpeed() {\n\t\treturn 0;\n\t}", "public int getSpeed() {\n return mSpeed;\n }", "public float getSpeed() {\n\t\treturn speed;\n\t}", "public static String getCurrentSpeed() {\r\n\t\treturn currentSpeed;\r\n\t}", "public Vector2 getSpeed() { return speed; }", "public void accelerate(){\n speed += 5;\n }", "public float getSpeed()\n\t{\n\t\treturn this.speed;\n\t}", "public float getSpeed()\n\t{\n\t\treturn this.speed;\n\t}", "@Override\n\tpublic double getSpeed() {\n\t\treturn 0;\n\t}", "@Override\n\t\tpublic int getSpeed() {\n\t\t\treturn i+30;\n\t\t}", "public void setSpeed(double speed) {\n this.speed = speed;\n }", "public void setSpeed(double speed) {\n this.speed = speed;\n }", "public double getCommandSpeed();", "public void setWalkSpeed(int n)\n{\n walkSpeed = n;\n}", "public void setSpeed(float speed) {\n this.speed = speed;\n }", "public void setSpeed(float speed) {\n this.speed = speed;\n }", "public float getAddSpeed()\n {\n return addSpeed;\n }", "@Override\n\tpublic int getTopSpeed() {\n\t\treturn 100;\n\t}", "double getPlaybackSpeed();", "@Override\n protected double speedFactor() {\n return getEnginePower() * 0.003;\n }", "public Speed getSpeed() {\n\t\treturn speed;\n\t}", "public int getInitialSpeed() {\n return initialSpeed;\n }", "public Integer getEffectSpeed() {\r\n return effectSpeed;\r\n }", "public int getSpeed() {\n\t\t\treturn 0;\n\t\t}", "public void startEngine(){\n currentSpeed = 0.1;\n }", "public void onLogFPS() {\n }", "@Override\n\tpublic void setSpeed(double speed) {\n\n\t}" ]
[ "0.6358073", "0.6340041", "0.6340041", "0.6340041", "0.6340041", "0.6340041", "0.6340041", "0.63063955", "0.62943023", "0.6276164", "0.62336296", "0.6174653", "0.6166939", "0.6082553", "0.60741425", "0.6011563", "0.5996965", "0.5987024", "0.5978785", "0.5976234", "0.59721315", "0.59721315", "0.59721315", "0.59721315", "0.59721315", "0.59579957", "0.59579957", "0.59579957", "0.59579957", "0.59557575", "0.59546417", "0.59320927", "0.59320927", "0.59191674", "0.58948815", "0.58948815", "0.58948815", "0.58948815", "0.58948815", "0.58948815", "0.58876246", "0.58876246", "0.58604306", "0.58272576", "0.5819437", "0.5819437", "0.58090645", "0.5805159", "0.5801664", "0.5801436", "0.5794743", "0.5768792", "0.57607627", "0.57426095", "0.5727252", "0.57188356", "0.5710391", "0.5710391", "0.5710391", "0.57066417", "0.57036626", "0.5696473", "0.5692929", "0.5687078", "0.5683268", "0.5658183", "0.5652476", "0.5652476", "0.5652476", "0.5652476", "0.5652476", "0.5652476", "0.5651477", "0.56448776", "0.5634962", "0.56256866", "0.5623224", "0.56138754", "0.5611295", "0.55794203", "0.5578469", "0.5578469", "0.55707943", "0.55696255", "0.5548118", "0.5548118", "0.55366117", "0.5534842", "0.55080533", "0.55080533", "0.5496437", "0.5493575", "0.5473991", "0.5460349", "0.54573685", "0.5442974", "0.54403645", "0.54320794", "0.54290855", "0.54276526", "0.5427354" ]
0.0
-1
Retorna a data convertida para o formato brasileiro
public String getDataString() { return formatoData.format(data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String converterDataSemBarraParaDataComBarra(String data) {\r\n\t\tString retorno = \"\";\r\n\r\n\t\tif (data != null && !data.equals(\"\") && data.trim().length() == 8) {\r\n\r\n\t\t\tretorno = data.substring(0, 2) + \"/\" + data.substring(2, 4) + \"/\" + data.substring(4, 8);\r\n\r\n\t\t}\r\n\r\n\t\treturn retorno;\r\n\t}", "String getDataNascimento();", "public static String formatarDataSemBarra(Date data) {\r\n\t\tString retorno = \"\";\r\n\t\tif (data != null) { // 1\r\n\t\t\tCalendar dataCalendar = new GregorianCalendar();\r\n\t\t\tStringBuffer dataBD = new StringBuffer();\r\n\r\n\t\t\tdataCalendar.setTime(data);\r\n\r\n\t\t\tdataBD.append(dataCalendar.get(Calendar.YEAR));\r\n\r\n\t\t\tif ((dataCalendar.get(Calendar.MONTH) + 1) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.MONTH) + 1);\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + (dataCalendar.get(Calendar.MONTH) + 1));\r\n\t\t\t}\r\n\r\n\t\t\tif (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t}\r\n\r\n\t\t\tretorno = dataBD.toString();\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "java.lang.String getData();", "public String formatData() {\n\t\tStringBuilder builder = new StringBuilder();\n\t\n\t\t\tbuilder.append(this.iataCode);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.latitude);\n\t\t\tbuilder.append(\",\");\n\t\t\tbuilder.append(this.longitude);\n\t\t\tbuilder.append(\",\");\n\t\t\tbuilder.append(this.altitude);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.localTime);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.condition);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.temperature);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.pressure);\n\t\t\tbuilder.append(\"|\");\n\t\t\tbuilder.append(this.humidity);\n\t\t\tbuilder.append(\"\\n\");\n\t\t\n\n\t\treturn builder.toString();\n\n\t}", "private BrandsData convertDataStorageToBrandsData(String brand, DataStorage o1) {\n\t\tDouble [] data = new Double[12];\n\t\tdata[0] = o1.getSales(thisPeriod);\n\t\tdata[1] = o1.getSales(lastPeriod);\n\t\tdata[2] = o1.getAnyPromo(thisPeriod);\n\t\tdata[3] = o1.getAnyPromo(lastPeriod);\n\t\tdata[4] = o1.getPriceDisc(thisPeriod);\n\t\tdata[5] = o1.getPriceDisc(lastPeriod);\n\t\tdata[6] = o1.getFeat(thisPeriod);\n\t\tdata[7] = o1.getFeat(lastPeriod);\n\t\tdata[8] = o1.getDisplay(thisPeriod);\n\t\tdata[9] = o1.getDisplay(lastPeriod);\n\t\tdata[10] = o1.getQual(thisPeriod);\n\t\tdata[11] = o1.getQual(lastPeriod);\n\t\t\n\t\tBrandsData input = new BrandsData(brand, data);\n\t\treturn input;\n\t}", "Object getRawData();", "String getData();", "public String getData() {\n \n String str = new String();\n int aux;\n\n for(int i = 0; i < this.buffer.size(); i++) {\n for(int k = 0; k < this.buffer.get(i).size(); k++) {\n aux = this.buffer.get(i).get(k);\n str = str + Character.toString((char)aux);\n }\n str = str + \"\\n\";\n }\n return str;\n }", "protected String getDataFormat() {\n return this.dataFormat;\n }", "protected String obterData(String format) {\n\t\tDateFormat formato = new SimpleDateFormat(format);\n\t\tDate data = new Date();\n\t\treturn formato.format(data).toString();\n\t}", "@Override\r\n\tpublic Bidding getData(byte[] bytes) throws UnsupportedEncodingException {\r\n\t\treturn new Bidding(\r\n\t\t\t\tUtilities.bytesToLong(Utilities.cutBytes(bytes, 0, 8)),\r\n\t\t\t\tUtilities.bytesToString(Utilities.cutBytes(bytes, 8, 28)),\r\n\t\t\t\tUtilities.bytesToInt(Utilities.cutBytes(bytes, 28, 32)),\r\n\t\t\t\tUtilities.cutStringWhitAditionalSpace(Utilities.bytesToString(Utilities.cutBytes(bytes, 32, 62))),\r\n\t\t\t\tTypeProduct.values()[Utilities.bytesToInt(Utilities.cutBytes(bytes, 62, 66))],\r\n\t\t\t\tthis.getProduct(Utilities.cutBytes(bytes, 66, 157)), \t\t\t\t\r\n\t\t\t\tnew BidTime(\r\n\t\t\t\t\t\tnew BidDate(\r\n\t\t\t\t\t\tUtilities.cutStringWhitAditionalSpace(Utilities.bytesToString(Utilities.cutBytes(bytes, 157, 167)))), \r\n\t\t\t\t\t\tUtilities.bytesToFloat(Utilities.cutBytes(bytes, 167, 171))), \r\n\t\t\t\tnew BidTime(\r\n\t\t\t\t\t\tnew BidDate(\r\n\t\t\t\t\t\tUtilities.cutStringWhitAditionalSpace(Utilities.bytesToString(Utilities.cutBytes(bytes, 171, 181)))), \r\n\t\t\t\t\t\tUtilities.bytesToFloat(Utilities.cutBytes(bytes, 181, 185))), \r\n\t\t\t\tnew BidTime(\r\n\t\t\t\t\t\tnew BidDate(\r\n\t\t\t\t\t\tUtilities.cutStringWhitAditionalSpace(Utilities.bytesToString(Utilities.cutBytes(bytes, 185, 195)))), \r\n\t\t\t\t\t\tUtilities.bytesToFloat(Utilities.cutBytes(bytes, 195, 199))), \r\n\t\t\t\t(Utilities.cutBytes(bytes, 199, 200)[0]==0), \r\n\t\t\t\t(Utilities.cutBytes(bytes, 200, 201)[0]==0), \r\n\t\t\t\tUtilities.cutStringWhitAditionalSpace(Utilities.bytesToString(Utilities.cutBytes(bytes, 201, 221))));\r\n\t}", "public String retornaData(){\n\t\tCalendar calendar = new GregorianCalendar();\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\tDate date = new Date();\n\t\tcalendar.setTime(date);\n\t\treturn df.format(calendar.getTime());\n\t}", "private static String convertDonnee(String donnee){\n byte[] tableau = convert.toBinaryFromString(donnee);\n StringBuilder sbDonnee = new StringBuilder();\n for (int i =0; i<tableau.length;i++){\n String too=Byte.toString(tableau[i]);\n sbDonnee.append(convert.decimalToBinary(Integer.parseInt(too)));\n }\n return sbDonnee.toString();\n }", "public static String formatarData(String data) {\r\n\t\tString retorno = \"\";\r\n\r\n\t\tif (data != null && !data.equals(\"\") && data.trim().length() == 8) {\r\n\r\n\t\t\tretorno = data.substring(6, 8) + \"/\" + data.substring(4, 6) + \"/\" + data.substring(0, 4);\r\n\r\n\t\t}\r\n\r\n\t\treturn retorno;\r\n\t}", "private Behaeltnis getObject(String data) {\r\n\t\tint firstSemi = data.indexOf(\"\" + ';');\r\n\t\tint secondSemi = data.indexOf(\"\" + ';', firstSemi + 1);\r\n\t\tString brand = data.substring(firstSemi + 1, secondSemi);\r\n\t\tdouble vol = Double.parseDouble(\r\n\t\t\t\tdata.substring(secondSemi + 1, data.indexOf(\"\" + ';', secondSemi + 1)).replaceAll(\",\", \".\"));\r\n\t\tif (data.toLowerCase().contains(\"plastik\")) {\r\n\t\t\treturn new Plastik(brand, vol);\r\n\t\t} else if (data.toLowerCase().contains(\"glas\")) {\r\n\t\t\tif (data.contains(\"0,08\")) {\r\n\t\t\t\treturn new Glas(false, brand, vol);\r\n\t\t\t} else {\r\n\t\t\t\treturn new Glas(true, brand, vol);\r\n\t\t\t}\r\n\t\t} else if (data.toLowerCase().contains(\"dose\")) {\r\n\t\t\treturn new Dose(brand, vol);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public static String formatarDataSemBarraDDMMAAAA(Date data) {\r\n\t\tString retorno = \"\";\r\n\t\tif (data != null) { // 1\r\n\t\t\tCalendar dataCalendar = new GregorianCalendar();\r\n\t\t\tStringBuffer dataBD = new StringBuffer();\r\n\r\n\t\t\tdataCalendar.setTime(data);\r\n\r\n\t\t\tif (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.DAY_OF_MONTH));\r\n\t\t\t}\r\n\r\n\t\t\tif ((dataCalendar.get(Calendar.MONTH) + 1) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.MONTH) + 1);\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + (dataCalendar.get(Calendar.MONTH) + 1));\r\n\t\t\t}\r\n\r\n\t\t\tdataBD.append(dataCalendar.get(Calendar.YEAR));\r\n\r\n\t\t\tretorno = dataBD.toString();\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public java.lang.String getDataFromLMS();", "public StringBuilder getConvert()//returns the converted string\r\n {\r\n return stbrLines;\r\n }", "public String toData() {\n return super.toData() + \"~S~\" + by;\n }", "private byte[] processData(String peticion) {\n\t\t\n\t\tString respuesta = \"\";\n\t\t\n\t\tswitch (peticion) {\n\t\t\t\n\t\t\tcase \"noticias\": respuesta = \"¡Por fin la vacuna ya está en España!\"; break;\n\t\t\tcase \"hora\": respuesta = getFecha(); break;\n\t\t\tcase \"aleatorio\": respuesta = Double. toString(Math.random()*10); break;\n\t\t\tcase \"cerrar\": respuesta = \"Adios\"; break;\n\t\t\tcase \"cerrarServidor\": respuesta = \"Adios\"; break;\t\t\t\n\t\t\tdefault: respuesta = \"petición desconocida\";\n\t\t}\n\t\t\n\t\treturn respuesta.getBytes();\n\t}", "@Override\n public FlotillaData getData() {\n FlotillaData data = new FlotillaData();\n data.setName(name);\n data.setLocation(reference);\n data.setBoats(getBoatNames(boats));\n\n return data;\n }", "private String BtaTwoConversion() {\n int reading = ((raw[26] & 0xFC) >> 2) + ((raw[27] & 0x0F) << 6);\n\n Map<String, BigDecimal> variables = new HashMap<String, BigDecimal>();\n variables.put(\"x\", new BigDecimal(reading));\n BigDecimal result = b2Conv.eval(variables);\n return result.setScale(3, RoundingMode.UP) + \"\";\n }", "public ResponseCurrencyConversionBo converCurrency() {\n\n ResponseCurrencyConversionBo responseCurrencyConversionBo = new ResponseCurrencyConversionBo();\n\n try {\n long startTime = System.nanoTime();\n HttpClient client = HttpClientBuilder.create().build();\n String url = myPropertiesReader.getPropertyValue(\"unitconvertersUrl\");\n url = MessageFormat.format(url, requestCurrencyConversionBo.getSourceCountryCurrency(),requestCurrencyConversionBo.getTargetCountryCurrency());\n HttpGet post = new HttpGet(url);\n\n HttpResponse response = client.execute(post);\n if (response.getStatusLine().getStatusCode() == HttpStatus.SC_OK) {\n\n BufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\n\n String finalResult = \"\";\n StringBuffer result = new StringBuffer();\n String line = \"\";\n while ((line = rd.readLine()) != null) {\n result.append(line);\n }\n\n finalResult = result.toString();\n log.info(finalResult);\n String currencyRate = finalResult.substring(finalResult.indexOf(\"<p class=\\\"bigtext\\\">\"),finalResult.lastIndexOf(\"<p class=\\\"bigtext\\\">\"));\n log.info(currencyRate);\n currencyRate = currencyRate.replace(\"<p class=\\\"bigtext\\\">\",\"\").replace(\"</p>\",\"\");\n log.info(currencyRate);\n String[] currencyRateSplitByBR = currencyRate.split(\"<br>\");\n log.info(currencyRateSplitByBR[0]);\n String finalCurrencyRate = currencyRateSplitByBR[0].split(\"=\")[1].replaceAll(\"[a-zA-Z]\", \"\").trim();\n log.info(finalCurrencyRate);\n responseCurrencyConversionBo.setCurrencyRate(finalCurrencyRate);\n }\n } catch (Exception e) {\n e.printStackTrace();\n log.error(e.getMessage());\n }\n\n return responseCurrencyConversionBo;\n }", "public String getString_data() { \n char carr[] = new char[Math.min(net.tinyos.message.Message.MAX_CONVERTED_STRING_LENGTH,60)];\n int i;\n for (i = 0; i < carr.length; i++) {\n if ((char)getElement_data(i) == (char)0) break;\n carr[i] = (char)getElement_data(i);\n }\n return new String(carr,0,i);\n }", "@Override\r\n\tpublic byte[] getBytes() throws UnsupportedEncodingException {\r\n\t\tbyte[] bytes = new byte[RECORD_SIZE];\r\n\t\tbytes = Utilities.completeBytes(bytes, this.bidInfo.getBytes(), 0);\r\n\t\tbytes = Utilities.completeBytes(bytes,\r\n\t\t\t\tUtilities.stringToBytes(Utilities.completeLength(biddingName, 30)), 32);\r\n\t\tbytes = Utilities.completeBytes(bytes, Utilities.intToBytes(typeProduct.ordinal()), 62);\r\n\t\tbytes = Utilities.completeBytes(bytes, product.getBytes(), 66);\r\n\t\tbytes = Utilities.completeBytes(bytes, publicationTime.getBytes(), 157);\r\n\t\tbytes = Utilities.completeBytes(bytes, initTime.getBytes(), 171);\r\n\t\tbytes = Utilities.completeBytes(bytes, finishTime.getBytes(), 185);\r\n\t\tbytes = Utilities.completeBytes(bytes, (byte) ((isAutomaticIncremet)?0:1), 199);\r\n\t\tbytes = Utilities.completeBytes(bytes, (byte) ((isPublic)?0:1), 200);\r\n\t\tbytes = Utilities.completeBytes(bytes,\r\n\t\t\t\tUtilities.stringToBytes(Utilities.completeLength(owner, 20)), 201);\r\n\t\treturn bytes;\r\n\t}", "java.lang.String getBunho();", "java.lang.String getBunho();", "private String BtaOneConversion() {\n int reading = (raw[25] & 0xFF) + ((raw[26] & 0x03) << 8);\n\n Map<String, BigDecimal> variables = new HashMap<String, BigDecimal>();\n variables.put(\"x\", new BigDecimal(reading));\n BigDecimal result = b1Conv.eval(variables);\n return result.setScale(3, RoundingMode.UP) + \"\";\n }", "public byte[] export() {\n\t\tByteArrayOutputStream bos = new ByteArrayOutputStream();\n\t\ttry {\n\t\t\tfor (Ligne ligne : lignes) {\n\t\t\t\tif (ligne.getTraduit() != null) {\n\t\t\t\t\tbos.write(ligne.getTraduit().getBytes());\n\t\t\t\t} else {\n\t\t\t\t\tbos.write(ligne.getOriginal().getBytes());\n\t\t\t\t}\n\t\t\t\tbos.write(\"\\r\\n\".getBytes());\n\t\t\t}\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t\n\t\treturn bos.toByteArray();\n\t}", "public static String formatarData(Date data) {\r\n\t\tString retorno = \"\";\r\n\t\tif (data != null) { // 1\r\n\t\t\tCalendar dataCalendar = new GregorianCalendar();\r\n\t\t\tStringBuffer dataBD = new StringBuffer();\r\n\r\n\t\t\tdataCalendar.setTime(data);\r\n\r\n\t\t\tif (dataCalendar.get(Calendar.DAY_OF_MONTH) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.DAY_OF_MONTH) + \"/\");\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + dataCalendar.get(Calendar.DAY_OF_MONTH) + \"/\");\r\n\t\t\t}\r\n\r\n\t\t\tif ((dataCalendar.get(Calendar.MONTH) + 1) > 9) {\r\n\t\t\t\tdataBD.append(dataCalendar.get(Calendar.MONTH) + 1 + \"/\");\r\n\t\t\t} else {\r\n\t\t\t\tdataBD.append(\"0\" + (dataCalendar.get(Calendar.MONTH) + 1) + \"/\");\r\n\t\t\t}\r\n\r\n\t\t\tdataBD.append(dataCalendar.get(Calendar.YEAR));\r\n\t\t\tretorno = dataBD.toString();\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public byte[] getData()\r\n/* 18: */ {\r\n/* 19:59 */ byte[] data = new byte[4];\r\n/* 20: */ \r\n/* 21:61 */ IntegerHelper.getTwoBytes(this.xfIndex, data, 0); int \r\n/* 22: */ \r\n/* 23: */ \r\n/* 24:64 */ tmp15_14 = 1; byte[] tmp15_13 = data;tmp15_13[tmp15_14] = ((byte)(tmp15_13[tmp15_14] | 0x80));\r\n/* 25: */ \r\n/* 26:66 */ data[2] = ((byte)this.styleNumber);\r\n/* 27: */ \r\n/* 28: */ \r\n/* 29:69 */ data[3] = -1;\r\n/* 30: */ \r\n/* 31:71 */ return data;\r\n/* 32: */ }", "Integer getDataStrt();", "String convert(List<RawField> fields, String copybookName);", "public String getCacheData(String data) {\n\t\tTreeData treeData = createTreeData(data);\n\t\tString valResult = null;\n if (treeData != null && EngineConfiguration.getInstance().getIntValue(\"general.useCache\", 0) == 1) {\n if (EngineConfiguration.getInstance().getIntValue(\"general.cacheRedis\", 0) == 1) {\n valResult = getDataRedis(treeData);\n } else {\n if (EngineConfiguration.getInstance().getIntValue(\"general.cacheRedis.testGet\", 0) == 1) {\n getDataRedis(treeData);\n }\n // request BID or CARD\n if (treeData.isRequestBidCard()) {\n // find tree for this deal\n TreeBidCard tree = cacheTree.getTreeBidCard(treeData.getTreeDealKey());\n if (tree != null) {\n String valCompressed = null;\n synchronized (tree) {\n tree.setTsLastConsult(System.currentTimeMillis());\n // find next result in this tree\n String keyCompressed = treeData.getConventions() + BridgeTransformData.transformGame(treeData.getGame());\n valCompressed = tree.getValueRobot(keyCompressed);\n }\n // value found in tree\n if (valCompressed != null && valCompressed.length() > 0) {\n int idx = 0;\n String g = treeData.getGame();\n String val = \"\";\n // need to transform compressed value to bridge value\n boolean bTransformOK = true;\n while (bTransformOK && idx < valCompressed.length()) {\n String temp = null;\n boolean isEndBids = GameBridgeRule.isEndBids(g);\n if (isEndBids) {\n temp = BridgeTransformData.convertBridgeCard2String(valCompressed.charAt(idx));\n } else {\n temp = BridgeTransformData.convertBridgeBid2String(valCompressed.charAt(idx));\n }\n if (temp == null) {\n log.error(\"Error in convertion char to string : char=\" + valCompressed.charAt(idx) + \" int value=\" + (int) valCompressed.charAt(idx) + \" - endBid=\" + GameBridgeRule.isEndBids(g) + \" - data=\" + data + \" - treeData=\" + treeData);\n bTransformOK = false;\n }\n idx++;\n if (valCompressed.charAt(idx) == '1') {\n if (isEndBids) {\n // flag to indicate spread enable\n temp += \"s\";\n } else {\n // flag to indicate alert on bid\n temp += \"a\";\n }\n }\n idx++;\n val += temp;\n g += temp;\n }\n // if tranformation OK => return value else null\n if (bTransformOK) {\n valResult = val;\n }\n }\n }\n }\n // request BID INFO\n else if (treeData.isRequestBidInfo()) {\n // find tree for this deal\n TreeBidInfo tree = cacheTree.getTreeBidInfo(treeData.getTreeDealKey());\n if (tree != null) {\n synchronized (tree) {\n tree.setTsLastConsult(System.currentTimeMillis());\n String keyCompressed = treeData.getConventions() + BridgeTransformData.transformGame(treeData.getGame());\n valResult = tree.getBidInfo(keyCompressed);\n }\n }\n }\n }\n\t\t}\n\t\treturn valResult;\n\t}", "public String formatForAmericanModel(Date data){\n //definido modelo americano\n DateFormat formatBR = new SimpleDateFormat(\"yyyy-MM-dd\");\n return formatBR.format(data);\n \n }", "public String getDataNascimentoString() {\r\n\r\n\t\tSimpleDateFormat data = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\r\n\t\treturn data.format(this.dataNascimento.getTime());\r\n\r\n\t}", "String[] getData();", "private StringBuilder getA1RateBuilder() throws UnsupportedEncodingException, ParseException {\n\n\t\tint colNum = 15;\n\t\tStringBuilder commonTr = new StringBuilder();\n\t\tStringBuilder commonTd = new StringBuilder();\n\t\t\n\t\tList<String> thList = new ArrayList<>(colNum);\n\t\t//TODO thList add 1 2~15 期\n\t\tthList.add(new String((\"1_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"2_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"3_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"4_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"5_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"6_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"7_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"8_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"9_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"10_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"11_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"12_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"13_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"14_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\tthList.add(new String((\"15_期\").getBytes(\"GBK\"), \"ISO-8859-1\"));\n\t\t\n\t\tnew String((\"上月差额补足金额\").getBytes(\"GBK\"), \"ISO-8859-1\");\n\t\t\n\t\t//List<Map<String, Object>> tdList = new ArrayList<>();\n\t\t\n\t\t\n\t\t\n\t\t//tdList = trustContributionServer.getA1List(partnerCode);\n\t\t\t\n\t\tcommonTr = this.getCommonTr(thList,colNum);\n\t\t\n\t\tcommonTd = this.getCommonTd();\n\t\t\t\n\t\t//TODO add\n\t\tcommonTr.append(commonTd).append(\"</table>\").append(\"</div>\");\n\t\t//commonTr.append(\"</table>\").append(\"</div>\");\n\t\t\n\t\treturn commonTr;\n\t}", "@Override\n public Object getData() {\n return new String(outputData);\n }", "Object getFormat();", "public String getData(String rawData){\n\t\treturn \"1\";\n\t}", "@Override\n\tpublic Data toData() {\n\t\treturn null;\n\t}", "public String toText(String braille);", "String getBarcharDataQuery();", "public java.lang.String getBFSDATA() {\n return BFSDATA;\n }", "byte[] getData();", "byte[] getData();", "byte[] getData();", "byte[] getData();", "public /*byte[]*/String BinaryCaster(Object item){\n String Sitem = Integer.toBinaryString((int)item);\n //byte[] b = new byte[Sitem.length()];\n //for(int i=0;i<Sitem.length();i++){\n // b[i] = (byte)Sitem.charAt(i);\n //}\n //return b;\n return Sitem;\n }", "java.lang.String getField1252();", "private String longitudeConversion() {\n int lon = record[5];\n if (lon >= 0) {\n lon = lon & 255;\n }\n lon = (lon << 8) + (record[4] & 255);\n float flon = Float.parseFloat(\"\" + lon + \".\" + (((record[7] & 255) << 8) + (record[6] & 255)));\n int degs = (int) flon / 100;\n float min = flon - degs * 100;\n String retVal = \"\" + (degs + min / 60);\n\n if (retVal.compareTo(\"200.0\") == 0) {\n return \"\";\n } else {\n return retVal;\n }\n }", "@Override\n\tprotected void GetDataFromNative() {\n\t\tAverageFuelRate = CAN1Comm.Get_AverageFuelRate_333_PGN65390();\n\t\tLatestFuelConsumed = CAN1Comm.Get_ADaysFuelUsed_1405_PGN65390();\t\n\t}", "protected String getQRData() {\n String data = \"\";\n\n // positions de départ hardcodées (i,j), sens de parcours nombres de lignes (0:down, 1:up),\n // nombres de lignes à lire (nb_lines), spécial 1 colonnes (0:2 col, 1:1 col)\n int[][] start_bits_list = new int[][] {{28,28,1,20,0}, {9,26,0,20,0}, {28,24,1,4,0}, {19,24,1,11,0}, {9,22,0,11,0}, {25,22,0,4,0},\n {28,20,1,4,0}, {24,19,1,5,1}, {19,20,1,13,0}, {5,20,1,6,0}, {0,18,0,6,0}, {7,18,0,22,0},\n {28,16,1,22,0}, {5,16,1,6,0}, {0,14,0,6,0}, {7,14,0,22,0}, {28,12,1,22,0}, {5,12,1,6,0},\n {0,10,0,6,0}, {7,10,0,22,0}, {20,8,1,12,0}, {9,5,0,12,0}, {20,3,1,12,0}, {9,1,0,8,0},\n {17,1,0,1,1}};\n int[] start_bit;\n\n /* --- Traitement --- */\n for (int l = 0; l < start_bits_list.length; l++) {\n start_bit = start_bits_list[l];\n\n if (start_bit[2] == 1) { // sens de parcours : UP\n data += this.getDataUp(start_bit[0], start_bit[1], start_bit[3], start_bit[4]);\n }\n else { // sens de parcours : DOWN\n data += this.getDataDown(start_bit[0], start_bit[1], start_bit[3], start_bit[4]);\n }\n }\n\n return data;\n }", "private static BemCandidato populate(String[] data) {\n\t\tBemCandidato bc = new BemCandidato();\n\t\tbc.setDataGeracao(data[0]);\n\t\tbc.setHoraGeracao(data[1]);\n\t\tbc.setAnoEleicao(data[2].trim());\n\t\tbc.setDescricaoEleicao(data[3]);\n\t\tbc.setSiglaUF(data[4].trim());\n\t\tbc.setSequencialCandidato(data[5].trim());\n\t\tbc.setDescricao(data[6]);\n\t\tbc.setCdTipoBemCandidato(data[7]);\n\t\tbc.setDsTipoBemCandidato(data[8]);\n\t\tbc.setValorBem(data[9].trim());\n\t\tbc.setDataUltimaAtualizacao(data[10]);\n\t\tbc.setHoraUltimaAtualizacao(data[11]);\n\t\treturn bc;\n\t}", "com.google.protobuf.ByteString\n getField1252Bytes();", "public String getData()\n {\n return data;\n }", "@Override\n\tpublic byte[] getBytes() {\n\t\tByteBuffer buf = ByteBuffer.allocate(8);\n\t\tbuf.putDouble(this.riskPremium);\n\t\treturn buf.array();\n\t}", "public String[] getBordas(){\r\n String[] str = new String[bordas.size()];\r\n int i =0;\r\n for(Borda b:bordas){\r\n str[i]=b.toString();\r\n i++;\r\n }\r\n return str;\r\n }", "java.lang.String getDataType();", "String[][] packData();", "public java.lang.String getData() {\r\n return data;\r\n }", "com.google.protobuf.ByteString getData();", "com.google.protobuf.ByteString getData();", "com.google.protobuf.ByteString getData();", "com.google.protobuf.ByteString getData();", "com.google.protobuf.ByteString getData();", "com.google.protobuf.ByteString getData();", "com.google.protobuf.ByteString getData();", "com.google.protobuf.ByteString getData();", "com.google.protobuf.ByteString getData();", "com.google.protobuf.ByteString getData();", "com.google.protobuf.ByteString getData();", "com.google.protobuf.ByteString getData();", "com.google.protobuf.ByteString getData();", "DataType getBase_DataType();", "@Override\n public List<String> getData() {\n List<String> retVal = new ArrayList<>();\n try {\n List<String> data = new ArrayList<>();\n ParkingLot parkingLot = parkingManager.getParkingLot();\n for (Slot slot : parkingLot.getSlots()) {\n if (slot.getVehicle() == null) {continue;}\n String format = String.format(\"%-11d %-18s %s\",\n slot.getId(),\n slot.getVehicle() == null ? null : slot.getVehicle().getRegistrationNumber(),\n slot.getVehicle() == null ? null : slot.getVehicle().getColor());\n\n data.add(format);\n }\n retVal.add(PARKING_LOT_STATUS_HEADER);\n retVal.addAll(data);\n\n } catch (ParkingException e) {\n retVal.add(e.getMessage());\n }\n return retVal;\n }", "public DataFormat createDataFormat() {\n\t\treturn null;\n\t}", "String getRaw();", "public String getlbr_Barcode2();", "String getContentFormat();", "public String getDataNastereString(){\n\t\tDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\tString sd = df.format(new Date(data_nastere.getTime()));\n\t\treturn sd;\n\t\t\n\t}", "private BarData generateDataBar() {\n String year = year_txt.getText().toString();\n String month1 =Utilities.getMonth(months,month_txt.getText().toString());\n ArrayList<BarEntry> entries = new ArrayList<>();\n ArrayList<TransactionBeans> transactionBeans = transactionDB.getTransactionRecordsMonth(month1,year);\n for (int i = 0; i < transactionBeans.size(); i++) {\n TransactionBeans beans = transactionBeans.get(i);\n entries.add(new BarEntry(i, (int) (Double.parseDouble(beans.getIncome()))));\n }\n\n BarDataSet d = new BarDataSet(entries, \"\");\n d.setColors(ColorTemplate.VORDIPLOM_COLORS);\n d.setHighLightAlpha(255);\n\n BarData cd = new BarData(d);\n cd.setBarWidth(0.9f);\n cd.setDrawValues(false);\n return cd;\n }", "@Override\n\tpublic String[] toArray() {\n\t\tString strHostName = null;\n\t\ttry {\n\t\t\tstrHostName = InetAddress.getLocalHost().getHostAddress();\n\t\t} catch (UnknownHostException ex) {\n\t\t\tstrHostName = \"127.0.0.1\";\n\t\t}\n\t\tstrValue[0] = \"*LINX\"; // 0 :\n\t\tstrValue[1] = strHostName; // 1 :\n\t\tstrValue[5] = \"213\"; // 5 :\n\t\tstrValue[7] = \"0200\"; // 7 :\n\t\tstrValue[8] = \"*DSP\"; // 8 :\n\t\tstrValue[9] = \"MBSD\"; // 9 :\n\t\tstrValue[10] = \"*LINX\"; // 10 :\n\t\tstrValue[14] = \"01\"; // 14 :\n\t\tstrValue[17] = \"BBMBSLNINQFNC\"; // 17 :\n\t\tstrValue[22] = \"1\"; // 22 :\n\t\tstrValue[23] = \"10\"; // 23 :\n\t\tstrValue[24] = calla.getTeller(); // 24 :\n\t\tstrValue[25] = strHostName; // 25 :\n\t\tstrValue[26] = \"86305\"; // 26 :\n\t\tstrValue[27] = \"N\"; // 27 :\n\t\tstrValue[31] = calla.getTeller(); // 31 : User ID\n\t\tstrValue[32] = \"1\"; // 32 : Reference Number\n\t\tstrValue[34] = \"*END\"; // 34 : End of Group Indicator\n\t\tstrValue[36] = \"BTS\"; // 36 : Source ID\n\t\tstrValue[37] = \"RBS\"; // 37 : Destination ID\n\t\tstrValue[39] = strHostName; // 39 : Terminal ID\n\t\tstrValue[40] = \"27\"; // 40 : Bank Number\n\t\tstrValue[41] = calla.getBranch(); // 41 : Branch\n\t\t\t\t\t\t\t\t\t\t\t// Number\n\t\tstrValue[45] = \"86305\"; // Transaction Code\n\t\tstrValue[46] = \"I\"; // \"D\",\"C\" Action Code\n\t\tstrValue[47] = \"R\"; // Transaction Mode\n\t\tstrValue[48] = \"1\"; // No. Of Records To Retrieve\n\t\tstrValue[49] = \"N\"; // More Records Indicator\n\t\tstrValue[50] = \"F\"; // Search Method\n\t\tstrValue[56] = \"D\"; // 56 : Response Reason For Code 3\n\t\tstrValue[67] = calla.getApplicationNo(); // Account number\n\t\tstrValue[68] = calla.getFacilityCode(); // 240\n\t\tstrValue[69] = calla.getFacId();//\n\t\tstrValue[70] = calla.getCollateralId(); //\n\n\t\treturn strValue;\n\t}", "@VisibleForTesting\n protected static byte[] getGalileoDataByteArray(String dwrd) {\n String dataString = dwrd.substring(0, dwrd.length() - 8);\n byte[] data = BaseEncoding.base16().lowerCase().decode(dataString.toLowerCase());\n // Removing bytes 16 and 32 (they are padding which should be always zero)\n byte[] dataStart = Arrays.copyOfRange(data, 0, 15);\n byte[] dataEnd = Arrays.copyOfRange(data, 16, 31);\n byte[] result = new byte[dataStart.length + dataEnd.length];\n\n System.arraycopy(dataStart, 0, result, 0, dataStart.length);\n System.arraycopy(dataEnd, 0, result, 15, dataEnd.length);\n return result;\n }", "byte[] getStructuredData(String messageData);", "double[] encodeNetwork();", "public String getDataCandidatura(){\n return dataCandidatura;\n }", "private String formataData(long dt){\n\t\tDate d = new Date(dt);\n\t\tDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\treturn df.format(d);\n\t}", "public String getDataMain(){\n\n calendar = Calendar.getInstance();\n thisYear = calendar.get(Calendar.YEAR);\n Log.d(TAG, \"# thisYear : \" + thisYear);\n\n thisMonth = calendar.get(Calendar.MONTH);\n Log.d(TAG, \"@ thisMonth : \" + thisMonth);\n\n thisDay = calendar.get(Calendar.DAY_OF_MONTH);\n Log.d(TAG, \"$ thisDay : \" + thisDay);\n\n mese = monthIntToString(thisMonth);\n\n /*\n switch (thisMonth){\n case 0:\n mese = \"Gennaio\";\n break;\n case 1:\n mese = \"Febbraio\";\n break;\n case 2:\n mese = \"Marzo\";\n break;\n case 3:\n mese = \"Aprile\";\n break;\n case 4:\n mese = \"Maggio\";\n break;\n case 5:\n mese = \"Giugno\";\n break;\n case 6:\n mese = \"Luglio\";\n break;\n case 7:\n mese = \"Agosto\";\n break;\n case 8:\n mese = \"Settembre\";\n break;\n case 9:\n mese = \"Ottobre\";\n break;\n case 10:\n mese = \"Novembre\";\n break;\n case 11:\n mese = \"Dicembre\";\n break;\n }\n */\n return mese;\n }", "public String getCurrencies() {\n try {\n URLConnection connection = new URL(url).openConnection();\n connection.setConnectTimeout(30000);\n connection.setReadTimeout(60000);\n return inputStreamToString(connection.getInputStream());\n } catch (IOException ignored) {\n }\n return null;\n // return \"{\\\"success\\\":true,\\\"timestamp\\\":1522438448,\\\"base\\\":\\\"EUR\\\",\\\"date\\\":\\\"2018-03-30\\\",\\\"rates\\\":{\\\"AED\\\":4.525864,\\\"AFN\\\":85.161016,\\\"ALL\\\":129.713915,\\\"AMD\\\":591.02486,\\\"ANG\\\":2.194225,\\\"AOA\\\":263.604778,\\\"ARS\\\":24.782964,\\\"AUD\\\":1.603522,\\\"AWG\\\":2.193728,\\\"AZN\\\":2.094523,\\\"BAM\\\":1.959078,\\\"BBD\\\":2.464863,\\\"BDT\\\":102.168576,\\\"BGN\\\":1.956367,\\\"BHD\\\":0.464385,\\\"BIF\\\":2157.962929,\\\"BMD\\\":1.232432,\\\"BND\\\":1.622501,\\\"BOB\\\":8.454972,\\\"BRL\\\":4.072329,\\\"BSD\\\":1.232432,\\\"BTC\\\":0.000181,\\\"BTN\\\":80.292916,\\\"BWP\\\":11.742489,\\\"BYN\\\":2.403731,\\\"BYR\\\":24155.657915,\\\"BZD\\\":2.462157,\\\"CAD\\\":1.588901,\\\"CDF\\\":1929.376385,\\\"CHF\\\":1.174759,\\\"CLF\\\":0.027287,\\\"CLP\\\":743.649213,\\\"CNY\\\":7.730802,\\\"COP\\\":3437.005101,\\\"CRC\\\":692.811412,\\\"CUC\\\":1.232432,\\\"CUP\\\":32.659435,\\\"CVE\\\":110.314948,\\\"CZK\\\":25.337682,\\\"DJF\\\":217.930869,\\\"DKK\\\":7.455792,\\\"DOP\\\":60.88212,\\\"DZD\\\":140.270429,\\\"EGP\\\":21.66663,\\\"ERN\\\":18.474632,\\\"ETB\\\":33.546785,\\\"EUR\\\":1,\\\"FJD\\\":2.489994,\\\"FKP\\\":0.876387,\\\"GBP\\\":0.878367,\\\"GEL\\\":2.977929,\\\"GGP\\\":0.878427,\\\"GHS\\\":5.436305,\\\"GIP\\\":0.876757,\\\"GMD\\\":58.022879,\\\"GNF\\\":11085.722017,\\\"GTQ\\\":9.041167,\\\"GYD\\\":251.699486,\\\"HKD\\\":9.672744,\\\"HNL\\\":29.022579,\\\"HRK\\\":7.425898,\\\"HTG\\\":79.270474,\\\"HUF\\\":312.396738,\\\"IDR\\\":16958.257802,\\\"ILS\\\":4.30267,\\\"IMP\\\":0.878427,\\\"INR\\\":80.242385,\\\"IQD\\\":1459.198927,\\\"IRR\\\":46515.663531,\\\"ISK\\\":121.33288,\\\"JEP\\\":0.878427,\\\"JMD\\\":154.325077,\\\"JOD\\\":0.873183,\\\"JPY\\\":130.921205,\\\"KES\\\":124.16795,\\\"KGS\\\":84.307561,\\\"KHR\\\":4914.197347,\\\"KMF\\\":490.729577,\\\"KPW\\\":1109.188805,\\\"KRW\\\":1306.217196,\\\"KWD\\\":0.368748,\\\"KYD\\\":1.011066,\\\"KZT\\\":393.096349,\\\"LAK\\\":10204.533468,\\\"LBP\\\":1860.972035,\\\"LKR\\\":191.667756,\\\"LRD\\\":162.373324,\\\"LSL\\\":14.567811,\\\"LTL\\\":3.757319,\\\"LVL\\\":0.764786,\\\"LYD\\\":1.634332,\\\"MAD\\\":11.330857,\\\"MDL\\\":20.258758,\\\"MGA\\\":3919.132681,\\\"MKD\\\":61.251848,\\\"MMK\\\":1639.134357,\\\"MNT\\\":2940.582048,\\\"MOP\\\":9.954478,\\\"MRO\\\":432.583892,\\\"MUR\\\":41.29107,\\\"MVR\\\":19.189425,\\\"MWK\\\":879.265951,\\\"MXN\\\":22.379772,\\\"MYR\\\":4.759698,\\\"MZN\\\":75.486896,\\\"NAD\\\":14.553832,\\\"NGN\\\":438.746047,\\\"NIO\\\":38.143757,\\\"NOK\\\":9.665842,\\\"NPR\\\":128.377096,\\\"NZD\\\":1.702979,\\\"OMR\\\":0.474245,\\\"PAB\\\":1.232432,\\\"PEN\\\":3.975213,\\\"PGK\\\":3.925342,\\\"PHP\\\":64.28409,\\\"PKR\\\":142.185629,\\\"PLN\\\":4.210033,\\\"PYG\\\":6843.692686,\\\"QAR\\\":4.487658,\\\"RON\\\":4.655145,\\\"RSD\\\":118.061885,\\\"RUB\\\":70.335482,\\\"RWF\\\":1038.853498,\\\"SAR\\\":4.62113,\\\"SBD\\\":9.587829,\\\"SCR\\\":16.588987,\\\"SDG\\\":22.246869,\\\"SEK\\\":10.278935,\\\"SGD\\\":1.615324,\\\"SHP\\\":0.876757,\\\"SLL\\\":9588.317692,\\\"SOS\\\":693.859366,\\\"SRD\\\":9.145099,\\\"STD\\\":24512.446842,\\\"SVC\\\":10.784232,\\\"SYP\\\":634.677563,\\\"SZL\\\":14.552187,\\\"THB\\\":38.403022,\\\"TJS\\\":10.877199,\\\"TMT\\\":4.202592,\\\"TND\\\":2.98138,\\\"TOP\\\":2.726513,\\\"TRY\\\":4.874764,\\\"TTD\\\":8.17041,\\\"TWD\\\":35.851887,\\\"TZS\\\":2774.203779,\\\"UAH\\\":32.339456,\\\"UGX\\\":4541.510587,\\\"USD\\\":1.232432,\\\"UYU\\\":34.915237,\\\"UZS\\\":10007.344406,\\\"VEF\\\":60824.193529,\\\"VND\\\":28089.579347,\\\"VUV\\\":129.873631,\\\"WST\\\":3.158603,\\\"XAF\\\":655.530358,\\\"XAG\\\":0.075316,\\\"XAU\\\":0.00093,\\\"XCD\\\":3.33201,\\\"XDR\\\":0.847694,\\\"XOF\\\":655.530358,\\\"XPF\\\":119.368042,\\\"YER\\\":307.923024,\\\"ZAR\\\":14.559828,\\\"ZMK\\\":11093.367083,\\\"ZMW\\\":11.622277,\\\"ZWL\\\":397.280478}}\";\n }", "public byte[] getData();", "public final String dataTauluMerkkiJonoksi() {\r\n String data = \"\";\r\n\r\n for (int i = 0; i < this.riviAsteikko.length; i++) {\r\n for (int j = 0; j < this.sarakeAsteikko.length; j++) {\r\n if (this.dataTaulukko[i][j] < 10) {\r\n data = data + \" \" + dataTaulukko[i][j];\r\n } else if (this.dataTaulukko[i][j] >= 10\r\n && this.dataTaulukko[i][j] < 100) {\r\n data = data + \" \" + this.dataTaulukko[i][j];\r\n } else {\r\n data = data + \" \" + this.dataTaulukko[i][j];\r\n }\r\n }\r\n data = data + System.lineSeparator();\r\n }\r\n return data;\r\n }", "public String prepareData() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (Ship s: ships) {\n\t\t\tsb.append(s.prepareData());\n\t\t\tsb.append(System.lineSeparator());\n\t\t}\n\t\tsb.append(DELIMITER);\n\t\treturn sb.toString();\n\t}", "public static String converterEmValorMonetarioBrasileiroSimples(BigDecimal valor) {\n\t\tLocale locale = new Locale(\"pt\",\"BR\");\n\t\treturn valor == null ? null : NumberFormat.getCurrencyInstance(locale).format(valor).replace(\"R$ \", \"\");\n\t}", "@Override\n public byte[] getValue() {\n byte[] value = new byte[length()];\n int dstPos = 0;\n\n if (isSupportYear()) {\n int fieldLen = mYear.length;\n System.arraycopy(mYear, 0, value, dstPos, fieldLen);\n dstPos += fieldLen;\n }\n\n if (isSupportMonth()) {\n int fieldLen = mMonth.length;\n System.arraycopy(mMonth, 0, value, dstPos, fieldLen);\n dstPos += fieldLen;\n }\n\n if (isSupportDay()) {\n int fieldLen = mDay.length;\n System.arraycopy(mDay, 0, value, dstPos, fieldLen);\n dstPos += fieldLen;\n }\n\n if (isSupportHours()) {\n int fieldLen = mHours.length;\n System.arraycopy(mHours, 0, value, dstPos, fieldLen);\n dstPos += fieldLen;\n }\n\n if (isSupportMinutes()) {\n int fieldLen = mMinutes.length;\n System.arraycopy(mMinutes, 0, value, dstPos, fieldLen);\n dstPos += fieldLen;\n }\n\n if (isSupportSeconds()) {\n int fieldLen = mSeconds.length;\n System.arraycopy(mSeconds, 0, value, dstPos, fieldLen);\n dstPos += fieldLen;\n }\n\n return value;\n }", "public String getData() {\r\n return Data;\r\n }", "public String getData() {\r\n return Data;\r\n }", "public String getData() {\n\treturn data;\n }" ]
[ "0.6395287", "0.6336102", "0.6247061", "0.60862535", "0.5842453", "0.5787661", "0.5781259", "0.5777283", "0.5651737", "0.5650636", "0.56011945", "0.55578333", "0.55353254", "0.5532605", "0.5503155", "0.55008525", "0.54989254", "0.5479286", "0.5477595", "0.5464181", "0.5451069", "0.54232967", "0.5403957", "0.5355233", "0.5351608", "0.5335998", "0.53357106", "0.53357106", "0.5270756", "0.5261015", "0.52305865", "0.5228236", "0.5217114", "0.52119553", "0.52014613", "0.52000827", "0.5193298", "0.51847667", "0.5178591", "0.514544", "0.51404065", "0.5129703", "0.5128178", "0.51189834", "0.51181465", "0.5105412", "0.51013726", "0.51013726", "0.51013726", "0.51013726", "0.5100451", "0.5088884", "0.50876284", "0.5072207", "0.50700283", "0.50650746", "0.5059661", "0.5058359", "0.50491554", "0.50441855", "0.50417686", "0.5040549", "0.5038481", "0.5032161", "0.5032161", "0.5032161", "0.5032161", "0.5032161", "0.5032161", "0.5032161", "0.5032161", "0.5032161", "0.5032161", "0.5032161", "0.5032161", "0.5032161", "0.5017493", "0.50147676", "0.501317", "0.5012563", "0.4993242", "0.49922863", "0.4987259", "0.49871188", "0.49774852", "0.4965647", "0.496143", "0.49596286", "0.49500704", "0.49500352", "0.4948116", "0.49436572", "0.4942937", "0.49405253", "0.49381235", "0.4935159", "0.49339056", "0.49272037", "0.49272037", "0.49271578" ]
0.6090413
3
Sort by area test
@Test public void testGetShapesSortedByArea() { List<Shape> expectedOutput = new ArrayList<Shape>(); expectedOutput.add(regularPolygon); expectedOutput.add(triangle); expectedOutput.add(rectangle); expectedOutput.add(square); expectedOutput.add(circle); List<Shape> actualOutput = screen.sortShape(SortType.AREA); assertEquals(expectedOutput, actualOutput); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testSortShapeWithArea()\r\n {\r\n // Screen screen = new Screen();\r\n \r\n Point originOfSquare = new Point(1,1);\r\n List<Double> listOne = new ArrayList<Double>();\r\n listOne.add(2.0);\r\n Shape square = ShapeFactory.createShape(0, originOfSquare, listOne); \r\n \r\n Point originOfCircle = new Point(1,1);\r\n List<Double> listTwo = new ArrayList<Double>();\r\n listTwo.add(2.0);\r\n Shape circle = ShapeFactory.createShape(3, originOfCircle, listTwo);\r\n \r\n Point orignOfTriangle = new Point(1,1);\r\n List<Double> listThree = new ArrayList<Double>();\r\n listThree.add(4.0);\r\n listThree.add(3.0);\r\n listThree.add(4.0);\r\n listThree.add(5.0);\r\n Shape triangle = ShapeFactory.createShape(2, orignOfTriangle, listThree);\r\n \r\n screen.addNewShapeToScreen(square);\r\n screen.addNewShapeToScreen(circle);\r\n screen.addNewShapeToScreen(triangle);\r\n \r\n screen.sortShapesOnCriteria(SortCriteria.AREA); // Sort list on the basis of area\r\n \r\n assertEquals(4.0, screen.shapesOnScreen.get(0).getArea(), 0);\r\n assertEquals(6.0, screen.shapesOnScreen.get(1).getArea(), 0);\r\n assertEquals(12.56, screen.shapesOnScreen.get(2).getArea(), 0);\r\n \r\n }", "@Test\r\n public void testGetShapesSortedByPerimeter() {\r\n List<Shape> expectedOutput = new ArrayList<Shape>();\r\n expectedOutput.add(regularPolygon);\r\n expectedOutput.add(triangle);\r\n expectedOutput.add(rectangle);\r\n expectedOutput.add(square);\r\n expectedOutput.add(circle);\r\n List<Shape> actualOutput = screen.sortShape(SortType.PERIMETER);\r\n assertEquals(expectedOutput, actualOutput);\r\n }", "@Test\n public void givenStateCensusData_WhenSortByArea_ReturnSortedResult() {\n final String CSV_FILE_PATH = \"src/test/resources/StateCensusData.csv\";\n try {\n indianCensusAnalyzer.loadStateCensusCSVData(CensusAnalyser.Country.INDIA, CSV_FILE_PATH);\n String sortedCensusData = indianCensusAnalyzer.sortedStateCensusData(CensusAnalyser.SortingMode.AREA);\n CSVStateCensus[] stateCensusCSV = new Gson().fromJson(sortedCensusData, CSVStateCensus[].class);\n Assert.assertEquals(342239, stateCensusCSV[0].AreaInSqKm);\n } catch ( CSVBuilderException e) {\n e.getStackTrace();\n }\n }", "public static void testSort() {\n\t\tint[] test = {-1,-2,-3,4,1,3,0,3,-2,1,-2,2,-1,1,-5,4,-3};\n\t\tArrays.sort(test);\n\t\tfor (int e : test) {\n\t\t\tSystem.out.print(e + \", \");\n\t\t}\n\t}", "@Test\r\n public void testGetShapesSortedByOriginDistance() {\r\n List<Shape> expectedOutput = new ArrayList<Shape>();\r\n expectedOutput.add(circle);\r\n expectedOutput.add(square);\r\n expectedOutput.add(rectangle);\r\n expectedOutput.add(triangle);\r\n expectedOutput.add(regularPolygon);\r\n List<Shape> actualOutput = screen.sortShape(SortType.ORIGIN_DISTANCE);\r\n assertEquals(expectedOutput, actualOutput);\r\n }", "@Test\n public void testSort() {\n initialize();\n var realList = new HighScoreList();\n realList.setList(list);\n realList.sort();\n\n assertEquals(300, realList.getList().get(0).getScore());\n assertEquals(200, realList.getList().get(1).getScore());\n assertEquals(100, realList.getList().get(2).getScore());\n }", "private static void performSort(TestApp testApp) {\n testApp.testPartition();\n\n /*\n Date end = new Date();\n System.out.println(\"Sort ended @ \" + end.getTime());\n System.out.println(\"Total time = \" + (end.getTime() - start.getTime())/1000.0 + \" seconds...\");\n */\n }", "private void sort() {\n ScoreComparator comparator = new ScoreComparator();\n Collections.sort(scores, comparator);\n }", "public static void sortByFitlvl() {\n Collections.sort(Population);\n if (debug) {\n debugLog(\"\\nSorted: \");\n printPopulation();\n }\n }", "@Test\n public void testSort() {\n topScreenModel.setSortFieldAndFields(Field.LOCALITY, fields);\n\n FieldValue previous = null;\n\n // Test for ascending sort\n topScreenModel.refreshMetricsData();\n\n for (Record record : topScreenModel.getRecords()) {\n FieldValue current = record.get(Field.LOCALITY);\n if (previous != null) {\n assertTrue(current.compareTo(previous) < 0);\n }\n previous = current;\n }\n\n // Test for descending sort\n topScreenModel.switchSortOrder();\n topScreenModel.refreshMetricsData();\n\n previous = null;\n for (Record record : topScreenModel.getRecords()) {\n FieldValue current = record.get(Field.LOCALITY);\n if (previous != null) {\n assertTrue(current.compareTo(previous) > 0);\n }\n previous = current;\n }\n }", "@Test\n public void f13OrderRULTest() {\n clickOn(\"#thumbnailTab\").moveBy(90, 200);\n scroll(50, VerticalDirection.UP).sleep(1000);\n\n scroll(50, VerticalDirection.DOWN).sleep(1000);\n clickOn(\"#sortAsset\").type(KeyCode.DOWN).type(KeyCode.ENTER);\n\n sleep(1000).moveBy(-90, 200).scroll(50, VerticalDirection.UP).sleep(1000);\n\n boolean isOrdered = true;\n double[] ruls = getRuls();\n\n //Check if the ascending ruls are ordered\n for (int i = 0; i < ruls.length - 1; i++) {\n if (ruls[i] > ruls[i + 1]) {\n isOrdered = false;\n break;\n }\n }\n\n sleep(1000).scroll(50, VerticalDirection.DOWN).sleep(1000);\n assertTrue(\"All RULs after sorting by ascending are ordered from smallest to largest.\", isOrdered);\n }", "public void sortMatches();", "@Override\r\n\t\t\tpublic int compare(Presentor o1, Presentor o2) {\n\t\t\t\tint sort = 0;\r\n\t\t\t\tint a = o1.getZs() - o2.getZs();\r\n\t\t\t\tif (a != 0) {\r\n\t\t\t\t\tsort = (a < 0) ? 1 : -1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\ta = o1.getJd() - o2.getJd();\r\n\t\t\t\t\tif (a != 0) {\r\n\t\t\t\t\t\tsort = (a < 0) ? 1 : -1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn sort;\r\n\t\t\t}", "public void sort() {\n }", "@Override\n public void sortAndCount() {\n Insertion.reset();\n Insertion.sort(arrayForTests);\n comp = Sort.getComparisonOperations(); // Sort.getComp();\n copy = Sort.getCopyOperations(); // Sort.getCopy();\n }", "public void sort() {\r\n // sort the process variables\r\n Arrays.sort(pvValues, categoryComparator);\r\n fireTableDataChanged();\r\n }", "void sortUI();", "void sort();", "void sort();", "public void sortAuthority(List<Page> result) {\n\t\tCollections.sort(result, new Comparator<Page>() {\n\t\t\tpublic int compare(Page p1, Page p2) {\n\t\t\t\t// Sorts by 'TimeStarted' property\n\t\t\t\treturn p1.hub < p2.hub ? -1 : p1.hub > p2.hub ? 1 : secondaryOrderSort(p1, p2);\n\t\t\t}\n\n\t\t\t// If 'TimeStarted' property is equal sorts by 'TimeEnded' property\n\t\t\tpublic int secondaryOrderSort(Page p1, Page p2) {\n\t\t\t\treturn p1.getLocation().compareToIgnoreCase(p2.getLocation()) < 1 ? -1\n\t\t\t\t\t\t: p1.getLocation().compareToIgnoreCase(p2.getLocation()) > 1 ? 1 : 0;\n\t\t\t}\n\t\t});\n\t}", "public void sort(){\n Collections.sort(list, new SortBySpecies());\n }", "public int compare(Figure other){\n if(this.getArea()>other.getArea()){\n return 1; \n }\n if( this.getArea()<other.getArea()){\n return -1;\n }\n return 0;\n }", "@Test\n public void givenTheUSCensusData_WhenSortedOnArea_ShouldReturnSortedResult() {\n final String CSV_FILE_PATH = \"src/test/resources/USCensusData.csv\";\n try {\n usCensusAnalyzer.loadStateCensusCSVData(CensusAnalyser.Country.US, CSV_FILE_PATH);\n String sortedCensusData = usCensusAnalyzer.sortedStateCensusData(CensusAnalyser.SortingMode.AREA);\n CensusDAO[] censusDAO = new Gson().fromJson(sortedCensusData, CensusDAO[].class);\n Assert.assertEquals(\"Alaska\",censusDAO[0].StateName);\n } catch (CSVBuilderException e) {\n e.printStackTrace();\n }\n }", "@Override\r\n\tpublic double area() {\n\r\n\t\tif (cube1.area()>cube2.area()) {\r\n\t\r\nc double volume() {\r\n\t\t\t\treturn super.area() * iDepth;\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tpublic double perimeter() throws UnsupportedOperationException{\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\r\n\t\t\tpublic class SortByArea implements Comparator<Cuboid>{\r\n\r\n\t\t\t\tSortByArea() {\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic int compare(Cuboid cub1, Cuboid cub2) {\r\n\t\t\t\t\tif (cub1.area() > cub2.area()) {\r\n\t\t\t\t\t\treturn 1;\r\n\t\t\t\t\t} else if(cub1.area() < cub2.area()) {\r\n\t\t\t\t\t\treturn -1;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\treturn 0;\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\t\tpublic class SortByVolume implements Comparator<Cuboid>{\r\n\r\n\t\t\t\tSortByVolume() {\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic int compare(Cuboid cub1, Cuboid cub2) {\r\n\t\t\t\t\tif (cub1.volume() > cub2.volume()) {\r\n\t\t\t\t\t\treturn 1;\r\n\t\t\t\t\t} else if(cub1.volume() < cub2.volume()) {\r\n\t\t\t\t\t\treturn -1;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\treturn 0;\r\n\t\r\n}\r\n}", "public void sort() {\n\t\t\tCollections.sort(population, new SolutionComparator());\n\t\t}", "public void printInfoFoundPolygonsToConsole() {\n System.out.println(\"start sorting\");\n Collections.sort(foundPolygons, new Comparator<Polygon2D>() {\n public int compare(Polygon2D p1, Polygon2D p2) {\n return -Double.compare(p1.calculateArea(), p2.calculateArea());\n }\n });\n System.out.println(\"Number of found polygons: \" + foundPolygons.size());\n System.out.println(foundPolygons.get(0));\n System.out.println(\"Largest area: \" + foundPolygons.get(0).calculateArea());\n }", "public static void sortShapes(Vector<Shape> v)\r\n\t{\r\n\t\tShape temp;\r\n\t\tint i,j;\r\n\t\tfor(i=0 ; i<v.size() ; i++)\r\n\t\t{\r\n\t\t\tfor(j=0 ; j<v.size() ; j++)\r\n\t\t\t{\r\n\t\t\t\tif((v.get(i)).area() < (v.get(j)).area())\r\n\t\t\t\t{\r\n\t\t\t\t\ttemp = v.get(i);\r\n\t\t\t\t\tv.set(i,v.get(j));\r\n\t\t\t\t\tv.set(j,temp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\t\r\n\t}", "@Override\n\tpublic int compare(ObjectWithCoordinates p1, ObjectWithCoordinates p2) {\n\t\tif (p1.getX() < p2.getX()) return -1;\n\t\tif (p1.getX() > p2.getX()) return +1;\n\t\tif (p1.getY() < p2.getY()) return -1;\n\t\tif (p1.getY() > p2.getY()) return +1;\n\t\treturn 0;\n\t}", "public void sortScoresDescendently(){\n this.langsScores.sort((LangScoreBankUnit o1, LangScoreBankUnit o2) -> {\n return Double.compare(o2.getScore(),o1.getScore());\n });\n }", "public void sort() {\n Collections.sort(jumpers, new SortJumperByPoints()); \n }", "public static boolean testSort() {\r\n Manager inst;\r\n try {\r\n inst = new PokemonTable();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n return false;\r\n }\r\n LinkedList<Pokemon> list;\r\n list = inst.sortByAttack(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getAttack() < list.get(i).getAttack()) {\r\n System.out.println(\"attack sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByAttack(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getAttack() > list.get(i).getAttack()) {\r\n System.out.println(\"attack sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByDefense(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getDefense() < list.get(i).getDefense()) {\r\n System.out.println(\"defense sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByDefense(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getDefense() > list.get(i).getDefense()) {\r\n System.out.println(\"defense sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByFavorite(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (!list.get(i - 1).getFavorite() && list.get(i).getFavorite()) {\r\n System.out.println(\"favorite sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByFavorite(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getFavorite() && !list.get(i).getFavorite()) {\r\n System.out.println(\"favorite sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByHp(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getHp() < list.get(i).getHp()) {\r\n System.out.println(\"hp sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByHp(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getHp() > list.get(i).getHp()) {\r\n System.out.println(\"hp sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByLegendary(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (!list.get(i - 1).isLegendary() && list.get(i).isLegendary()) {\r\n System.out.println(\"legendary sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByLegendary(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).isLegendary() && !list.get(i).isLegendary()) {\r\n System.out.println(\"legendary sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByName(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getName().compareTo(list.get(i).getName()) > 0) {\r\n System.out.println(\"name sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByName(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getName().compareTo(list.get(i).getName()) < 0) {\r\n System.out.println(\"name sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpAttack(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpAttack() < list.get(i).getSpAttack()) {\r\n System.out.println(\"spAttack sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpAttack(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpAttack() > list.get(i).getSpAttack()) {\r\n System.out.println(\"spAttack sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpDefense(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpDefense() < list.get(i).getSpDefense()) {\r\n System.out.println(\"spDefense sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpDefense(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpDefense() > list.get(i).getSpDefense()) {\r\n System.out.println(\"spDefense sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpeed(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpeed() < list.get(i).getSpeed()) {\r\n System.out.println(\"speed sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpeed(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpeed() > list.get(i).getSpeed()) {\r\n System.out.println(\"speed sort\");\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "@Test(priority = 8)\n\tpublic void validateSortingByRating() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"Validating the Sorting functionality\");\n\t\tHeroImageProductPageFlow.selectSortingDropdown(2, locator);\n\t\theroImg.validateStarRating(3, locator, validate);\n\t\tHeroImageProductPageFlow.selectSortingDropdown(3, locator);\n\t\theroImg.validateStarRating(4, locator, validate);\n\t\tlog.info(\"sorting is correct\");\n\t}", "@Test\n public void testCompare() {\n AantalGastenComparator instance = new AantalGastenComparator();\n int expResult;\n int result;\n \n //test 1\n Accommodatie a1 = new Accommodatie(\"je moeder\", 30.00, 2, 1);\n Accommodatie a2 = new Accommodatie(\"je vader\", 40.00, 3, 1);\n expResult = -1;\n result = instance.compare(a1, a2);\n assertEquals(expResult, result);\n \n \n //test 2\n Accommodatie a3 = new Accommodatie(\"je moeder2\", 30.00, 2, 1);\n Accommodatie a4 = new Accommodatie(\"je vader2\", 40.00, 2, 1);\n expResult = 0;\n result = instance.compare(a3, a4);\n assertEquals(expResult, result);\n \n \n //test 3\n Accommodatie a5 = new Accommodatie(\"je moeder3\", 30.00, 3, 1);\n Accommodatie a6 = new Accommodatie(\"je vader3\", 40.00, 2, 1);\n expResult = 1;\n result = instance.compare(a5, a6);\n assertEquals(expResult, result);\n }", "public static <T extends Comparable<? super T>> void sortTest2(T[] a) {\n int N = a.length;\n for (int i = 1; i < N; i++) { \n // Insert a[i] among a[i-1], a[i-2], a[i-3]... ..\n for (int j = i; j > 0 && lessTest(a[j], a[j-1]); j--) {\n exch(a, j, j-1);\n }\n }\n }", "public final void testSortCriteria() throws Exception\n {\n Vector vect = new Vector();\n final long modifier = 100;\n long sdArr[][] = { { 0, 10 }, { 0, 12 }, { 0, 8 }, { -5, 20 }, { -5, 13 }, { -5, 15 }, { -5, -7 }, { 2, 10 },\n { 2, 8 }, { 2, 2 }, { 12, 14 }, { -5, 5 }, { 10, 2 } };\n long sorted[][] = { { -5, -7 }, { 10, 2 }, { 2, 2 }, { -5, 5 }, { 0, 8 }, { 2, 8 }, { 0, 10 }, { 2, 10 },\n { 0, 12 }, { -5, 13 }, { 12, 14 }, { -5, 15 }, { -5, 20 } };\n\n patchArray(sdArr, modifier);\n patchArray(sorted, modifier);\n\n for (int i = 0; i < sdArr.length; i++)\n {\n vect.addElement(new RecordingImplMock(new Date(sdArr[i][0]), sdArr[i][1]));\n }\n RecordingList recordingList = new RecordingListImpl(vect);\n Comparator comparator = new Comparator();\n\n RecordingList newList = recordingList.sortRecordingList(comparator);\n\n assertNotNull(\"recordingList returned null\", newList);\n\n // check results\n LocatorRecordingSpec lrs = null;\n RecordingRequest req = null;\n\n int i = newList.size();\n for (i = 0; i < newList.size(); i++)\n {\n req = (RecordingRequest) newList.getRecordingRequest(i);\n lrs = (LocatorRecordingSpec) req.getRecordingSpec();\n assertEquals(\"sort criteria is wrong\", sorted[i][1], lrs.getDuration());\n }\n }", "public ArrayList<ArrayList<String>> inputTestListAndSort (ArrayList<ArrayList<String>> testList){\n ArrayList<ArrayList<String>> testList1=new ArrayList<>(testList);\n Collections.sort(testList1, new SubClass_CompareItemsInTheRowsOfTheTimetable_in_TeachingOverlapAndHours());\n return testList1;\n }", "public void sort() {\n compares = 0;\n shuttlesort((int[]) indexes.clone(), indexes, 0, indexes.length);\n }", "public String doSort();", "@Override\n \tpublic void sort() {\n \t\tArrays.sort(data);\n \t}", "@Override\n\tpublic int compareTo(Object arg0)\n\t{\n\t\tif(((Shape) arg0).area() > this.area())\n\t\t\treturn -1;\n\t\tif(((Shape) arg0).area() < this.area())\n\t\t\treturn 1;\n\t\treturn 0;\n\t}", "public static void main(String[] args) {\n ArrayList<SortObjects> a = new ArrayList<SortObjects>();\n\n SortObjects o = new SortObjects(\"Latha\", 23, 26000);\n SortObjects o2= new SortObjects(\"Ramya\", 20, 11000);\n SortObjects o3= new SortObjects(\"Kalai\", 29, 30000);\n SortObjects o4= new SortObjects(\"Vidya\", 24, 25000);\n a.add(o);\n a.add(o2);\n a.add(o3);\n a.add(o4);\n SortComparator s = new SortComparator();\n a.sort(s);\n System.out.println(a);\n \n \n\n\t}", "private void sort() {\n Collections.sort(mEntries, new Comparator<BarEntry>() {\n @Override\n public int compare(BarEntry o1, BarEntry o2) {\n return o1.getX() > o2.getX() ? 1 : o1.getX() < o2.getX() ? -1 : 0;\n }\n });\n }", "@Override\n public void sort() {\n int cont = 0;\n int mov = 0;\n for (int i = 0; i < (100 - 1); i++) {\n int menor = i;\n for (int j = (i + 1); j < 100; j++){\n if (array[menor] > array[j]){\n cont= cont + 1;\n menor = j;\n mov = mov + 1;\n }\n }\n swap(menor, i);\n mov = mov + 3;\n }\n System.out.println(cont + \" comparações\");\n System.out.println(mov + \" Movimenteções\");\n }", "@Override\n public int compare(UserData o1, UserData o2) {\n if (\"Distance\".equals(sort)) {\n return calcDistanceToMatch(o1) > calcDistanceToMatch(o2) ? 1 : -1;\n\n } else {\n return calcSchedulePercentage(o1) < calcSchedulePercentage(o2) ? 1 : -1;\n }\n }", "public void sortCompetitors(){\n\t\t}", "private void sortResults(){\r\n this.sortedPlayers = new ArrayList<>();\r\n int size = players.size();\r\n while (size > 0) {\r\n Player lowestPointsPlayer = this.players.get(0);\r\n for(int i = 0; i<this.players.size(); i++){\r\n if(lowestPointsPlayer.getPoints() <= this.players.get(i).getPoints()){\r\n lowestPointsPlayer = this.players.get(i);\r\n }\r\n }\r\n this.sortedPlayers.add(lowestPointsPlayer);\r\n this.players.remove(lowestPointsPlayer);\r\n size--;\r\n }\r\n\r\n\r\n }", "public static void main(String[] args) {\n\t\tGeometricObject[] list = {new Circle(5), new Rectangle(4, 5),\n\t\t\tnew Circle(5.5), new Rectangle(2.4, 5), new Circle(0.5),\n\t\t\tnew Rectangle(4, 65), new Circle(4.5), new Rectangle(4.4, 1),\n\t\t\tnew Circle(6.5), new Rectangle(4, 5)};\n\n\t\t// Invoke selection sort using GeometricObjectComparator\n\t\tselectionSort(list, new GeometricObjectComparator());\n\t\t\n\t\t// Display the sorted elements\n\t\tSystem.out.print(\"Sorted elements: \");\n\t\tfor (GeometricObject e: list) {\n\t\t\t\tSystem.out.printf(\"%.2f \", e.getArea());\n\t\t}\n\t\tSystem.out.println();\n\t}", "public static void sortByPlaceCount(List<Apartment> apartments) {\n Collections.sort(apartments, SORT_BY_PLACE_COUNT);\n }", "@Test\n public void case3SortTwoElements(){\n //Already sorted array\n SortDemoData data2 = new SortDemoData() ;\n\n int[] testArray = {1,2};\n data2.initializeArray(\"2 1\");\n assertTrue(map.get(algoUnderTest)+\" Before Sort ...First Element\",data2.myArray[1].key == testArray[0]);\n assertTrue(map.get(algoUnderTest)+\" Before Sort ...Second Element\",data2.myArray[0].key == testArray[1]);\n\n data2.runAlgo(algoUnderTest);\n \n if(algoUnderTest != 0)\n {\n assertTrue(map.get(algoUnderTest)+\" After Sort ...First Element\",data2.myArray[0].key == testArray[0]);\n assertTrue(map.get(algoUnderTest)+\" After Sort ...Second Element\",data2.myArray[1].key == testArray[1]);\n }\n \n else {\n \t assertFalse(map.get(algoUnderTest)+\" After Sort ...First Element\",data2.myArray[0].key == testArray[0]);\n assertFalse(map.get(algoUnderTest)+\" After Sort ...Second Element\",data2.myArray[1].key == testArray[1]);\n }\n\n\n }", "public static void dimension_sort() { // sort the dimensions according to their effect to GCP\n\t\tfor (int i = 0;i < dims-1;i++) {\n\t\t\tdimension[i] = (byte) i;\n\t\t}\n\t\tboolean swapped = true;\n\t\tint i=0;\n\t\tbyte temp;\n\t\twhile (swapped) {\n\t\t\tswapped = false;\n\t\t\ti++;\n\t\t\tfor (int j = 0; j < dimension.length-i;j++) { // smaller range, put it the front\n\t\t\t\tif (cardinalities[dimension[j]] > cardinalities[dimension[j+1]]) {\n\t\t\t\t\ttemp = dimension[j];\n\t\t\t\t\tdimension[j] = dimension[j+1];\n\t\t\t\t\tdimension[j+1] = temp;\n\t\t\t\t\tswapped = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void sortCorners(ArrayList<Point> corners) {\n Collections.sort(corners, new Comparator<Point>() {\n public int compare (Point a, Point b) {\n double val = a.y - b.y;\n if (val < 0) return -1;\n else if (val > 0) return 1;\n else return 0;\n }\n }\n );\n if (corners.size() > 1) {\n if (corners.get(0).x > corners.get(1).x) {\n Point temp = corners.get(0);\n corners.set(0, corners.get(1));\n corners.set(1, temp);\n }\n }\n if (corners.size() > 3) {\n if (corners.get(2).x > corners.get(3).x) {\n Point temp = corners.get(2);\n corners.set(2, corners.get(3));\n corners.set(3, temp);\n }\n }\n }", "@Override\n public int compare(MyPoint p1, MyPoint p2) {\n int thresh = 80;\n int xComp = Double.compare(p1.x, p2.x);\n //if they are on the same column, check who is the higher one.\n if (Math.abs(p1.x - p2.x) <= thresh) {\n return -Double.compare(p1.y, p2.y);\n } else\n return xComp;\n }", "@Test\n public void testSortAlgorithm() {\n System.out.println(\"sortAlgorithm\");\n String input = \"8 0 3 1 6 5 -2 4 7\";\n CCGeneticDrift instance = new CCGeneticDrift();\n int expResult = 5;\n int result = instance.sortAlgorithm(input);\n assertEquals(result, expResult);\n }", "public void sort() {\n /*int jokers = this.getJokers();\n\t\tif (jokers > 0 && this.size() > 2) {\n\t\t\tArrayList<Tile> list = new ArrayList<>();\n for (int i=0; i<this.size(); i++) {\n\t\t\t\tif (this.get(i).getColour() == 'J') {\n\t\t\t\t\tTile joker = this.remove(this.get(i));\n\t\t\t\t\tlist.add(joker);\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (Tile j : list) {\n\t\t\t\tthis.addInSort(j);\n\t\t\t}\n }*/\n \n\n //may need something in here to accomodate a joker changing its form\n\n if (tiles.size() > 1) { //will only sort a meld with any tiles in it\n //Override default comparator to compare by tile value (ints)\n Collections.sort(tiles, new Comparator<Tile>() {\n @Override \n public int compare(Tile t1, Tile t2) { \n if (t1.getColour() > t2.getColour()) {\n return 1;\n } else if (t1.getColour() < t2.getColour()) {\n return -1;\n }\n if (t1.getValue() > t2.getValue()) {\n return 1;\n } else if (t1.getValue() < t2.getValue()) {\n return -1;\n } else {\n return 0;\n }\n }\n });\n }\n\n }", "@Test\r\n public void testGetShapesSortedByTimestamp() {\r\n List<Shape> expectedOutput = new ArrayList<Shape>();\r\n expectedOutput.add(circle);\r\n expectedOutput.add(square);\r\n expectedOutput.add(rectangle);\r\n expectedOutput.add(triangle);\r\n expectedOutput.add(regularPolygon);\r\n List<Shape> actualOutput = screen.sortShape(SortType.TIMESTAMP);\r\n assertEquals(expectedOutput, actualOutput);\r\n }", "public static void main(String[] args) {\n\t\tList<StatetostateDetail> list = new ArrayList<StatetostateDetail>();\n\t\tfor(int i = 1; i < 16; i++){\n\t\t\tStatetostateDetail s = new StatetostateDetail();\n\t\t\ts.setId(i);\n\t\t\ts.setStatue(0);\n\t\t\ts.setTime(System.currentTimeMillis() + (i + i * 100));\n\t\t\tlist.add(s);\n\t\t}\n\t\tlist.get(3).setStatue(1);\n\t\tlist.get(5).setStatue(1);\n\t\tlist.get(10).setStatue(1);\n\t\tlist.get(14).setStatue(1);\n\t\tlist.get(7).setStatue(2);\n\t\tlist.get(9).setStatue(2);\n\t\tSystem.out.println(\"list:\" + list);\n\t\n\t\t\n\t\tCollections.sort(list, new Comparator<StatetostateDetail>(){\n public int compare(StatetostateDetail s1, StatetostateDetail s2) {\n \tLong t1 = null;\n \tLong t2 = null;\n \ttry{\n \t\tt1 = s1.getTime();\n\t \tt2 = s2.getTime();\n \t}catch(Exception e){\n \t\te.printStackTrace();\n \t}\n \n return t2.compareTo(t1);\n }\n });\n\t\tCollections.sort(list, new Comparator<StatetostateDetail>(){\n public int compare(StatetostateDetail s1, StatetostateDetail s2) {\n \treturn s1.getStatue()>s2.getStatue()?1:(s1.getStatue()==s2.getStatue()?0:(s2.getTime()>s1.getTime()?-1:0));\n }\n });\n\t\t\n\t\tSystem.out.println(\"list:\" + list);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n Circle[] circles = new Circle[3];\n circles[0] = new Circle(3.6);\n circles[1] = new Circle();\n circles[2] = new Circle(3.5, \"indigo\", false);\n System.out.println(\"Pre-sorted: \");\n for (Circle circle:circles){\n System.out.println(circle);\n }\n\n Comparator circleComparator = new CircleComparator();\n Arrays.sort(circles,circleComparator);\n\n System.out.println(\"After-sorted: \");\n for (Circle circle:circles){\n System.out.println(circle);\n }\n /*ComparableCircle[] circles= new ComparableCircle[3];\n circles[0]= new ComparableCircle(3.6);\n circles[1]=new ComparableCircle();\n circles[2]=new ComparableCircle(\"blue\",true,3.4);\n System.out.println(\"Pre-sorted:\");\n for(ComparableCircle circle:circles) {\n System.out.println(circle);\n }\n System.out.println(circles[0].compareTo(circles[1]));\n System.out.println(circles[1].compareTo(circles[2]));\n System.out.println(circles[0].compareTo(circles[2]));\n\n Arrays.sort(circles);\n\n System.out.println(\"After-sorted: \");\n for(ComparableCircle circle:circles){\n System.out.println(circle);\n }*/\n }", "public void sortPassing(){\n\t\tpassing.sort(PlayingCard.PlayingCardComparator_ACEHIGH);\n\t}", "@Override\n public void onSortByRating() {\n mSorter.sortLocationsByRating(mListLocations);\n mAdapter.notifyDataSetChanged();\n }", "public static void main(String[] args) {\n String [] folge = {\"ab\",\"cd\", \"aa\"};\n new SortierenBeiEinfugen().sortiereAbsteigend(folge);\n System.out.println(Arrays.toString(folge));\n new SortierenBeiEinfugen().sortiereAufsteigend(folge);\n System.out.println(Arrays.toString(folge));\n\n\n\n\n\n\n int[] feld = {2,8,5,6,3,1,4,7};\n\n int countVergleich=0;\n int countTausch = 0;\n for (int i = 0; i < feld.length; i++) {\n for (int j = i; j > 0 ; j--) {\n countVergleich++;\n if (feld[j - 1]>(feld[j]) ) {\n int temp = feld[j];\n feld[j] = feld[j - 1];\n feld[j - 1] = temp;\n countTausch++;\n } else {\n System.out.println(countVergleich);\n System.out.println(countTausch);\n break;\n }\n }\n }\n }", "public void sort()\n\t{\n\t\tfor(int i=0;i<bowlers.size()-1;i++)\n\t\t{\n\t\t\tfor(int j=i+1;j<bowlers.size();j++)\n\t\t\t{\n\t\t\t\tif(bowlers.get(i).getBall()<bowlers.get(j).getBall())\n\t\t\t\t{\n\t\t\t\t\tBowler bowler=bowlers.get(i);\n\t\t\t\t\tbowlers.set(i,bowlers.get(j));\n\t\t\t\t\tbowlers.set(j,bowler);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<bowlers.size();i++)\n\t\t{\n\t\tSystem.out.println(bowlers.get(i).getBall());\n\t\t}\n\t}", "@Test\n public void testShipment_Sorted_By_Color() {\n List<Widget> widgets = shipment.getWidgetsSortedByColor();\n assertNotNull(widgets);\n assertTrue(widgets.size() == 10);\n Widget widget1 = (Widget) widgets.get(0);\n Widget widget2 = (Widget) widgets.get(1);\n assertTrue(widget1.getColor().compareTo(widget2.getColor()) <= 0);\n }", "@Override\r\n\tpublic void sort(int[] demo) {\n\t\tint temp;\r\n\t\tfor(int gap = 5;gap > 0;gap /= 2){\r\n\t\t\tfor(int i = gap;i < demo.length;i++){\r\n\t\t\t\tfor(int j = i - gap;j >= 0;j -= gap){\r\n\t\t\t\t\tif (demo[j] > demo[j + gap]) {\r\n\t\t\t\t\t\ttemp =demo[j];\r\n\t\t\t\t\t\tdemo[j] =demo[j + gap];\r\n\t\t\t\t\t\tdemo[j + gap] = temp;\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\tSystem.out.println(Arrays.toString(demo));\r\n\t}", "public void sortAllRows(){\n\t\t/* code goes here */ \n\t\t\n\t\t\n\t\t//WHY SHOULD THEY BE SORTED LIKE THE EXAMPLE SAYS???????\n\t\t\n\t}", "@Test\n public void testSort_intArr_IntComparator_Asc_Middle() {\n IntComparator comparator = IntComparatorAsc.getInstance();\n int[] expResult = ASC_CHECK_MIDDLE_SORT_ARRAY;\n sorter.sort(data, 4, 10, comparator);\n// System.out.println(\"Expected: \" + Arrays.toString(expResult));\n// System.out.println(\"Result: \" + Arrays.toString(data));\n assertArrayEquals(\"Error testing class: \" + className, expResult, data);\n }", "private boolean sortieNonAtteint(){\n\t\t\t//return this.terrainDeLaPartie.getTerrain()[this.terrainDeLaPartie.getAbSortie()][this.terrainDeLaPartie.getOrdSortie()]!='R' ;\t\t\t\n\t\t\tif(this.terrainDeLaPartie.getTerrain()[terrainDeLaPartie.getAbSortie()][terrainDeLaPartie.getOrdSortie()]=='R'){\n\t\t\t\tSystem.out.println(\"###################################### SORTIE #################################\");\n\t\t\t}\n\t\t\treturn this.terrainDeLaPartie.getTerrain()[terrainDeLaPartie.getAbSortie()][terrainDeLaPartie.getOrdSortie()]!='R';\n\t\t}", "public void testAreaInfo()\n\t{\n\t\tGameArea ga = new GameArea();\n\t\tga.areaInfo();\n\t\tga.setConditionsMet(true);\n\t\tga.setAreaProgress(1);\n\t\tga.areaInfo();\n\t\tga.areaInfo();\n\t\tga.setLoot(null);\n\t\tga.areaInfo();\n\t}", "@Test\n public void testSort_intArr_IntComparator_half() {\n IntComparator comparator = IntComparatorAsc.getInstance();\n int[] expResult = ASC_CHECK_HALF_SORT_ARRAY;\n sorter.sort(data, 0, 8, comparator);\n assertArrayEquals(\"Error testing class: \" + className, expResult, data);\n }", "@Test\n\tpublic void testSortTwoElements() {\n\t\tint[] arrayBeforeSort = { 565, 45 };\n\t\tint[] arrayAfterSort = { 565, 45 };\n\t\tArrayQuickSort.sort(arrayAfterSort);\n\t\tif (!isSorted(arrayBeforeSort, arrayAfterSort)) {\n\t\t\tAssert.fail(\"The array is not sorted!\");\n\t\t}\n\t}", "void sortV();", "private void sortByX() {\n\t\tCollections.sort(pointList, getXComparator());\n\t}", "@Test\n public void testSort_intArr_IntComparator_Desc_half() {\n IntComparator comparator = IntComparatorDesc.getInstance();\n int[] expResult = DESC_CHECK_HALF_CHECK_ARRAY;\n sorter.sort(data, 0, 8, comparator);\n assertArrayEquals(\"Error testing class: \" + className, expResult, data);\n }", "public void sortChart() {\n\t\tPassengerTrain temp;\n\t\tGoodsTrain temp1;\n\n\t\tfor (int index = 0; index < TrainDetails.passengerList.size(); index++) {\n\t\t\tfor (int i = 0; i < TrainDetails.passengerList.size(); i++) {\n\t\t\t\tdouble totalTime1 = ((TrainDetails.passengerList).get(index).duration);\n\t\t\t\tdouble totalTime2 = (TrainDetails.passengerList.get(i).duration);\n\t\t\t\tif (totalTime1 < totalTime2) {\n\t\t\t\t\ttemp = TrainDetails.passengerList.get(index);\n\t\t\t\t\tTrainDetails.passengerList.set(index,\n\t\t\t\t\t\t\tTrainDetails.passengerList.get(i));\n\t\t\t\t\tTrainDetails.passengerList.set(i, temp);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int index = 0; index < TrainDetails.goodsList.size(); index++) {\n\t\t\tfor (int i = 0; i < TrainDetails.goodsList.size(); i++) {\n\t\t\t\tdouble totalTime1 = ((TrainDetails.goodsList).get(index).duration);\n\t\t\t\tdouble totalTime2 = (TrainDetails.goodsList.get(i).duration);\n\t\t\t\tif (totalTime1 < totalTime2) {\n\t\t\t\t\ttemp1 = TrainDetails.goodsList.get(index);\n\t\t\t\t\tTrainDetails.goodsList.set(index,\n\t\t\t\t\t\t\tTrainDetails.goodsList.get(i));\n\t\t\t\t\tTrainDetails.goodsList.set(i, temp1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "public void sort(Contestant[] arr){\n\t\t/* code goes here */\n\t\t\n\t\t//WHAT IS DIFFERENCE BETWEEN THIS AND sortAllRows???\n\t\t\n\t}", "public void sortArray(){\n\t\tfor (int i=0; i<population.length;i++){\n\n\t\t\tfor (int j=0; j<population.length-i-1;j++){\n\n\t\t\t\tif(population[j].computeFitness()>population[j+1].computeFitness()) {\n\t\t\t\t\t//swap their positions in the array\n\t\t\t\t\tChromosome temp1 = population[j];\n\t\t\t\t\tpopulation[j] = population[j+1];\n\t\t\t\t\tpopulation[j+1] = temp1;\n\t\t\t\t}//end if\n\n\t\t\t}//end j for\n\n\t\t}//end i for\n\t}", "public void sort(){\n listOperation.sort(Comparator.comparingInt(Operation::getiStartTime));\n }", "private Sort() { }", "@Override\n\t\t public int compare(Map<String, Object> o1,Map<String, Object> o2) {\n\t\t\t int countO1 = Integer.valueOf(o1.get(\"count\").toString());\n\t\t\t int countO2 = Integer.valueOf(o2.get(\"count\").toString());\n\t\t\t double distanceO1 = Double.valueOf(o1.get(\"distance\").toString());\n\t\t\t double distanceO2 = Double.valueOf(o2.get(\"distance\").toString());\n\t\t\t\t\t\n\t\t\t //先排距离,再排接单数\n\t\t\t if(distanceO1 < distanceO2){\n\t\t\t\t return -1;\n\t\t\t }else if(countO1 < countO2){\n\t\t\t\t return -1;\n\t\t\t }else return 0;\n\t\t }", "@Override\n\tvoid sort(int[] array, SortingVisualizer display) {\n\t\tSystem.out.println(\"a\");\n\t\tboolean sorted = false;\n\t\tboolean h = true;\n\t\twhile (sorted == false) {\nh=true;\n\t\t\t// System.out.println(\"1\");\n\t\t\tRandom x = new Random();\n\t\t\tint y = x.nextInt(array.length);\n\n\t\t\tint el1 = array[y];\n\t\t\tint z = x.nextInt(array.length);\n\t\t\tint el2 = array[z];\n\n\t\t\tarray[y] = el2;\n\t\t\tarray[z] = el1;\n\t\t\tfor (int i = 0; i < array.length - 1; i++) {\n/*\n\t\t\t\tif (array[i] < array[i + 1]) {\n\n\t\t\t\t\th = true;\n\n\t\t\t\t}*/\n\n\t\t\t\tif (array[i] > array[i + 1]) {\n\t\t\t\t\th = false;\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif (h == true) {\n\n\t\t\t\tsorted = true;\n\t\t\t}\n\n\t\t\tdisplay.updateDisplay();\n\t\t\t\n\t\t}\n\t}", "private ArrayList<Object> getOrderedTestCollection() {\n\n if (cachedLabTest != null) {\n return cachedLabTest;\n }\n //loads cachedLabTest\n loadCachedLabTestCollection();\n\n String mapFlag = propertyUtil.getSRTFilterProperty(NEDSSConstants.LABTEST_PROGAREA_MAPPING);\n if(mapFlag != null && mapFlag.equalsIgnoreCase(NEDSSConstants.YES))\n {\n\n cachedProgAreaFacilityList = new HashMap<Object,Object>();\n cachedConditionCdFacilityList = new HashMap<Object,Object>();\n\n SRTOrderedTestDAOImpl dao = new SRTOrderedTestDAOImpl();\n\n String labId = null;\n String programArea = null;\n String conditionCd = null;\n Collection<Object> ltMap = (ArrayList<Object> ) dao.getLabTestProgAreaMapping();\n\n if (ltMap != null) {\n Iterator<Object> it = ltMap.iterator();\n int size = ltMap.size();\n SRTLabTestDT labDt = null;\n while (it.hasNext()) {\n\n TestResultTestFilterDT testResults = (TestResultTestFilterDT) it.next();\n labDt = convertToSRTLabTestDT(testResults);\n labId = testResults.getLaboratoryId();\n programArea = testResults.getProgAreaCd();\n conditionCd = testResults.getConditionCd();\n\n if (programArea != null && labId != null) {\n addToCachedProgAreaList(programArea, labId, labDt);\n }\n if (conditionCd != null && labId != null) {\n addToCachedConditionCdList(conditionCd, labId, labDt);\n }\n }\n }\n }\n\n return cachedLabTest;\n }", "public ArrayList<paintIntegers[]> sort(String algo){\n start = System.nanoTime(); // starts the timer for the time elapsed\n if(algo.equals(\"Insertion\")){\n insertionSort();\n }else if(algo.equals(\"Merge\")){\n mergeSort();\n }else if(algo.equals(\"Heap\")){\n heapSort();\n }else if(algo.equals(\"Quick\")){\n quickSort();\n }else if(algo.equals(\"Radix\")){\n radixSort();\n }else if(algo.equals(\"Counting\")){\n countingSort();\n }else if(algo.equals(\"Selection\")){\n selectionSort();\n }else if(algo.equals(\"Bubble\")){\n bubbleSort();\n }else if(algo.equals(\"Shell\")){\n shellSort();\n }else if(algo.equals(\"Pigeonhole\")){\n pigeonHoleSort();\n }else if(algo.equals(\"Cycle\")){\n cycleSort();\n }else if(algo.equals(\"Cocktail\")){\n cocktailSort();\n }else if(algo.equals(\"Comb\")){\n combSort();\n }else if(algo.equals(\"Bogo\")){\n bogoSort();\n }else if(algo.equals(\"Gnome\")){\n gnomeSort();\n }else if(algo.equals(\"Stooge\")){\n stoogeSort();\n }else if(algo.equals(\"Brick\")){\n brickSort();\n }else if(algo.equals(\"Pancake\")){\n pancakeSort();\n }else{\n System.out.println(\"Tf u doing\");\n }\n end = System.nanoTime();\n timeElapsed = end - start; // gets how long the algorithm took to sort\n //returns the arraylist of the animation\n return sorting;\n }", "public void sort(){\n\t\tCollections.sort(_ligacoes, (new Comparator<Ligacao>() {\n\t\t\t@Override\n\t\t\tpublic int compare(Ligacao l1, Ligacao l2){\n\t\t\t\tint resultado = Integer.compare(l1.getCusto(), l2.getCusto());\n\t\t\t\tif (resultado == 0)\n\t\t\t\t\tresultado = Boolean.compare(l1.isAerea(), l2.isAerea());\n\t\t\t\treturn resultado;\n\t\t\t}\n\t\t}));\n\t}", "public static void userSort(ArrayList<FileData> fromFile, int primary_sort, int secondary_sort, int primary_order, int secondary_order)\n {\n \n // user wants to sort by primary = state code and secondary = county code\n if(primary_sort == 1 && secondary_sort == 2) \n {\n if(primary_order == 1 && secondary_order == 1){// user wants both primary and secondary in ascending order\n Collections.sort(fromFile, new Sort_State_Code());\n Collections.sort(fromFile,new Sort_County_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); // print the sorted information by state and county code\n }\n }\n else if(primary_order == 2 && secondary_order == 2){ // user wants both primary and secondary in decending order\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){// primary is ascending\n Collections.sort(fromFile, new Sort_State_Code());\n Collections.sort(fromFile,new Sort_County_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){//primary is descending\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n Collections.sort(fromFile,new Sort_County_Code()); \n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n // user wants to sort by primary = county code and secondary = state code\n if(primary_sort == 2 && secondary_sort == 1){\n if(primary_order == 1 && secondary_order == 1){\n //primary and seconary is ascending\n Collections.sort(fromFile, new Sort_State_Code());\n Collections.sort(fromFile,new Sort_County_Code());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order == 2 && secondary_order == 2){\n //both descending\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n Collections.sort(fromFile,new Sort_County_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){//primary is ascending\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n Collections.sort(fromFile,new Sort_County_Code()); // primary sort\n \n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){//primary is descending\n Collections.sort(fromFile, new Sort_State_Code());\n Collections.sort(fromFile,new Sort_County_Code().reversed()); // primary sort\n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==1&&secondary_sort==3){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile,new Sort_State_Name());\n Collections.sort(fromFile, new Sort_State_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n Collections.sort(fromFile, new Sort_State_Code()); \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); // print the sorted information by state and county code\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Name());\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); // print the sorted information by state and county code\n } \n } \n }\n \n if(primary_sort==3&&secondary_sort==1){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_State_Code());\n Collections.sort(fromFile,new Sort_State_Name());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile,new Sort_State_Code().reversed());\n Collections.sort(fromFile, new Sort_State_Name()); \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); // print the sorted information by state and county code\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new Sort_State_Name().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==1&&secondary_sort==4){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile, new Sort_County_Name());\n Collections.sort(fromFile,new Sort_State_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n Collections.sort(fromFile,new Sort_State_Code().reversed());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile,new Sort_County_Name().reversed());\n Collections.sort(fromFile, new Sort_State_Code()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Name());\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==4&&secondary_sort==1){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile, new Sort_State_Code());\n Collections.sort(fromFile,new Sort_County_Name());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new Sort_State_Code().reversed());\n Collections.sort(fromFile,new Sort_County_Name().reversed());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile,new Sort_State_Code().reversed());\n Collections.sort(fromFile, new Sort_County_Name()); \n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new Sort_County_Name().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n } \n } \n } \n if(primary_sort==1&&secondary_sort==5){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile, new SortFirstConfirmCount());\n Collections.sort(fromFile,new Sort_State_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_State_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFirstConfirmCount());\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==5&&secondary_sort==1){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new SortFirstConfirmCount());\n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n } \n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n Collections.sort(fromFile,new SortFirstConfirmCount().reversed());\n for(int i=0; i<fromFile.size(); i++){\n System.out.println(fromFile.get(i).printInfo());\n } \n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile,new Sort_State_Code().reversed());\n Collections.sort(fromFile, new SortFirstConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); // print the sorted information \n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed()); \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); // print the sorted information \n } \n } \n }\n \n \n if(primary_sort==1&&secondary_sort==6){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortSecondConfirmCount());\n Collections.sort(fromFile,new Sort_State_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); \n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); \n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_State_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); // print the sorted information by state and county code\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortSecondConfirmCount());\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo()); // print the sorted information by state and county code\n } \n } \n }\n \n if(primary_sort==6&&secondary_sort==1){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new SortSecondConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n Collections.sort(fromFile,new SortSecondConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile,new Sort_State_Code().reversed());\n Collections.sort(fromFile, new SortSecondConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==1&&secondary_sort==7){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortThirdConfirmCount());\n Collections.sort(fromFile,new Sort_State_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_State_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortThirdConfirmCount());\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==7&&secondary_sort==1){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new SortThirdConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n Collections.sort(fromFile,new SortThirdConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile,new Sort_State_Code().reversed());\n Collections.sort(fromFile, new SortThirdConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==1&&secondary_sort==8){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFourthConfirmCount());\n Collections.sort(fromFile,new Sort_State_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_State_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFourthConfirmCount());\n Collections.sort(fromFile, new Sort_State_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n \n if(primary_sort==8&&secondary_sort==1){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new SortFourthConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile, new Sort_State_Code().reversed());\n Collections.sort(fromFile,new SortFourthConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile,new Sort_State_Code().reversed());\n Collections.sort(fromFile, new SortFourthConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Code());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==2&&secondary_sort==3){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_State_Name());\n Collections.sort(fromFile,new Sort_County_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n Collections.sort(fromFile, new Sort_County_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_State_Name().reversed());\n Collections.sort(fromFile,new Sort_County_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Name());\n Collections.sort(fromFile, new Sort_County_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==3&&secondary_sort==2){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Code());\n Collections.sort(fromFile,new Sort_State_Name());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n Collections.sort(fromFile, new Sort_State_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Code().reversed());\n Collections.sort(fromFile,new Sort_State_Name());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Code());\n Collections.sort(fromFile, new Sort_State_Name().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==2&&secondary_sort==4){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Name());\n Collections.sort(fromFile,new Sort_County_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Name().reversed());\n Collections.sort(fromFile, new Sort_County_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n Collections.sort(fromFile,new Sort_County_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Name());\n Collections.sort(fromFile, new Sort_County_Code().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==4&&secondary_sort==2){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Code());\n Collections.sort(fromFile,new Sort_County_Name());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Code().reversed());\n Collections.sort(fromFile,new Sort_County_Name());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Code());\n Collections.sort(fromFile, new Sort_County_Name().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==2&&secondary_sort==5){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n \n Collections.sort(fromFile,new SortFirstConfirmCount());\n Collections.sort(fromFile, new Sort_County_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_County_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n \n Collections.sort(fromFile, new SortFirstConfirmCount());\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==5&&secondary_sort==2){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Code());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Code().reversed());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Code());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n } \n \n if(primary_sort==2&&secondary_sort==6){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n \n Collections.sort(fromFile,new SortSecondConfirmCount());\n Collections.sort(fromFile, new Sort_County_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_County_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n \n Collections.sort(fromFile, new SortSecondConfirmCount());\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n } \n if(primary_sort==6&&secondary_sort==2){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Code());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Code().reversed());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Code());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n } \n \n if(primary_sort==2&&secondary_sort==7){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n \n Collections.sort(fromFile,new SortThirdConfirmCount());\n Collections.sort(fromFile, new Sort_County_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_County_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n \n Collections.sort(fromFile, new SortThirdConfirmCount());\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n } \n if(primary_sort==7&&secondary_sort==2){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Code());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Code().reversed());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Code());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==2&&secondary_sort==8){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n \n Collections.sort(fromFile,new SortFourthConfirmCount());\n Collections.sort(fromFile, new Sort_County_Code());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_County_Code());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n \n Collections.sort(fromFile, new SortFourthConfirmCount());\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n } \n if(primary_sort==8&&secondary_sort==2){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Code());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Code().reversed());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Code().reversed());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Code());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed()); \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n } \n \n if(primary_sort==3&&secondary_sort==4){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n \n Collections.sort(fromFile,new Sort_County_Name());\n Collections.sort(fromFile, new Sort_State_Name());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new Sort_County_Name().reversed());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new Sort_County_Name().reversed());\n Collections.sort(fromFile, new Sort_State_Name());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n \n Collections.sort(fromFile, new Sort_County_Name());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==4&&secondary_sort==3){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_State_Name());\n Collections.sort(fromFile,new Sort_County_Name());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_State_Name().reversed());\n Collections.sort(fromFile,new Sort_County_Name());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Name());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==3&&secondary_sort==5){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n \n Collections.sort(fromFile,new SortFirstConfirmCount());\n Collections.sort(fromFile, new Sort_State_Name());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_State_Name());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n \n Collections.sort(fromFile, new SortFirstConfirmCount());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==5&&secondary_sort==3){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_State_Name());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_State_Name().reversed());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Name());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==3&&secondary_sort==6){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n Collections.sort(fromFile, new Sort_State_Name());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_State_Name());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile, new SortSecondConfirmCount());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==6&&secondary_sort==3){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_State_Name());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_State_Name().reversed());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Name());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==3&&secondary_sort==7){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n \n Collections.sort(fromFile,new SortThirdConfirmCount());\n Collections.sort(fromFile, new Sort_State_Name());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_State_Name());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n \n Collections.sort(fromFile, new SortThirdConfirmCount());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==7&&secondary_sort==3){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_State_Name());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_State_Name().reversed());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Name());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==3&&secondary_sort==8){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n \n Collections.sort(fromFile,new SortFourthConfirmCount());\n Collections.sort(fromFile, new Sort_State_Name());\n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n \n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n \n Collections.sort(fromFile,new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_State_Name());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n \n Collections.sort(fromFile, new SortFourthConfirmCount());\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==8&&secondary_sort==3){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_State_Name());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_State_Name().reversed());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_State_Name().reversed());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_State_Name());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==4&&secondary_sort==5){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFirstConfirmCount());\n Collections.sort(fromFile,new Sort_County_Name());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_County_Name());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFirstConfirmCount());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==5&&secondary_sort==4){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Name());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Name().reversed());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Name());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==4&&secondary_sort==6){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortSecondConfirmCount());\n Collections.sort(fromFile,new Sort_County_Name());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_County_Name());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortSecondConfirmCount());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==6&&secondary_sort==4){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Name());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Name().reversed());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Name());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==4&&secondary_sort==7){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortThirdConfirmCount());\n Collections.sort(fromFile,new Sort_County_Name());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_County_Name());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortThirdConfirmCount());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==7&&secondary_sort==4){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Name());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Name().reversed());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Name());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==4&&secondary_sort==8){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFourthConfirmCount());\n Collections.sort(fromFile,new Sort_County_Name());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile,new Sort_County_Name());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFourthConfirmCount());\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==8&&secondary_sort==4){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new Sort_County_Name());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new Sort_County_Name().reversed());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new Sort_County_Name().reversed());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new Sort_County_Name());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==5&&secondary_sort==6){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortSecondConfirmCount());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortSecondConfirmCount());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==6&&secondary_sort==5){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFirstConfirmCount());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFirstConfirmCount());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==5&&secondary_sort==7){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortThirdConfirmCount());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortThirdConfirmCount());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==7&&secondary_sort==5){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFirstConfirmCount());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFirstConfirmCount());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==5&&secondary_sort==8){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFourthConfirmCount());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile,new SortFirstConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFourthConfirmCount());\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n \n if(primary_sort==8&&secondary_sort==5){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFirstConfirmCount());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFirstConfirmCount().reversed());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFirstConfirmCount());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==6&&secondary_sort==7){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortThirdConfirmCount());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortThirdConfirmCount());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==7&&secondary_sort==6){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortSecondConfirmCount());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortSecondConfirmCount());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==6&&secondary_sort==8){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFourthConfirmCount());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile,new SortSecondConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFourthConfirmCount());\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==8&&secondary_sort==6){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortSecondConfirmCount());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortSecondConfirmCount().reversed());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortSecondConfirmCount());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==7&&secondary_sort==8){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortFourthConfirmCount());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n Collections.sort(fromFile,new SortThirdConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order==2){\n //primary is descending\n Collections.sort(fromFile,new SortFourthConfirmCount());\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n if(primary_sort==8&&secondary_sort==7){\n if(primary_order==1&&secondary_order==1){\n //primary and second is ascending\n \n Collections.sort(fromFile, new SortThirdConfirmCount());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==2&&secondary_order==2){\n //both descending\n Collections.sort(fromFile,new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n \n for(int i=0; i<fromFile.size(); i++){ \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n \n else if(primary_order==1){\n //secondary is descending\n Collections.sort(fromFile, new SortThirdConfirmCount().reversed());\n Collections.sort(fromFile,new SortFourthConfirmCount());\n \n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n }\n }\n else if(primary_order == 2){\n //primary is descending\n Collections.sort(fromFile,new SortThirdConfirmCount());\n Collections.sort(fromFile, new SortFourthConfirmCount().reversed());\n \n for(int i=0; i<fromFile.size(); i++){\n \n System.out.println(fromFile.get(i).printInfo());\n } \n } \n }\n }", "@Override\n\tvoid sort(int[] arr, SortingVisualizer display) {\n\t\tint current = 0;\n\t\tint x;\n\t\tint y;\n\t\tboolean complete = false;\n\t\twhile(complete == false) {\n\t\t\tcurrent = 0;\n\t\t\tcomplete = true;\n\t\t\tfor(int i = 0 ; i < arr.length; i ++) {\n\t\t\t\tdisplay.updateDisplay();\n\t\t\t\tif(arr[current] > arr[i]) {\n\t\t\t\t\tx = arr[i];\n\t\t\t\t\ty = arr[current];\n\t\t\t\t\tarr[i] = y;\n\t\t\t\t\tarr[current] = x;\n\t\t\t\t\tcomplete = false;\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\tcurrent = i;\n\t\t\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "@Test\n\tpublic void testSortNormalElements() {\n\t\tint[] arrayBeforeSort = { 565, 78, 34, 2, 23, 2222, 34 };\n\t\tint[] arrayAfterSort = { 565, 78, 34, 2, 23, 2222, 34 };\n\t\tArrayQuickSort.sort(arrayAfterSort);\n\t\tif (!isSorted(arrayBeforeSort, arrayAfterSort)) {\n\t\t\tAssert.fail(\"The array is not sorted!\");\n\t\t}\n\t}", "@Test\r\n public void SortTest() {\r\n System.out.println(\"sort\");\r\n List<String> array = Arrays.asList(\"3\", \"2\", \"1\");\r\n List<String> expResult = Arrays.asList(\"1\",\"2\",\"3\");\r\n instance.sort(array);\r\n assertEquals(expResult,array);\r\n }", "public void sort() {\n\t\t\tfor (int j = nowLength - 1; j > 1; j--) {\n\t\t\t\tfor (int i = 0; i < j; i++) {\n\t\t\t\t\tif (ray[i] > ray[i+1]) {\n\t\t\t\t\t\tint tmp = ray [i];\n\t\t\t\t\t\tray[i] = ray[i+1];\n\t\t\t\t\t\tray[i+1] = tmp;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tprint();\n\t\t\t}\n\t}", "private void sort(int[] array, int start, int end){\n //base condition\n if(start >= end)\n return;\n int boundary = partition(array, start, end);\n sort(array, start, boundary - 1);\n sort(array, boundary + 1, end);\n }", "private void sortScoreboard() {\n score.setSortType(TableColumn.SortType.DESCENDING);\n this.scoreboard.getSortOrder().add(score);\n score.setSortable(true);\n scoreboard.sort();\n }", "public static void sort(Vector features, int sortStrand, boolean byLow) {\n int setSize = features.size();\n\n if (setSize == 0) {\n return;\n }\n\n int[] coord = new int[setSize];\n RangeI[] obj = new RangeI[setSize];\n\n for (int i=0; i < setSize; i++) {\n RangeI sf = (RangeI) features.elementAt(i);\n if (byLow) {\n coord[i] = sf.getLow();\n } else {\n coord[i] = sf.getStart();\n }\n obj [i] = sf;\n }\n\n QuickSort.sort(coord,obj);\n\n // Used to be sortStrand == 1 but it seemed wrong to sort 0 stranded features backwards\n if (sortStrand != -1) {\n for (int i=0; i < setSize;i++) {\n features.setElementAt(obj[i], i);\n }\n }\n else {\n for (int i=0; i < setSize;i++) {\n features.setElementAt(obj[i], (setSize - i - 1));\n }\n }\n }", "public void sortByAndser() {\r\n\t\tQuestion[][] question2DArray = new Question[displayingList.size()][];\r\n\t\tfor (int i = 0; i < displayingList.size(); i++) {\r\n\t\t\tquestion2DArray[i] = new Question[1];\r\n\t\t\tquestion2DArray[i][0] = displayingList.get(i);\r\n\t\t}\r\n\r\n\t\twhile (question2DArray.length != 1) {\r\n\t\t\tquestion2DArray = (Question[][]) merge2DArray(question2DArray);\r\n\t\t}\r\n\t\tdisplayingList.removeAll(displayingList);\r\n\t\tfor (int i = 0; i < question2DArray[0].length; i++) {\r\n\t\t\tdisplayingList.add(question2DArray[0][i]);\r\n\t\t}\r\n\t}", "private void sorterOppgaver(String type)\r\n\t{\r\n\t\t int k;\r\n\t\t int j;\r\n\t\t//switch(type){\r\n\t\t\t//case\t\"random\":\r\n\r\n\t\t\t\tfor(int i=1;i>this.oppgaver.length;i++)\r\n\t\t\t\t{\r\n\t\t\t\t\t// Loop og lag ei tilfeldig liste\r\n\t\t\t\t\tk = (int) Math.random()*this.oppgaver.length;\r\n\t\t\t\t\toppgaver[this.oppgaver.length]=this.oppgaver[i];\r\n\t\t\t\t\toppgaver[i]=oppgaver[k];\r\n\t\t\t\t\toppgaver[k]=oppgaver[this.oppgaver.length];\r\n\t\t\t\t}\r\n\t\t\t\t//break;\r\n\t\t\t//case \t\"alfabetisk\":\r\n\t\t\t\t// Sorter elementa i array alfabetisk.\r\n\t\t\t\t//break;\r\n\t\t\t//default:\r\n\t\t\t\t// Sorter elementa slik dei vart skrive inn av læraren, altså etter key i oppgave-arrayen.\r\n\t\t}", "@Test(priority = 6)\n\tpublic void validateSortingFunctionality() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"Validating the Sorting functionality\");\n\t\tHeroImageProductPageFlow.clickCustomerReviews(locator);\n\t\tlog.info(\"Content is present\");\n\t\tlog.info(\"Starting Sorting functionality testing\");\n\t}", "public static void main(String[] args) {\n\t\tShirt r = new Shirt(\"Red\", 10);\r\n\t\tShirt b = new Shirt(\"Blue\", 465);\r\n\t\tShirt g = new Shirt(\"Green\", 3213456);\r\n\t\t// Creates some custom comparator object.\r\n\t\tSizeComp s = new SizeComp();\r\n\t\tColorComp c = new ColorComp();\r\n\t\t// Creates some tree sets using custom comparator. \r\n\t\tTreeSet<Shirt> mySizeSet = new TreeSet<>(s);\r\n\t\tmySizeSet.add(r);\r\n\t\tmySizeSet.add(g);\r\n\t\tmySizeSet.add(b);\r\n\t\tout.println(\"Sort by Size\");\r\n\t\tout.println(mySizeSet);\r\n\t\t\r\n\t\tTreeSet<Shirt> myCompSet = new TreeSet<>(c);\r\n\t\tmyCompSet.add(r);\r\n\t\tmyCompSet.add(g);\r\n\t\tmyCompSet.add(b);\r\n\t\tout.println(\"Sort by Color\");\r\n\t\tout.println(myCompSet);\r\n\t}", "@Test\n public void testFail(){\n List<StoryPart> storyParts = new ArrayList<>();\n StoryPart a = new StoryPart(LocalTime.of(0, 2), null, null, StoryEvent.HALF_TIME_A_END, StoryTitle.create(\"halftime 1 end\"),\n StoryDescription.create(\"halftime 2 end\"));\n StoryPart b = new StoryPart(LocalTime.of(0, 3), null, GameMinute.create(\"2.\"), StoryEvent.GOAL, StoryTitle.create(\"Goal 2\"),\n StoryDescription.create(\"goal 2\"));\n StoryPart c = new StoryPart(LocalTime.of(0, 1), null, GameMinute.create(\"1.\"), StoryEvent.YELLOW_CARD,\n StoryTitle.create(\"yellow card 1\"), StoryDescription.create(\"yellow card 1\"));\n storyParts.add(a);\n storyParts.add(b);\n storyParts.add(c);\n\n Collections.shuffle(storyParts);\n storyParts.sort(new StoryPartTimeLineComparator());\n List<StoryPart> sortA = new ArrayList<>(storyParts);\n Collections.shuffle(storyParts);\n storyParts.sort(new StoryPartTimeLineComparator());\n List<StoryPart> sortB = new ArrayList<>(storyParts);\n Collections.shuffle(storyParts);\n storyParts.sort(new StoryPartTimeLineComparator());\n List<StoryPart> sortC = new ArrayList<>(storyParts);\n\n assertEquals(sortA.get(0), sortB.get(0));\n assertEquals(sortA.get(0), sortC.get(0));\n\n assertEquals(sortA.get(1), sortB.get(1));\n assertEquals(sortA.get(1), sortC.get(1));\n\n assertEquals(sortA.get(2), sortB.get(2));\n assertEquals(sortA.get(2), sortC.get(2));\n\n }", "public int compare(Point a, Point b)\n {\n return (int) (Math.ceil(a.y - b.y));\n }", "@Override\r\n\tpublic void addSort() {\n\t\t\r\n\t}", "@Test\n public void testSort_intArr_half() {\n int[] expResult = ASC_CHECK_HALF_SORT_ARRAY;\n sorter.sort(data, 0, 8);\n assertArrayEquals(\"Error testing class: \" + className, expResult, data);\n }", "public Comparator<Point> slopeOrder() {\n /* YOUR CODE HERE */\n return new SlopeOrder();\n }", "public static void main(String[] args) {\n int[] arr1 = new int[]{49,123,6,90,5};\n Arrays.sort(arr1);\n System.out.println(Arrays.toString(arr1));\n System.out.println(\"=============================================\");\n\n //non primitive type sorting and reversing\n Integer[] arr = new Integer[]{49,123,6,90,5};\n Arrays.sort(arr, Collections.reverseOrder());\n System.out.println(Arrays.toString(arr));\n System.out.println(\"=============================================\");\n\n // using comparable and compareTo to sort the objects\n Coordinates[] pointers = new Coordinates[]{new Coordinates(1,5)\n ,new Coordinates(98,4)\n ,new Coordinates(0,76)\n ,new Coordinates(2,67)};\n\n Arrays.sort(pointers);\n for(int i=0;i<pointers.length;i++){\n System.out.println(pointers[i].getX()+\" \" + pointers[i].getY());\n }\n\n System.out.println(\"=============================================\");\n // using comparator to sort the objects of non primitive type\n Points[] points = new Points[]{new Points(1,5)\n ,new Points(98,4)\n ,new Points(0,76)\n ,new Points(2,67)};\n Arrays.sort(points,new ComparatorObj());\n for(int i=0;i<pointers.length;i++){\n System.out.println(points[i].getX()+\" \" + points[i].getY());\n }\n\n\n }" ]
[ "0.71445876", "0.63297176", "0.6219181", "0.6136602", "0.6003842", "0.5888174", "0.5846179", "0.5788153", "0.5744121", "0.57008433", "0.5665592", "0.5659815", "0.56272984", "0.5584659", "0.55836624", "0.5543992", "0.5542229", "0.55354106", "0.55354106", "0.5525899", "0.55247253", "0.5517085", "0.55149704", "0.5487804", "0.54754126", "0.5461218", "0.54458004", "0.54453903", "0.5442013", "0.54381245", "0.54338", "0.5420913", "0.54066056", "0.53988063", "0.53883404", "0.53862524", "0.5378992", "0.53782463", "0.5367634", "0.5367539", "0.5366564", "0.535614", "0.5354767", "0.5353805", "0.5344086", "0.53363377", "0.532976", "0.53157705", "0.5287528", "0.5284655", "0.52812105", "0.52786833", "0.5267358", "0.5250495", "0.523414", "0.5200081", "0.5197221", "0.5196834", "0.51959836", "0.51929384", "0.5190988", "0.5186572", "0.51859033", "0.5176534", "0.51620144", "0.51566267", "0.5149403", "0.51490843", "0.5148936", "0.5142508", "0.5139468", "0.5139286", "0.5125407", "0.5124046", "0.51157004", "0.51156974", "0.5107384", "0.5098347", "0.5095345", "0.5091411", "0.50872415", "0.5086098", "0.50858104", "0.5080551", "0.5064965", "0.5064773", "0.50563276", "0.5055182", "0.50538063", "0.50528723", "0.50522035", "0.5051058", "0.5039498", "0.5037495", "0.50314665", "0.5030922", "0.5030318", "0.50296843", "0.5028398", "0.5028215" ]
0.73150676
0
Sort By Perimeter test
@Test public void testGetShapesSortedByPerimeter() { List<Shape> expectedOutput = new ArrayList<Shape>(); expectedOutput.add(regularPolygon); expectedOutput.add(triangle); expectedOutput.add(rectangle); expectedOutput.add(square); expectedOutput.add(circle); List<Shape> actualOutput = screen.sortShape(SortType.PERIMETER); assertEquals(expectedOutput, actualOutput); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testGetShapesSortedByArea() {\r\n List<Shape> expectedOutput = new ArrayList<Shape>();\r\n expectedOutput.add(regularPolygon);\r\n expectedOutput.add(triangle);\r\n expectedOutput.add(rectangle);\r\n expectedOutput.add(square);\r\n expectedOutput.add(circle);\r\n List<Shape> actualOutput = screen.sortShape(SortType.AREA); \r\n assertEquals(expectedOutput, actualOutput);\r\n }", "@Override\r\n\tpublic double area() {\n\r\n\t\tif (cube1.area()>cube2.area()) {\r\n\t\r\nc double volume() {\r\n\t\t\t\treturn super.area() * iDepth;\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tpublic double perimeter() throws UnsupportedOperationException{\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\r\n\t\t\tpublic class SortByArea implements Comparator<Cuboid>{\r\n\r\n\t\t\t\tSortByArea() {\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic int compare(Cuboid cub1, Cuboid cub2) {\r\n\t\t\t\t\tif (cub1.area() > cub2.area()) {\r\n\t\t\t\t\t\treturn 1;\r\n\t\t\t\t\t} else if(cub1.area() < cub2.area()) {\r\n\t\t\t\t\t\treturn -1;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\treturn 0;\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\t\tpublic class SortByVolume implements Comparator<Cuboid>{\r\n\r\n\t\t\t\tSortByVolume() {\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic int compare(Cuboid cub1, Cuboid cub2) {\r\n\t\t\t\t\tif (cub1.volume() > cub2.volume()) {\r\n\t\t\t\t\t\treturn 1;\r\n\t\t\t\t\t} else if(cub1.volume() < cub2.volume()) {\r\n\t\t\t\t\t\treturn -1;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\treturn 0;\r\n\t\r\n}\r\n}", "@Test\r\n public void testSortShapeWithArea()\r\n {\r\n // Screen screen = new Screen();\r\n \r\n Point originOfSquare = new Point(1,1);\r\n List<Double> listOne = new ArrayList<Double>();\r\n listOne.add(2.0);\r\n Shape square = ShapeFactory.createShape(0, originOfSquare, listOne); \r\n \r\n Point originOfCircle = new Point(1,1);\r\n List<Double> listTwo = new ArrayList<Double>();\r\n listTwo.add(2.0);\r\n Shape circle = ShapeFactory.createShape(3, originOfCircle, listTwo);\r\n \r\n Point orignOfTriangle = new Point(1,1);\r\n List<Double> listThree = new ArrayList<Double>();\r\n listThree.add(4.0);\r\n listThree.add(3.0);\r\n listThree.add(4.0);\r\n listThree.add(5.0);\r\n Shape triangle = ShapeFactory.createShape(2, orignOfTriangle, listThree);\r\n \r\n screen.addNewShapeToScreen(square);\r\n screen.addNewShapeToScreen(circle);\r\n screen.addNewShapeToScreen(triangle);\r\n \r\n screen.sortShapesOnCriteria(SortCriteria.AREA); // Sort list on the basis of area\r\n \r\n assertEquals(4.0, screen.shapesOnScreen.get(0).getArea(), 0);\r\n assertEquals(6.0, screen.shapesOnScreen.get(1).getArea(), 0);\r\n assertEquals(12.56, screen.shapesOnScreen.get(2).getArea(), 0);\r\n \r\n }", "@Test\r\n public void testGetShapesSortedByOriginDistance() {\r\n List<Shape> expectedOutput = new ArrayList<Shape>();\r\n expectedOutput.add(circle);\r\n expectedOutput.add(square);\r\n expectedOutput.add(rectangle);\r\n expectedOutput.add(triangle);\r\n expectedOutput.add(regularPolygon);\r\n List<Shape> actualOutput = screen.sortShape(SortType.ORIGIN_DISTANCE);\r\n assertEquals(expectedOutput, actualOutput);\r\n }", "public void sort() {\r\n int k = start;\r\n for (int i = 0; i < size - 1; i++) {\r\n int p = (k + 1) % cir.length;\r\n for (int j = i + 1; j < size; j++) {\r\n if ((int) cir[p] < (int) cir[k % cir.length]) {\r\n Object temp = cir[k];\r\n cir[k] = cir[p];\r\n cir[p] = temp;\r\n }\r\n p = (p + 1) % cir.length;\r\n }\r\n k = (k + 1) % cir.length;\r\n }\r\n }", "@Override\r\n\t\t\tpublic int compare(Presentor o1, Presentor o2) {\n\t\t\t\tint sort = 0;\r\n\t\t\t\tint a = o1.getZs() - o2.getZs();\r\n\t\t\t\tif (a != 0) {\r\n\t\t\t\t\tsort = (a < 0) ? 1 : -1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\ta = o1.getJd() - o2.getJd();\r\n\t\t\t\t\tif (a != 0) {\r\n\t\t\t\t\t\tsort = (a < 0) ? 1 : -1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn sort;\r\n\t\t\t}", "public int compareTo(Octagon compareSide) {\n if (this.side < compareSide.side){\n return -1;\n } else if (this.side > compareSide.side) {\n return 1;\n }\n return 0;\n }", "public static void testSort() {\n\t\tint[] test = {-1,-2,-3,4,1,3,0,3,-2,1,-2,2,-1,1,-5,4,-3};\n\t\tArrays.sort(test);\n\t\tfor (int e : test) {\n\t\t\tSystem.out.print(e + \", \");\n\t\t}\n\t}", "public void sort() {\n /*int jokers = this.getJokers();\n\t\tif (jokers > 0 && this.size() > 2) {\n\t\t\tArrayList<Tile> list = new ArrayList<>();\n for (int i=0; i<this.size(); i++) {\n\t\t\t\tif (this.get(i).getColour() == 'J') {\n\t\t\t\t\tTile joker = this.remove(this.get(i));\n\t\t\t\t\tlist.add(joker);\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (Tile j : list) {\n\t\t\t\tthis.addInSort(j);\n\t\t\t}\n }*/\n \n\n //may need something in here to accomodate a joker changing its form\n\n if (tiles.size() > 1) { //will only sort a meld with any tiles in it\n //Override default comparator to compare by tile value (ints)\n Collections.sort(tiles, new Comparator<Tile>() {\n @Override \n public int compare(Tile t1, Tile t2) { \n if (t1.getColour() > t2.getColour()) {\n return 1;\n } else if (t1.getColour() < t2.getColour()) {\n return -1;\n }\n if (t1.getValue() > t2.getValue()) {\n return 1;\n } else if (t1.getValue() < t2.getValue()) {\n return -1;\n } else {\n return 0;\n }\n }\n });\n }\n\n }", "@Test\n public void testSort_intArr_IntComparator_half() {\n IntComparator comparator = IntComparatorAsc.getInstance();\n int[] expResult = ASC_CHECK_HALF_SORT_ARRAY;\n sorter.sort(data, 0, 8, comparator);\n assertArrayEquals(\"Error testing class: \" + className, expResult, data);\n }", "public List<Room> sortBySize() {\n List<Room> result = new ArrayList<>();\n for (Room o : rooms)\n result.add(o);\n for (int i = 0; i < result.size(); i++) {\n for (int j = 0; j < result.size() - 1; j++) {\n if (result.get(j).getSize() > result.get(j + 1).getSize()) {\n\n Room temp = result.get(j);\n result.set(j, result.get(j + 1));\n result.set(j + 1, temp);\n }\n\n }\n }\n return result;\n }", "public void sortCompetitors(){\n\t\t}", "private void sort(Metric metr, DoubleData dObj, DoubleData[] dObjects, int left, int right)\n {\n int p = left + RANDOM_GENERATOR.nextInt(right-left+1);\n DoubleData tmpObj = dObjects[right];\n dObjects[right] = dObjects[p];\n dObjects[p] = tmpObj;\n int l = left, r = right - 1;\n double dist = metr.dist(dObjects[right], dObj);\n while (l < r)\n if (dist >= metr.dist(dObjects[l], dObj)) l++;\n else if (dist < metr.dist(dObjects[r], dObj)) r--;\n else\n {\n tmpObj = dObjects[l];\n dObjects[l] = dObjects[r];\n dObjects[r] = tmpObj;\n l++;\n if (l < r) r--;\n }\n if (dist < metr.dist(dObjects[l], dObj))\n {\n tmpObj = dObjects[l];\n dObjects[l] = dObjects[right];\n dObjects[right] = tmpObj;\n }\n if (left < l) sort(metr, dObj, dObjects, left, l);\n if (l + 1 < right) sort(metr, dObj, dObjects, l + 1, right);\n }", "@Override\n public int compare(MyPoint p1, MyPoint p2) {\n int thresh = 80;\n int xComp = Double.compare(p1.x, p2.x);\n //if they are on the same column, check who is the higher one.\n if (Math.abs(p1.x - p2.x) <= thresh) {\n return -Double.compare(p1.y, p2.y);\n } else\n return xComp;\n }", "@Override\n\tpublic int compare(ObjectWithCoordinates p1, ObjectWithCoordinates p2) {\n\t\tif (p1.getX() < p2.getX()) return -1;\n\t\tif (p1.getX() > p2.getX()) return +1;\n\t\tif (p1.getY() < p2.getY()) return -1;\n\t\tif (p1.getY() > p2.getY()) return +1;\n\t\treturn 0;\n\t}", "private void sortCorners(ArrayList<Point> corners) {\n Collections.sort(corners, new Comparator<Point>() {\n public int compare (Point a, Point b) {\n double val = a.y - b.y;\n if (val < 0) return -1;\n else if (val > 0) return 1;\n else return 0;\n }\n }\n );\n if (corners.size() > 1) {\n if (corners.get(0).x > corners.get(1).x) {\n Point temp = corners.get(0);\n corners.set(0, corners.get(1));\n corners.set(1, temp);\n }\n }\n if (corners.size() > 3) {\n if (corners.get(2).x > corners.get(3).x) {\n Point temp = corners.get(2);\n corners.set(2, corners.get(3));\n corners.set(3, temp);\n }\n }\n }", "@Test\n public void testSort_intArr_IntComparator_Desc_half() {\n IntComparator comparator = IntComparatorDesc.getInstance();\n int[] expResult = DESC_CHECK_HALF_CHECK_ARRAY;\n sorter.sort(data, 0, 8, comparator);\n assertArrayEquals(\"Error testing class: \" + className, expResult, data);\n }", "public void sortGivenArray_popularity() { \n int i, j, k; \n for(i = movieList.size()/2; i > 0; i /= 2) {\n for(j = i; j < movieList.size(); j++) {\n Movie key = movieList.get(j);\n for(k = j; k >= i; k -= i) {\n if(key.rents > movieList.get(k-i).rents) {\n movieList.set(k, movieList.get(k-i));\n } else {\n break; \n }\n }\n movieList.set(k, key);\n }\n } \n }", "public void sortByLength()\n {\n boolean swapMade;//has a swap been made in the most recent pass?\n \n //repeat looking for swaps\n do\n {\n swapMade=false;//just starting this pass, so no swap yet\n \n //go through entire array. looking for swaps that need to be done\n for(int i = 0; i<currentRide-1; i++)\n {\n //if the other RideLines has less people\n if(rides[i].getCurrentPeople()<rides[i+1].getCurrentPeople())\n {\n // standard swap, using a temporary. swap with less people\n RideLines temp = rides[i];\n rides[i]=rides[i+1];\n rides[i+1]=temp;\n \n swapMade=true;//remember this pass made at least one swap\n }\n \n } \n }while(swapMade);//until no swaps were found in the most recent past\n \n redrawLines();//redraw the image\n \n }", "@Test\n public void testSort_intArr_IntegerComparator_half() {\n IntComparator comparator = IntComparatorAsc.getInstance();\n int[] expResult = ASC_CHECK_HALF_SORT_ARRAY;\n sorter.sort(data, 0, 8, (Comparator<Integer>) comparator);\n assertArrayEquals(\"Error testing class: \" + className, expResult, data);\n }", "private void doSort (Column A, int [] i, int p, int r, int begin) {//double[] A, int p, int r, MutableTable t) {\n\t\tif (p < r) {\n\t\t\tint q = partition(A, i, p, r, begin);\n\t\t\tdoSort(A, i, p, q, begin);\n\t\t\tdoSort(A, i, q + 1, r, begin);\n\t\t}\n\t}", "public static void main(String[] args) {\n Circle[] circles = new Circle[3];\n circles[0] = new Circle(3.6);\n circles[1] = new Circle();\n circles[2] = new Circle(3.5, \"indigo\", false);\n System.out.println(\"Pre-sorted: \");\n for (Circle circle:circles){\n System.out.println(circle);\n }\n\n Comparator circleComparator = new CircleComparator();\n Arrays.sort(circles,circleComparator);\n\n System.out.println(\"After-sorted: \");\n for (Circle circle:circles){\n System.out.println(circle);\n }\n /*ComparableCircle[] circles= new ComparableCircle[3];\n circles[0]= new ComparableCircle(3.6);\n circles[1]=new ComparableCircle();\n circles[2]=new ComparableCircle(\"blue\",true,3.4);\n System.out.println(\"Pre-sorted:\");\n for(ComparableCircle circle:circles) {\n System.out.println(circle);\n }\n System.out.println(circles[0].compareTo(circles[1]));\n System.out.println(circles[1].compareTo(circles[2]));\n System.out.println(circles[0].compareTo(circles[2]));\n\n Arrays.sort(circles);\n\n System.out.println(\"After-sorted: \");\n for(ComparableCircle circle:circles){\n System.out.println(circle);\n }*/\n }", "public static void dimension_sort() { // sort the dimensions according to their effect to GCP\n\t\tfor (int i = 0;i < dims-1;i++) {\n\t\t\tdimension[i] = (byte) i;\n\t\t}\n\t\tboolean swapped = true;\n\t\tint i=0;\n\t\tbyte temp;\n\t\twhile (swapped) {\n\t\t\tswapped = false;\n\t\t\ti++;\n\t\t\tfor (int j = 0; j < dimension.length-i;j++) { // smaller range, put it the front\n\t\t\t\tif (cardinalities[dimension[j]] > cardinalities[dimension[j+1]]) {\n\t\t\t\t\ttemp = dimension[j];\n\t\t\t\t\tdimension[j] = dimension[j+1];\n\t\t\t\t\tdimension[j+1] = temp;\n\t\t\t\t\tswapped = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void testSort_intArr_IntegerComparator_Desc_half() {\n IntComparator comparator = IntComparatorDesc.getInstance();\n int[] expResult = DESC_CHECK_HALF_CHECK_ARRAY;\n sorter.sort(data, 0, 8, (Comparator<Integer>) comparator);\n assertArrayEquals(\"Error testing class: \" + className, expResult, data);\n }", "public void sort(int p, int r) {\n if (p < r) {\n int q = (r + p) / 2;\n sort(p, q);\n sort(q + 1, r);\n merge(p, q, r);\n }\n }", "public void sortMatches();", "public static void sortByFitlvl() {\n Collections.sort(Population);\n if (debug) {\n debugLog(\"\\nSorted: \");\n printPopulation();\n }\n }", "public void sortElements(){\n\t\tgetInput();\n\t\tPeople[] all = countAndSort(people, 0, people.length-1);\n\t\t//PrintArray(all);\n\t\tSystem.out.println(InversionCount);\n\t}", "@Test\n public void testSort_intArr_half() {\n int[] expResult = ASC_CHECK_HALF_SORT_ARRAY;\n sorter.sort(data, 0, 8);\n assertArrayEquals(\"Error testing class: \" + className, expResult, data);\n }", "public int compare(Point a, Point b)\n {\n return (int) (Math.ceil(a.y - b.y));\n }", "public void sortArray(){\n\t\tfor (int i=0; i<population.length;i++){\n\n\t\t\tfor (int j=0; j<population.length-i-1;j++){\n\n\t\t\t\tif(population[j].computeFitness()>population[j+1].computeFitness()) {\n\t\t\t\t\t//swap their positions in the array\n\t\t\t\t\tChromosome temp1 = population[j];\n\t\t\t\t\tpopulation[j] = population[j+1];\n\t\t\t\t\tpopulation[j+1] = temp1;\n\t\t\t\t}//end if\n\n\t\t\t}//end j for\n\n\t\t}//end i for\n\t}", "private void sort()\n {\n // This implements Shell sort.\n // Unfortunately we cannot use the sorting functions from the library\n // (e.g. java.util.Arrays.sort), since the ones that work on int\n // arrays do not accept a comparison function, but only allow\n // sorting into natural order.\n int jump = length;\n boolean done;\n \n while( jump>1 ){\n jump /= 2;\n \n do {\n done = true;\n \n for( int j = 0; j<(length-jump); j++ ){\n int i = j + jump;\n \n if( !areCorrectlyOrdered( indices[j], indices[i] ) ){\n // Things are in the wrong order, swap them and step back.\n int tmp = indices[i];\n indices[i] = indices[j];\n indices[j] = tmp;\n done = false;\n }\n }\n } while( !done );\n }\n \n // TODO: integrate this with the stuff above.\n for( int i=1; i<length; i++ ){\n commonality[i] = commonLength( indices[i-1], indices[i] );\n }\n commonality[0] = -1;\n }", "public static boolean testSort() {\r\n Manager inst;\r\n try {\r\n inst = new PokemonTable();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n return false;\r\n }\r\n LinkedList<Pokemon> list;\r\n list = inst.sortByAttack(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getAttack() < list.get(i).getAttack()) {\r\n System.out.println(\"attack sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByAttack(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getAttack() > list.get(i).getAttack()) {\r\n System.out.println(\"attack sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByDefense(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getDefense() < list.get(i).getDefense()) {\r\n System.out.println(\"defense sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByDefense(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getDefense() > list.get(i).getDefense()) {\r\n System.out.println(\"defense sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByFavorite(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (!list.get(i - 1).getFavorite() && list.get(i).getFavorite()) {\r\n System.out.println(\"favorite sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByFavorite(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getFavorite() && !list.get(i).getFavorite()) {\r\n System.out.println(\"favorite sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByHp(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getHp() < list.get(i).getHp()) {\r\n System.out.println(\"hp sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByHp(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getHp() > list.get(i).getHp()) {\r\n System.out.println(\"hp sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByLegendary(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (!list.get(i - 1).isLegendary() && list.get(i).isLegendary()) {\r\n System.out.println(\"legendary sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByLegendary(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).isLegendary() && !list.get(i).isLegendary()) {\r\n System.out.println(\"legendary sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByName(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getName().compareTo(list.get(i).getName()) > 0) {\r\n System.out.println(\"name sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByName(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getName().compareTo(list.get(i).getName()) < 0) {\r\n System.out.println(\"name sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpAttack(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpAttack() < list.get(i).getSpAttack()) {\r\n System.out.println(\"spAttack sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpAttack(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpAttack() > list.get(i).getSpAttack()) {\r\n System.out.println(\"spAttack sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpDefense(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpDefense() < list.get(i).getSpDefense()) {\r\n System.out.println(\"spDefense sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpDefense(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpDefense() > list.get(i).getSpDefense()) {\r\n System.out.println(\"spDefense sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpeed(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpeed() < list.get(i).getSpeed()) {\r\n System.out.println(\"speed sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpeed(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpeed() > list.get(i).getSpeed()) {\r\n System.out.println(\"speed sort\");\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "@Test\n public void testSortAlgorithm() {\n System.out.println(\"sortAlgorithm\");\n String input = \"8 0 3 1 6 5 -2 4 7\";\n CCGeneticDrift instance = new CCGeneticDrift();\n int expResult = 5;\n int result = instance.sortAlgorithm(input);\n assertEquals(result, expResult);\n }", "private void sortResults(){\r\n this.sortedPlayers = new ArrayList<>();\r\n int size = players.size();\r\n while (size > 0) {\r\n Player lowestPointsPlayer = this.players.get(0);\r\n for(int i = 0; i<this.players.size(); i++){\r\n if(lowestPointsPlayer.getPoints() <= this.players.get(i).getPoints()){\r\n lowestPointsPlayer = this.players.get(i);\r\n }\r\n }\r\n this.sortedPlayers.add(lowestPointsPlayer);\r\n this.players.remove(lowestPointsPlayer);\r\n size--;\r\n }\r\n\r\n\r\n }", "void sortV();", "public int compare(Point a, Point b)\n {\n return (int) (Math.ceil(a.x - b.x));\n }", "abstract void findPerimeter();", "void sort();", "void sort();", "public void sort() {\n }", "public void sortPassing(){\n\t\tpassing.sort(PlayingCard.PlayingCardComparator_ACEHIGH);\n\t}", "public int compareTo(Point p) {\r\n return (int) compareTo(p.x, p.y, p.z);\r\n }", "@Test\n\tpublic void testSortTwoElements() {\n\t\tint[] arrayBeforeSort = { 565, 45 };\n\t\tint[] arrayAfterSort = { 565, 45 };\n\t\tArrayQuickSort.sort(arrayAfterSort);\n\t\tif (!isSorted(arrayBeforeSort, arrayAfterSort)) {\n\t\t\tAssert.fail(\"The array is not sorted!\");\n\t\t}\n\t}", "private static void sortPoints(int[][] pointSet, int start, int end)\n {\n if (start < end)\n {\n int mid = (start+end)/2;\n sortPoints(pointSet, start, mid);\n sortPoints(pointSet, mid+1, end);\n crossProductMerge(pointSet, start, mid, end);\n }\n }", "public static void main(String[] args) {\n String [] folge = {\"ab\",\"cd\", \"aa\"};\n new SortierenBeiEinfugen().sortiereAbsteigend(folge);\n System.out.println(Arrays.toString(folge));\n new SortierenBeiEinfugen().sortiereAufsteigend(folge);\n System.out.println(Arrays.toString(folge));\n\n\n\n\n\n\n int[] feld = {2,8,5,6,3,1,4,7};\n\n int countVergleich=0;\n int countTausch = 0;\n for (int i = 0; i < feld.length; i++) {\n for (int j = i; j > 0 ; j--) {\n countVergleich++;\n if (feld[j - 1]>(feld[j]) ) {\n int temp = feld[j];\n feld[j] = feld[j - 1];\n feld[j - 1] = temp;\n countTausch++;\n } else {\n System.out.println(countVergleich);\n System.out.println(countTausch);\n break;\n }\n }\n }\n }", "@Test\n public void testSort_intArr_IntComparator_Asc_Middle() {\n IntComparator comparator = IntComparatorAsc.getInstance();\n int[] expResult = ASC_CHECK_MIDDLE_SORT_ARRAY;\n sorter.sort(data, 4, 10, comparator);\n// System.out.println(\"Expected: \" + Arrays.toString(expResult));\n// System.out.println(\"Result: \" + Arrays.toString(data));\n assertArrayEquals(\"Error testing class: \" + className, expResult, data);\n }", "void sort(int[] notes, int left, int right)\n\t{\n\t\tif (left < right) {\n\t\t\t// Find the middle point\n\t\t\tint mid = (left + right) / 2;\n\n\t\t\t// Sort first and second halves\n\t\t\tsort(notes, left, mid);\n\t\t\tsort(notes, mid + 1, right);\n\n\t\t\t// Merge the sorted halves\n\t\t\tmerge(notes, left, mid, right);\n\t\t\t\n\t\t}\n\n\t}", "public String doSort();", "private static List<HantoCoordinate> getPerimeterSpaces(Board b) {\n\n\t\tList<HantoCoordinate> perimeter = new ArrayList<HantoCoordinate>();\n\t\tList<HantoCoordinate> toVisit = b.getAllOccupiedCoordinates();\n\n\t\tfor(HantoCoordinate current : toVisit){\n\n\t\t\tfor(HantoCoordinate neighbor : HantoUtil.getAllNeighbors(current)){\n\n\t\t\t\tif(!toVisit.contains(neighbor) && !perimeter.contains(neighbor)){\n\t\t\t\t\tperimeter.add(neighbor);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn perimeter;\n\t}", "public void sort() {\n Collections.sort(jumpers, new SortJumperByPoints()); \n }", "@Override\n public int compare(QuickHull.Point p1, QuickHull.Point p2){\n if(p1.x== p2.x && p1.y==p2.y)\n return 0;\n //if x coordinate less or x coordinate equal, but\n //y coordinate is less (tie break)\n else if(p1.x<p2.x || p1.x==p2.x && p1.y<p2.y)\n return -1;\n else\n return 1;\n }", "public static void sortShapes(Vector<Shape> v)\r\n\t{\r\n\t\tShape temp;\r\n\t\tint i,j;\r\n\t\tfor(i=0 ; i<v.size() ; i++)\r\n\t\t{\r\n\t\t\tfor(j=0 ; j<v.size() ; j++)\r\n\t\t\t{\r\n\t\t\t\tif((v.get(i)).area() < (v.get(j)).area())\r\n\t\t\t\t{\r\n\t\t\t\t\ttemp = v.get(i);\r\n\t\t\t\t\tv.set(i,v.get(j));\r\n\t\t\t\t\tv.set(j,temp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\t\r\n\t}", "@Override\n public int compare(Box b1, Box b2) { \n return b1.width > b2.width ? 1 :(b1.width == b2.width ? 0 : -1);\n }", "public double perimeter()\n\t{\n\t\t// To recognize points, their angles must be compared - middle one always represents the opposing point.\n\t\tdouble angleXAB = pointA.calculateLineAngle(pointB);\n\t\tdouble angleXAC = pointA.calculateLineAngle(pointC);\n\t\tdouble angleXAD = pointA.calculateLineAngle(pointD);\n\t\t\n\t\tdouble side1;\n\t\tdouble side2;\n\t\tdouble side3;\n\t\tdouble side4;\n\n\t\t// Creates sides based on angles comparison.\n\n\t\t// Excluding double 0 cases (vertical and horizontal)\n\t\t// opposite is XAB\n\t\tif(angleXAC == angleXAD)\n\t\t{\n\t\t\tside1 = pointA.getDistance(pointC);\n\t\t\tside2 = pointA.getDistance(pointD);\n\t\t\tside3 = pointB.getDistance(pointC);\n\t\t\tside4 = pointB.getDistance(pointD);\n\t\t\treturn \tside1 + side2 + side3 + side4;\n\t\t} // if \n\t\t// opposite is XAC\n\t\telse if(angleXAB == angleXAD)\n\t\t{\n\t\t\tside1 = pointA.getDistance(pointB);\n\t\t\tside2 = pointA.getDistance(pointD);\n\t\t\tside3 = pointC.getDistance(pointB);\n\t\t\tside4 = pointC.getDistance(pointD);\n\t\t\treturn \tside1 + side2 + side3 + side4;\n\t\t} // else if \n\t\t// opposite is XAD\n\t\telse if(angleXAB == angleXAC)\n\t\t{\n\t\t\tside1 = pointA.getDistance(pointB);\n\t\t\tside2 = pointA.getDistance(pointC);\n\t\t\tside3 = pointD.getDistance(pointB);\n\t\t\tside4 = pointD.getDistance(pointC);\n\t\t\treturn \tside1 + side2 + side3 + side4;\n\t\t} // else if \n\t\tif(angleXAB > angleXAC)\n\t\t{\n\t\t\t// opposite is XAC\n\t\t\tif(angleXAC > angleXAD)\n\t\t\t{\n\t\t\t\tside1 = pointA.getDistance(pointB);\n\t\t\t\tside2 = pointA.getDistance(pointD);\n\t\t\t\tside3 = pointC.getDistance(pointB);\n\t\t\t\tside4 = pointC.getDistance(pointD);\n\n\t\t\t} // if\n\t\t\t// opposite is XAB\n\t\t\telse if (angleXAD > angleXAB)\n\t\t\t{\n\t\t\t\tside1 = pointA.getDistance(pointC);\n\t\t\t\tside2 = pointA.getDistance(pointD);\n\t\t\t\tside3 = pointB.getDistance(pointC);\n\t\t\t\tside4 = pointB.getDistance(pointD);\n\t\t\t} // else if\t\n\t\t\t// opposite is XAD\t\n\t\t\telse\n\t\t\t{\n\t\t\t\tside1 = pointA.getDistance(pointB);\n\t\t\t\tside2 = pointA.getDistance(pointC);\n\t\t\t\tside3 = pointD.getDistance(pointB);\n\t\t\t\tside4 = pointD.getDistance(pointC);\n\t\t\t} // else\n\t\t} // if\n\t\telse\t\n\t\t{\n\t\t\t// opposite is XAC\n\t\t\tif(angleXAD > angleXAC)\t\t\t\n\t\t\t{\n\t\t\t\tside1 = pointA.getDistance(pointB);\n\t\t\t\tside2 = pointA.getDistance(pointD);\n\t\t\t\tside3 = pointC.getDistance(pointB);\n\t\t\t\tside4 = pointC.getDistance(pointD);\n\t\t\t} // if \n\t\t\t// opposite is XAD\n\t\t\telse if (angleXAD > angleXAB)\n\t\t\t{\n\t\t\t\tside1 = pointA.getDistance(pointB);\n\t\t\t\tside2 = pointA.getDistance(pointC);\n\t\t\t\tside3 = pointD.getDistance(pointB);\n\t\t\t\tside4 = pointD.getDistance(pointC);\n\t\t\t} // else if \n\t\t\t// opposite is XAB\n\t\t\telse \t\n\t\t\t{\n\t\t\t\tside1 = pointA.getDistance(pointC);\n\t\t\t\tside2 = pointA.getDistance(pointD);\n\t\t\t\tside3 = pointB.getDistance(pointC);\n\t\t\t\tside4 = pointB.getDistance(pointD);\n\t\t\t} // else\n\t\t} // else\t\t\n\t\treturn \tside1 + side2 + side3 + side4;\n\t\t\n\t}", "private void sortByWeight()\n\t{\n\t\tfor(int i=1; i<circles.size(); i++)\n\t\t{\n\t\t\tPVCircle temp = circles.get(i);\n\t\t\tint thisWeight = circles.get(i).getWeight();\n\t\t\tint j;\n\t\t\tfor(j=i-1; j>=0; j--)\n\t\t\t{\n\t\t\t\tint compWeight = circles.get(j).getWeight();\n\t\t\t\tif(thisWeight < compWeight)\n\t\t\t\t\tbreak;\n\t\t\t\telse\n\t\t\t\t\tcircles.set(j+1, circles.get(j));\n\t\t\t}\n\t\t\tcircles.set(j+1, temp);\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) {\n int maxSolutions = 0;\r\n int bestPerimeter = 0;\r\n int[] perimeters = new int[1000];\r\n for (int a = 1; a <= 1000; a++) {\r\n for (int b = 1; b <= a; b++) {\r\n double c = Math.sqrt(a*a + b*b);\r\n if (c != (int)c) continue;\r\n int perimeter = a + b + (int)c;\r\n if (perimeter > 1000) break;\r\n perimeters[perimeter - 1]++;\r\n if (perimeters[perimeter - 1] > maxSolutions) {\r\n maxSolutions++;\r\n bestPerimeter = perimeter;\r\n }\r\n }\r\n }\r\n System.out.println(\"Best perimeter: \" + bestPerimeter);\r\n System.out.println(\"Solutions: \" + maxSolutions);\r\n }", "public static void sort(Comparable[] pq) {\n int n = pq.length;\n \n /*\n * Fill in this method! Use the code on p. 324 of the book as a model,\n * but change it so each node in the heap has 3 children instead of 2.\n */\n }", "public void sort() {\n\t\t\tfor (int j = nowLength - 1; j > 1; j--) {\n\t\t\t\tfor (int i = 0; i < j; i++) {\n\t\t\t\t\tif (ray[i] > ray[i+1]) {\n\t\t\t\t\t\tint tmp = ray [i];\n\t\t\t\t\t\tray[i] = ray[i+1];\n\t\t\t\t\t\tray[i+1] = tmp;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tprint();\n\t\t\t}\n\t}", "double getPerimeter();", "double getPerimeter();", "double getPerimeter();", "double getPerimeter();", "double perimeter();", "static void sort(int arr[], int l, int r) \n { \n if (l < r) \n { \n // Find middle \n int m = (l+r)/2; \n \n // Sort both halves\n sort(arr, l, m); \n sort(arr , m+1, r); \n \n // Merge both halves after they have been sorted \n merge(arr, l, m, r); \n } \n }", "public int compare(Figure other){\n if(this.getArea()>other.getArea()){\n return 1; \n }\n if( this.getArea()<other.getArea()){\n return -1;\n }\n return 0;\n }", "@Override\n\t\t\t\tpublic int compare(Integer a, Integer b) {\n\t\t\t\t\tInteger x= (Integer)P[a];\n\t\t\t\t\tInteger y= (Integer)P[b];\n\t\t\t\t\treturn x.compareTo(y);\n\t\t\t\t}", "@Override\n\tpublic int compare(Person p1, Person p2) {\n\t\tif(p1.getWeight() >p2.getWeight()){\n\t\n\t\treturn 1;\n\t\t}\n\t\telse if(p1.getWeight()==p2.getWeight()){\n\t\t\tif(p1.getHeight() >p2.getHeight()){\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "public void sort() {\n\t\tdivider(0, array.size() - 1);\n\t}", "private static Artist[] sortAllPaintersBasedOnTheirCharge(Artist[] painterObject, int arrayCount) {\n\t\tif (arrayCount > 0) {\n\n\t\t\tSystem.out.println(\"sorting based on charges\");\n\t\t\tSystem.out.println(\"................................................\");\n\t\t\tfor (int i = 0; i < arrayCount; i++) {\n\t\t\t\tfor (int j = 0; j < arrayCount - i - 1; j++) {\n\t\t\t\t\tif (painterObject[j].getSqFeetCharge() > painterObject[j + 1].getSqFeetCharge()) {\n\t\t\t\t\t\tArtist temp = painterObject[j];\n\t\t\t\t\t\tpainterObject[j] = painterObject[j + 1];\n\t\t\t\t\t\tpainterObject[j + 1] = temp;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n//display the data after sorting\n\t\t\tdisplay(painterObject, arrayCount);\n\n\t\t} else {\n\t\t\tSystem.out.println(\"There is no data in the database\");\n\t\t}\n\t\treturn painterObject;\n\t}", "static void sort(int vec[], int low, int high) {\n\t\tif (low < high) {\n\t\t\t/* pi esta particionando indices, arr[pi] is now at right place */\n\t\t\tint pi = particion(vec, low, high);\n\t\t\t// Recursivamente ordena elementos antes de\n\t\t\t// la partición y despues de la partición\n\t\t\tsort(vec, low, pi - 1);\n\t\t\tsort(vec, pi + 1, high);\n\t\t}\n\t}", "public final void testSortCriteria() throws Exception\n {\n Vector vect = new Vector();\n final long modifier = 100;\n long sdArr[][] = { { 0, 10 }, { 0, 12 }, { 0, 8 }, { -5, 20 }, { -5, 13 }, { -5, 15 }, { -5, -7 }, { 2, 10 },\n { 2, 8 }, { 2, 2 }, { 12, 14 }, { -5, 5 }, { 10, 2 } };\n long sorted[][] = { { -5, -7 }, { 10, 2 }, { 2, 2 }, { -5, 5 }, { 0, 8 }, { 2, 8 }, { 0, 10 }, { 2, 10 },\n { 0, 12 }, { -5, 13 }, { 12, 14 }, { -5, 15 }, { -5, 20 } };\n\n patchArray(sdArr, modifier);\n patchArray(sorted, modifier);\n\n for (int i = 0; i < sdArr.length; i++)\n {\n vect.addElement(new RecordingImplMock(new Date(sdArr[i][0]), sdArr[i][1]));\n }\n RecordingList recordingList = new RecordingListImpl(vect);\n Comparator comparator = new Comparator();\n\n RecordingList newList = recordingList.sortRecordingList(comparator);\n\n assertNotNull(\"recordingList returned null\", newList);\n\n // check results\n LocatorRecordingSpec lrs = null;\n RecordingRequest req = null;\n\n int i = newList.size();\n for (i = 0; i < newList.size(); i++)\n {\n req = (RecordingRequest) newList.getRecordingRequest(i);\n lrs = (LocatorRecordingSpec) req.getRecordingSpec();\n assertEquals(\"sort criteria is wrong\", sorted[i][1], lrs.getDuration());\n }\n }", "public Artikel[] sortieren(BiPredicate<Artikel, Artikel> biPredicate, Artikel[] sortedLager, int p){\n\n boolean sorted = false;\n Artikel temp;\n while (!sorted){\n sorted = true;\n for (int i = 0; i < p - 1; i++){\n if(biPredicate.test(sortedLager[i], sortedLager[i+1])){\n temp = sortedLager[i];\n sortedLager[i] = sortedLager[i+1];\n sortedLager[i+1] = temp;\n sorted = false;\n }\n }\n }\n return sortedLager;\n }", "@Test\n\tpublic void testSortNormalElements() {\n\t\tint[] arrayBeforeSort = { 565, 78, 34, 2, 23, 2222, 34 };\n\t\tint[] arrayAfterSort = { 565, 78, 34, 2, 23, 2222, 34 };\n\t\tArrayQuickSort.sort(arrayAfterSort);\n\t\tif (!isSorted(arrayBeforeSort, arrayAfterSort)) {\n\t\t\tAssert.fail(\"The array is not sorted!\");\n\t\t}\n\t}", "@Override\n public int compareTo(final Ditch ditch) {\n if (!getFirst().equals(ditch.getFirst()))\n return getFirst().compareTo(ditch.getFirst());\n else\n return getSecond().getColumn() - ditch.getSecond()\n .getColumn();\n }", "@Override\n public void sort(IAlg algorithm, boolean decrescent){}", "public static void main(String[] args) {\n int[] arr1 = new int[]{49,123,6,90,5};\n Arrays.sort(arr1);\n System.out.println(Arrays.toString(arr1));\n System.out.println(\"=============================================\");\n\n //non primitive type sorting and reversing\n Integer[] arr = new Integer[]{49,123,6,90,5};\n Arrays.sort(arr, Collections.reverseOrder());\n System.out.println(Arrays.toString(arr));\n System.out.println(\"=============================================\");\n\n // using comparable and compareTo to sort the objects\n Coordinates[] pointers = new Coordinates[]{new Coordinates(1,5)\n ,new Coordinates(98,4)\n ,new Coordinates(0,76)\n ,new Coordinates(2,67)};\n\n Arrays.sort(pointers);\n for(int i=0;i<pointers.length;i++){\n System.out.println(pointers[i].getX()+\" \" + pointers[i].getY());\n }\n\n System.out.println(\"=============================================\");\n // using comparator to sort the objects of non primitive type\n Points[] points = new Points[]{new Points(1,5)\n ,new Points(98,4)\n ,new Points(0,76)\n ,new Points(2,67)};\n Arrays.sort(points,new ComparatorObj());\n for(int i=0;i<pointers.length;i++){\n System.out.println(points[i].getX()+\" \" + points[i].getY());\n }\n\n\n }", "@Override\n public int compare(UserData o1, UserData o2) {\n if (\"Distance\".equals(sort)) {\n return calcDistanceToMatch(o1) > calcDistanceToMatch(o2) ? 1 : -1;\n\n } else {\n return calcSchedulePercentage(o1) < calcSchedulePercentage(o2) ? 1 : -1;\n }\n }", "@Test\r\n public void confirmNumericalSortTest() {\r\n int[] unsorted = new int[]{2,10,1,3,4,100,20};\r\n int[] expResult = new int[]{1,2,3,4,10,20,100};\r\n int[] result = arraySorter.sort(unsorted);\r\n assertArrayEquals(expResult, result);\r\n }", "@Override\n protected void runAlgorithm() {\n for (int i = 0; i < getArray().length; i++) {\n for (int j = i + 1; j < getArray().length; j++) {\n if (applySortingOperator(getValue(j), getValue(i))) {\n swap(i, j);\n }\n }\n }\n }", "public double perimeter ()\r\n {\r\n return v1.distanceTo(v2)+v2.distanceTo(v3)+v3.distanceTo(v1);\r\n }", "private void sortByX() {\n\t\tCollections.sort(pointList, getXComparator());\n\t}", "void sort(int arr[], int left, int right) {\n if (left < right) {\n // Find the middle point\n int middle = (left + right) / 2;\n\n // Sort first and second halves\n sort(arr, left, middle);\n sort(arr, middle + 1, right);\n\n // Merge the sorted halves\n merge(arr, left, middle, right);\n }\n }", "public double perimeter();", "private int partition(int p, int r) {\n int i = p, temp = 0;\n for (int j = p; j < r; j++) {\n if (data[j] <= data[r]) {\n if (i != j) {\n temp = data[i];\n data[i] = data[j];\n data[j] = temp;\n }\n i++;\n }\n }\n temp = data[i];\n data[i] = data[r];\n data[r] = temp;\n return i;\n }", "private void sortDice() {\r\n for (int index = 0; index < dice.size(); index++) {\r\n for (int subIndex = index; subIndex < dice.size(); subIndex++) {\r\n if (dice.get(subIndex).compareTo((dice.get(index))) > 0) {\r\n final Integer temp = dice.get(index);\r\n dice.set(index, dice.get(subIndex));\r\n dice.set(subIndex, temp);\r\n }\r\n }\r\n }\r\n }", "private static void sort(ArrayList<Integer> a, int left, int right) {\r\n\t\tif (left < right) {\r\n\t\t\tint mid = (left+right)/2;\r\n\t\t\t//sort both halves\r\n\t\t\tsort(a, left, mid);\r\n\t\t\tsort(a, mid + 1, right);\r\n\t\t\t//merge back\r\n\t\t\tmerge(a, left, mid, right);\r\n\t\t}\r\n\t}", "public void sort()\n\t{\n\t\tfor(int i=0;i<bowlers.size()-1;i++)\n\t\t{\n\t\t\tfor(int j=i+1;j<bowlers.size();j++)\n\t\t\t{\n\t\t\t\tif(bowlers.get(i).getBall()<bowlers.get(j).getBall())\n\t\t\t\t{\n\t\t\t\t\tBowler bowler=bowlers.get(i);\n\t\t\t\t\tbowlers.set(i,bowlers.get(j));\n\t\t\t\t\tbowlers.set(j,bowler);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<bowlers.size();i++)\n\t\t{\n\t\tSystem.out.println(bowlers.get(i).getBall());\n\t\t}\n\t}", "@Test\n\tpublic void testSortOneElementInArray() {\n\t\tint[] arrayBeforeSort = { 565 };\n\t\tint[] arrayAfterSort = { 565 };\n\t\tArrayQuickSort.sort(arrayAfterSort);\n\t\tif (!isSorted(arrayBeforeSort, arrayAfterSort)) {\n\t\t\tAssert.fail(\"The array is not sorted!\");\n\t\t}\n\t}", "public void sortElements(Comparator<TLProperty> comparator);", "private boolean sortieNonAtteint(){\n\t\t\t//return this.terrainDeLaPartie.getTerrain()[this.terrainDeLaPartie.getAbSortie()][this.terrainDeLaPartie.getOrdSortie()]!='R' ;\t\t\t\n\t\t\tif(this.terrainDeLaPartie.getTerrain()[terrainDeLaPartie.getAbSortie()][terrainDeLaPartie.getOrdSortie()]=='R'){\n\t\t\t\tSystem.out.println(\"###################################### SORTIE #################################\");\n\t\t\t}\n\t\t\treturn this.terrainDeLaPartie.getTerrain()[terrainDeLaPartie.getAbSortie()][terrainDeLaPartie.getOrdSortie()]!='R';\n\t\t}", "@Override\n public void sort() {\n for (int i = 0; i < size; i++) {\n for (int j = i + 1; j < size; j++) {\n if (((Comparable) data[i]).compareTo(data[j]) > 0) {\n E c = data[i];\n data[i] = data[j];\n data[j] = c;\n\n }\n }\n }\n }", "private void sort() {\n ScoreComparator comparator = new ScoreComparator();\n Collections.sort(scores, comparator);\n }", "public void sortBySize() {\n\t\tCollections.sort(animals);\n\t}", "public double getPerimeter();", "public double getPerimeter();", "public void sort(int p, int r) {\n if (p < r) {\n int q = randomPartition(p, r);\n sort(p, q - 1);\n sort(q + 1, r);\n }\n }", "@Override\n\t\t\tpublic int compare(Point arg0, Point arg1) {\n\t\t\t return Double.compare(arg0.getX(), arg1.getX());\n\t\t\t}", "public static double computeSortnessMeasure(int[] input) {\n\t\t// array to sort the array and store the indices of each data point in the original unsorted array\n\t\tlong[][] sorted = new long[input.length][2]; \n\t\tfor (int i = 0 ; i < input.length; i++) {\n\t\t\t// initialize the array\n\t\t\tsorted[i][0] = input[i];\n\t\t\tsorted[i][1] = i;\n\t\t}\n\t\t\n\t\t// sort the array on the first value in long[]\n\t\tArrays.sort(sorted, new Comparator<long[]>() {\n\t\t\t@Override\n\t\t\tpublic int compare(long[] entry1, long[] entry2) {\n\t\t\t\treturn (int) (entry1[0] - entry2[0]);\n\t\t\t}\n\t\t});\n\t\t\n\t\t// compute spearman coefficient\n\t\tdouble sum = 0.0f;\n\t\tdouble len = input.length; // this is done to force double computations instead of int.\n\t\tdouble dem = len * len - 1; // this is done to prevent overflows\n\t\tfor (int i = 0 ; i < input.length; i++) {\n\t\t\tsum = sum + (sorted[i][1] - i) * (sorted[i][1] - i);\n\t\t}\n\t\treturn 1 - (6 * sum)/(len * dem);\n\t}", "public void shellSort(){\n int increment = list.size() / 2;\n while (increment > 0) {\n for (int i = increment; i < list.size(); i++) {\n int j = i;\n int temp = list.get(i);\n while (j >= increment && list.get(j - increment) > temp) {\n list.set(j, list.get(j - increment));\n j = j - increment;\n }\n list.set(j, temp);\n }\n if (increment == 2) {\n increment = 1;\n } else {\n increment *= (5.0 / 11);\n }\n }\n }" ]
[ "0.6235971", "0.6143497", "0.5990474", "0.5941111", "0.5920695", "0.5727908", "0.5664702", "0.56255674", "0.55656654", "0.5545018", "0.5537714", "0.55330044", "0.55066186", "0.54879004", "0.5470414", "0.54677504", "0.54652834", "0.54642034", "0.5461777", "0.54564583", "0.5436727", "0.53882897", "0.5385483", "0.53852665", "0.538484", "0.5373685", "0.53677", "0.53633326", "0.53615826", "0.5353451", "0.53520405", "0.53513855", "0.5344894", "0.5342405", "0.5320519", "0.5311826", "0.53084016", "0.53073317", "0.53044033", "0.53044033", "0.5284312", "0.5276593", "0.5273208", "0.52494985", "0.5244105", "0.524389", "0.52346784", "0.52335817", "0.52319086", "0.52312684", "0.5226097", "0.5221304", "0.5207696", "0.5203607", "0.52027637", "0.51911426", "0.51876724", "0.51834166", "0.5181665", "0.51652014", "0.51652014", "0.51652014", "0.51652014", "0.5163289", "0.5163007", "0.51590925", "0.5158679", "0.5158658", "0.51501596", "0.51469505", "0.51428026", "0.5136945", "0.5131637", "0.51297396", "0.51255834", "0.5124443", "0.5121346", "0.51128393", "0.5109353", "0.5108975", "0.5103597", "0.50979924", "0.5097215", "0.50945306", "0.508831", "0.5087199", "0.5076975", "0.50670713", "0.50628793", "0.5062074", "0.5060584", "0.505756", "0.50552785", "0.5049884", "0.5045434", "0.5045434", "0.5043697", "0.5041314", "0.5037601", "0.5037236" ]
0.76281327
0
Sort by Timestamp test
@Test public void testGetShapesSortedByTimestamp() { List<Shape> expectedOutput = new ArrayList<Shape>(); expectedOutput.add(circle); expectedOutput.add(square); expectedOutput.add(rectangle); expectedOutput.add(triangle); expectedOutput.add(regularPolygon); List<Shape> actualOutput = screen.sortShape(SortType.TIMESTAMP); assertEquals(expectedOutput, actualOutput); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static ArrayList<Quest> sortAfterTimestamp(ArrayList<Quest> questListToSort) {\n\t\tfor (int i = 0; i < questListToSort.size() - 1; i++) {\n\t\t\tint index = i;\n\t\t\tfor (int j = i + 1; j < questListToSort.size(); j++) {\n\t\t\t\tif (questListToSort.get(j).getTimestamp() > questListToSort.get(index).getTimestamp()) {\n\t\t\t\t\tindex = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tCollections.swap(questListToSort, index, i);\n\t\t}\n\t\treturn questListToSort;\n\t}", "double getSortTime();", "private static void performSort(TestApp testApp) {\n testApp.testPartition();\n\n /*\n Date end = new Date();\n System.out.println(\"Sort ended @ \" + end.getTime());\n System.out.println(\"Total time = \" + (end.getTime() - start.getTime())/1000.0 + \" seconds...\");\n */\n }", "@Test\n void sortByDate() {\n }", "public void sortEventsByTime() {\n for (OrgEvent event : events) {\n event.setCompareByTime(true);\n }\n Collections.sort(events);\n }", "public void sort(){\n listOperation.sort(Comparator.comparingInt(Operation::getiStartTime));\n }", "private void sortByDate(List<Entry> entries) {\n\t\t\n\t\tCollections.sort(entries, new Comparator<Entry>() {\n\t\t\tpublic int compare(Entry o1, Entry o2) {\n\t\t\t if (o1.getTimestamp() == null || o2.getTimestamp() == null)\n\t\t\t return 0;\n\t\t\t return o1.getTimestamp().compareTo(o2.getTimestamp());\n\t\t\t }\n\t\t\t});\n\t}", "@Override\r\n\t\t\t\tpublic int compare(twi arg0, twi arg1) {\n\t\t\t\t\tif (arg0.timestamp > arg1.timestamp) {\r\n\t\t\t\t\t\treturn -1;\r\n\t\t\t\t\t} else if (arg0.timestamp < arg1.timestamp) {\r\n\t\t\t\t\t\treturn 1;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\treturn 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t}", "public long getSortTime(){ \n return endTime - startTime;\n }", "public Timestamp getDateOrdered();", "public static void sortEvents(){\n if(events.size()>0){\n Comparator<Event> comp = new Comparator<Event>(){\n public int compare(Event e1, Event e2){\n if(e1.getEventStartTime().before(e2.getEventStartTime())){\n return -1;\n }\n else if(e1.getEventStartTime().after(e2.getEventStartTime())){\n return 1;\n }\n else{\n return 0;\n }\n }\n \n };\n Collections.sort(events, comp);\n \n }}", "private ArrayList<Task> sortByDate(ArrayList<Task> toSort) {\n ArrayList<Task> sorted = new ArrayList<>();\n\n toSort = removeNoTimeTask(toSort);\n\n int size = toSort.size();\n for (int i = 0; i < size; i++) {\n Date earliest = new Date(Long.MAX_VALUE);\n int earliestIndex = -1;\n for (int j = 0; j < toSort.size(); j++) {\n if (toSort.get(j).getClass().equals(Deadline.class)) {\n Deadline temp = (Deadline) toSort.get(j);\n if (temp.getTime().before(earliest)) {\n earliest = temp.getTime();\n earliestIndex = j;\n }\n } else if (toSort.get(j).getClass().equals(Event.class)) {\n Event temp = (Event) toSort.get(j);\n if (temp.getTime().before(earliest)) {\n earliest = temp.getTime();\n earliestIndex = j;\n }\n } else if (toSort.get(j).getClass().equals(Period.class)) {\n Period temp = (Period) toSort.get(j);\n if (temp.getStart().before(earliest)) {\n earliest = temp.getStart();\n earliestIndex = j;\n }\n }\n }\n\n sorted.add(toSort.get(earliestIndex));\n toSort.remove(earliestIndex);\n }\n return sorted;\n }", "protected void sortCheck() {\n if (m_instances == null) {\n return;\n }\n \n if (m_simpleConfigPanel.isUsingANativeTimeStamp()) {\n String timeStampF = m_simpleConfigPanel.getSelectedTimeStampField();\n Attribute timeStampAtt = m_instances.attribute(timeStampF); \n if (timeStampAtt != null) {\n \n double lastNonMissing = Utils.missingValue();\n boolean ok = true;\n boolean hasMissing = false;\n for (int i = 0; i < m_instances.numInstances(); i++) {\n Instance current = m_instances.instance(i);\n \n if (Utils.isMissingValue(lastNonMissing)) {\n if (!current.isMissing(timeStampAtt)) {\n lastNonMissing = current.value(timeStampAtt);\n } else {\n hasMissing = true;\n }\n } else {\n if (!current.isMissing(timeStampAtt)) {\n if (current.value(timeStampAtt) - lastNonMissing < 0) {\n ok = false;\n break;\n }\n \n lastNonMissing = current.value(timeStampAtt);\n } else {\n hasMissing = true;\n }\n }\n }\n \n if (!ok && !hasMissing) {\n // ask if we should sort\n int result = JOptionPane.showConfirmDialog(ForecastingPanel.this, \n \"The data does not appear to be in sorted order of \\\"\"\n + timeStampF + \"\\\". Do you want to sort the data?\", \n \"Forecasting\", JOptionPane.YES_NO_OPTION);\n \n if (result == JOptionPane.YES_OPTION) {\n if (m_log != null) {\n m_log.statusMessage(\"Sorting data...\");\n }\n m_instances.sort(timeStampAtt);\n m_sortedCheck = true; \n }\n }\n \n if (!ok && hasMissing) {\n // we can't really proceed in this situation. We can't sort by the timestamp\n // because instances with missing values will be put at the end of the data.\n // The only thing we can do is to remove the instances with missing time\n // stamps but this is likely to screw up the periodicity and majorly impact\n // on results.\n \n int result = JOptionPane.showConfirmDialog(ForecastingPanel.this, \n \"The data does not appear to be in sorted order of \\\"\"\n + timeStampF + \"\\\". \\nFurthermore, there are rows with\\n\" +\n \t\t\"missing timestamp values. We can remove these\\n\" +\n \t\t\"rows and then sort the data but this is likely to\\n\" +\n \t\t\"result in degraded performance. It is strongly\\n\" +\n \t\t\"recommended that you fix these issues in the data\\n\" +\n \t\t\"before continuing. Do you want the system to proceed\\n\" +\n \t\t\"anyway by removing rows with missing timestamps and\\n\" +\n \t\t\"then sorting the data?\", \n \"Forecasting\", JOptionPane.YES_NO_OPTION);\n \n if (result == JOptionPane.YES_OPTION) {\n if (m_log != null) {\n m_log.statusMessage(\"Removing rows with missing time stamps and sorting data...\");\n }\n m_instances.deleteWithMissing(timeStampAtt);\n m_instances.sort(timeStampAtt);\n m_sortedCheck = true; \n }\n }\n }\n }\n }", "public final void testSortCriteria() throws Exception\n {\n Vector vect = new Vector();\n final long modifier = 100;\n long sdArr[][] = { { 0, 10 }, { 0, 12 }, { 0, 8 }, { -5, 20 }, { -5, 13 }, { -5, 15 }, { -5, -7 }, { 2, 10 },\n { 2, 8 }, { 2, 2 }, { 12, 14 }, { -5, 5 }, { 10, 2 } };\n long sorted[][] = { { -5, -7 }, { 10, 2 }, { 2, 2 }, { -5, 5 }, { 0, 8 }, { 2, 8 }, { 0, 10 }, { 2, 10 },\n { 0, 12 }, { -5, 13 }, { 12, 14 }, { -5, 15 }, { -5, 20 } };\n\n patchArray(sdArr, modifier);\n patchArray(sorted, modifier);\n\n for (int i = 0; i < sdArr.length; i++)\n {\n vect.addElement(new RecordingImplMock(new Date(sdArr[i][0]), sdArr[i][1]));\n }\n RecordingList recordingList = new RecordingListImpl(vect);\n Comparator comparator = new Comparator();\n\n RecordingList newList = recordingList.sortRecordingList(comparator);\n\n assertNotNull(\"recordingList returned null\", newList);\n\n // check results\n LocatorRecordingSpec lrs = null;\n RecordingRequest req = null;\n\n int i = newList.size();\n for (i = 0; i < newList.size(); i++)\n {\n req = (RecordingRequest) newList.getRecordingRequest(i);\n lrs = (LocatorRecordingSpec) req.getRecordingSpec();\n assertEquals(\"sort criteria is wrong\", sorted[i][1], lrs.getDuration());\n }\n }", "private void sortDate()\n {\n for(int i = 0; i < movieList.size(); i++){\n for(int j = 1; j < movieList.size() - i; j++)\n {\n Movie a = movieList.get(j-1);\n Movie b = movieList.get(j);\n int result = a.getReleaseDate().compareTo(b.getReleaseDate());\n if( result < 0)\n {\n movieList.set(j-1, b);\n movieList.set(j, a);\n }\n else if(result == 0)\n {\n result = a.getTitle().compareTo(b.getTitle());\n if(result > 0)\n {\n movieList.set(j-1, b);\n movieList.set(j, a);\n }\n }\n }\n }\n }", "private static void sortingArrayList() {\n Collections.sort(allMapData, new Comparator<MapDataModel>() {\n public int compare(MapDataModel d1, MapDataModel d2) {\n return valueOf(d1.getDateTime().compareTo(d2.getDateTime()));\n }\n });\n }", "public double getSortTime() {\n return sortTime_;\n }", "public double getSortTime() {\n return sortTime_;\n }", "public int compareToTimestamp(long timestamp)\n {\n return Long.compare(divPosition, timestamp / size);\n }", "public int compare(TimeEntry t1, TimeEntry t2) {\n\t\t\t\t\treturn t1.getTime().compareTo(t2.getTime());\n\t\t\t\t//return 1;\n\t\t\t }", "public void sort() {\r\n for (int i = 0; i < namesOfApp.length && i < runTimeOfApp.length; i++) {\r\n for (int j = 0; j < i; j++) {\r\n if (runTimeOfApp[j] < runTimeOfApp[i]) {\r\n String tempName = namesOfApp[i];\r\n long tempRunTime = runTimeOfApp[i];\r\n namesOfApp[i] = namesOfApp[j];\r\n runTimeOfApp[i] = runTimeOfApp[j];\r\n namesOfApp[j] = tempName;\r\n runTimeOfApp[j] = tempRunTime;\r\n }\r\n }\r\n }\r\n\r\n }", "@Override\n\t\t\t\tpublic int compare(StatisticsItemData o1, StatisticsItemData o2) {\n\t\t\t\t\treturn o2.getDate().compareTo(o1.getDate());\n\t\t\t\t}", "@Override\n\tpublic int compareTo(Object o)\n\t{\n\t if(o instanceof Context)\n\t {\n\t \tif (timestamp==null || ((Context) o).timestamp==null)\n\t \t\treturn 0;\n\t return timestamp.compareTo(((Context) o).timestamp);\n\t }\n\t return 0;\n\t}", "public int compareTo(Event other){\n return other.timestamp.compareTo(timestamp);\n }", "@Then(\"the results should be sorted by most recent date\")\n public void the_results_should_be_sorted_by_most_recent_date() {\n int value= (new AccountActivityPage().dates.get(new AccountActivityPage().dates.size() - 1)).getText().compareTo((new AccountActivityPage().dates.get(0)).getText());\n\n Assert.assertTrue(value<0);\n\n }", "public Integer getTimeSort() {\n return timeSort;\n }", "public Comparator<PoiPoint> getPointStartTimeComparator() {\r\n \r\n class PointStartTimeComparator implements Comparator<PoiPoint> {\r\n public int compare(PoiPoint point1, PoiPoint point2) {\r\n return (point1.getStartTimeInt() - point2.getStartTimeInt());\r\n }\r\n }\r\n \r\n return new PointStartTimeComparator();\r\n }", "private void sortViewEntries() {\n runOnUiThread(new Runnable() {\n public void run() {\n try {\n Collections.sort(viewEntries, new DateComparator());\n } catch (final Exception ex) {\n // Log.i(\"sortViewEntries\", \"Exception in thread\");\n }\n }\n });\n }", "private void sortByDateOpen() { // sort in ascending order\n\t\tint numAccounts = size;\n\t\tDate firstDateOpen;\n\t\tDate secondDateOpen;\n\t\t\n\t\tfor (int i = 0; i < numAccounts-1; i++) {\n\t\t\t\n\t\t\t\n\t\t\tint min_idx = i;\n\t\t\t\n\t\t\t\n\t\t\tfor (int j = i+1; j < numAccounts; j++) {\n\t\t\t\t\n\t\t\t\t// Retrieve last name of two that you are comparing\n\t\t\t\tfirstDateOpen = accounts[j].getDateOpen();\n\t\t\t\tsecondDateOpen = accounts[min_idx].getDateOpen();\n\t\t\t\t\n\t\t\t\tif (firstDateOpen.compareTo(secondDateOpen) < 0) {\n\t\t\t\t\tmin_idx = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tAccount temp = accounts[min_idx];\n\t\t\taccounts[min_idx] = accounts[i];\n\t\t\taccounts[i] = temp;\n\t\t}\n\t\t\n\t}", "private static long sortingTime(String[] array, boolean isStandardSort) {\n long start = System.currentTimeMillis(); // starting time\n if (isStandardSort) \n Arrays.sort(array);\n selectionSort(array);\n return System.currentTimeMillis() - start; // measure time consumed\n }", "private static long sortingTime(double[] array, boolean isStandardSort) {\n long start = 0; // starting time\n if (isStandardSort) { \n start = System.currentTimeMillis(); \n Arrays.sort(array);\n } else {\t\n start = System.currentTimeMillis();\n selectionSort(array);\n }\n return System.currentTimeMillis() - start; // measure time consumed\n }", "public void sortGivenArray_date(){\n movieList = mergeSort(movieList);\n }", "private void sortByDateOpen() {\n //selection sort\n for (int i = 0; i < size - 1; i++) {\n int earliestDateIndex = i;\n for (int j = i + 1; j < size; j++)\n if (accounts[j].getDateOpen().compareTo(accounts[earliestDateIndex].getDateOpen()) < 0) {\n earliestDateIndex = j;\n }\n Account acc = accounts[earliestDateIndex];\n accounts[earliestDateIndex] = accounts[i];\n accounts[i] = acc;\n }\n }", "@Test(dependsOnMethods = \"verifyInvoiceSortTest\")\r\n\tpublic void verifySchedDateSortTest() throws InterruptedException {\n\t\tcarrierschedulepayment.clickschdateColumn();\r\n\t\t// click first row to expand\r\n\t\tcarrierschedulepayment.clickFirstRow();\r\n\t\t// get the data elements from the first row displayed\r\n\t\tfirstRowData = carrierschedulepayment.getFirstRowData();\r\n\t\tAssert.assertTrue(firstRowData.size() > 0, \"No data rows found when sorting by date\");\r\n\t\t// click LoadID Column to change sort from ascending to descending\r\n\t\tcarrierschedulepayment.clickschdateColumn();\r\n\t\t// click first row to expand\r\n\t\tcarrierschedulepayment.clickFirstRow();\r\n\t\t// get the data elements from the first row displayed\r\n\t\tlastRowData = carrierschedulepayment.getFirstRowData();\r\n\t\t// compare to the database when sorted by given column-Descending\r\n\t\t// if (carrierschedulepayment.getRowCount() > 1)\r\n\t\t// Assert.assertNotEquals(firstRowData, lastRowData,\r\n\t\t// \"First Row Data: \\n\" + firstRowData + \"\\nLast Row Data: \\n\" + lastRowData);\r\n\t}", "private static boolean isInOrderTimestamp(\n long timestamp,\n long prevTimestamp)\n {\n long timestampDiff = timestamp - prevTimestamp;\n\n // Assume that a diff this big must be due to reordering. Don't update\n // with reordered samples.\n return (timestampDiff < 0x80000000L);\n }", "public void timSort(int[] nums) {\n\t\t\t\n\t}", "boolean hasOrderByDay();", "@Override\n\tpublic int compareTo(Time t) {\n\t\tif (this.getIndex() < t.getIndex())\n\t\t\treturn 1;\n\t\telse if (this.getIndex() == t.getIndex())\n\t\t\treturn 0;\n\t\telse\n\t\t\treturn -1;\n\t}", "@Override\n public int compareTo(Record otherRecord) {\n return (int) (otherRecord.mCallEndTimestamp - mCallEndTimestamp);\n }", "@Test\n public void sortByCreationDateASC_ReturnTrue() {\n // Set SharedPreferences (Sort by Creation Date, ASC)\n mSharedPreferences.edit()\n .putInt(Constants.SORT_TYPE_KEY, Constants.SORT_TYPE_CREATION_DATE)\n .putBoolean(Constants.SORT_FAVORITES_ON_TOP_KEY, false)\n .putInt(Constants.SORT_DIRECTION_KEY, Constants.SORT_DIRECTION_ASC)\n .commit();\n\n // Click first position in RecyclerView\n onView(withId(R.id.fragment_notelist_recyclerview))\n .perform(RecyclerViewActions.actionOnItemAtPosition(0, click()));\n\n // Check that clicked Note matches Note (3) title/text\n onView(withId(R.id.fragment_note_title_edittext))\n .check(matches(withText(is(StringUtil.setFirstCharUpperCase(TestHelper.NOTE_3_TITLE)))));\n// onView(withId(R.id.fragment_note_text_textview))\n// .check(matches(withText(is(StringUtil.setFirstCharUpperCase(TestHelper.NOTE_3_TEXT)))));\n }", "public List<SortedArrayInfo> sortHistory();", "void updateSortingComparators(Comparator<ReadOnlyEntry> eventComparator,\n Comparator<ReadOnlyEntry> deadlineComparator,\n Comparator<ReadOnlyEntry> floatingTaskComparator);", "public void setSortOnCPUTime() {\n this.sortedJobList = new TreeSet<Job>(new Comparator<Job>() {\n @Override\n public int compare(Job a, Job b) {\n\n int aCPUUsed = 0;\n int bCPUUsed = 0;\n\n try {\n aCPUUsed = a.getCPUUsed();\n bCPUUsed = b.getCPUUsed();\n } catch (AS400SecurityException e) {\n e.printStackTrace();\n } catch (ErrorCompletingRequestException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ObjectDoesNotExistException e) {\n e.printStackTrace();\n }\n\n if (aCPUUsed == bCPUUsed) return 0;\n else return bCPUUsed - aCPUUsed;\n }\n });\n }", "private void sortByDateOpen() {\r\n\t\tfor ( int i = 0; i < size-1; i++ ) {\r\n\t\t\tint minIndex = i; \r\n\t\t\tfor ( int j = i + 1; j < size; j++) { \r\n\t\t\t\t//returns -1 if the date is less than\r\n\t\t\t\tif ( accounts[j].getDateOpen().compareTo(accounts[minIndex].getDateOpen()) == -1 ) {\r\n\t\t\t\t\tminIndex = j;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tAccount temp = accounts[minIndex];\r\n\t\t\taccounts[minIndex] = accounts[i];\r\n\t\t\taccounts[i] = temp;\r\n\t\t}\r\n\t\treturn;\r\n\t}", "@Test\n public void testSort() {\n topScreenModel.setSortFieldAndFields(Field.LOCALITY, fields);\n\n FieldValue previous = null;\n\n // Test for ascending sort\n topScreenModel.refreshMetricsData();\n\n for (Record record : topScreenModel.getRecords()) {\n FieldValue current = record.get(Field.LOCALITY);\n if (previous != null) {\n assertTrue(current.compareTo(previous) < 0);\n }\n previous = current;\n }\n\n // Test for descending sort\n topScreenModel.switchSortOrder();\n topScreenModel.refreshMetricsData();\n\n previous = null;\n for (Record record : topScreenModel.getRecords()) {\n FieldValue current = record.get(Field.LOCALITY);\n if (previous != null) {\n assertTrue(current.compareTo(previous) > 0);\n }\n previous = current;\n }\n }", "@Test\n public void testFail(){\n List<StoryPart> storyParts = new ArrayList<>();\n StoryPart a = new StoryPart(LocalTime.of(0, 2), null, null, StoryEvent.HALF_TIME_A_END, StoryTitle.create(\"halftime 1 end\"),\n StoryDescription.create(\"halftime 2 end\"));\n StoryPart b = new StoryPart(LocalTime.of(0, 3), null, GameMinute.create(\"2.\"), StoryEvent.GOAL, StoryTitle.create(\"Goal 2\"),\n StoryDescription.create(\"goal 2\"));\n StoryPart c = new StoryPart(LocalTime.of(0, 1), null, GameMinute.create(\"1.\"), StoryEvent.YELLOW_CARD,\n StoryTitle.create(\"yellow card 1\"), StoryDescription.create(\"yellow card 1\"));\n storyParts.add(a);\n storyParts.add(b);\n storyParts.add(c);\n\n Collections.shuffle(storyParts);\n storyParts.sort(new StoryPartTimeLineComparator());\n List<StoryPart> sortA = new ArrayList<>(storyParts);\n Collections.shuffle(storyParts);\n storyParts.sort(new StoryPartTimeLineComparator());\n List<StoryPart> sortB = new ArrayList<>(storyParts);\n Collections.shuffle(storyParts);\n storyParts.sort(new StoryPartTimeLineComparator());\n List<StoryPart> sortC = new ArrayList<>(storyParts);\n\n assertEquals(sortA.get(0), sortB.get(0));\n assertEquals(sortA.get(0), sortC.get(0));\n\n assertEquals(sortA.get(1), sortB.get(1));\n assertEquals(sortA.get(1), sortC.get(1));\n\n assertEquals(sortA.get(2), sortB.get(2));\n assertEquals(sortA.get(2), sortC.get(2));\n\n }", "@Test\n public void testShipment_Sorted_By_Date() {\n List<Widget> widgets = shipment.getWidgetsSortedByDate();\n assertNotNull(widgets);\n assertTrue(widgets.size() == 10);\n Widget widget1 = (Widget) widgets.get(0);\n Widget widget2 = (Widget) widgets.get(1);\n assertTrue(widget1.getColor().compareTo(widget2.getColor()) <= 0);\n }", "@Test\n public void testSort() {\n initialize();\n var realList = new HighScoreList();\n realList.setList(list);\n realList.sort();\n\n assertEquals(300, realList.getList().get(0).getScore());\n assertEquals(200, realList.getList().get(1).getScore());\n assertEquals(100, realList.getList().get(2).getScore());\n }", "public static void sortActivities() {\n Activity.activitiesList.sort(new Comparator<Activity>() {\n @Override\n public int compare(Activity activity, Activity t1) {\n if (activity.getStartTime().isAfter(t1.getStartTime())) {\n return 1;\n }\n else if (activity.getStartTime().isBefore(t1.getStartTime())){\n return -1;\n }\n else {\n return 0;\n }\n }\n });\n }", "public void sortAppointments() {\n reminders = sort(reminders);\n followup = sort(followup);\n }", "@Test(priority = 7)\n\tpublic void validateSortingByDate() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"Validating the Sorting functionality\");\n\t\tHeroImageProductPageFlow.selectSortingDropdown(0, locator);\n\t\theroImg.validateDate(1, locator, validate);\n\t\tHeroImageProductPageFlow.selectSortingDropdown(1, locator);\n\t\theroImg.validateDate(2, locator, validate);\n\t\tlog.info(\"sorting is correct\");\n\t}", "public void timSort(int[] nums) {\n\n\t}", "public void setTimeSort(Integer timeSort) {\n this.timeSort = timeSort;\n }", "List<Candlestick> findTop2ByOrderByTimestampDesc();", "public void sortBasedPendingJobs();", "@Test\n\tpublic void reorderIfOldestIsFirst() throws IOException {\n\t\tZonedDateTime now = ZonedDateTime.now();\n\n\t\tFile firstFile = File.createTempFile(\"junit\", null);\n\t\tFile secondFile = File.createTempFile(\"junit\", null);\n\t\tfirstFile.setLastModified(now.minus(1, ChronoUnit.DAYS).toEpochSecond());\n\t\tsecondFile.setLastModified(now.toEpochSecond());\n\n\t\tFileTuple firstTuple = new FileTuple(firstFile, firstFile);\n\t\tFileTuple secondTuple = new FileTuple(secondFile, secondFile);\n\n\t\tassertThat(COMPARATOR.compare(firstTuple, secondTuple)).isPositive();\n\t}", "@Override\n\tpublic List<Listing> findAllSortedByTime() {\n\t\treturn theListingRepo.findAll(Sort.by(Direction.DESC, \"dateUploaded\"));\n\t}", "public List<DataValue> getDataListByDeviceIdAndSensorTypeAndDateSortedByTimestamp(DataValue dataVal) throws Exception;", "public ArrayList<Question> getQuestionsSortedByDate() {\n \t\tArrayList<Question> sortedQuestions = this.getQuestions();\n \n \t\tCollections.sort(sortedQuestions, new DateComparator());\n \n \t\treturn sortedQuestions;\n \t}", "private void sortDateList(List<Date> dateList) {\n Collections.sort(dateList);\n }", "private void sort() {\n ScoreComparator comparator = new ScoreComparator();\n Collections.sort(scores, comparator);\n }", "@Override\n\tpublic int compareTo(ParsedURLInfo o) {\n\t\treturn this.seqTime.compareTo(o.getSeqTime());\n\t}", "@Override\n\tpublic double sort() {\n\t\tlong startTime = System.nanoTime();\n\t\tArrayList<Offender> offenders = Offender.readArrayListCSV();\n\t\tCollections.sort(offenders, (a, b) -> ((Offender) a).getAge() < ((Offender) b).getAge() ? -1 : ((Offender) a).getAge() == ((Offender) b).getAge() ? 0 : 1);\n\t\tlong endTime = System.nanoTime();\n\t\tlong duration = (endTime - startTime); \n\t\tdouble seconds = (double)duration / 1_000_000_000.0;\n\t\t\n\t\treturn seconds;\n\t}", "public static List<Sample> sortResults(final Map<Long, Sample> map, final Integer currentOffsetMillis) {\n\n final Sample[] samples = map.values().toArray(new Sample[0]);\n Arrays.sort(samples, new Comparator<Sample>() {\n @Override\n public int compare(Sample o1, Sample o2) {\n return Long.compare(o1.dateTime, o2.dateTime);\n }\n });\n\n int lastOffsetMillis = -1;\n for(final Sample sample : samples) {\n if(sample.offsetMillis == null) {\n if(lastOffsetMillis == -1) {\n sample.offsetMillis = currentOffsetMillis;\n } else {\n sample.offsetMillis = lastOffsetMillis;\n }\n }\n\n lastOffsetMillis = sample.offsetMillis;\n }\n return Lists.newArrayList(samples);\n }", "public void sort() // sort according to primary key defined in RecordTemplate\n\t{\n\t\trecordList.sort((Record r1, Record r2)->r1.getValue(PRIMARY_KEY_FIELD_INDEX).compareTo(r2.getValue(PRIMARY_KEY_FIELD_INDEX))); \n //recordList.forEach((r)->System.out.println(r)); \n\t}", "public static void main(String[] args) {\n\t\tList<StatetostateDetail> list = new ArrayList<StatetostateDetail>();\n\t\tfor(int i = 1; i < 16; i++){\n\t\t\tStatetostateDetail s = new StatetostateDetail();\n\t\t\ts.setId(i);\n\t\t\ts.setStatue(0);\n\t\t\ts.setTime(System.currentTimeMillis() + (i + i * 100));\n\t\t\tlist.add(s);\n\t\t}\n\t\tlist.get(3).setStatue(1);\n\t\tlist.get(5).setStatue(1);\n\t\tlist.get(10).setStatue(1);\n\t\tlist.get(14).setStatue(1);\n\t\tlist.get(7).setStatue(2);\n\t\tlist.get(9).setStatue(2);\n\t\tSystem.out.println(\"list:\" + list);\n\t\n\t\t\n\t\tCollections.sort(list, new Comparator<StatetostateDetail>(){\n public int compare(StatetostateDetail s1, StatetostateDetail s2) {\n \tLong t1 = null;\n \tLong t2 = null;\n \ttry{\n \t\tt1 = s1.getTime();\n\t \tt2 = s2.getTime();\n \t}catch(Exception e){\n \t\te.printStackTrace();\n \t}\n \n return t2.compareTo(t1);\n }\n });\n\t\tCollections.sort(list, new Comparator<StatetostateDetail>(){\n public int compare(StatetostateDetail s1, StatetostateDetail s2) {\n \treturn s1.getStatue()>s2.getStatue()?1:(s1.getStatue()==s2.getStatue()?0:(s2.getTime()>s1.getTime()?-1:0));\n }\n });\n\t\t\n\t\tSystem.out.println(\"list:\" + list);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "@Override\r\n\t\t\t\tpublic int compare(Comparendo o1, Comparendo o2) \r\n\t\t\t\t{\n\t\t\t\t\treturn o1.fechaHora.compareTo(o2.fechaHora);\r\n\t\t\t\t}", "@Override\n public int compare(Task task1, Task task2) {\n return task1.getDate().compareTo(task2.getDate());\n }", "@Override\n public Sort getDefaultSort() {\n return Sort.add(SiteConfineArea.PROP_CREATE_TIME, Direction.DESC);\n }", "public static void main(String[] args) throws ParseException {\n HashMap<Date, String> hmap = new HashMap<Date, String>();\n /* hmap.put(5, \"A\");\n hmap.put(11, \"C\");\n hmap.put(4, \"Z\");\n hmap.put(662, \"Y\");\n hmap.put(9, \"P\");\n hmap.put(661, \"Q\");\n hmap.put(0, \"R\");*/\n \n Date date = new Date();\n \n SimpleDateFormat ft = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\");\n\t//format.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n\tString dat = \"2017-06-05T08:07:34.000Z\";\n\tString dats = \"2017-06-05T21:07:34.012Z\";\n\tDate datesss = ft.parse(dat);\n\tDate da = ft.parse(dats);\n\tSystem.out.println(\"ok fine :\"+ft.format(datesss));\n hmap.put(datesss,\"u\");\n hmap.put(da,\"l\");\n\n System.out.println(\"Before Sorting:\");\n Set set = hmap.entrySet();\n Iterator iterator = set.iterator();\n while(iterator.hasNext()) {\n Map.Entry me = (Map.Entry)iterator.next();\n System.out.print(me.getKey() + \": \");\n System.out.println(me.getValue());\n }\n Map<Date, String> map = new TreeMap<Date, String>(hmap); \n String ab = map.get(map.keySet().toArray()[0]);\n\n/*Date firstKey = (Date) map.keySet().toArray()[0];\nString valueForFirstKey = map.get(firstKey);\n System.out.println(firstKey);\n System.out.println(valueForFirstKey);*/\n System.out.println(\"After Sorting:\");\n Set set2 = map.entrySet();\n Iterator iterator2 = set2.iterator();\n while(iterator2.hasNext()) {\n Map.Entry me2 = (Map.Entry)iterator2.next();\n System.out.print(me2.getKey() + \": \");\n System.out.println(me2.getValue());\n }\n System.out.println(\"#######################################################\");\n /* Map<Date, String> mat = new TreeMap<Date, String>(new Comparator<Date>() {\n public int compare(Date d1, Date d2) {\n return d1.after(d2) ? 1 : -1;\n }\n });*/\n \n Map<Long, String> mat = new TreeMap<Long, String>();\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\");\n Date d1 = dateFormat.parse(\"2017-06-05T08:07:34.000Z\");\n Date d2 = dateFormat.parse(\"2017-06-05T21:07:34.000Z\");\n Date d3 = dateFormat.parse(\"2021-04-12T21:10:25.000Z\");\n \n// String firstKey = (String) mat.keySet().toArray()[0];\n//\tString valueForFirstKey = (String) mat.get(firstKey);\n\tlong epocha = new java.text.SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\").parse(\"2017-06-05T08:07:34.000Z\").getTime() / 1000;\n\tlong epochb = new java.text.SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\").parse(\"2008-06-05T21:07:34.000Z\").getTime() / 1000;\n\tlong epochc = new java.text.SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\").parse(\"2015-01-07T20:57:40.000Z\").getTime() / 1000;\n\tlong epochd = new java.text.SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\").parse(\"2015-01-30T00:32:20.000Z\").getTime() / 1000;\n\t\n\tmat.put(epocha, \"s2\");\n mat.put(epochb, \"s1\");\n mat.put(epochc, \"s3\");\n mat.put(epochd,\"s4\");\n\t\n\tSystem.out.println(\"epoch:\"+epocha);\n\tSystem.out.println(\"epocha:\"+epochb);\n\tSystem.out.println(\"epochc:\"+epochc);\n\tSystem.out.println(\"epochd:\"+epochd);\n//\tSystem.out.println(firstKey);\n//\tSystem.out.println(valueForFirstKey);\n \n System.out.println(mat );\n \n \n \n \n /* System.out.println(map.size());\n int firstKey1 = (Integer) map.keySet().toArray()[6];\n System.out.println(\"firstKey1:\"+firstKey1);\n\tString valueForFirstKey2 = (String) map.get(firstKey1);\n\tSystem.out.println(\"valueForFirstKey2 :\"+valueForFirstKey2);*/\n}", "public static void main(String[] args) {\n\t\tint arr[] = {20,35,-15,-15,7,55,1,-22};\n//\t\tint arr[] = {7,4,8,2};\n\n\t\tTimestamp timestamp = new Timestamp(System.currentTimeMillis());\n System.out.println(timestamp);\n\t\tfor(int gap = arr.length/2 ; gap >0 ; gap = gap/2)\n\t\t{\n\n\t\t\tfor(int i = gap ; i < arr.length;i++)\n\t\t\t{\n\t\t\t\tint key = arr[i];\n\t\t\t\tint j = i;\n\n\n\t\t\t\twhile(j>= gap && arr[j- gap] > key)\n\t\t\t\t{\n\t\t\t\t\tarr[j] = arr[j - gap];\n\t\t\t\t\tj = j- gap;\n\t\t\t\t}\n\t\t\t\tarr[j] = key;\n\t\t\t}\n\n\t\t}\n\t\tTimestamp timestamp1 = new Timestamp(System.currentTimeMillis());\n System.out.println(timestamp1);\n\t\t\n\t\tprint(arr);\n\t}", "public static JwComparator<AcGlobalDevice> getCreatedUtcTsComparator()\n {\n return AcGlobalDeviceTools.instance.getCreatedUtcTsComparator();\n }", "public void sortEventsByValue() {\n for (OrgEvent event : events) {\n event.setCompareByTime(false);\n }\n Collections.sort(events);\n }", "public static void printAllEventListInSortedOrder(){\n sortEvents();\n for(int i=0;i<events.size();i++){\n System.out.println((events.get(i).getMonth()+1)+\"/\"+events.get(i).getDate()+\"/\"+events.get(i).getYear()+\" \"+events.get(i).getStringStartandFinish()+\" \"+events.get(i).getEventTitle());\n }\n }", "public static JwComparator<AcWebServiceRequestData> getCreatedUtcTsComparator()\n {\n return AcWebServiceRequestDataTools.instance.getCreatedUtcTsComparator();\n }", "public void sortEvents() {\n\t\tCollections.sort(events);\n\t}", "@Override\n public int compareTo(Record o) {\n if (this.result - o.result > 0) {\n return 1;\n } else if (this.result - o.result < 0) {\n return -1;\n } else {\n // press time: the less, the better.\n if (this.pressTime < o.pressTime) {\n return 1;\n } else if (this.pressTime > o.pressTime) {\n return -1;\n } else {\n // total times: the more, the better.\n if (this.totalTimes > o.totalTimes) {\n return 1;\n } else if (this.totalTimes < o.totalTimes) {\n return -1;\n }\n return 0;\n }\n }\n }", "protected int compareTime(Date first, Date second) {\n\t\treturn first.compareTo(second);\n\t}", "public int compare(TimeSpan std1, TimeSpan std2) {\n\t\t\t//ascending order\n\t\t\treturn std1.start - std2.start;\n\t\t}", "public void sortByDate(){\n output.setText(manager.display(true, \"date\"));\n }", "public void sortBasedYearService();", "public ArrayList<ArrayList<String>> inputTestListAndSort (ArrayList<ArrayList<String>> testList){\n ArrayList<ArrayList<String>> testList1=new ArrayList<>(testList);\n Collections.sort(testList1, new SubClass_CompareItemsInTheRowsOfTheTimetable_in_TeachingOverlapAndHours());\n return testList1;\n }", "@Override\r\n\t\tpublic int compareTo(Event compareEvent){\r\n\t\t\t\r\n\t\t\tint compareQuantity = ((Event)compareEvent).date;\r\n\t\t\t//ascending order\r\n\t\t\treturn this.date-compareQuantity;\r\n\t\t\t//descending order\r\n\t\t\t//return compareQuantity -this.quantity;\r\n\t\t}", "private GeofenceInfoContent[] sortByDate(GeofenceInfoContent[] geofenceInfoContents){\n GeofenceInfoContent infoContent = null;\n for(int j = 0; j < geofenceInfoContents.length; j++) {\n for (int i = 0; i < geofenceInfoContents.length; i++) {\n infoContent = geofenceInfoContents[i];\n if (i < geofenceInfoContents.length - 1) {\n String year1 = infoContent.getYear();\n String year2 = geofenceInfoContents[i + 1].getYear();\n int year1Int = Integer.parseInt(year1);\n int year2Int = Integer.parseInt(year2);\n if (year1Int < year2Int) {\n geofenceInfoContents[i] = geofenceInfoContents[i + 1];\n geofenceInfoContents[i + 1] = infoContent;\n }\n }\n }\n }\n return geofenceInfoContents;\n }", "public ArrayList<Question> getQuestionsSortedByLastChangedDate() {\n \t\tArrayList<Question> sortedQuestions = this.getQuestions();\n \n \t\tCollections.sort(sortedQuestions, new ChangedDateComparator());\n \n \t\treturn sortedQuestions;\n \t}", "@Override\n public int compareTo(Booking other) {\n // Push new on top\n other.updateNewQuestion(); // update NEW button\n this.updateNewQuestion();\n\n\n String[] arr1 = other.time.split(\":\");\n String[] arr2 = this.time.split(\":\");\n// Date thisDate = new Date(this.getCalendarYear(), this.getCalendarMonth(), this.getCalendarDay(), Integer.getInteger(arr2[0]), Integer.getInteger(arr2[1]));\n// if (this.newQuestion != other.newQuestion) {\n// return this.newQuestion ? 1 : -1; // this is the winner\n// }\n\n\n if (this.calendarYear == other.calendarYear) {\n if (this.calendarMonth == other.calendarMonth) {\n if (this.calendarDay == other.calendarDay) {\n if (Integer.parseInt(arr2[0]) == Integer.parseInt(arr1[0])) { // hour\n if (Integer.parseInt(arr2[1]) == Integer.parseInt(arr1[1])) { // minute\n return 0;\n } else {\n return Integer.parseInt(arr1[1]) > Integer.parseInt(arr2[1]) ? -1 : 1;\n }\n } else {\n return Integer.parseInt(arr1[0]) > Integer.parseInt(arr2[0]) ? -1 : 1;\n }\n }\n else\n return other.calendarDay > this.calendarDay ? -1 : 1;\n }\n else\n return other.calendarMonth > this.calendarMonth ? -1 : 1;\n }\n else\n return other.calendarYear > this.calendarYear ? -1 : 1;\n\n\n// if (this.echo == other.echo) {\n// if (other.calendarMonth == this.calendarMonth) {\n// return 0;\n// }\n// return other.calendarMonth > this.calendarMonth ? -1 : 1;\n// }\n// return this.echo - other.echo;\n }", "@Override\n public void onSortByDate() {\n mSorter.sortLocationsByDate(mListLocations);\n mAdapter.notifyDataSetChanged();\n }", "public void sortCustomerList(List<Customer> customers){\n Collections.sort(customers, new Comparator<Customer>() {\n @Override public int compare(Customer c1, Customer c2) {\n int r = 0;\n try {\n r = TimeUtils.convertTimeStampToMilli(c1.getExpectedTime()).compareTo(TimeUtils.convertTimeStampToMilli(c2.getExpectedTime()));\n } catch (ParseException e) {\n e.printStackTrace();\n Toast.makeText(mContext, mContext.getResources().getString(R.string.parseError), Toast.LENGTH_LONG).show();\n\n }\n return r;\n }\n\n });\n }", "public void sortHub(List<Page> result) {\n\t\tCollections.sort(result, new Comparator<Page>() {\n\t\t\tpublic int compare(Page p1, Page p2) {\n\t\t\t\t// Sorts by 'TimeStarted' property\n\t\t\t\treturn p1.hub < p2.hub ? -1 : p1.hub > p2.hub ? 1 : secondaryOrderSort(p1, p2);\n\t\t\t}\n\n\t\t\t// If 'TimeStarted' property is equal sorts by 'TimeEnded' property\n\t\t\tpublic int secondaryOrderSort(Page p1, Page p2) {\n\t\t\t\treturn p1.getLocation().compareToIgnoreCase(p2.getLocation()) < 1 ? -1\n\t\t\t\t\t\t: p1.getLocation().compareToIgnoreCase(p2.getLocation()) > 1 ? 1 : 0;\n\t\t\t}\n\t\t});\n\t}", "public static List<FlickrFeedResponse.Item> sortByDateTaken(List<FlickrFeedResponse.Item> list){\n\n Collections.sort(list, new FlickrFeedResponse.Item.DateTakenComparator());\n\n return list;\n }", "@Override\n public int compareTo(Delayed o) {\n DelayedElement de = (DelayedElement) o;\n if (insertTime < de.getInsertTime())\n return -1;\n if (insertTime > de.getInsertTime())\n return 1;\n\n return 0;\n }", "public void sortFinalsList() {\n \n Course course = null;\n int j = 0;\n for (int i = 1; i < finalsList.size(); i++) {\n\n j = i;\n // checks to see if the start time of the element j is less than the\n // previous element, and if j > 0\n while (j > 0) {\n\n // if the current element, is less than the previous, then....\n if (finalsList.get(j).getDate()\n .compareTo(finalsList.get(j - 1).getDate()) < 0) {\n\n // if so, swap the two\n course = finalsList.get(j);\n finalsList.set(j, finalsList.get(j - 1));\n finalsList.set(j - 1, course);\n }\n else if (finalsList.get(j).getDate()\n .compareTo(finalsList.get(j - 1).getDate()) == 0) {\n \n if (compareTimes(finalsList.get(j).getBeginTime(), finalsList.get(j - 1).getBeginTime()) < 0) {\n \n // if so, swap the two\n course = finalsList.get(j);\n finalsList.set(j, finalsList.get(j - 1));\n finalsList.set(j - 1, course);\n }\n }\n\n // decrement j\n j--;\n }\n }\n }", "public void sortAuthority(List<Page> result) {\n\t\tCollections.sort(result, new Comparator<Page>() {\n\t\t\tpublic int compare(Page p1, Page p2) {\n\t\t\t\t// Sorts by 'TimeStarted' property\n\t\t\t\treturn p1.hub < p2.hub ? -1 : p1.hub > p2.hub ? 1 : secondaryOrderSort(p1, p2);\n\t\t\t}\n\n\t\t\t// If 'TimeStarted' property is equal sorts by 'TimeEnded' property\n\t\t\tpublic int secondaryOrderSort(Page p1, Page p2) {\n\t\t\t\treturn p1.getLocation().compareToIgnoreCase(p2.getLocation()) < 1 ? -1\n\t\t\t\t\t\t: p1.getLocation().compareToIgnoreCase(p2.getLocation()) > 1 ? 1 : 0;\n\t\t\t}\n\t\t});\n\t}", "@Override\r\n\tpublic int compareTo(RSS o) {\r\n\t\treturn o.getCreatedDate().compareTo(this.getCreatedDate());\r\n\t}", "public void sort() {\n }", "@Test\n\tpublic void testLLSort() {\n\t\tLinkedList playerList = new LinkedList();\n\t\tPlayer tempInsert5 = new Player();\n\t\ttempInsert5.setName(\"test5\");\n\t\ttempInsert5.setPoints(5);\n\t\ttempInsert5.setWins(4);\n\t\ttempInsert5.setLosses(3);\n\t\tplayerList.LLInsert(tempInsert5);\n\t\tplayerList.LLPrint();\n\t\t\n\t\tPlayer tempInsert2 = new Player();\n\t\ttempInsert2.setName(\"test2\");\n\t\ttempInsert2.setPoints(2);\n\t\ttempInsert2.setWins(1);\n\t\ttempInsert2.setLosses(0);\n\t\tplayerList.LLInsert(tempInsert2);\n\t\t\n\t\tPlayer tempInsert3 = new Player();\n\t\ttempInsert3.setName(\"test3\");\n\t\ttempInsert3.setPoints(3);\n\t\ttempInsert3.setWins(2);\n\t\ttempInsert3.setLosses(1);\n\t\tplayerList.LLInsert(tempInsert3);\n\t\t\n\t\tPlayer tempInsert1 = new Player();\n\t\ttempInsert1.setName(\"test1\");\n\t\ttempInsert1.setPoints(1);\n\t\ttempInsert1.setWins(0);\n\t\ttempInsert1.setLosses(0);\n\t\tplayerList.LLInsert(tempInsert1);\n\t\tplayerList.LLPrint();\n\t\t\n\t\tPlayer tempInsert4 = new Player();\n\t\ttempInsert4.setName(\"test4\");\n\t\ttempInsert4.setPoints(4);\n\t\ttempInsert4.setWins(3);\n\t\ttempInsert4.setLosses(2);\n\t\tplayerList.LLInsert(tempInsert4);\n\t\tplayerList.LLPrint();\n\t\t\n\t\tplayerList.LLSort();\n\t\tassertEquals(playerList.LLPrint(), \n\t\t\t\t\"test5: Points: 5, Wins/Losses: 4/3\\n\"\n\t\t\t\t\t\t+ \"test4: Points: 4, Wins/Losses: 3/2\\n\"\n\t\t\t\t\t\t+ \"test3: Points: 3, Wins/Losses: 2/1\\n\"\n\t\t\t\t\t\t+ \"test2: Points: 2, Wins/Losses: 1/0\\n\"\n\t\t\t\t\t\t+ \"test1: Points: 1, Wins/Losses: 0/0\\n\");\n\t}", "@Test\n\tpublic void testAssociatorSort() throws Exception {\n\t\t// add out of order to events list\n\t\tJsonEventInfoComparatorTest comparatorTest = new JsonEventInfoComparatorTest();\n\t\tcomparatorTest.setup();\n\t\ttestService.events.add(comparatorTest.farEvent);\n\t\ttestService.events.add(comparatorTest.fartherEvent);\n\t\ttestService.events.add(comparatorTest.closeEvent);\n\n\t\tJsonEventInfo reference = new JsonEventInfo(comparatorTest.referenceEvent);\n\t\tList<JsonEventInfo> sorted = testAssociator.getSortedNearbyEvents(\n\t\t\t\treference, null);\n\t\tAssert.assertEquals(\"closest event first\",\n\t\t\t\tcomparatorTest.closeEvent, sorted.get(0).getEvent());\n\t\tAssert.assertEquals(\"farther event last\",\n\t\t\t\tcomparatorTest.fartherEvent,\n\t\t\t\tsorted.get(testService.events.size() - 1).getEvent());\n\n\t\tSystem.err.println(testAssociator.formatOutput(reference, null, sorted));\n\t}", "private void sortMedApts(List<MedicationAppointment> medApts2) {\n \t}", "@Override\n\t\tpublic int compareTo(Job j)\n\t\t{\n\t\t\tJob job = j;\n\t\t\tif (this.getRunTime() < job.getRunTime()) {\n\t\t\t\treturn -1;\n\t\t\t} \n\t\t\treturn 1;\n\t\t}", "private static void sortEventsByTokenIndex(Row row) {\n Collections.sort(row.getEvents(), new Comparator<GridEvent>() {\n @Override\n public int compare(GridEvent o1, GridEvent o2) {\n if (o1 == o2) {\n return 0;\n }\n if (o1 == null) {\n return -1;\n }\n if (o2 == null) {\n return +1;\n }\n\n return ((Integer) o1.getLeft()).compareTo(o2.getLeft());\n }\n });\n }" ]
[ "0.7125881", "0.66986173", "0.6631409", "0.65547633", "0.6491772", "0.6438111", "0.6332725", "0.6332409", "0.63149405", "0.6313081", "0.62878734", "0.6214716", "0.6156489", "0.6071687", "0.604171", "0.60223144", "0.5889943", "0.5860588", "0.5817302", "0.5813574", "0.56993467", "0.5692555", "0.5682836", "0.56524915", "0.5640574", "0.5633909", "0.56337494", "0.5628165", "0.560733", "0.5602975", "0.5601884", "0.5600229", "0.55975854", "0.5571262", "0.5560389", "0.55589634", "0.55588454", "0.5544596", "0.55416137", "0.55398154", "0.5533185", "0.55254674", "0.55130893", "0.55128336", "0.5508333", "0.5505209", "0.5500848", "0.549516", "0.5494906", "0.54947793", "0.54922944", "0.5472744", "0.54592407", "0.54525036", "0.54442084", "0.5439769", "0.54155576", "0.5411758", "0.5408356", "0.54017884", "0.5396829", "0.53964734", "0.53944564", "0.53880584", "0.538629", "0.5377896", "0.5375588", "0.5359357", "0.5357125", "0.5349882", "0.5340064", "0.5337276", "0.5321118", "0.53115994", "0.5306541", "0.53064656", "0.53033066", "0.5297608", "0.52951443", "0.528875", "0.52880126", "0.52601516", "0.52367413", "0.5232884", "0.523157", "0.52203363", "0.52137506", "0.52081645", "0.52050537", "0.51966685", "0.51924086", "0.51916635", "0.51909363", "0.51887864", "0.5180677", "0.5179591", "0.5172271", "0.51677495", "0.516597", "0.5162388" ]
0.62851655
11
Sort by origin distance test
@Test public void testGetShapesSortedByOriginDistance() { List<Shape> expectedOutput = new ArrayList<Shape>(); expectedOutput.add(circle); expectedOutput.add(square); expectedOutput.add(rectangle); expectedOutput.add(triangle); expectedOutput.add(regularPolygon); List<Shape> actualOutput = screen.sortShape(SortType.ORIGIN_DISTANCE); assertEquals(expectedOutput, actualOutput); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sortDistHelper(Vector<Restaurant> vec, double origin_lat, double origin_long) {\n for (int i = 1; i < vec.size(); i++) {\n int j = i - 1;\n Restaurant key = vec.get(i);\n while (j >= 0 && !vec.get(j).compareDistance(key, origin_lat, origin_long)) {\n Restaurant temp = vec.remove(j + 1);\n vec.add(j, temp);\n j--;\n }\n }\n }", "@Override\n\t\t public int compare(Map<String, Object> o1,Map<String, Object> o2) {\n\t\t\t int countO1 = Integer.valueOf(o1.get(\"count\").toString());\n\t\t\t int countO2 = Integer.valueOf(o2.get(\"count\").toString());\n\t\t\t double distanceO1 = Double.valueOf(o1.get(\"distance\").toString());\n\t\t\t double distanceO2 = Double.valueOf(o2.get(\"distance\").toString());\n\t\t\t\t\t\n\t\t\t //先排距离,再排接单数\n\t\t\t if(distanceO1 < distanceO2){\n\t\t\t\t return -1;\n\t\t\t }else if(countO1 < countO2){\n\t\t\t\t return -1;\n\t\t\t }else return 0;\n\t\t }", "@Override\n public int compare(UserData o1, UserData o2) {\n if (\"Distance\".equals(sort)) {\n return calcDistanceToMatch(o1) > calcDistanceToMatch(o2) ? 1 : -1;\n\n } else {\n return calcSchedulePercentage(o1) < calcSchedulePercentage(o2) ? 1 : -1;\n }\n }", "@Test\n public void testDistanceTo() {\n System.out.println(\"Testing distanceTo() for a range of different GPS coordinates\");\n double distancesExpected[] = {\n 786.3,\n 786.3,\n 786.3,\n 786.3,\n\t\t\t102.2,\n\t\t\t102.2,\n\t\t\t102.2,\n\t\t\t102.2\n };\n\t\t\n for (int i = 0; i < this.testCoordinates.length; i++) {\n double expResult = distancesExpected[i];\n double result = this.origin.distanceTo(this.testCoordinates[i]);\n\t\t\tSystem.out.println(\"Expected: \" + expResult + \", Actual: \" + result);\n assertEquals(expResult, result, 0.1);\n }\n }", "private void sortResults(){\r\n this.sortedPlayers = new ArrayList<>();\r\n int size = players.size();\r\n while (size > 0) {\r\n Player lowestPointsPlayer = this.players.get(0);\r\n for(int i = 0; i<this.players.size(); i++){\r\n if(lowestPointsPlayer.getPoints() <= this.players.get(i).getPoints()){\r\n lowestPointsPlayer = this.players.get(i);\r\n }\r\n }\r\n this.sortedPlayers.add(lowestPointsPlayer);\r\n this.players.remove(lowestPointsPlayer);\r\n size--;\r\n }\r\n\r\n\r\n }", "public void testSortedList() {\r\n List<InfoNode> sortedList = MapUtils.sortByDistance(exampleList, node3.getTitle());\r\n assertTrue(sortedList.size() == 2);\r\n assertTrue(sortedList.get(0) == node2);\r\n assertTrue(sortedList.get(1) == node1);\r\n assertTrue(sortedList.contains(node1));\r\n assertTrue(sortedList.contains(node2));\r\n assertFalse(sortedList.contains(node3));\r\n\r\n sortedList = MapUtils.sortByDistance(exampleList, node1.getTitle());\r\n assertTrue(sortedList.size() == 2);\r\n assertTrue(sortedList.get(0) == node2);\r\n assertTrue(sortedList.get(1) == node3);\r\n assertFalse(sortedList.contains(node1));\r\n assertTrue(sortedList.contains(node2));\r\n assertTrue(sortedList.contains(node3));\r\n\r\n sortedList = MapUtils.sortByDistance(exampleList, \" \");\r\n assertTrue(sortedList.equals(exampleList));\r\n }", "public int compareTo(Object o)\r\n {\r\n GeometryFacetBoundablePair nd = (GeometryFacetBoundablePair) o;\r\n if (minDistance < nd.minDistance) return -1;\r\n if (minDistance > nd.minDistance) return 1;\r\n return 0;\r\n }", "private void sort(Metric metr, DoubleData dObj, DoubleData[] dObjects, int left, int right)\n {\n int p = left + RANDOM_GENERATOR.nextInt(right-left+1);\n DoubleData tmpObj = dObjects[right];\n dObjects[right] = dObjects[p];\n dObjects[p] = tmpObj;\n int l = left, r = right - 1;\n double dist = metr.dist(dObjects[right], dObj);\n while (l < r)\n if (dist >= metr.dist(dObjects[l], dObj)) l++;\n else if (dist < metr.dist(dObjects[r], dObj)) r--;\n else\n {\n tmpObj = dObjects[l];\n dObjects[l] = dObjects[r];\n dObjects[r] = tmpObj;\n l++;\n if (l < r) r--;\n }\n if (dist < metr.dist(dObjects[l], dObj))\n {\n tmpObj = dObjects[l];\n dObjects[l] = dObjects[right];\n dObjects[right] = tmpObj;\n }\n if (left < l) sort(metr, dObj, dObjects, left, l);\n if (l + 1 < right) sort(metr, dObj, dObjects, l + 1, right);\n }", "@Override\r\n\tpublic int compareTo(Candidate e) {\n\t double d = e.getDistance();\r\n\t \r\n\t if (this.getDistance() <= d) {\r\n\t return -1;\r\n\t }\r\n\t\r\n\t if (this.getDistance() > d) {\r\n\t return 1;\r\n\t }\r\n\t \r\n\t // Should not reach here \r\n\t return 0;\r\n\t}", "public int compare(City s1, City s2) {\n// if ( s1.getNeighbours() > s2.getNeighbours().values())\n// return 1;\n// else if ((s1.getHeuristic()+s1.getDistance()) < (s2.getHeuristic() + s2.getDistance()))\n// return -1;\n return 0;\n }", "public void sortMatches();", "private void computeDistances() {\n for (int i = 0; i < groundTruthInstant.size(); ++i)\n for (int j = 0; j < estimatedInstant.size(); ++j) {\n float currentDist = groundTruthInstant.get(i).getDistanceTo(estimatedInstant.get(j).getPos());\n if (currentDist < distToClosestEstimate[i][0]) {\n distToClosestEstimate[i][0] = currentDist;\n distToClosestEstimate[i][1] = j;\n }\n }\n }", "@Override\r\n\t\t\tpublic int compare(Presentor o1, Presentor o2) {\n\t\t\t\tint sort = 0;\r\n\t\t\t\tint a = o1.getZs() - o2.getZs();\r\n\t\t\t\tif (a != 0) {\r\n\t\t\t\t\tsort = (a < 0) ? 1 : -1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\ta = o1.getJd() - o2.getJd();\r\n\t\t\t\t\tif (a != 0) {\r\n\t\t\t\t\t\tsort = (a < 0) ? 1 : -1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn sort;\r\n\t\t\t}", "@Override\n\tpublic int compare(ObjectWithCoordinates p1, ObjectWithCoordinates p2) {\n\t\tif (p1.getX() < p2.getX()) return -1;\n\t\tif (p1.getX() > p2.getX()) return +1;\n\t\tif (p1.getY() < p2.getY()) return -1;\n\t\tif (p1.getY() > p2.getY()) return +1;\n\t\treturn 0;\n\t}", "public int compareTo(Object obj) {\r\n\t\tTour tr = (Tour) obj;\r\n\t\tif (this.distance < tr.distance) {\r\n\t\t\treturn -1;\r\n\t\t} else if (this.distance == tr.distance) {\r\n\t\t\treturn 0;\r\n\t\t} else {\r\n\t\t\treturn +1;\r\n\t\t}\r\n\t}", "@Override\n public int compareTo(MogeUserItem o) {\n Double a = this.getDistance();\n Double b = o.getDistance();\n return a.compareTo(b);\n }", "public int compareDistance(Route r2) {\n return this.distance - r2.distance;\n }", "public void sort() {\r\n int k = start;\r\n for (int i = 0; i < size - 1; i++) {\r\n int p = (k + 1) % cir.length;\r\n for (int j = i + 1; j < size; j++) {\r\n if ((int) cir[p] < (int) cir[k % cir.length]) {\r\n Object temp = cir[k];\r\n cir[k] = cir[p];\r\n cir[p] = temp;\r\n }\r\n p = (p + 1) % cir.length;\r\n }\r\n k = (k + 1) % cir.length;\r\n }\r\n }", "@Override\n\tpublic int compareTo(Tile another) {\n\n\t\tfloat diference = (distanceToStart + distanceToEnd) - (another.distanceToStart + another.distanceToEnd);\n\n\t\tif( diference < 0 )\n\t\t\treturn -1;\n\t\telse if ( diference > 0)\n\t\t\treturn 1;\n\t\telse\n\t\t\treturn 0;\n\t}", "private List<OrderDistance> sortOrdersByPriorities(List<OrderDistance> orderDistances) {\n\n /*Keeps orders and their priorities.\n * TreeMap keeps data in order using keys\n */\n\n Map<Integer, List<OrderDistance>> listMap = orderDistances.stream()\n .collect(groupingBy(order -> getPriority(order.getOrder()), TreeMap::new, mapping(Function.identity(), toList())));\n\n /*\n * There are three list which consists of vip,food and other\n * Here we are flatting them into single list\n */\n return listMap.values().stream().flatMap(Collection::stream).collect(toList());\n }", "public void sort() {\n Collections.sort(jumpers, new SortJumperByPoints()); \n }", "public void sortByDistance(LatLng currentUserLocation) {\n\n LinkedHashMap<String, HashMap<String, String>> newHashMap = new LinkedHashMap<String, HashMap<String, String>>();\n ArrayList<Pair<String, Double>> sortedArrayList = new ArrayList<Pair<String, Double>>();\n\n for (String masterKey : this.featureInfoHashMap.keySet()) {\n String latLngStr = this.featureInfoHashMap.get(masterKey).get(\"LATLNG\");\n LatLng latLng = getLatLngFromGeoJsonFeatureString(latLngStr);\n double latLngDist = getDistance(latLng, currentUserLocation);\n sortedArrayList.add(new Pair<String, Double>(masterKey, latLngDist));\n }\n\n Collections.sort(sortedArrayList, new Comparator<Pair<String, Double>>() {\n @Override\n public int compare(final Pair<String, Double> o1, final Pair<String, Double> o2) {\n return (o1.second).compareTo(o2.second);\n }\n });\n\n String masterKey;\n for (Pair<String, Double> pair : sortedArrayList) {\n masterKey = pair.first;\n newHashMap.put(masterKey, this.featureInfoHashMap.get(masterKey));\n }\n Log.e(TAG, String.valueOf(newHashMap));\n\n this.featureInfoHashMap = newHashMap;\n }", "public void testDistanceTo() {\n City boston = new City(\"Boston\", 42.3601, -71, 1);\n City austin = new City(\"Austin\", 30.26, -97, 2);\n\n assertEquals(2674.2603695871003, boston.distanceTo(austin));\n assertEquals(2674.2603695871003, austin.distanceTo(boston));\n }", "@Override\n public int compareTo(RouteNode o) {\n return Double.compare(this.estimatedDistanceToTarget, o.estimatedDistanceToTarget);\n }", "public abstract double distanceFrom(double x, double y);", "@Test\n public void testHorizontalDisplacementTo() {\n System.out.println(\"Testing HorizontalDisplacementTo() for a range of different GPS coordinates\");\n double distancesExpected[] = {\n 555.998,\n 555.998,\n -555.998,\n -555.998,\n\t\t\t72.266,\n\t\t\t72.266,\n\t\t\t-72.266,\n\t\t\t-72.266\n };\n\t\t\n for (int i = 0; i < this.testCoordinates.length; i++) {\n double expResult = distancesExpected[i];\n double result = this.origin.horizontalDisplacementTo(this.testCoordinates[i]);\n\t\t\tSystem.out.println(\"Expected: \" + expResult + \", Actual: \" + result);\n assertEquals(expResult, result, 0.1);\n }\n }", "@Test\r\n\tpublic void testDistancia0() \r\n\t{\r\n\t\tAssert.assertEquals(1.41, new Ponto(3,3).dist(new Ponto(4,2)), EPSILON);\r\n\t\tAssert.assertEquals(26.20, new Ponto(-7,-4).dist(new Ponto(17,6.5)), EPSILON);\t\r\n\t\tAssert.assertEquals(0.00, new Ponto(0,0).dist(new Ponto(0,0)), EPSILON);\t\r\n\t}", "public String sortOriginOrReturn();", "@Override\npublic int compareTo(ImageForSort newImage) {\n\tif(this.distance==newImage.distance)\n\treturn 0;\n\telse if(this.getDistance()>newImage.getDistance()){\n\t\treturn 1;\n\t}else{\n\t\treturn -1;\n\t}\n}", "Execution getClosestDistance();", "@Test\n\tpublic void testLateralNeighbors() {\n\t\tPosition left = new Position(0,0);\n\t\tPosition right = new Position(1,0);\n\n\t\tint distance = euclideanSquaredMetric.calculateCost(left, right);\n\t\tassertEquals(lateralDistanceWeight, distance);\n\n\t\tPosition top = new Position(0,0);\n\t\tPosition bottom = new Position(0,1);\n\n\t\tdistance = euclideanSquaredMetric.calculateCost(top, bottom);\n\t\tassertEquals(lateralDistanceWeight, distance);\n\t}", "private DistanceObject[] sortDistanceObjects(DistanceObject[] dObj,\n\t\t\tint objCount) {\n\t\tArrays.sort(dObj, 0, objCount, new DistanceObjectComparator());\n\t\tlogger.info(\"\\n\\nSorted\\n\\n\");\n\t\tfor (int i = 0; i < objCount; i++) {\n\t\t\tlogger.info(dObj[i].getKey() + \"\\t\" + dObj[i].getValue());\n\t\t}\n\t\treturn dObj;\n\t}", "private int calcDistance()\n\t{\n\t\tint distance = 0;\n\n\t\t// Generate a sum of all of the difference in locations of each list element\n\t\tfor(int i = 0; i < listSize; i++) \n\t\t{\n\t\t\tdistance += Math.abs(indexOf(unsortedList, sortedList[i]) - i);\n\t\t}\n\n\t\treturn distance;\n\t}", "@Override\n\t\t\tpublic int compare(Point arg0, Point arg1) {\n\t\t\t return Double.compare(arg0.getX(), arg1.getX());\n\t\t\t}", "private void sort() {\n ScoreComparator comparator = new ScoreComparator();\n Collections.sort(scores, comparator);\n }", "public int compare(PositionNode o1, PositionNode o2) {\n if (o1.getHeuristicCost() < o2.getHeuristicCost()) {\n return -1;\n }\n\n if (o1.getHeuristicCost() > o2.getHeuristicCost()) {\n return 1;\n }\n return 0;\n }", "@Override\r\n\t\t\tpublic int compare(Entry<Integer, Double> o1, Entry<Integer, Double> o2) {\n\t\t\t\tif ((o1.getValue()-o2.getValue())>0) {\r\n\t\t\t\t\t\r\n\t\t\t\t\treturn 1;\r\n\t\t\t\t} else if ((o1.getValue()-o2.getValue())<0) {\r\n\t\t\t\t\treturn -1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn 0;\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\r\n\t\tpublic int compareTo(OutOfPlaceMetric o) {\r\n\t\t\treturn Integer.compare(this.getAbsoluteDistance(), o.getAbsoluteDistance());\r\n\t\t}", "public int compare(SearchNode sn1, SearchNode sn2) {\n int hp1 = sn1.dist + sn1.board.manhattan();\n int hp2 = sn2.dist + sn2.board.manhattan();\n \n if (hp1 > hp2) return 1;\n if (hp1 < hp2) return -1;\n return 0;\n }", "@Override\r\n public int compareTo(Object obj) {\r\n if (!(obj instanceof Data)) {\r\n return 1; //??? return arbitary value saying that not equal\r\n }\r\n Data other = (Data) obj;\r\n if (this.distanz > other.distanz) {\r\n return 1;\r\n }\r\n if (this.distanz < other.distanz) {\r\n return -1;\r\n }\r\n return 0;\r\n }", "private ArrayList sortTriangleListByDistance(ArrayList triangleList, E3DVector3F startPos, E3DVector3F endPos)\r\n\t{\r\n\t\tSortedMap triangleDistanceMap = new TreeMap(); //create a map of the triangles keyed off of distance\r\n\r\n\t\t//create a map keyed off of distance from avg distance of startPos + distance endPos. use the closest vertex as the distance\r\n\t\tE3DTriangle triangle = null;\r\n\t\tE3DVector3F pointToVertexVector = null;\r\n\r\n\t\tint i=0, v=0;\r\n\t\tdouble distanceStart = 0.0;\r\n\t\tdouble avg = 0.0;\r\n\t\tdouble closestDistance = -1.0;\r\n\t\tDouble key = null;\r\n\t\tfor(i=0; i<triangleList.size(); i++)\r\n\t\t{\r\n\t\t\ttriangle = (E3DTriangle)triangleList.get(i);\r\n\t\t\t\r\n\t\t\tfor(v = 0; v < 3; v++)\r\n\t\t\t{\r\n\t\t\t\tpointToVertexVector = endPos.subtract(startPos);\r\n\t//\t\t\tpointToVertexVector = triangle.getVertex()[v].subtract(startPos);\r\n\t\t\t\t//\t\t\tdistanceStart = pointToVertexVector.getLengthSquared();\r\n\t//\t\t\tpointToVertexVector = triangle.getVertex()[v].subtract(endPos);\r\n\t//\t\t\tdistanceEnd = pointToVertexVector.getLengthSquared();\r\n\t\t\r\n\t\t\t\tdistanceStart = Math.abs(pointToVertexVector.dotProduct(triangle.getVertexPos(v)));\r\n\t\t\t\tif(closestDistance < 0)\r\n\t\t\t\t\tclosestDistance = distanceStart; //(distanceStart + distanceEnd) / 2;\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tavg = distanceStart; //(distanceStart + distanceEnd) / 2;\r\n\r\n\t\t\t\t\tif(avg < closestDistance)\r\n\t\t\t\t\t\tclosestDistance = avg;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Since there can be multiple with the same closest distance, we need a list of triangles for each distance key\r\n\t\t\tkey = new Double(closestDistance);\r\n\t\t\tif(triangleDistanceMap.containsKey(key))\r\n\t\t\t\t((ArrayList)triangleDistanceMap.get(key)).add(triangle);\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tArrayList thisDistanceTriangleList = new ArrayList();\r\n\t\t\t\tthisDistanceTriangleList.add(triangle);\r\n\t\t\t\ttriangleDistanceMap.put(key, thisDistanceTriangleList);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Create the arraylist out of this sorted map\r\n\r\n\t\tArrayList retList = new ArrayList();\r\n\t\tMap.Entry entry = null;\r\n\t\tArrayList keysList = null;\r\n\t\tIterator it = triangleDistanceMap.entrySet().iterator();\r\n\t\twhile(it.hasNext())\r\n\t\t{\r\n\t\t\tentry = (Map.Entry)it.next();\r\n\t\t\tkeysList = (ArrayList)entry.getValue();\r\n\t\t\t\r\n\t\t\tretList.addAll(keysList);\r\n\t\t}\r\n\t\treturn retList;\r\n\t}", "public static void sortLocationsByDistance(XYCoord center, ArrayList<XYCoord> mapLocations)\n {\n ManhattanDistanceComparator mdc = new ManhattanDistanceComparator(center);\n Collections.sort(mapLocations, mdc);\n }", "public int compare(SearchNode sn1, SearchNode sn2) {\n int hp1 = sn1.dist + sn1.board.hamming();\n int hp2 = sn2.dist + sn2.board.hamming();\n \n if (hp1 > hp2) return 1;\n if (hp1 < hp2) return -1;\n return 0;\n }", "private static final List<Fooable> sortFooables(\n \t\t\tMap<Fooable, Integer> fooPairs) {\n \t\t// Create a list of Map.Entries based on the input Map\n \t\tList<Map.Entry<Fooable, Integer>> pairList = new ArrayList<>();\n \t\tpairList.addAll(fooPairs.entrySet());\n \n \t\t// Sort the list of Map.Entries containing Fooables and Levenshtein\n \t\t// Distances\n \t\tCollections.sort(pairList,\n \t\t\t\tnew Comparator<Map.Entry<Fooable, Integer>>() {\n \t\t\t\t\t@Override\n \t\t\t\t\tpublic int compare(Entry<Fooable, Integer> o1,\n \t\t\t\t\t\t\tEntry<Fooable, Integer> o2) {\n \t\t\t\t\t\t// Initially sort by Levenshtein Distance\n \t\t\t\t\t\tif (o1.getValue() < o2.getValue())\n \t\t\t\t\t\t\treturn -1;\n \n \t\t\t\t\t\tif (o1.getValue() > o2.getValue())\n \t\t\t\t\t\t\treturn 1;\n \n \t\t\t\t\t\t// Fallback sorting on String comparison\n \t\t\t\t\t\treturn o1.getKey().getName()\n \t\t\t\t\t\t\t\t.compareToIgnoreCase(o2.getKey().getName());\n \t\t\t\t\t}\n \t\t\t\t});\n \n \t\t// Construct a sorted list of Fooables\n \t\tList<Fooable> sortedList = new ArrayList<>();\n \t\tfor (Map.Entry<Fooable, Integer> pair : pairList) {\n \t\t\tsortedList.add(pair.getKey());\n \t\t}\n \n \t\treturn sortedList;\n \t}", "public FastNondominatedSorting() {\r\n\t\tthis(new ParetoDominanceComparator());\r\n\t}", "@Override\r\n\tpublic void sort() {\r\n\t\tint minpos;\r\n\t\tfor (int i = 0; i < elements.length-1; i++) {\r\n\t\t\tminpos=AuxMethods.minPos(elements, i);\r\n\t\t\telements=AuxMethods.swapElements(elements, i, minpos);\r\n\t\t\t\r\n\t\t}\r\n\t}", "private ArrayList<IPlayer> sortPlayerAfterPoints() {\n ArrayList<IPlayer> arrlist = new ArrayList<>();\n\n iPlayerList.entrySet().stream().map((pair) -> (IPlayer) pair.getValue()).forEachOrdered((ip) -> {\n arrlist.add(ip);\n });\n\n Collections.sort(arrlist, (IPlayer p1, IPlayer p2) -> {\n try {\n if (p1.getPoints() == p2.getPoints()) {\n return 0;\n } else if (p1.getPoints() > p2.getPoints()) {\n return -1;\n } else {\n return 1;\n }\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n return 0;\n });\n\n return arrlist;\n }", "@Override\r\n\tpublic int compareTo(TouringPlace another) {\n\t\treturn 0;\r\n\t}", "public int compare(PartialAlignment x, PartialAlignment y) {\n\t\t\tint matchDiff = (y.matches1 + y.matches2)\n\t\t\t\t\t- (x.matches1 + x.matches2);\n\t\t\tif (matchDiff > 0) {\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\tif (matchDiff < 0) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\t// Otherwise fewer chunks wins\n\t\t\tint chunkDiff = x.chunks - y.chunks;\n\t\t\tif (chunkDiff != 0)\n\t\t\t\treturn chunkDiff;\n\t\t\t// Finally shortest distance wins\n\t\t\treturn x.distance - y.distance;\n\t\t}", "@Override\n\t\t\tpublic int compare(Entry<Integer, Double> o1, Entry<Integer, Double> o2) {\n\t\t\t\treturn -(int) (o1.getValue().compareTo(o2.getValue()));\n\t\t\t}", "public void sortAuthority(List<Page> result) {\n\t\tCollections.sort(result, new Comparator<Page>() {\n\t\t\tpublic int compare(Page p1, Page p2) {\n\t\t\t\t// Sorts by 'TimeStarted' property\n\t\t\t\treturn p1.hub < p2.hub ? -1 : p1.hub > p2.hub ? 1 : secondaryOrderSort(p1, p2);\n\t\t\t}\n\n\t\t\t// If 'TimeStarted' property is equal sorts by 'TimeEnded' property\n\t\t\tpublic int secondaryOrderSort(Page p1, Page p2) {\n\t\t\t\treturn p1.getLocation().compareToIgnoreCase(p2.getLocation()) < 1 ? -1\n\t\t\t\t\t\t: p1.getLocation().compareToIgnoreCase(p2.getLocation()) > 1 ? 1 : 0;\n\t\t\t}\n\t\t});\n\t}", "@Override\n\tpublic int compare(GridPoint o1, GridPoint o2) {\n\t\treturn o1.getLesson()-o2.getLesson();\n\t}", "@Test\n public void testCompare() {\n AantalGastenComparator instance = new AantalGastenComparator();\n int expResult;\n int result;\n \n //test 1\n Accommodatie a1 = new Accommodatie(\"je moeder\", 30.00, 2, 1);\n Accommodatie a2 = new Accommodatie(\"je vader\", 40.00, 3, 1);\n expResult = -1;\n result = instance.compare(a1, a2);\n assertEquals(expResult, result);\n \n \n //test 2\n Accommodatie a3 = new Accommodatie(\"je moeder2\", 30.00, 2, 1);\n Accommodatie a4 = new Accommodatie(\"je vader2\", 40.00, 2, 1);\n expResult = 0;\n result = instance.compare(a3, a4);\n assertEquals(expResult, result);\n \n \n //test 3\n Accommodatie a5 = new Accommodatie(\"je moeder3\", 30.00, 3, 1);\n Accommodatie a6 = new Accommodatie(\"je vader3\", 40.00, 2, 1);\n expResult = 1;\n result = instance.compare(a5, a6);\n assertEquals(expResult, result);\n }", "public static void selectionSort(double [] list1)\r\n\t{\r\n\t\tdouble temp= 0.0;\r\n\t\tint smallest=0;\r\n\t\r\n\t\tfor(int outside=0; outside<list1.length; outside++)\r\n\t\t{\r\n\t\t\t//System.out.println(\"Outside: \" + outside);\r\n\t\t\tsmallest=outside;\r\n\t\t\tfor(int inside=1+outside; inside<list1.length; inside++)\r\n\t\t\t{\r\n\t\t\t\tif(list1[inside]<list1[smallest])\r\n\t\t\t\t{\r\n\t\t\t\t\tsmallest = inside;\t\t\r\n\t\t\t\t\t//System.out.println(smallest);\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ttemp=list1[smallest];\r\n\t\t\tlist1[smallest]=list1[outside];\r\n\t\t\tlist1[outside]=temp;\r\n\t\t}\r\n\t}", "public int compareTo(PointDouble other) { // override less than operator\n if (Math.abs(x - other.x) > EPS) // useful for sorting\n return (int)Math.ceil(x - other.x); // first: by x-coordinate\n else if (Math.abs(y - other.y) > EPS)\n return (int)Math.ceil(y - other.y); // second: by y-coordinate\n else\n return 0; // they are equal\n }", "@Override\n public int compare( ReservaViaje r1, ReservaViaje r2 )\n {\n int diff = ( int ) (r1.darCostoTotal( )-r2.darCostoTotal( ));\n return diff==0?0:(diff>0?1:-1);\n }", "private Map<Vertice<T>, Integer> caminosMinimoDikstra(Vertice<T> origen) {\n \tMap<Vertice<T>, Integer> distancias = new HashMap<Vertice<T>, Integer>();\n \tfor(Vertice<T> unVertice : this.vertices) {\n \t\tdistancias.put(unVertice, Integer.MAX_VALUE);\n \t}\n \tdistancias.put(origen, 0);\n \t\n \t// guardo visitados y pendientes de visitar\n \tSet<Vertice<T>> visitados = new HashSet<Vertice<T>>();\n \tTreeMap<Integer,Vertice<T>> aVisitar= new TreeMap<Integer,Vertice<T>>();\n\n \taVisitar.put(0,origen);\n \t \n \twhile (!aVisitar.isEmpty()) {\n \t\tEntry<Integer, Vertice<T>> nodo = aVisitar.pollFirstEntry();\n \t\tvisitados.add(nodo.getValue());\n \t\t\n \tint nuevaDistancia = Integer.MIN_VALUE;\n \tList<Vertice<T>> adyacentes = this.getAdyacentes(nodo.getValue());\n \t\n \tfor(Vertice<T> unAdy : adyacentes) {\n if(!visitados.contains(unAdy)) {\n Arista<T> enlace = this.buscarArista(nodo.getValue(), unAdy);\n if(enlace !=null) {\n nuevaDistancia = enlace.getValor().intValue();\n }\n int distanciaHastaAdy = distancias.get(nodo.getValue()).intValue();\n int distanciaAnterior = distancias.get(unAdy).intValue();\n if(distanciaHastaAdy + nuevaDistancia < distanciaAnterior ) {\n distancias.put(unAdy, distanciaHastaAdy + nuevaDistancia);\n aVisitar.put(distanciaHastaAdy + nuevaDistancia,unAdy);\n }\n }\n } \t\t\n \t}\n \tSystem.out.println(\"DISTANCIAS DESDE \"+origen);\n \tSystem.out.println(\"Resultado: \"+distancias);\n \treturn distancias;\n }", "@Test\n public void testSortAlgorithm() {\n System.out.println(\"sortAlgorithm\");\n String input = \"8 0 3 1 6 5 -2 4 7\";\n CCGeneticDrift instance = new CCGeneticDrift();\n int expResult = 5;\n int result = instance.sortAlgorithm(input);\n assertEquals(result, expResult);\n }", "public double distTo(double x, double y) {\n\tdouble min_dist = Double.POSITIVE_INFINITY;\n\t\n\tfor (Shape s : this.shapes) {\n\t double dist = s.distTo(x, y);\n\t \n\t if (dist < min_dist)\n\t\tmin_dist = dist;\n\t}\n\n\treturn min_dist;\n }", "@Override\r\n\t\t\tpublic int compare(DjikstraPair o1, DjikstraPair o2) {\n\t\t\t\treturn o2.csf - o1.csf;\r\n\t\t\t}", "private int compareToFronteras(Pares f){\n\t\t\tint devolucion=0;\n\t\t\t\n\t\t\tif(this.distancia<f.getDistancia()){\n\t\t\t\tdevolucion=1;\n\t\t\t}else if(this.distancia==f.getDistancia()){\n\t\t\t\tdevolucion=0;\n\t\t\t}else if(this.distancia>f.getDistancia()){\n\t\t\t\tdevolucion=-1;\n\t\t\t}\n\t\t\t\n\t\t\treturn devolucion;\n\t\t}", "private void calculateDistances() {\n for (int point = 0; point < ntree.size(); point++) {\n calculateDistances(point);\n }\n }", "double getDistance();", "void NormalQsort (double[] cdist, Integer[] Indices)\n\t{\n\t\tNormalQsort (cdist, Indices, 0, cdist.length - 1);\n\t}", "public void sortSpeeds() {\n\n//\t\tSystem.out.println(\"BEGIN: SORT SPEEDS\");\n\t\tthis.printMoves();\n\n\t\tArrayList<Move> temp = new ArrayList<Move>();\n\t\tint i = 1;\n\t\tint x = 0;\n\t\tboolean y = true;\n\n\t\ttemp.add(niceMoves.get(0));\n\t\tint size = niceMoves.size();\n\n\t\twhile (i < niceMoves.size()) {\n\n//\t\t\tSystem.out.println(\"Reiterating.\");\n\t\t\ty = true;\n\n\t\t\twhile (y) {\n\n\t\t\t\t//System.out.println(\"I: \" + i + \" X: \" + x);\n\n\t\t\t\ttry {\n\n\t\t\t\t\tif (niceMoves.get(i).getSpeed() > temp.get(x).getCalcedSpeed()) {\n\n//\t\t\t\t\t\tSystem.out.println(\"Adding \" + niceMoves.get(i).getCaster() + \" to spot \" + x);\n\t\t\t\t\t\ttemp.add(x, niceMoves.get(i));\n\t\t\t\t\t\ty = false;\n\t\t\t\t\t}\n\t\t\t\t\t//X has cycled through temp, meaning nicemoves.i should be added to the end\n\t\t\t\t\t//The only way to check for this is to let it overflow lol\n\t\t\t\t} catch (Exception E) {\n//\t\t\t\t\tSystem.out.println(\"Adding \" + niceMoves.get(i).getCaster() + \" to spot \" + x);\n\t\t\t\t\ttemp.add(x, niceMoves.get(i));\n\t\t\t\t\ty = false;\n\n\t\t\t\t}\n\n\t\t\t\tx += 1;\n\t\t\t}\n\n\t\t\ti += 1;\n\t\t\tx = 0;\n\t\t}\n\n\t\tniceMoves = temp;\n\n//\t\tSystem.out.println();\n//\t\tSystem.out.println(\"Sorting Complete! New Order: \");\n//\t\tthis.printMoves();\n\t\t//end of sort speeds\n\t}", "public int compareTo(EarthquakeMarker other) {\r\n\t\t//to return them from high to low put OTHER FIRST\r\n\t\t//to return from low to high, put THIS FIRST\r\n\t\treturn Float.compare(other.getMagnitude(),this.getMagnitude());\r\n\t}", "private void set_distance() {\n int[] k = new int[getQueue().length];\n distance = 0.0;\n for (int i = 1; i < getQueue().length; i++) {\n distance += getPoints().get(way[i]).distance(getPoints().get(way[i - 1]));\n }\n distance += getPoints().get(getQueue()[getPoints().size() - 1]).distance(getPoints().get(0));\n enterd = true;\n }", "private static void sort(Object[] a, Object[] tmp,\n int from, int to, Fun isLess) {\n int split = (from + to) / 2;\n if (split - from > 1)\n sort(tmp, a, from, split, isLess);\n if (to - split > 1)\n sort(tmp, a, split, to, isLess);\n int i = from, j = split;\n while (i < split && j < to) {\n if (isLess.apply(tmp[i], tmp[j]) == Boolean.TRUE)\n a[from] = tmp[i++];\n else\n a[from] = tmp[j++];\n ++from;\n }\n if (i < split)\n System.arraycopy(tmp, i, a, from, split - i);\n else if (j < to)\n System.arraycopy(tmp, j, a, from, to - j);\n }", "private static void performSort(TestApp testApp) {\n testApp.testPartition();\n\n /*\n Date end = new Date();\n System.out.println(\"Sort ended @ \" + end.getTime());\n System.out.println(\"Total time = \" + (end.getTime() - start.getTime())/1000.0 + \" seconds...\");\n */\n }", "public int compareTo(Object o) {\r\n GraphNode n = (GraphNode) o;\r\n Double distance = startDistance - n.getDistanceToStart();\r\n return distance.intValue();\r\n }", "public int compare(Point a, Point b)\n {\n return (int) (Math.ceil(a.x - b.x));\n }", "private double distanceResult(double preLng, double preLat, double nextLng, double nextLat) {\n\t\treturn Math.sqrt((preLng - nextLng) * (preLng - nextLng) + (preLat - nextLat) * (preLat - nextLat));\n\t}", "public int compare2(Way in) {\n if (in.isEnterd() && isEnterd() && in.distance > distance) {\n return -1;\n } else if (in.isEnterd() && isEnterd() && in.distance < distance) {\n return 1;\n }\n return 0;\n }", "public ArrayList<Pair<Landmark, Double>> locationWithDistance(Pair<Double, Double> userLocation) {\n ArrayList<Pair<Landmark, Double>> distanceList = new ArrayList<>();\n for(int i = 0; i < this.list.size(); i++){\n Landmark landmark = list.get(i);\n double latitude = landmark.getLatitude();\n double longitude = landmark.getLongitude();\n Pair<Double, Double> coordinate = new Pair<>(latitude, longitude);\n // TODO use latitude and longitude explicitly\n double dist = distanceBetween(userLocation, coordinate);\n distanceList.add(new Pair<>(this.list.get(i), dist));\n }\n for( int i = 0; i < distanceList.size()-1; i++ ){\n for( int j = i+1; j < distanceList.size(); j++ ){\n if(distanceList.get(i).second > distanceList.get(j).second){\n Collections.swap(distanceList, i, j);\n }\n }\n }\n return distanceList;\n }", "public String doSort();", "public void order_moves() {\n\t\tfor (int i = 0; i < future_moves.size(); i += 1) {\n\t\t\tArrayList<Integer> curr_smallest = future_moves.get(i);\n\t\t\tint smallest = i;\n\t\t\t\n\t\t\tfor (int j = i; j < future_moves.size(); j += 1) {\n\t\t\t\tArrayList<Integer> curr_checking = future_moves.get(j);\n\t\t\t\t\n\t\t\t\tif (curr_checking.get(1) < curr_smallest.get(1)) {\n\t\t\t\t\tcurr_smallest = curr_checking;\n\t\t\t\t\tsmallest = j;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//Swap the current and the smallest\n\t\t\tfuture_moves.set(smallest, future_moves.get(i));\n\t\t\tfuture_moves.set(i, curr_smallest);\n\t\t}\n\t\t\n\t}", "protected void sortPostsByProximityTo() {\n\t\tIntent intent = new Intent(this, LocationActivity.class);\n\t\tintent.putExtra(\"previousLocation\", ActiveUserModel.getInstance()\n\t\t\t\t.getUser().getLocation());\n\t\tstartActivityForResult(intent, GET_LOCATION);\n\t}", "public static void main(String[] args) {\n Circle[] circles = new Circle[3];\n circles[0] = new Circle(3.6);\n circles[1] = new Circle();\n circles[2] = new Circle(3.5, \"indigo\", false);\n System.out.println(\"Pre-sorted: \");\n for (Circle circle:circles){\n System.out.println(circle);\n }\n\n Comparator circleComparator = new CircleComparator();\n Arrays.sort(circles,circleComparator);\n\n System.out.println(\"After-sorted: \");\n for (Circle circle:circles){\n System.out.println(circle);\n }\n /*ComparableCircle[] circles= new ComparableCircle[3];\n circles[0]= new ComparableCircle(3.6);\n circles[1]=new ComparableCircle();\n circles[2]=new ComparableCircle(\"blue\",true,3.4);\n System.out.println(\"Pre-sorted:\");\n for(ComparableCircle circle:circles) {\n System.out.println(circle);\n }\n System.out.println(circles[0].compareTo(circles[1]));\n System.out.println(circles[1].compareTo(circles[2]));\n System.out.println(circles[0].compareTo(circles[2]));\n\n Arrays.sort(circles);\n\n System.out.println(\"After-sorted: \");\n for(ComparableCircle circle:circles){\n System.out.println(circle);\n }*/\n }", "@Override\r\n public int compare(Node x, Node y)\r\n {\n if (x.getD() < y.getD())\r\n {\r\n return -1;\r\n }\r\n else if (x.getD() > y.getD())\r\n {\r\n return 1;\r\n }\r\n return 0;\r\n }", "void sort();", "void sort();", "public abstract double distanceTo (Object object);", "private static HashMap<String,Integer> sortByEditDistance(String keyword, PreSearch ps) {\r\n\t\tHashMap<String, Integer> indexDistance = new HashMap<String,Integer>();\r\n\t\tIterator<Entry<String,HashSet<Integer>>> iterator = ps.index.entrySet().iterator();\r\n\t\twhile(iterator.hasNext()) \r\n\t\t{ \t\t\t\r\n\t\t\tMap.Entry<String, HashSet<Integer>> me = (Map.Entry<String, HashSet<Integer>>)iterator.next();\r\n\t\t\tString word = me.getKey().toString();\t\t\t\r\n\t\t\tint distance = Sequences.editDistance(word, keyword);\r\n\t\t\tif(distance<3 && distance!=0) {\r\n\t\t\t\tindexDistance.put(word, distance);\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tHashMap<String,Integer> sortedDistance = SortResultsByRank.sortValues(indexDistance);\r\n\t\treturn sortedDistance;\r\n\t}", "public ArrayList<Pair<Landmark, Double>> nearestLocations(Pair<Double, Double> userLocation, int num){\n ArrayList<Pair<Landmark, Double>> nearestList = new ArrayList<>();\n for(int i = 0; i < this.list.size(); i++){\n Landmark landmark = list.get(i);\n double latitude = landmark.getLatitude();\n double longitude = landmark.getLongitude();\n Pair<Double, Double> coordinate = new Pair<>(latitude, longitude);\n // TODO use latitude and longitude explicitly\n double dist = distanceBetween(userLocation, coordinate);\n int origin = nearestList.size();\n for( int j = 0; j < nearestList.size(); j++ ){\n if( dist < nearestList.get(j).second ){\n nearestList.add(j, new Pair<>(this.list.get(i), dist));\n if(nearestList.size() > num){\n nearestList.remove(num);\n }\n break;\n }\n }\n if( origin == nearestList.size() ){\n if( nearestList.size() < num ){\n nearestList.add(new Pair<>(this.list.get(i), dist));\n }\n }\n }\n return nearestList;\n }", "void dijkstra(int strtval){\n PriorityQueue<Integer> pq = new PriorityQueue<>(new Comparator<Integer>(){\n @Override\n public int compare(Integer i1, Integer i2){\n Node n1 = dlist.get(i1);\n Node n2 = dlist.get(i2);\n return n1.getDist() > n2.getDist()?1 : n1.getDist() < n2.getDist()? -1:0;\n }\n });\n\n Node stnode = dlist.get(strtval);\n stnode.setval(strtval);\n stnode.setDist(0);\n seen.add(strtval);\n pq.add(strtval);\n while(!pq.isEmpty()){\n strtval = pq.poll();\n LinkedList<Node> alist = grp.getOrDefault(strtval, null);\n if(alist != null){\n for(Node node : alist){\n //see distance and then decide if needs to be added to qu is not seen.\n int nval = node.getval();\n int nweg = node.getDist();\n int ddist = dlist.get(nval).getDist();\n int odist = dlist.get(strtval).getDist();\n if(ddist > odist+nweg){\n dlist.get(nval).setval(strtval);\n dlist.get(nval).setDist(odist+nweg);\n }\n //if alerady seen do not cal the distance again.\n if(!seen.contains(nval)){\n seen.add(nval);\n pq.add(nval);\n }\n }\n }\n }\n //print here:\n for(int key: dlist.keySet()){\n System.out.println(key+\" dist:\"+dlist.get(key).getDist()+\" prev:\"+dlist.get(key).getval());\n }\n }", "public final void testSortCriteria() throws Exception\n {\n Vector vect = new Vector();\n final long modifier = 100;\n long sdArr[][] = { { 0, 10 }, { 0, 12 }, { 0, 8 }, { -5, 20 }, { -5, 13 }, { -5, 15 }, { -5, -7 }, { 2, 10 },\n { 2, 8 }, { 2, 2 }, { 12, 14 }, { -5, 5 }, { 10, 2 } };\n long sorted[][] = { { -5, -7 }, { 10, 2 }, { 2, 2 }, { -5, 5 }, { 0, 8 }, { 2, 8 }, { 0, 10 }, { 2, 10 },\n { 0, 12 }, { -5, 13 }, { 12, 14 }, { -5, 15 }, { -5, 20 } };\n\n patchArray(sdArr, modifier);\n patchArray(sorted, modifier);\n\n for (int i = 0; i < sdArr.length; i++)\n {\n vect.addElement(new RecordingImplMock(new Date(sdArr[i][0]), sdArr[i][1]));\n }\n RecordingList recordingList = new RecordingListImpl(vect);\n Comparator comparator = new Comparator();\n\n RecordingList newList = recordingList.sortRecordingList(comparator);\n\n assertNotNull(\"recordingList returned null\", newList);\n\n // check results\n LocatorRecordingSpec lrs = null;\n RecordingRequest req = null;\n\n int i = newList.size();\n for (i = 0; i < newList.size(); i++)\n {\n req = (RecordingRequest) newList.getRecordingRequest(i);\n lrs = (LocatorRecordingSpec) req.getRecordingSpec();\n assertEquals(\"sort criteria is wrong\", sorted[i][1], lrs.getDuration());\n }\n }", "public void printDistance()\n\t{\n\t\tArrayList<Robot> ar=new ArrayList<Robot>();\n\t\tIterator<Robot> it;\n\t\tint i=1;//started index\n\t\t\n\t\tar.addAll(robotHM.values());//adding all\n\t\tCollections.sort(ar, new DistanceCompare());//sort by distance\n\t\tit=ar.iterator();\n\t\twhile (it.hasNext())\n\t\t{\n\t\t\tRobot r=it.next();\n\t\t\tSystem.out.println(i+\". \"+r.getName()+\" distance \"+r.getDistance());\n\t\t\ti++;\n\t\t}\n\t}", "@Override\n\tpublic int compareTo(AStarNode o) {\n\t\t\n\t\tint myExpectedTotalDistance = this.getDistanceSoFar() + this.expectedDistanceToGo;\n\t\tint theirExpectedTotalDistance = o.getDistanceSoFar() + o.expectedDistanceToGo;\n\t\t\n\t\tif(myExpectedTotalDistance < theirExpectedTotalDistance) {\n\t\t\treturn -1;\n\t\t}\n\t\telse if(myExpectedTotalDistance > theirExpectedTotalDistance) {\n\t\t\treturn 1;\n\t\t}\n\t\telse { // if tied, use just expected distance to go to resolve (greedy)\n\t\t\t\n\t\t\tif(this.expectedDistanceToGo < o.expectedDistanceToGo) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\telse if(this.expectedDistanceToGo > o.expectedDistanceToGo) {\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\t\n\t\t\telse { // if STILL tied, just some conventions\n\t\t\t\t// always go UP over DOWN\n\t\t\t\tif(this.state.x < o.state.x) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t\telse if(this.state.x > o.state.x) {\n\t\t\t\t\treturn 1;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// if still tied, then LEFT over RIGHT\n\t\t\t\tif(this.state.y < o.state.y) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t\telse if(this.state.y > o.state.y) {\n\t\t\t\t\treturn 1;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// if still tied, go with equal\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "@Override\n\tpublic List<Itinerary> lessTime(String originCity) {\n\t\tSortFunction<Itinerary> function = (current, expected) -> current.getTime() < expected.getTime();\n\t\treturn calculate(originCity, function);\n\t}", "public void sort() {\n ListNode start = head;\n ListNode position1;\n ListNode position2;\n\n // Going through each element of the array from the second element to the end\n while (start.next != null) {\n start = start.next;\n position1 = start;\n position2 = position1.previous;\n // Checks if previous is null and keeps swapping elements backwards till there\n // is an element that is bigger than the original element\n while (position2 != null && (position1.data < position2.data)) {\n swap(position1, position2);\n numberComparisons++;\n position1 = position2;\n position2 = position1.previous;\n }\n }\n }", "public static final Vector<LibGLFace> sortFacesAccordingToDistance( Vector<LibGLFace> faces, LibVertex cameraViewPoint )\n {\n Hashtable<Float,Vector<LibGLFace>> distances = new Hashtable<Float,Vector<LibGLFace>>();\n for ( LibGLFace face : faces )\n {\n Float distance = new Float( LibLine3D.getLengthXY( face.getAnchor(), cameraViewPoint ) );\n //Float distance = new Float( LibLine3D.getDistanceXY( face.getFaceNormal(), cameraViewPoint ) );\n\n if ( distances.get( distance ) == null )\n {\n Vector<LibGLFace> vf = new Vector<LibGLFace>();\n vf.addElement( face );\n distances.put( distance, vf );\n }\n else\n {\n Vector<LibGLFace> vf = distances.get( distance );\n vf.addElement( face );\n distances.put( distance, vf );\n }\n }\n\n //sort by distances\n Float[] dists = distances.keySet().toArray( new Float[] {} );\n //debug.out( \"different distances: [\" + dists.length + \"]\" );\n Arrays.sort( dists );\n\n //browse all distances reversed ( ordered by FAREST till LOWEST )\n Vector<LibGLFace> ret = new Vector<LibGLFace>();\n for ( int i = dists.length - 1; i >= 0; --i )\n {\n //debug.out( \"distance: [\" + dists[ i ] + \"]\" );\n\n Vector<LibGLFace> vf2 = distances.get( dists[ i ] );\n ret.addAll( vf2 );\n }\n\n //debug.out( \"return elements: [\" + ret.size() + \"]\" );\n\n return ret;\n }", "private void sortCorners(ArrayList<Point> corners) {\n Collections.sort(corners, new Comparator<Point>() {\n public int compare (Point a, Point b) {\n double val = a.y - b.y;\n if (val < 0) return -1;\n else if (val > 0) return 1;\n else return 0;\n }\n }\n );\n if (corners.size() > 1) {\n if (corners.get(0).x > corners.get(1).x) {\n Point temp = corners.get(0);\n corners.set(0, corners.get(1));\n corners.set(1, temp);\n }\n }\n if (corners.size() > 3) {\n if (corners.get(2).x > corners.get(3).x) {\n Point temp = corners.get(2);\n corners.set(2, corners.get(3));\n corners.set(3, temp);\n }\n }\n }", "public static void compareAStarW(List<Position> places, double start, double end, double step) {\n if (end < start) {\n double tmp = end;\n end = start;\n start = tmp;\n }\n Node startNode = graph.findClosest(places.get(0), false);\n Node endNode = graph.findClosest(places.get((1)), false);\n System.out.println(\"==================================================\");\n System.out.println(\"Benchmark A-Star with weighted h\");\n System.out.println(\"From \" + start + \" to \" + end + \" steps \" + step);\n System.out.println(distance.calcDist(startNode, endNode));\n System.out.println(\"==================================================\");\n System.out.println();\n\n // Vergleichs A-Stern mit w = 1\n AStarResult compareResult;\n try {\n compareResult = AStarAlgorithm.search(graph, startNode, endNode, \"Compare\", 1);\n } catch (Exception e) {\n System.out.println(e.getMessage());\n return;\n }\n\n //\n double curr;\n for (curr = start; curr <= end; curr += step) {\n Path path = new Path(\"\");\n AStarResult result;\n try {\n result = AStarAlgorithm.search(graph, startNode, endNode, \"Compare \" + curr, curr);\n path.addSegment(result.getPath());\n FileWriter fstream = new FileWriter(curr + \".gpx\");\n BufferedWriter out = new BufferedWriter(fstream);\n String gpx = GPXBuilder.build(path.getGeoLineString(true), path.getName());\n out.write(gpx);\n out.close();\n fstream.close();\n System.out.println(\"Result for w=\" + curr);\n System.out.println(\"Expanded Nodes: \" + result.getExpandedNodesCount() + \" (\" + (result.getExpandedNodesCount() - compareResult.getExpandedNodesCount()) + \")\");\n System.out.println(\"Path Length: \" + result.getPath().getLength() + \" (\" + (result.getPath().getLength() - compareResult.getPath().getLength()) + \")\");\n System.out.println(\"SortTime: \" + result.getSorttime() + \" (\" + (result.getSorttime() - compareResult.getSorttime()) + \")\");\n System.out.println(\"Runtime: \" + result.getRuntime() + \" (\" + (result.getRuntime() - compareResult.getRuntime()) + \")\");\n System.out.println();\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n }\n }", "@Override\n public int compare(CostVector o1, CostVector o2) {\n int i = 0;\n while (i < o1.getCosts().length && o1.getCosts()[i] == o2.getCosts()[i]) {\n i++;\n }\n if (i != o1.getCosts().length) {\n return o1.getCosts()[i] > o2.getCosts()[i] ? 1 : -1;\n } else {\n return 0;\n }\n }", "@Override\n public int compare(Slope s1, Slope s2){\n if(s2.deno * s1.nomi - s1.deno * s2.nomi < 0) return -1;\n else if(s2.deno * s1.nomi - s1.deno * s2.nomi > 0) return 1;\n else return 0;\n }", "@Override\n\tpublic int compare(Store o1, Store o2) {\n\t\treturn (int) (o2.getAveStar()*10 - o1.getAveStar()*10 );\n\t}", "public int compare(Arc a1,Arc a2){\n\t\t\t\treturn a1.getNumber()-a2.getNumber();\r\n\t\t\t}", "static double distanceToOrigin ( Posn p ) {\n\t// return ... p.x ... p.y ... ;\n\treturn Math.sqrt(Math.pow(p.x,2) + Math.pow(p.y,2)) ;\n }", "public void calculateDistance() {\n\t\tdouble lon = coordinates.getLongitude(); // your longitude\n\t\tdouble lat = coordinates.getLatitude(); // your latitude\n\n\t\tString distanceQueryString = \"SELECT loc, \"\n\t\t\t\t+ \"(:earthRadius * FUNC('acos', FUNC('cos', FUNC('radians', :latitude)) * \"\n\t\t\t\t+ \"FUNC('cos', FUNC('radians', loc.latitude)) * \"\n\t\t\t\t+ \"FUNC('cos', FUNC('radians', loc.longitude) - FUNC('radians', :longitude)) + \"\n\t\t\t\t+ \"FUNC('sin', FUNC('radians', :latitude)) * FUNC('sin', FUNC('radians', loc.latitude)) ) ) AS distance \"\n\t\t\t\t+ \"FROM Location loc \"\n\t\t\t\t+ \"WHERE ((:earthRadius * FUNC('acos', FUNC('cos', FUNC('radians', :latitude)) * \"\n\t\t\t\t+ \"FUNC('cos', FUNC('radians', loc.latitude)) * \"\n\t\t\t\t+ \"FUNC('cos', FUNC('radians', loc.longitude) - FUNC('radians', :longitude)) + \"\n\t\t\t\t+ \"FUNC('sin', FUNC('radians', :latitude)) * FUNC('sin', FUNC('radians', loc.latitude)) ) )<= :searchRadius) \"\n\t\t\t\t+ \"ORDER BY distance\";\n\n\t\tQuery query = entityManager.createQuery(distanceQueryString);\n\t\tquery.setParameter(\"latitude\", lat);\n\t\tquery.setParameter(\"longitude\", lon);\n\t\tquery.setParameter(\"searchRadius\", searchRadius);\n\t\tquery.setParameter(\"earthRadius\", EARTH_RADIUS);\n\t\tquery.setMaxResults(limit);\n\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Object[]> rows = query.getResultList();\n\t\tList<Location> sortedLocations = new ArrayList<>(rows.size());\n\t\tfor (Object[] row : rows) {\n\t\t\tsortedLocations.add((Location) row[0]);\n\t\t}\n\n\t\tCity city;\n\t\tMap<City, Double> unsortedMap = new HashMap<>();\n\n\t\tfor (Location entity : sortedLocations) {\n\t\t\tcity = entity.getCity();\n\t\t\tdouble distance = getDistanceFromBounds(new Coordinates(lat, lon), city.getBounds());\n\t\t\tunsortedMap.put(city, distance);\n\t\t}\n\n\t\tMap<City, Double> sortedMap = unsortedMap.entrySet().stream().sorted(Entry.comparingByValue())\n\t\t\t\t.collect(Collectors.toMap(Entry::getKey, Entry::getValue, (e1, e2) -> e1, LinkedHashMap::new));\n\n\t\tfor (Map.Entry<City, Double> entry : sortedMap.entrySet()) {\n\t\t\tif (entry.getValue() == 0.0) {\n\t\t\t\tSystem.out.println(\"Point is inside the bounds of \" + entry.getKey().getName() + \"(\"\n\t\t\t\t\t\t+ entry.getKey().getCountry() + \")\");\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.printf(\"%.4f\", entry.getValue());\n\t\t\t\tSystem.out.println(\" km. - \" + entry.getKey().getName() + \"(\" + entry.getKey().getCountry() + \")\");\n\t\t\t}\n\t\t}\n\t}", "public int compareTo(Node otherNode) { \r\n if (TotalDistance < otherNode.TotalDistance) {\r\n return -1;\r\n } else if (TotalDistance > otherNode.TotalDistance) {\r\n return 1;\r\n } else {\r\n return 0;\r\n }\r\n }" ]
[ "0.72822106", "0.60442686", "0.60040236", "0.59613323", "0.5848066", "0.5825017", "0.5785563", "0.57610875", "0.5674586", "0.5616108", "0.5607741", "0.5598133", "0.55859894", "0.55788195", "0.5577203", "0.55433095", "0.5503749", "0.5503686", "0.54743093", "0.5467677", "0.54651123", "0.5444202", "0.54265356", "0.5424683", "0.5421291", "0.54163694", "0.5404041", "0.5387888", "0.5384438", "0.5371865", "0.53688467", "0.5360041", "0.5335779", "0.5317921", "0.5295458", "0.5288176", "0.52862865", "0.5285837", "0.5271846", "0.52710223", "0.5261138", "0.5247667", "0.5222477", "0.5215586", "0.52142954", "0.52093905", "0.5194365", "0.5181557", "0.51768553", "0.51751035", "0.51504886", "0.51440066", "0.5143029", "0.5132242", "0.5127819", "0.51259136", "0.5125709", "0.5121378", "0.5120699", "0.511984", "0.51175594", "0.5115837", "0.51123637", "0.51094663", "0.50985026", "0.5095489", "0.50939876", "0.50914276", "0.5090033", "0.50852406", "0.50844264", "0.50784886", "0.50742704", "0.5072129", "0.5061117", "0.50558007", "0.5054751", "0.50540763", "0.50539285", "0.5053842", "0.5053842", "0.5052307", "0.50516945", "0.5046652", "0.50411516", "0.50350493", "0.50346565", "0.50232404", "0.5021728", "0.50201523", "0.50199395", "0.5017976", "0.50179404", "0.5007409", "0.500609", "0.5004348", "0.5002798", "0.50026774", "0.49918225", "0.49849167" ]
0.64178497
1
Get Enclosing Shape test
@Test public void testGetEnclosingShapes() { List<Shape> expectedOutput = new ArrayList<Shape>(); expectedOutput.add(circle); expectedOutput.add(square); assertEquals(expectedOutput, screen.getEnclosingShapes(new Point(5, 5))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testGetListOfShapesEnclosingGivenPoint() {\r\n\t\t\r\n\t\t// Create a first shape square\r\n\t\tPoint origin = new Point(25, 100); \r\n\t\tList<Double> list = new ArrayList<Double>(); \t\t\r\n double side = 5.0; \t\t\r\n list.add(side); \t\t\t\t\t\t\t\t\t\t \t\t\r\n\t\tShape square = ShapeFactory.createShape(0, origin, list); \t\t // 0 for creation of square\r\n\t\tscreen.shapesOnScreen.add(square);\t\t\t\t\t\t \t\t\r\n\t\t\r\n\t\t// Create a second shape square\r\n\t\tPoint secondOrigin = new Point(500,500); \r\n\t\tList<Double> secondList = new ArrayList<Double>(); \r\n double secondSide = 5.0; \r\n secondList.add(secondSide); \t\t\t\t\t\t\t\t \r\n\t\tShape secondSquare = ShapeFactory.createShape(0, secondOrigin, secondList); \r\n\t\tscreen.shapesOnScreen.add(secondSquare);\t\t\t\t\t\r\n\t\t\r\n\t\t// Create a third shape circle\r\n\t\tPoint thirdOrigin = new Point(25,100); \r\n\t\tList<Double> thirdList = new ArrayList<Double>(); \r\n double radius = 14.0; \r\n thirdList.add(radius); \t\t\t\t\t\t\t\t\t\t \r\n\t\tShape circle = ShapeFactory.createShape(3, thirdOrigin, thirdList); // 3 for creation of circle\r\n\t\tscreen.shapesOnScreen.add(circle);\t\t\r\n\t\t\r\n\t\t// Point to check for shapes enclosing it\r\n\t\tPoint point = new Point(26, 101);\r\n\t\tList<Shape> shapesEnclosingPoint = screen.getListOfShapesEnclosingGivenPoint(point);\r\n\t\t\r\n\t\t// Expected shapes in the list\r\n\t\tList<Shape> expectedList = new ArrayList<Shape>();\r\n\t\texpectedList.add(square);\r\n\t\texpectedList.add(circle);\r\n\t\t\r\n\t\tassertEquals( expectedList, shapesEnclosingPoint );\t\r\n\t}", "public String whatShape();", "Shape getShape();", "public Shape getShape();", "IShape getEndShape();", "protected abstract boolean isShapeSimple();", "public Shape getShape() { return shape; }", "ShapeType getShapeType();", "public ShapeTest(Shape shape) {\r\n\t\t\r\n\t\tthis.shape = shape;\r\n\t}", "public Shape getShape() {\n return shape;\n }", "@Test\r\n public void testDrawingDoubler() {\r\n System.out.println(\"testDrawingDoubler\");\r\n ad = new AreaDoubler();\r\n d.accept(ad);\r\n \r\n Drawing dd = (Drawing)ad.getFigureDoubled();\r\n Circle dd_c = (Circle) dd.getComponents().get(0);\r\n Rectangle dd_r = (Rectangle) dd.getComponents().get(1);\r\n \r\n \r\n Circle c_doubled = (Circle)d.getComponents().get(0);\r\n double c_radius_doubled = c_doubled.getRadius()* Math.sqrt(2.0);\r\n \r\n assertEquals(c_radius_doubled, dd_c.getRadius(), 0.02);\r\n \r\n Rectangle r_doubled = (Rectangle)d.getComponents().get(1);\r\n double r_height_doubled = r_doubled.getHeight()* Math.sqrt(2.0);\r\n double r_width_doubled= r_doubled.getWidth()*Math.sqrt(2.0);\r\n \r\n assertEquals(r_height_doubled, dd_r.getHeight(), 0.02);\r\n assertEquals(r_width_doubled, dd_r.getWidth(), 0.02);\r\n \r\n }", "@Override\n\tpublic void getShape() {\n\n\t}", "public Shape getShape() {\n\treturn shape;\n }", "IShape getShape(String name);", "IShape getCurrentShape();", "IShape getStartShape();", "@Test\r\n public void testGetShapesSortedByArea() {\r\n List<Shape> expectedOutput = new ArrayList<Shape>();\r\n expectedOutput.add(regularPolygon);\r\n expectedOutput.add(triangle);\r\n expectedOutput.add(rectangle);\r\n expectedOutput.add(square);\r\n expectedOutput.add(circle);\r\n List<Shape> actualOutput = screen.sortShape(SortType.AREA); \r\n assertEquals(expectedOutput, actualOutput);\r\n }", "public ShapeLibraryTest()\n {\n }", "String getShapeName();", "public BoundingShape getBoundingShape() {\n\treturn boundingShape;\n }", "public Shape getAreaColision();", "public Shape getShape() \n {\n return new EllipseShape(new Extent(3,3), Color.RED,true);\n }", "@Override\n Shape getShape() {\n return Shape.Square;\n }", "public Shape getShape() {\r\n\t\t\treturn shape;\r\n\t\t}", "public Rectangle getShape() \n\t{\n\t\treturn box;\n\t}", "protected Shape getShape()\n {\n return null;\n }", "@Override\n\tpublic String getShape() {\n\t\treturn \"Rectangle\";\n\t}", "public Shape getShape() {\n\t\treturn shape;\n\t}", "@Test\n public void testAddShape() {\n // add the \"R\" & \"C\" shapes to the animation\n testAnimation.addShape(r, 1, 100);\n testAnimation.addShape(c, 6, 100);\n\n assertEquals(\"Shapes:\\n\"\n + \"Name: R\\n\"\n + \"Type: rectangle\\n\"\n + \"Min corner: (200.0,200.0), Width: 50.0, Height: 100.0, Color: (1,0,0)\\n\"\n + \"Appears at t=1\\n\"\n + \"Disappears at t=100\\n\"\n + \"\\n\"\n + \"Name: C\\n\"\n + \"Type: ellipse\\n\"\n + \"Center: (500.0,100.0), X radius: 60.0, Y radius: 30.0, Color: (0,0,1)\\n\"\n + \"Appears at t=6\\n\"\n + \"Disappears at t=100\\n\"\n + \"\\n\", testAnimation.toString());\n }", "@Override\r\n Shape getOutline ()\r\n {\r\n return null;\r\n }", "public Shape getShape()\n {\n return Shape.this;\n }", "String getShapeLabel();", "public Shape getShape() {\n return null;\n }", "public Group shapes() {\n Group group = new Group();\n\n Rectangle square = new Rectangle();\n square.setHeight(_size * 2.0);\n square.setWidth(_size * 2.0);\n square.setX(-_size);\n square.setY(-_size);\n square.setFill(_fill);\n square.setOpacity(0.2);\n group.getChildren().add(square);\n\n return group;\n }", "public boolean\ngetShowBoundingShape()\n{\n\treturn (this.showBoundingShape);\n}", "public Shape getShape(Graphics2D g) {\r\n\t\tdouble innerNodeHeight = getInnerBoxHeight(g);\r\n\t\treturn new Rectangle2D.Double(visualNode.getUpperLeftCornerX(g) + INTERNAL_MARGIN, \r\n\t\t\t\tvisualNode.getUpperLeftCornerY(g) + visualNode.getTextHeight(g) + INTERNAL_MARGIN, \r\n\t\t\t\tBOX_WIDTH, \r\n\t\t\t\tinnerNodeHeight);\r\n\t}", "@Test\r\n public void testRectangleDoubler() {\r\n System.out.println(\"testRectangleDoubler\");\r\n ad = new AreaDoubler();\r\n r.accept(ad);\r\n \r\n Rectangle dr = (Rectangle)ad.getFigureDoubled();\r\n double h2 = r.getHeight()* Math.sqrt(2.0);\r\n double w2 = r.getWidth()* Math.sqrt(2.0);\r\n \r\n assertEquals(h2, dr.getHeight(), 0.02);\r\n assertEquals(w2, dr.getWidth(), 0.02);\r\n\r\n }", "public Shape getShape() {\n\t\treturn this;\n\t}", "@Test\n public void buttonOne_initiates_game_matching_shapes() {\n\n }", "public ShapeType getShape() {\n\t\treturn this.shape;\n\t}", "public Shape getShape() {\n\t\treturn null;\n\t}", "@Override\r\n public Shape getShape ()\r\n {\r\n if (evaluation != null) {\r\n return evaluation.shape;\r\n } else {\r\n return null;\r\n }\r\n }", "@Test(expected = IllegalArgumentException.class)\n public void testNoShapeWithSameName() {\n model1.addShape(Rectangle.createRectangle(\"R\", new Point.Double(500, 200),\n new Color(0, 0, 0), 0, 10, 10, 10));\n model1.addShape(Oval.createOval(\"R\", new Point.Double(500, 200),\n new Color(0, 0, 0), 0, 10, 10, 10));\n }", "public Shape getShape() {\n\t\tif (_child == null) {\n\t\t\treturn new Rectangle2D.Double();\n\t\t} else {\n\t\t\treturn _child.getShape();\n\t\t}\n\t}", "public void describeEqualSides() {\n for (Shape shape : shapes) {\n if ((shape instanceof Triangle && ((Triangle) shape).isEquilateral‬‬())\n || shape instanceof Rectangle && ((Rectangle) shape).isSquare‬‬())\n System.out.println(shape.toString());\n }\n }", "public final ShapeParent getShapeParent()\n {\n return parent;\n }", "@Test\r\n public void testGetShapesSortedByPerimeter() {\r\n List<Shape> expectedOutput = new ArrayList<Shape>();\r\n expectedOutput.add(regularPolygon);\r\n expectedOutput.add(triangle);\r\n expectedOutput.add(rectangle);\r\n expectedOutput.add(square);\r\n expectedOutput.add(circle);\r\n List<Shape> actualOutput = screen.sortShape(SortType.PERIMETER);\r\n assertEquals(expectedOutput, actualOutput);\r\n }", "public List <RMShape> getShapesToDescendant(RMShape aShape)\n{\n List list = aShape.getShapesToAncestor(this); Collections.reverse(list); return list;\n}", "Shape createShape(BorderType borderType);", "@Test\r\n public void testSortShapeWithArea()\r\n {\r\n // Screen screen = new Screen();\r\n \r\n Point originOfSquare = new Point(1,1);\r\n List<Double> listOne = new ArrayList<Double>();\r\n listOne.add(2.0);\r\n Shape square = ShapeFactory.createShape(0, originOfSquare, listOne); \r\n \r\n Point originOfCircle = new Point(1,1);\r\n List<Double> listTwo = new ArrayList<Double>();\r\n listTwo.add(2.0);\r\n Shape circle = ShapeFactory.createShape(3, originOfCircle, listTwo);\r\n \r\n Point orignOfTriangle = new Point(1,1);\r\n List<Double> listThree = new ArrayList<Double>();\r\n listThree.add(4.0);\r\n listThree.add(3.0);\r\n listThree.add(4.0);\r\n listThree.add(5.0);\r\n Shape triangle = ShapeFactory.createShape(2, orignOfTriangle, listThree);\r\n \r\n screen.addNewShapeToScreen(square);\r\n screen.addNewShapeToScreen(circle);\r\n screen.addNewShapeToScreen(triangle);\r\n \r\n screen.sortShapesOnCriteria(SortCriteria.AREA); // Sort list on the basis of area\r\n \r\n assertEquals(4.0, screen.shapesOnScreen.get(0).getArea(), 0);\r\n assertEquals(6.0, screen.shapesOnScreen.get(1).getArea(), 0);\r\n assertEquals(12.56, screen.shapesOnScreen.get(2).getArea(), 0);\r\n \r\n }", "public Shape getShape()\n\t{\n\t\treturn rect;\n\t}", "public String toString() {\n\t\t\treturn shape;\n\t\t}", "@Test void addIngredientBoundary()\n {\n }", "public Rectangle getShape(){\n return myRectangle;\n }", "@Test\n public void testShapesButNoMotions() throws IOException {\n AnimationModel am = new SimpleAnimationModel();\n StringBuilder sb = new StringBuilder();\n am.addShape(\"Reccy\", ShapeType.RECTANGLE);\n am.startAnimation();\n IAnimationView av = new SVGAnimationView(am, 2, sb);\n av.render();\n assertEquals(\"<svg viewBox = \\\"0 0 0 0\\\" version=\\\"1.1\\\" \"\n + \"xmlns=\\\"http://www.w3.org/2000/svg\\\">\\n\"\n + \"\\n\"\n + \"</svg>\", sb.toString());\n }", "public Shape getRectangle() {\n return rectangle;\n }", "private void testAbstraction() {\n Shape triangle = new Triangle();\n\n Shape circle = new Circle();\n\n //Since square implements IShape but not Shape, so we cannot create instance of Shape using Square\n Square square = new Square();\n\n //The end user only calls getNoOfSides(). But does not see implementation in Shape class.\n //Here it picks implementation from Triangle class, so it will return a 3.\n System.out.println(\"No of sides in a triangle: \" + triangle.getNoOfSides());\n System.out.println(\"No of sides in a circle: \" + circle.getNoOfSides());\n System.out.println(\"No of sides in a square: \" + square.getNoOfSides());\n }", "public Shape getMyShape() {\n\t\treturn myShape;\n\t}", "Shape getHighlightShape();", "@Override\n\tpublic void BuildShape(Graphics g) {\n\t\t\n\t}", "@DISPID(1610940422) //= 0x60050006. The runtime will prefer the VTID if present\n @VTID(28)\n Factory shapeFactory();", "private void createShape() {\n if (shape == null) {\n float firstItemMargin = noxConfig.getNoxItemMargin();\n float firstItemSize = noxConfig.getNoxItemSize();\n int viewHeight = getMeasuredHeight();\n int viewWidth = getMeasuredWidth();\n int numberOfElements = noxItemCatalog.size();\n ShapeConfig shapeConfig =\n new ShapeConfig(numberOfElements, viewWidth, viewHeight, firstItemSize, firstItemMargin);\n shape = ShapeFactory.getShapeByKey(defaultShapeKey, shapeConfig);\n } else {\n shape.setNumberOfElements(noxItemCatalog.size());\n }\n shape.calculate();\n }", "Shape newShape(GraphicalObject g) throws RemoteException;", "public void testGetBoundingBox(){\r\n\t\tdouble xc = 0;\r\n\t\tdouble yc = 0;\r\n\t\tdouble r = 10;\r\n\t\tdouble r2 = r*Math.sqrt(2)/2;\r\n\t\tdouble t0 = PI/4;\r\n\t\tdouble t1 = 3*PI/4;\r\n\t\tdouble t2 = 5*PI/4;\r\n\t\tdouble t3 = 7*PI/4;\r\n\t\tdouble dt = PI/2;\r\n\t\t\r\n\t\t// declare variables\r\n\t\tCircleArc2D arc0, arc1, arc2, arc3;\r\n\t\tBox2D box0, box1, box2, box3;\r\n\t\tBox2D bounds0, bounds1, bounds2, bounds3;\r\n\t\t\r\n\t\t// top\r\n\t\tarc0 \t= new CircleArc2D(xc, yc, r, t0, dt);\r\n\t\tbox0 \t= new Box2D(xc-r2, xc+r2, r2, r);\r\n\t\tbounds0 = arc0.boundingBox();\r\n\t\tassertTrue(box0.almostEquals(bounds0, Shape2D.ACCURACY));\r\n\r\n\t\t// left\r\n\t\tarc1 \t= new CircleArc2D(xc, yc, r, t1, dt);\r\n\t\tbox1 \t= new Box2D(xc-r, xc-r2, -r2, r2);\r\n\t\tbounds1 = arc1.boundingBox();\r\n\t\tassertTrue(box1.almostEquals(bounds1, Shape2D.ACCURACY));\r\n\r\n\t\t// bottom\r\n\t\tarc2 \t= new CircleArc2D(xc, yc, r, t2, dt);\r\n\t\tbox2 \t= new Box2D(xc-r2, xc+r2, -r, -r2);\r\n\t\tbounds2 = arc2.boundingBox();\r\n\t\tassertTrue(box2.almostEquals(bounds2, Shape2D.ACCURACY));\r\n\r\n\t\t// right\r\n\t\tarc3 \t= new CircleArc2D(xc, yc, r, t3, dt);\r\n\t\tbox3 \t= new Box2D(r2, r, -r2, r2);\r\n\t\tbounds3 = arc3.boundingBox();\r\n\t\tassertTrue(box3.almostEquals(bounds3, Shape2D.ACCURACY));\r\n\r\n\t\t/// circle arcs with extent 3*pi/2\r\n\t\tdt = 3*PI/2;\r\n\t\t\r\n\t\t// top\r\n\t\tarc0 \t= new CircleArc2D(xc, yc, r, t3, dt);\r\n\t\tbox0 \t= new Box2D(xc-r, xc+r, -r2, r);\r\n\t\tbounds0 = arc0.boundingBox();\r\n\t\tassertTrue(box0.almostEquals(bounds0, Shape2D.ACCURACY));\r\n\r\n\t\t// left\r\n\t\tarc1 \t= new CircleArc2D(xc, yc, r, t0, dt);\r\n\t\tbox1 \t= new Box2D(xc-r, xc+r2, -r, r);\r\n\t\tbounds1 = arc1.boundingBox();\r\n\t\tassertTrue(box1.almostEquals(bounds1, Shape2D.ACCURACY));\r\n\r\n\t\t// bottom\r\n\t\tarc2 \t= new CircleArc2D(xc, yc, r, t1, dt);\r\n\t\tbox2 \t= new Box2D(xc-r, xc+r, -r, r2);\r\n\t\tbounds2 = arc2.boundingBox();\r\n\t\tassertTrue(box2.almostEquals(bounds2, Shape2D.ACCURACY));\r\n\r\n\t\t// right\r\n\t\tarc3 \t= new CircleArc2D(xc, yc, r, t2, dt);\r\n\t\tbox3 \t= new Box2D(-r2, r, -r, r);\r\n\t\tbounds3 = arc3.boundingBox();\r\n\t\tassertTrue(box3.almostEquals(bounds3, Shape2D.ACCURACY));\r\n\t\r\n\t}", "@Override\n\tprotected Shape getShape() {\n\t\tRectangle2D ellipse = new Rectangle2D.Double(this.getX(), this.getY(), this.getDimension(), this.getDimension()/2);\n\t return ellipse;\n\t}", "public RMShape getRootShape() { return _parent!=null? _parent.getRootShape() : this; }", "@Override\n\tprotected Shape getShape() {\n\t\treturn null;\n\t}", "String getLayerShapeName();", "@Test\r\n public void testCircleDoubler() {\r\n System.out.println(\"testCircleDoubler\");\r\n ad = new AreaDoubler();\r\n c.accept(ad);\r\n \r\n Circle dc = (Circle)ad.getFigureDoubled();\r\n double r2 = c.getRadius()* Math.sqrt(2.0);\r\n assertEquals(r2, dc.getRadius(), 0.02);\r\n\r\n }", "public FireShapes getShape() {\r\n\t\treturn shape;\r\n\t}", "@Override\n public Shape getShape(String shapeType){\n\t\treturn null;\n }", "@Override\n\tprotected void outlineShape(Graphics graphics) {\n\t}", "void displayShape(Shape shape);", "public Polygon getTestPolygon() {\n WKTReader reader = new WKTReader();\n try {\n Polygon polygon = (Polygon) reader.read(TEST_POLYGON_WKT);\n polygon.setSRID(getTestSrid());\n return polygon;\n } catch (ParseException e) {\n throw new RuntimeException(e);\n }\n }", "public IconShape shape() {\n\t\treturn shape;\n\t}", "ShapeGroup(){\n children = new ArrayList<IShape>();\n }", "@Test(expected = IllegalArgumentException.class)\n public void testNoShapeWithSameNameCaseInsensitive() {\n model1.addShape(Rectangle.createRectangle(\"R\", new Point.Double(500, 200),\n new Color(0, 0, 0), 0, 10, 10, 10));\n model1.addShape(Oval.createOval(\"r\", new Point.Double(500, 200),\n new Color(0, 0, 0), 0, 10, 10, 10));\n }", "public interface Shape {\n\n String getDescription();\n}", "void addShape(IShape shape);", "public interface CompositeShapeInt\n{\n /**\n Add a shape to this composite shape.\n @param aShape the shape to add\n */\n void add(Shape aShape);\n\n /**\n Returns an integer Rectangle that completely encloses the Shape.\n Note that there is no guarantee that the returned Rectangle is the\n smallest bounding box that encloses the Shape, only that the Shape\n lies entirely within the indicated Rectangle.\n */\n Rectangle getBounds();\n\n /**\n Draws this CompositeShape at the relative position to the top left corner of the bounding box.\n @param g2 the graphics context\n */\n void draw (Graphics2D g);\n\n}", "@Override\n\tpublic String getShapeType() {\n\t\treturn \"Rectangle\";\n\t}", "void drawShape(Shape s) {\n }", "public boolean isRenderInsideShape() {\n return this.renderInsideShape;\n }", "public boolean isDescendant(RMShape aShape) { return aShape!=null && aShape.isAncestor(this); }", "public String getShapeType(){\n\t\treturn shapeType;\n\t}", "@Test\n public void pintInfoRectangleOvalNoMoves() {\n model1.addShape(Rectangle.createRectangle(\"R\", new Point.Double(200, 200),\n new Color(1, 0, 0), 1, 100, 50.0, 100.0));\n model1.addShape(Oval.createOval(\"C\", new Point.Double(500, 100),\n new Color(0, 0, 1), 6, 100, 60.0, 30.0));\n textView1.animate(model1, 1, out);\n assertEquals(\"Shapes:\\n\"\n + \"Name: R\\n\"\n + \"Type: rectangle\\n\"\n + \"Lower-left corner: (200.0,200.0), Width: 50.0, Height: 100.0, Color: (1.0,0.0,0.0)\\n\"\n + \"Appears at t=1.0s\\n\"\n + \"Disappears at t=100.0s\\n\"\n + \"\\n\"\n + \"Name: C\\n\"\n + \"Type: oval\\n\"\n + \"Center: (500.0,100.0), X radius: 60.0, Y radius: 30.0, Color: (0.0,0.0,1.0)\\n\"\n + \"Appears at t=6.0s\\n\"\n + \"Disappears at t=100.0s\\n\\n\", out.toString());\n }", "@Test\n public void testRectangleExport(){\n fakeCoord.add(new Point2D.Double(0.10,0.20));\n VecCommandStack.push(VecCommandFactory.GetShapeCommand(VecCommandType.RECTANGLE, fakeCoord));\n String print = VecCommandStack.peek().PrintToFile();\n assertEquals(\"RECTANGLE 0.1 0.2 \\n\", print);\n }", "public List <RMShape> getShapesToAncestor(RMShape aShape)\n{\n // Iterate and add up this shape and parents until given ancestor is added (or we run out)\n List ancestors = new ArrayList();\n for(RMShape shape=this; shape!=null; shape=shape.getParent()) {\n ancestors.add(shape);\n if(shape==aShape)\n break;\n }\n \n // Return ancestors\n return ancestors;\n}", "public interface GeometricShape {\n double area();\n\n double perimeter();\n\n void drawShape();\n}", "@Test\n public void testPolygonExport(){\n fakeCoord.add(new Point2D.Double(0.10,0.20));\n VecCommandStack.push(VecCommandFactory.GetShapeCommand(VecCommandType.POLYGON, fakeCoord));\n String print = VecCommandStack.peek().PrintToFile();\n assertEquals(\"POLYGON 0.1 0.2 \\n\", print);\n }", "public abstract int[] getShape();", "public Shape getRenderObject(\n )\n {return renderObject;}", "public Circle getShape(){\n\t\treturn new Circle();\n\t}", "@Override\n public Shape getCelkoveHranice() {\n return new Rectangle2D.Double(super.getX() + 22, super.getY() + 45, 45, 45);\n }", "private static <T extends Shape> void showShapeInfo(T shape){\r\n\t\t// Implement method and handle exception if there's not shape created\r\n\t\tif(shapes[0] != null){\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.println(shapes[0].toString());\r\n\t\t}\r\n\t\telse{\r\n\t\t\ttry {\r\n\t\t\t\tthrow new IndexOutOfBoundsException(\"No shape has been created yet.\");\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tSystem.out.println(e);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Test\r\n\tpublic void testAddNewShapeToScreen() {\r\n\r\n\t\t// Create a shape square\r\n\t\tPoint origin = new Point(5,5); \t // Set origin for square\r\n\t\tList<Double> list = new ArrayList<Double>(); \t // Create a new list of parameters\r\n double side = 5.0; \t // Add side as parameter for shape square \r\n list.add(side); \t\t\t\t\t\t\t\t\t\t \t // Add to list\r\n\t\tShape shape = ShapeFactory.createShape(0, origin, list); \t // 0 for creation of square\r\n\t\t\r\n\t\tscreen.shapesOnScreen.add(shape);\t\t\t\t\t\t \t // Add shape to screen\r\n\t\tassertEquals( 1, screen.shapesOnScreen.size());\t\t\t \t // Check if size of list is 1 after addition of shape\r\n\t}", "public Stroke getInnerStroke() {\n return null;\n }", "public NewShape() {\r\n\t\tsuper();\r\n\t}", "abstract Shape nodeShape(String node, Graphics2D g2d);", "public void interface1(){\n noStroke();\n fill(10,100);//light gray\n rect(0,60,600,590);\n fill(220);//gray\n noStroke();\n beginShape();\n vertex(365,40);\n vertex(600,40);\n vertex(600,80);\n vertex(365,80);\n vertex(345,60);\n endShape(CLOSE);\n fill(19,70,100,100);//dark blue\n rect(0,110,600,215);\n rect(0,380,600,215);\n}" ]
[ "0.63984454", "0.62795", "0.6240829", "0.61737335", "0.6037546", "0.6030689", "0.60035044", "0.5956878", "0.59011334", "0.58203477", "0.57934153", "0.5767209", "0.57320917", "0.5730988", "0.57219124", "0.5721739", "0.57099503", "0.5705183", "0.57048106", "0.56752235", "0.56721735", "0.5664668", "0.5642817", "0.5635843", "0.5619838", "0.5604562", "0.5600307", "0.5591658", "0.55602515", "0.5553767", "0.55464447", "0.55294514", "0.5526899", "0.550693", "0.54932", "0.54915047", "0.5470802", "0.54568684", "0.5446343", "0.5446164", "0.54260135", "0.5423362", "0.54137784", "0.5411764", "0.5409405", "0.5408975", "0.5400564", "0.53916025", "0.53830415", "0.53799206", "0.53483415", "0.5341482", "0.532212", "0.53137344", "0.530732", "0.53033537", "0.5290153", "0.5277209", "0.5277124", "0.52695507", "0.526075", "0.5243449", "0.523817", "0.5237424", "0.5237033", "0.5224212", "0.5217923", "0.5197623", "0.5192661", "0.5187349", "0.5186623", "0.5185895", "0.5181417", "0.5180992", "0.5173853", "0.5154687", "0.5143827", "0.513613", "0.51098", "0.51069367", "0.51032615", "0.5094124", "0.5087286", "0.50756013", "0.5075516", "0.50742495", "0.50736946", "0.50716954", "0.50531036", "0.50507236", "0.5047838", "0.50433576", "0.5042649", "0.504211", "0.5040664", "0.5039371", "0.50393057", "0.5036355", "0.5032991", "0.5027155" ]
0.7184754
0
/ access modifiers changed from: packageprivate
public void setRTLParams() { ViewGroup.LayoutParams layoutParams = this.mSkipView.getLayoutParams(); if (layoutParams instanceof RelativeLayout.LayoutParams) { RelativeLayout.LayoutParams layoutParams2 = (RelativeLayout.LayoutParams) layoutParams; layoutParams2.removeRule(20); layoutParams2.addRule(11); int dimensionPixelSize = getResources().getDimensionPixelSize(R.dimen.fsgesture_skip_margin_right); this.mSkipView.setPadding(0, getResources().getDimensionPixelSize(R.dimen.fsgesture_skip_margin_top), dimensionPixelSize, 0); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a() {\n }", "@Override\n public void perish() {\n \n }", "public abstract void mo70713b();", "public void m23075a() {\n }", "public void mo38117a() {\n }", "private MApi() {}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public abstract void mo56925d();", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void mo21779D() {\n }", "public abstract void mo27386d();", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "void m1864a() {\r\n }", "public abstract Object mo26777y();", "public void mo21825b() {\n }", "protected boolean func_70814_o() { return true; }", "public final void mo91715d() {\n }", "public abstract void mo27385c();", "public void mo97908d() {\n }", "public void mo21782G() {\n }", "private TMCourse() {\n\t}", "private test5() {\r\n\t\r\n\t}", "private Util() { }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "protected void mo6255a() {\n }", "private abstract void privateabstract();", "public void mo21877s() {\n }", "public void mo21787L() {\n }", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private MetallicityUtils() {\n\t\t\n\t}", "public void mo21791P() {\n }", "public void mo4359a() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "public abstract void mo6549b();", "public void mo23813b() {\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }", "public void mo44053a() {\n }", "public void smell() {\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 }", "public void mo115190b() {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public void mo21785J() {\n }", "public void mo21793R() {\n }", "public void mo21878t() {\n }", "public void mo56167c() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public abstract String mo118046b();", "public void mo115188a() {\n }", "private SourcecodePackage() {}", "public abstract String mo41079d();", "void mo57277b();", "public void mo6944a() {\n }", "public abstract void mo42329d();", "public abstract void mo30696a();", "private final zzgy zzgb() {\n }", "private Utils() {\n\t}", "private Utils() {\n\t}", "protected boolean func_70041_e_() { return false; }", "zzafe mo29840Y() throws RemoteException;", "private Singletion3() {}", "public abstract void mo42331g();", "public abstract void mo35054b();", "public abstract String mo13682d();", "public void mo21786K() {\n }", "public void mo3376r() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo3749d() {\n }", "public void mo21794S() {\n }", "public void mo12628c() {\n }", "private Infer() {\n\n }", "public void mo9848a() {\n }", "private OMUtil() { }", "public abstract void mo27464a();", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private NativeSupport() {\n\t}", "public void mo2740a() {\n }", "@Override\n public boolean isPrivate() {\n return true;\n }" ]
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397", "0.6152618", "0.61521906", "0.6116792", "0.61100185", "0.61080855", "0.6088319", "0.6082373", "0.6072587", "0.60691696", "0.60570836", "0.60564214", "0.6056027", "0.60505396", "0.6050144", "0.60472345", "0.6044647", "0.6036982", "0.6024398", "0.6024398", "0.6024398", "0.6024398", "0.6020334", "0.60201526", "0.6018423", "0.6016204", "0.6005956", "0.6002279", "0.5999404", "0.59974486", "0.59964895", "0.5995736", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.599113", "0.5987661", "0.5987661", "0.5984926", "0.5983099", "0.5973421", "0.59589046", "0.5958243", "0.5953439", "0.59510964", "0.59475076", "0.5946366", "0.5943994", "0.59424007", "0.59403396", "0.5937576", "0.59374106", "0.5926433", "0.59263766", "0.59263766", "0.5925841", "0.5913479", "0.5910542", "0.59044325", "0.5904201", "0.59039", "0.58995575", "0.58967894", "0.5894089", "0.58939654", "0.58905286", "0.5882918", "0.58785903", "0.58777314", "0.5876467", "0.5876147", "0.587332", "0.58671093", "0.58671093", "0.58666575", "0.5866619", "0.58632815" ]
0.0
-1
/ access modifiers changed from: packageprivate
public void prepareTitleView(int i) { int i2; setBackground(getResources().getDrawable(R.drawable.fs_gesture_back_bg, (Resources.Theme) null)); int i3 = R.string.how_to_use_app_quick; switch (i) { case 0: i2 = R.string.fs_gesture_left_back_ready_summary; break; case 1: i2 = R.string.fs_gesture_right_back_ready_summary; break; case 2: i3 = R.string.how_to_back_home; i2 = R.string.fs_gesture_back_home_summary; break; case 3: i3 = R.string.how_to_switch_recents; i2 = R.string.fs_gesture_switch_recents_summary; break; case 4: i3 = R.string.how_to_use_drawer; i2 = R.string.how_to_use_drawer_summary; break; case 5: i2 = R.string.how_to_use_app_quick_summary; break; case 6: i2 = R.string.how_to_use_app_quick_hide_line_summary; break; default: i2 = 0; i3 = 0; break; } i3 = R.string.fs_gesture_back_ready_title; TextView textView = this.mTitleView; if (textView != null && this.mSummaryView != null) { textView.setText(i3); this.mSummaryView.setText(i2); this.mTitleView.setVisibility(0); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a() {\n }", "@Override\n public void perish() {\n \n }", "public abstract void mo70713b();", "public void m23075a() {\n }", "public void mo38117a() {\n }", "private MApi() {}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public abstract void mo56925d();", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void mo21779D() {\n }", "public abstract void mo27386d();", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "void m1864a() {\r\n }", "public abstract Object mo26777y();", "public void mo21825b() {\n }", "protected boolean func_70814_o() { return true; }", "public final void mo91715d() {\n }", "public abstract void mo27385c();", "public void mo97908d() {\n }", "public void mo21782G() {\n }", "private TMCourse() {\n\t}", "private test5() {\r\n\t\r\n\t}", "private Util() { }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "protected void mo6255a() {\n }", "private abstract void privateabstract();", "public void mo21877s() {\n }", "public void mo21787L() {\n }", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private MetallicityUtils() {\n\t\t\n\t}", "public void mo21791P() {\n }", "public void mo4359a() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "public abstract void mo6549b();", "public void mo23813b() {\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }", "public void mo44053a() {\n }", "public void smell() {\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 }", "public void mo115190b() {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public void mo21785J() {\n }", "public void mo21793R() {\n }", "public void mo21878t() {\n }", "public void mo56167c() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public abstract String mo118046b();", "public void mo115188a() {\n }", "private SourcecodePackage() {}", "public abstract String mo41079d();", "void mo57277b();", "public void mo6944a() {\n }", "public abstract void mo42329d();", "public abstract void mo30696a();", "private final zzgy zzgb() {\n }", "private Utils() {\n\t}", "private Utils() {\n\t}", "protected boolean func_70041_e_() { return false; }", "zzafe mo29840Y() throws RemoteException;", "private Singletion3() {}", "public abstract void mo42331g();", "public abstract void mo35054b();", "public abstract String mo13682d();", "public void mo21786K() {\n }", "public void mo3376r() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo3749d() {\n }", "public void mo21794S() {\n }", "public void mo12628c() {\n }", "private Infer() {\n\n }", "public void mo9848a() {\n }", "private OMUtil() { }", "public abstract void mo27464a();", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private NativeSupport() {\n\t}", "public void mo2740a() {\n }", "@Override\n public boolean isPrivate() {\n return true;\n }" ]
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397", "0.6152618", "0.61521906", "0.6116792", "0.61100185", "0.61080855", "0.6088319", "0.6082373", "0.6072587", "0.60691696", "0.60570836", "0.60564214", "0.6056027", "0.60505396", "0.6050144", "0.60472345", "0.6044647", "0.6036982", "0.6024398", "0.6024398", "0.6024398", "0.6024398", "0.6020334", "0.60201526", "0.6018423", "0.6016204", "0.6005956", "0.6002279", "0.5999404", "0.59974486", "0.59964895", "0.5995736", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.599113", "0.5987661", "0.5987661", "0.5984926", "0.5983099", "0.5973421", "0.59589046", "0.5958243", "0.5953439", "0.59510964", "0.59475076", "0.5946366", "0.5943994", "0.59424007", "0.59403396", "0.5937576", "0.59374106", "0.5926433", "0.59263766", "0.59263766", "0.5925841", "0.5913479", "0.5910542", "0.59044325", "0.5904201", "0.59039", "0.58995575", "0.58967894", "0.5894089", "0.58939654", "0.58905286", "0.5882918", "0.58785903", "0.58777314", "0.5876467", "0.5876147", "0.587332", "0.58671093", "0.58671093", "0.58666575", "0.5866619", "0.58632815" ]
0.0
-1
/ access modifiers changed from: packageprivate
public void notifyFinish() { setBackground(getResources().getDrawable(R.drawable.fs_gesture_finish_bg, (Resources.Theme) null)); this.mTitleView.setVisibility(4); this.mSummaryView.setTranslationY(this.mSummaryView.getTranslationX() - 15.0f); this.mSummaryView.setText(R.string.fs_gesture_finish); this.mSkipView.setVisibility(8); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a() {\n }", "@Override\n public void perish() {\n \n }", "public abstract void mo70713b();", "public void m23075a() {\n }", "public void mo38117a() {\n }", "private MApi() {}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public abstract void mo56925d();", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void mo21779D() {\n }", "public abstract void mo27386d();", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "void m1864a() {\r\n }", "public abstract Object mo26777y();", "public void mo21825b() {\n }", "protected boolean func_70814_o() { return true; }", "public final void mo91715d() {\n }", "public abstract void mo27385c();", "public void mo97908d() {\n }", "public void mo21782G() {\n }", "private TMCourse() {\n\t}", "private test5() {\r\n\t\r\n\t}", "private Util() { }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "protected void mo6255a() {\n }", "private abstract void privateabstract();", "public void mo21877s() {\n }", "public void mo21787L() {\n }", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private MetallicityUtils() {\n\t\t\n\t}", "public void mo21791P() {\n }", "public void mo4359a() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "public abstract void mo6549b();", "public void mo23813b() {\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }", "public void mo44053a() {\n }", "public void smell() {\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 }", "public void mo115190b() {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public void mo21785J() {\n }", "public void mo21793R() {\n }", "public void mo21878t() {\n }", "public void mo56167c() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public abstract String mo118046b();", "public void mo115188a() {\n }", "private SourcecodePackage() {}", "public abstract String mo41079d();", "void mo57277b();", "public void mo6944a() {\n }", "public abstract void mo42329d();", "public abstract void mo30696a();", "private final zzgy zzgb() {\n }", "private Utils() {\n\t}", "private Utils() {\n\t}", "protected boolean func_70041_e_() { return false; }", "zzafe mo29840Y() throws RemoteException;", "private Singletion3() {}", "public abstract void mo42331g();", "public abstract void mo35054b();", "public abstract String mo13682d();", "public void mo21786K() {\n }", "public void mo3376r() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo3749d() {\n }", "public void mo21794S() {\n }", "public void mo12628c() {\n }", "private Infer() {\n\n }", "public void mo9848a() {\n }", "private OMUtil() { }", "public abstract void mo27464a();", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private NativeSupport() {\n\t}", "public void mo2740a() {\n }", "@Override\n public boolean isPrivate() {\n return true;\n }" ]
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397", "0.6152618", "0.61521906", "0.6116792", "0.61100185", "0.61080855", "0.6088319", "0.6082373", "0.6072587", "0.60691696", "0.60570836", "0.60564214", "0.6056027", "0.60505396", "0.6050144", "0.60472345", "0.6044647", "0.6036982", "0.6024398", "0.6024398", "0.6024398", "0.6024398", "0.6020334", "0.60201526", "0.6018423", "0.6016204", "0.6005956", "0.6002279", "0.5999404", "0.59974486", "0.59964895", "0.5995736", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.599113", "0.5987661", "0.5987661", "0.5984926", "0.5983099", "0.5973421", "0.59589046", "0.5958243", "0.5953439", "0.59510964", "0.59475076", "0.5946366", "0.5943994", "0.59424007", "0.59403396", "0.5937576", "0.59374106", "0.5926433", "0.59263766", "0.59263766", "0.5925841", "0.5913479", "0.5910542", "0.59044325", "0.5904201", "0.59039", "0.58995575", "0.58967894", "0.5894089", "0.58939654", "0.58905286", "0.5882918", "0.58785903", "0.58777314", "0.5876467", "0.5876147", "0.587332", "0.58671093", "0.58671093", "0.58666575", "0.5866619", "0.58632815" ]
0.0
-1
/ access modifiers changed from: packageprivate
public void registerSkipEvent(View.OnClickListener onClickListener) { TextView textView = this.mSkipView; if (textView != null) { textView.setOnClickListener(onClickListener); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a() {\n }", "@Override\n public void perish() {\n \n }", "public abstract void mo70713b();", "public void m23075a() {\n }", "public void mo38117a() {\n }", "private MApi() {}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public abstract void mo56925d();", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void mo21779D() {\n }", "public abstract void mo27386d();", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "void m1864a() {\r\n }", "public abstract Object mo26777y();", "public void mo21825b() {\n }", "protected boolean func_70814_o() { return true; }", "public final void mo91715d() {\n }", "public abstract void mo27385c();", "public void mo97908d() {\n }", "public void mo21782G() {\n }", "private TMCourse() {\n\t}", "private test5() {\r\n\t\r\n\t}", "private Util() { }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "protected void mo6255a() {\n }", "private abstract void privateabstract();", "public void mo21877s() {\n }", "public void mo21787L() {\n }", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private MetallicityUtils() {\n\t\t\n\t}", "public void mo21791P() {\n }", "public void mo4359a() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "public abstract void mo6549b();", "public void mo23813b() {\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }", "public void mo44053a() {\n }", "public void smell() {\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 }", "public void mo115190b() {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public void mo21785J() {\n }", "public void mo21793R() {\n }", "public void mo21878t() {\n }", "public void mo56167c() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public abstract String mo118046b();", "public void mo115188a() {\n }", "private SourcecodePackage() {}", "public abstract String mo41079d();", "void mo57277b();", "public void mo6944a() {\n }", "public abstract void mo42329d();", "public abstract void mo30696a();", "private final zzgy zzgb() {\n }", "private Utils() {\n\t}", "private Utils() {\n\t}", "protected boolean func_70041_e_() { return false; }", "zzafe mo29840Y() throws RemoteException;", "private Singletion3() {}", "public abstract void mo42331g();", "public abstract void mo35054b();", "public abstract String mo13682d();", "public void mo21786K() {\n }", "public void mo3376r() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo3749d() {\n }", "public void mo21794S() {\n }", "public void mo12628c() {\n }", "private Infer() {\n\n }", "public void mo9848a() {\n }", "private OMUtil() { }", "public abstract void mo27464a();", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private NativeSupport() {\n\t}", "public void mo2740a() {\n }", "@Override\n public boolean isPrivate() {\n return true;\n }" ]
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397", "0.6152618", "0.61521906", "0.6116792", "0.61100185", "0.61080855", "0.6088319", "0.6082373", "0.6072587", "0.60691696", "0.60570836", "0.60564214", "0.6056027", "0.60505396", "0.6050144", "0.60472345", "0.6044647", "0.6036982", "0.6024398", "0.6024398", "0.6024398", "0.6024398", "0.6020334", "0.60201526", "0.6018423", "0.6016204", "0.6005956", "0.6002279", "0.5999404", "0.59974486", "0.59964895", "0.5995736", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.599113", "0.5987661", "0.5987661", "0.5984926", "0.5983099", "0.5973421", "0.59589046", "0.5958243", "0.5953439", "0.59510964", "0.59475076", "0.5946366", "0.5943994", "0.59424007", "0.59403396", "0.5937576", "0.59374106", "0.5926433", "0.59263766", "0.59263766", "0.5925841", "0.5913479", "0.5910542", "0.59044325", "0.5904201", "0.59039", "0.58995575", "0.58967894", "0.5894089", "0.58939654", "0.58905286", "0.5882918", "0.58785903", "0.58777314", "0.5876467", "0.5876147", "0.587332", "0.58671093", "0.58671093", "0.58666575", "0.5866619", "0.58632815" ]
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.expandable_list_view_test, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.68621665", "0.68621665", "0.68621665", "0.68515885", "0.68467957", "0.68194443", "0.6817494", "0.6813087", "0.6813087", "0.6812847", "0.6805774", "0.6801204", "0.6797914", "0.6791314", "0.6789091", "0.67883503", "0.6783642", "0.6759701", "0.6757412", "0.67478645", "0.6744127", "0.6744127", "0.67411774", "0.6740183", "0.6726017", "0.6723245", "0.67226785", "0.67226785", "0.67208904", "0.67113477", "0.67079866", "0.6704564", "0.6699229", "0.66989094", "0.6696622", "0.66952467", "0.66865396", "0.6683476", "0.6683476", "0.6682188", "0.6681209", "0.6678941", "0.66772443", "0.6667702", "0.66673946", "0.666246", "0.6657578", "0.6657578", "0.6657578", "0.6656586", "0.66544783", "0.66544783", "0.66544783", "0.66524047", "0.6651954", "0.6650132", "0.66487855", "0.6647077", "0.66467404", "0.6646615", "0.66464466", "0.66449624", "0.6644209", "0.6643461", "0.6643005", "0.66421187", "0.6638628", "0.6634786", "0.6633529", "0.6632049", "0.6632049", "0.6632049", "0.66315657", "0.6628954", "0.66281766", "0.6627182", "0.6626297", "0.6624309", "0.6619582", "0.6618876", "0.6618876" ]
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { portTextField = new javax.swing.JFormattedTextField(); serverNameTextField = new javax.swing.JFormattedTextField(); serverLabel = new javax.swing.JLabel(); serverLabel1 = new javax.swing.JLabel(); closeButton = new javax.swing.JButton(); addButton = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setTitle("Add New Server"); // NOI18N setName("Form"); // NOI18N portTextField.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("##0")))); portTextField.setHorizontalAlignment(javax.swing.JTextField.TRAILING); portTextField.setName("portTextField"); // NOI18N portTextField.addPropertyChangeListener(new java.beans.PropertyChangeListener() { public void propertyChange(java.beans.PropertyChangeEvent evt) { portTextFieldPropertyChange(evt); } }); serverNameTextField.setHorizontalAlignment(javax.swing.JTextField.TRAILING); serverNameTextField.setName("serverNameTextField"); // NOI18N serverLabel.setText("Server"); serverLabel.setName("serverLabel"); // NOI18N serverLabel1.setText("Port"); serverLabel1.setName("serverLabel1"); // NOI18N closeButton.setText("Close"); closeButton.setName("closeButton"); // NOI18N closeButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { closeButtonActionPerformed(evt); } }); addButton.setText("Add"); addButton.setName("addButton"); // NOI18N addButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addButtonActionPerformed(evt); } }); org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) .add(layout.createSequentialGroup() .add(closeButton) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(addButton)) .add(layout.createSequentialGroup() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(serverLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 54, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(serverLabel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(portTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(serverNameTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 158, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))) .add(26, 26, Short.MAX_VALUE)) ); layout.linkSize(new java.awt.Component[] {serverLabel, serverLabel1}, org.jdesktop.layout.GroupLayout.HORIZONTAL); layout.linkSize(new java.awt.Component[] {portTextField, serverNameTextField}, org.jdesktop.layout.GroupLayout.HORIZONTAL); layout.setVerticalGroup( layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) .add(layout.createSequentialGroup() .addContainerGap() .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(serverNameTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(serverLabel)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(portTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) .add(serverLabel1)) .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) .add(closeButton) .add(addButton)) .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public quotaGUI() {\n initComponents();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Oddeven() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public kunde() {\n initComponents();\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public frmVenda() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.7318948", "0.7290426", "0.7290426", "0.7290426", "0.7284922", "0.7247965", "0.7213206", "0.72080696", "0.7195916", "0.7189941", "0.71835536", "0.71579427", "0.7147217", "0.70927703", "0.7080282", "0.7055882", "0.6987108", "0.69770193", "0.6954159", "0.69529283", "0.6944756", "0.6941631", "0.69351804", "0.6931676", "0.69271684", "0.6924507", "0.6924333", "0.6910886", "0.6910063", "0.6893039", "0.6892514", "0.68902403", "0.68896806", "0.68873954", "0.688239", "0.68815583", "0.68807346", "0.6877274", "0.68747336", "0.6873939", "0.6871645", "0.6858798", "0.68562996", "0.68551964", "0.6854526", "0.6853759", "0.6852625", "0.6852071", "0.6852071", "0.6842801", "0.6836393", "0.6835916", "0.6827825", "0.68275064", "0.6826875", "0.6823854", "0.68217176", "0.6816455", "0.68164307", "0.68095225", "0.68079925", "0.6807973", "0.6807133", "0.6806263", "0.6802961", "0.67933935", "0.6793082", "0.6791554", "0.6789944", "0.6788754", "0.6787684", "0.67871934", "0.6783336", "0.67656237", "0.6765452", "0.6764802", "0.67560065", "0.67553526", "0.67517436", "0.6751359", "0.67414886", "0.67386204", "0.67362994", "0.67358786", "0.6732659", "0.6726978", "0.67262286", "0.6719745", "0.6715412", "0.67137116", "0.6713403", "0.670771", "0.67069227", "0.670236", "0.6701016", "0.6700013", "0.66983503", "0.66981363", "0.6694568", "0.66907334", "0.66893756" ]
0.0
-1
End of variables declaration//GENEND:variables
public javax.swing.JButton getAddButton() { return addButton; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public void mo21779D() {\n }", "public final void mo51373a() {\n }", "protected boolean func_70041_e_() { return false; }", "public void mo4359a() {\n }", "public void mo21782G() {\n }", "private void m50366E() {\n }", "public void mo12930a() {\n }", "public void mo115190b() {\n }", "public void method_4270() {}", "public void mo1403c() {\n }", "public void mo3376r() {\n }", "public void mo3749d() {\n }", "public void mo21793R() {\n }", "protected boolean func_70814_o() { return true; }", "public void mo21787L() {\n }", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo21780E() {\n }", "public void mo21792Q() {\n }", "public void mo21791P() {\n }", "public void mo12628c() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo97908d() {\n }", "public void mo21878t() {\n }", "public void mo9848a() {\n }", "public void mo21825b() {\n }", "public void mo23813b() {\n }", "public void mo3370l() {\n }", "public void mo21879u() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo21785J() {\n }", "public void mo21795T() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void m23075a() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo21794S() {\n }", "public final void mo12688e_() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "public void mo6944a() {\n }", "public static void listing5_14() {\n }", "public void mo1405e() {\n }", "public final void mo91715d() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo9137b() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void func_70295_k_() {}", "void mo57277b();", "public void mo21877s() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void Tyre() {\n\t\t\r\n\t}", "void berechneFlaeche() {\n\t}", "public void mo115188a() {\n }", "public void mo21880v() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "private stendhal() {\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public void mo56167c() {\n }", "public void mo44053a() {\n }", "public void mo21781F() {\n }", "public void mo2740a() {\n }", "public void mo21783H() {\n }", "public void mo1531a() {\n }", "double defendre();", "private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }", "public void stg() {\n\n\t}", "void m1864a() {\r\n }", "private void poetries() {\n\n\t}", "public void skystonePos4() {\n }", "public void mo2471e() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private void yy() {\n\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@AnyLogicInternalCodegenAPI\n private void setupPlainVariables_Main_xjal() {\n }", "static void feladat4() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void init() { \r\n\t\t// TODO Auto-generated method\r\n\t }", "public void furyo ()\t{\n }", "public void verliesLeven() {\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "protected void mo6255a() {\n }" ]
[ "0.6359434", "0.6280371", "0.61868024", "0.6094568", "0.60925734", "0.6071678", "0.6052686", "0.60522056", "0.6003249", "0.59887564", "0.59705925", "0.59680873", "0.5967989", "0.5965816", "0.5962006", "0.5942372", "0.5909877", "0.5896588", "0.5891321", "0.5882983", "0.58814824", "0.5854075", "0.5851759", "0.58514243", "0.58418584", "0.58395296", "0.5835063", "0.582234", "0.58090156", "0.5802706", "0.5793836", "0.57862717", "0.5784062", "0.5783567", "0.5782131", "0.57758564", "0.5762871", "0.5759349", "0.5745087", "0.57427835", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.57326084", "0.57301426", "0.57266665", "0.57229686", "0.57175463", "0.5705802", "0.5698347", "0.5697827", "0.569054", "0.5689405", "0.5686434", "0.56738997", "0.5662217", "0.56531453", "0.5645255", "0.5644223", "0.5642628", "0.5642476", "0.5640595", "0.56317437", "0.56294966", "0.56289655", "0.56220204", "0.56180173", "0.56134313", "0.5611337", "0.56112075", "0.56058615", "0.5604383", "0.5602629", "0.56002104", "0.5591573", "0.55856615", "0.5576992", "0.55707216", "0.5569681", "0.55570376", "0.55531484", "0.5551123", "0.5550893", "0.55482954", "0.5547471", "0.55469507", "0.5545719", "0.5543553", "0.55424106", "0.5542057", "0.55410767", "0.5537739", "0.55269134", "0.55236584", "0.55170715", "0.55035424", "0.55020875" ]
0.0
-1
This code will create two variables to store the horizontal and vertical positions specified origin is (0,0) h= horizontal v=vertical
public static void main(String[] args) throws IOException { int h = 0; int v = 0; InputStreamReader file = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(file); //This string will be the iterable container String directions = br.readLine(); //this code will check upper limit if(directions.length()>10) System.out.println("I won't be able to make it that far"); else{ for (int i = 0; i < directions.length(); i++) { //Iterate through each character and increment/decrement horizontal/vertical values switch (directions.charAt(i)) { case 'U': case 'u': v++; break; case 'R': case 'r': h++; break; case 'L': case 'l': h--; break; case 'D': case 'd': v--; break; default: System.out.println(directions.charAt(i) + " was ignored "); } } System.out.println(h + " " + v); } //end of else statement br.close(); file.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Coordinates getVerHor();", "void to_screen_2D_x_y_i (double horiz, double vert) {\n double rp = Math.toRadians(craft_pitch); \n double space_x = scalex*(offx+horiz);\n double space_y = scaley*(offy+vert);\n space_x = space_x*Math.cos(rp) - space_y*Math.sin(rp); \n space_y = space_x*Math.sin(rp) + space_y*Math.cos(rp); \n\n x[xy_i] = screen_off_x + toInt(space_x);\n y[xy_i++] = screen_off_y + toInt(space_y);\n }", "private void defineVertexes(String orientation){\n if(\"down\".equals(orientation)){\n y2 = y1-height;\n y3 = y1-height;\n \n x2 = x1 - height/2;\n x3 = x1 + height/2;\n }else if(orientation.equals(\"up\")){\n y2 = y1+height;\n y3 = y1+height;\n x2 = x1 - height/2;\n x3 = x1 + height/2;\n }else if(orientation.equals(\"left\")){\n x2 = x1-height;\n y2 = y1+height/2;\n x3 = x1;\n y3 = y1+height;\n }else if(orientation.equals(\"right\")){\n x2 = x1+height;\n y2 = y1+height/2;\n x3 = x1;\n y3 = y1+height;\n }\n }", "public void setVerHor(Coordinates currentVerHor);", "public Vertix(int name, int x, int y) {\n this.name = name;\n this.x = x;\n this.y = y;\n }", "public HorizontalCoords() {\n }", "public void setStuff(int x, int y, int w, int h)\n {\n\t xPos = x;\n\t yPos = y;\n\t width = w;\n\t height = h;\n }", "private void calculateCameraPosition(float hDistance, float vDistance)\n\t{\n\t\tfloat theta=player.getRotY()+angleAroundPlayer;\n\t\tfloat offsetX=hDistance*(float)Math.sin(Math.toRadians(theta));\n\t\tfloat offsetZ=hDistance*(float)Math.cos(Math.toRadians(theta));\n\t\t\n\t\t//calculate camera position\n\t\tposition.x=player.getPosition().x-offsetX;\n\t\tposition.z=player.getPosition().z-offsetZ;\n\t\tposition.y=player.getPosition().y+vDistance;\n\t}", "private void recalculatePosition()\n {\n position.x = gridCoordinate.getCol()*(width+horizontal_spacing);\n position.y = gridCoordinate.getRow()*(heigh+vertical_spacing);\n }", "void setRectHitbox(float w, float h) {\n _hitbox = new PVector[]{\n new PVector(-w/2, h/2),\n new PVector(-w/2, -h/2),\n new PVector(w/2, -h/2),\n new PVector(w/2, h/2)\n };\n }", "public Table(int m, double w, double h) {\r\n maxPoints = m;\r\n width = w;\r\n height = h;\r\n directionend = new int[]{0, 2};\r\n end = new int[]{100, 100};\r\n endy = new double[2];\r\n endx = new double[2];\r\n endy[0] = endy[1] = height / 2 - 80 / 2;\r\n endx[0] = endx[1] = width / 2 - 40 / 2;\r\n mixDominoes();\r\n }", "public Vehicle(int x, int y, int w, int h)\n\t{\n\t\tthis.x=x;\n\t\tthis.y=y;\n\t\twidth = w;\n\t\theight = h;\n\t\tboundingBox = new Rectangle(x,y,width,height);\n\t\t//System.out.println(\"Cordinates pressed: \"+ x +\",\"+ y);\n\t}", "private double getHorizontalOffset(final int hpos) {\n double dx;\n switch(hpos) {\n case LEFT:\n dx = 0;\n break;\n case CENTER_H:\n dx = -bbox.getWidth() * 0.5;\n break;\n case RIGHT:\n dx = -bbox.getWidth();\n break;\n default:\n throw new IllegalArgumentException(\"hpos: \" + hpos);\n }\n return dx - bbox.getX();\n }", "public int getHorY() {\r\n return horY;\r\n }", "public void setValue(int x, int y, double v, Matrix m){\r\n\t\tvc = Couple.get(v, horizontals[x]);\r\n\t\thorizontals[x] = v;\r\n\t\thc = Couple.get(v, verticals[y]);\r\n\t\tverticals[y] = v;\r\n\t}", "private int[] defineStartingPos() {\n\t\tint[] positions = new int[4];\n\t\tif(initPos.equals(UP)) {\n\t\t\tpositions[0] = 0;\n\t\t\tpositions[1] = (size-1)/2;\n\t\t\tpositions[2] = 1;\n\t\t}else if(initPos.equals(DOWN)) {\n\t\t\tpositions[0] = size-1;\n\t\t\tpositions[1] = (size-1)/2;\n\t\t\tpositions[2] = -1;\n\t\t}else if(initPos.equals(LEFT)) {\n\t\t\tpositions[0] = (size-1)/2;\n\t\t\tpositions[1] = 0;\n\t\t\tpositions[3] = 1;\n\t\t}else if(initPos.equals(RIGHT)) {\n\t\t\tpositions[0] = (size-1)/2;\n\t\t\tpositions[1] = size-1;\n\t\t\tpositions[3] = -1;\n\t\t}\n\t\treturn positions;\n\t}", "@Override\n\t\t\tpublic Vector getPosition() {\n\t\t\t\treturn new Vector(-2709.487, -4281.02, 3861.564); //-4409.0, 2102.0, -4651.0);\n\t\t\t}", "public ImgMathVec(int x, int y) {\r\n\t\tv = new int[3];\r\n\t\tv[0] = x;\r\n\t\tv[1] = y;\r\n\t\tv[2] = 1;\r\n\t}", "public Viewport4i( int leftX, int topY, int rightX, int bottomY) {\r\n\r\n if (Integer.compare(leftX, rightX) < 0) {\r\n _xLeft = leftX;\r\n _xRight = rightX;\r\n } else {\r\n _xRight = leftX;\r\n _xLeft = rightX;\r\n }\r\n\r\n if (Integer.compare(topY, bottomY) < 0) {\r\n _yTop = topY;\r\n _yBottom = bottomY;\r\n } else {\r\n _yBottom = topY;\r\n _yTop = bottomY;\r\n }\r\n\r\n }", "private RectHV rectLb() {\n\n if (!horizontal) {\n return new RectHV(\n rect.xmin(),\n rect.ymin(),\n p.x(),\n rect.ymax()\n );\n\n\n } else {\n return new RectHV(\n rect.xmin(),\n rect.ymin(),\n rect.xmax(),\n p.y()\n );\n }\n }", "Position createPosition();", "posXY(int x, int y){\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t}", "public void setViewPos(View view, int x, int y, int w, int h) {\n RelativeLayout.LayoutParams rl = new RelativeLayout.LayoutParams(w, h);\n rl.leftMargin = x;\n rl.topMargin = y;\n view.setLayoutParams(rl);\n this.MyRelativeLayout.addView(view);\n }", "public Point[] getForwardCoords(int fromX, int fromY, int toX, int toY)\n {\n int[] coordX = new int[3];\n int[] coordY = new int[3];\n if ((toX < fromX) || ((toX == (size.width - 1)) && (fromX == 0)))\n {\n coordX[0] = toX;\n coordX[1] = toX - 1;\n if (coordX[1] < 0)\n {\n coordX[1] += size.width;\n }\n coordX[2] = toX;\n coordY[0] = (toY + 1) % size.height;\n coordY[1] = toY;\n coordY[2] = toY - 1;\n if (coordY[2] < 0)\n {\n coordY[2] += size.height;\n }\n }\n else if ((toX > fromX) || ((toX == 0) && (fromX == (size.width - 1))))\n {\n coordX[0] = toX;\n coordX[1] = (toX + 1) % size.width;\n coordX[2] = toX;\n coordY[0] = (toY + 1) % size.height;\n coordY[1] = toY;\n coordY[2] = toY - 1;\n if (coordY[2] < 0)\n {\n coordY[2] += size.height;\n }\n }\n else if ((toY < fromY) || ((toY == (size.height - 1)) && (fromY == 0)))\n {\n coordY[0] = toY;\n coordY[1] = toY - 1;\n if (coordY[1] < 0)\n {\n coordY[1] += size.height;\n }\n coordY[2] = toY;\n coordX[0] = (toX + 1) % size.width;\n coordX[1] = toX;\n coordX[2] = toX - 1;\n if (coordX[2] < 0)\n {\n coordX[2] += size.width;\n }\n }\n else if ((toY > fromY) || ((toY == 0) && (fromY == (size.height - 1))))\n {\n coordY[0] = toY;\n coordY[1] = (toY + 1) % size.height;\n coordY[2] = toY;\n coordX[0] = (toX + 1) % size.width;\n coordX[1] = toX;\n coordX[2] = toX - 1;\n if (coordX[2] < 0)\n {\n coordX[2] += size.width;\n }\n }\n Point[] result = new Point[3];\n for (int i = 0; i < 3; i++)\n {\n result[i] = new Point(coordX[i], coordY[i]);\n }\n return(result);\n }", "public abstract Vec2 startPosition();", "Vector getPos();", "@Basic @Immutable\n\tpublic double getVerticalLocation() {\n\t\treturn this.verticalLocation;\n\t}", "@SuppressWarnings({ \"resource\", \"unused\" })\n\tpublic static void main(String[] args) {\n\t\t\n\t\n\t\tSystem.out.println(\"enter h and v\");\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint v=sc.nextInt();\n\t\tint h=sc.nextInt();\n\t\tSystem.out.println(\"enter the cordinates\");\n\t\t\n\t\tint[][] ver = new int[10][3];\n\t\tint[][] hor = new int[10][3];\n\t\t\n\t\tfor(int i=0;i<v;i++) {\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\tver[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<h;i++) {\n\t\t\tfor(int j=0;j<3;j++) {\n\t\t\t\thor[i][j]=sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tint count=0;\n\t\t\n\t\tfor(int i=0;i<h;i++)\n\t {\n\t for(int j=0;j<v;j++)\n\t {\n\t if( (hor[i][1] <= ver[j][0]) && (ver[j][0] <= hor[i][2]) && (ver[j][1] <= hor[i][0]) && (hor[i][0] <= ver[j][2]) )\n\t count++;\n\t }\n\t }\n\t\t\n\t\tSystem.out.println(count);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}", "Vaisseau_positionner createVaisseau_positionner();", "private void findPoints(int[] xPoints,int[]yPoints,int x,int y,int x2,int h){\r\n xPoints[0]=x;\r\n xPoints[1]=x2;\r\n xPoints[2]=x;\r\n yPoints[0]=y;\r\n yPoints[1]=y+h/2;\r\n yPoints[2]=y+h; \r\n }", "public void calculaVertice(int _radio, double _giro){\r\n //npoints equivale a _lados\r\n for(int i = 0; i<npoints;i++){\r\n //asi se llama internamente a la primera array de las posiciones x\r\n xpoints[i] = (int)(x + _radio*Math.cos((2*Math.PI * i +_giro/40)/npoints));\r\n ypoints[i] = (int)(y + _radio*Math.sin((2*Math.PI * i +_giro/40)/npoints));\r\n }\r\n \r\n }", "public boolean setPosition(int x, int y, int w, int h)\n {\n return setPosition( new Position2D(x, y, w, h) );\n }", "int getVerticalAlignValue();", "public ViewSize(int left,int top,int right,int bottom){\n this.left=left;\n this.top=top;\n this.right=right;\n this.bottom=bottom;\n }", "public Position position();", "private Point2D computeLayoutOrigin() {\r\n\r\n\t\tDimension size = getSize();\r\n\r\n\t\tPoint2D.Float origin = new Point2D.Float();\r\n\r\n\t\torigin.x = (float) (size.width - textLayout.getAdvance()) / 2;\r\n\t\torigin.y = (float) (size.height - textLayout.getDescent() + textLayout\r\n\t\t\t\t.getAscent()) / 2;\r\n\r\n\t\treturn origin;\r\n\t}", "public int getH() { return height; }", "public abstract Vector getPosition(Rectangle selectionBox);", "public TextView TvCreateRelative(int x, int y, int w, int h) {\n TextView tv = new TextView(this);\n setViewPos(tv, x, y, w, h);\n tv.setTextColor(-1);\n return tv;\n }", "public int getHorX() {\r\n return horX;\r\n }", "Vector2 getPosition();", "public StagePosition makeStagePosition(int col, int row);", "Vec(double x, double y) {\n this.x = x; this.y = y;\n }", "public abstract void startPos(int iWidth, int iHeight);", "public Segment2 getVerticalSegmentOfCell() {\n\n\t\tList<Float> boundings = getBoundingsOfCell();\n\n\t\t// This will be the x-coordinate of the vertical line\n\t\tfloat midPointX = (boundings.get(1) - boundings.get(0)) / 2 + boundings.get(0);\n\n\t\t// Since we are working with segment we give him a source and a target\n\t\t// which are basically not too important for the rest of the algorithmF\n\t\tPoint2 source = new Point2(midPointX, boundings.get(2));\n\t\tPoint2 target = new Point2(midPointX, boundings.get(3));\n\n\t\tSegment2 segment = new Segment2(source, target);\n\n\t\treturn segment;\n\t}", "public void onSizeChanged(int w, int h, int oldW, int oldH) {\n super.onSizeChanged(w, h, oldW, oldH);\n this.beginWid = (float)getWidth()/8;\n this.endWid = (float)getWidth()-((float)getWidth()/8);\n this.beginHei = (float)getHeight()/8;\n this.endHei = getHeight()-((float)getHeight()/8);\n this.oval = new RectF(this.beginWid,this.beginHei, this.endWid, this.endHei);\n returnDefault();\n }", "private static Vector2f toGuiCoords(float x, float y) {\r\n\t\treturn(new Vector2f((x/DisplayManager.getWidth()) - 0.5f, y/DisplayManager.getHeight()));\r\n\t}", "public void projectResponsePosition()\n {\n int width = Agar.GRID_SIZE.width;\n int height = Agar.GRID_SIZE.height;\n int nx, ny, sx, sy, wx, wy, ex, ey;\n\n nx = x;\n ny = ((y + 1) % height);\n wx = x - 1;\n if (wx < 0) { wx += width; }\n wy = y;\n ex = ((x + 1) % width);\n ey = y;\n sx = x;\n sy = y - 1;\n if (sy < 0) { sy += height; }\n switch (response)\n {\n case NORTHWEST:\n x2 = wx;\n y2 = ny;\n break;\n\n case NORTH:\n x2 = nx;\n y2 = ny;\n break;\n\n case NORTHEAST:\n x2 = ex;\n y2 = ny;\n break;\n\n case WEST:\n x2 = wx;\n y2 = wy;\n break;\n\n case STAY:\n x2 = x;\n y2 = y;\n break;\n\n case EAST:\n x2 = ex;\n y2 = ey;\n break;\n\n case SOUTHWEST:\n x2 = wx;\n y2 = sy;\n break;\n\n case SOUTH:\n x2 = sx;\n y2 = sy;\n break;\n\n case SOUTHEAST:\n x2 = ex;\n y2 = sy;\n break;\n }\n }", "@Test\n\tpublic void testCuatroEnRayaVertical() {\n\t\t\n\t\tint []posX = new int[4];\n\t\tint []posY = new int[4];\n\t\tfor (int x = 1; x <= 7; ++x) {\n\t\t\tfor (int y = 1; y <= 6 - 3; ++y) {\n\t\t\t\tfor (int l = 0; l < 4; ++l) {\n\t\t\t\t\tposX[l] = x;\n\t\t\t\t\tposY[l] = y + l;\n\t\t\t\t}\n\t\t\t\ttestCuatroEnRaya(posX, posY, 0, Counter.WHITE);\n\t\t\t\ttestCuatroEnRaya(posX, posY, 0, Counter.BLACK);\n\t\t\t}\n\t\t}\n\t}", "void xsetVerticalResolution(com.microsoft.schemas.office.x2006.digsig.STPositiveInteger verticalResolution);", "private int getPosition(int row, int col) {\n\t\treturn (side * (row - 1)) + (col - 1);\n\t}", "public int getX(){ return xPosition; }", "public Enumeration inAdjacentVertice(Position vp) throws InvalidPositionException;", "private void m24192d(ah ahVar) {\n Object obj = new int[2];\n ahVar.f995b.getLocationOnScreen(obj);\n ahVar.f994a.put(\"android:slide:screenPosition\", obj);\n }", "public VerticalLayout() {\r\n this(5, CENTER, TOP);\r\n }", "Square getCurrentPosition();", "int getStartPosition();", "int getStartPosition();", "public Vector2D getPosition ();", "public static int[] vector(int x, int y) { return new int[] {x,y}; }", "Position_Position createPosition_Position();", "protected abstract void calcOrigin();", "private void createSwitches() {\n \t\tswitches = new Point[4];\n \t\tswitches[0] = new Point(centreMin, centreMin);\n \t\tswitches[1] = new Point(centreMin, centreMax-1);\n \t\tswitches[2] = new Point(centreMax-1, centreMin);\n \t\tswitches[3] = new Point(centreMax-1, centreMax-1);\n \t}", "public List<Position> getPositionFor(int row,int column,\r\n List<Position> listPos){\r\n for(int i=0;i<size;i++){\r\n listPos.add(new Position(row,column));\r\n if(orientation == Orientation.HORIZONTAL)\r\n column++;\r\n else\r\n row++;\r\n }\r\n return listPos;\r\n }", "public void setPosition(int x, int y){\n\t\t\n\t\tif(x>=ColumnNumber.firstColumn.ordinal() && x<=ColumnNumber.eightColumn.ordinal()){\n\t\t\txPosition=x;\n\t\t}\n\t\tif(y>=RowNumber.firstRow.ordinal() && y<=RowNumber.eightRow.ordinal()){\n\t\t\tyPosition=y;\n\t\t}\n\t\t\n\t}", "private void drawVerticalLines(GenericTabItem tab)\n\t{\n\t\tfor(Long cpuId : vLines.keySet())\n\t\t{\n\t\t\tVector<Line> cpuLines = vLines.get(cpuId);\n\n\t\t\t//Calculate line coordinates\n\t\t\tPoint cpuCoordinate = cpuCoordinates.get(cpuId);\n\t\t\tint lineXStartPos = cpuCoordinate.x;\n\t\t\tint lineXPos = lineXStartPos;\n\t\t\tint lineXOffset = (int)(CPU_WIDTH.intValue() / (cpuLines.size()+1));;\t\t\n\n\t\t\tfor(Line line : cpuLines)\n\t\t\t{\n\t\t\t\tlineXPos += lineXOffset;\n\t\t\t\t\n\t\t\t\t//Update x coordinates to match cpu coordinates\n\t\t\t\tPoint cpuStart = line.getStart();\n\t\t\t\tcpuStart.setX(lineXPos);\t\t\t\n\t\t\t\tPoint cpuEnd = line.getEnd();\n\t\t\t\tcpuEnd.setX(lineXPos);\n\t\t\t\t\n\t\t\t\tline.setStart(cpuStart);\n\t\t\t\tline.setEnd(cpuEnd);\t\t\n\t\t\t\ttab.addFigure(line);\n\t\t\t\t\n\t\t\t\t//Save x coordinate if this is the first or last connection on the horizontal lines\n\t\t\t\tLine busLine = hLines.get(new Long(cpuEnd.y));\n\t\t\t\tPoint busStart = busLine.getStart();\n\t\t\t\tPoint busEnd = busLine.getEnd();\n\t\t\t\t\n\t\t\t\tif(busStart.x > lineXPos || busStart.x == 0)\n\t\t\t\t\tbusStart.setX(lineXPos);\n\t\t\t\t\n\t\t\t\tif(busEnd.x < lineXPos)\n\t\t\t\t\tbusEnd.setX(lineXPos);\t\n\t\t\t\t\n\t\t\t\tbusLine.setStart(busStart);\n\t\t\t\tbusLine.setEnd(busEnd);\n\t\t\t}\t\t\n\t\t}\n\t}", "public Vector2 getPosition();", "public void verificaCoordenada() {\r\n\t\tif (X < 0) {\r\n\t\t\tX = Const.TAMANHO - 1;\r\n\t\t} else {\r\n\t\t\tX = X % Const.TAMANHO;\r\n\t\t}\r\n\r\n\t\tif (Y < 0) {\r\n\t\t\tY = Const.TAMANHO - 1;\r\n\t\t} else {\r\n\t\t\tY = Y % Const.TAMANHO;\r\n\t\t}\r\n\t}", "public End_position(int x, int y){\n super(x, y);\n this.destinationX = x;\n\n loadImage(\"end_position.PNG\");\n getImageDimension();\n }", "private RectHV leftRect(RectHV rect, Node h) {\n\t\tif (h.isVertical) { // left rect\r\n\t\t\treturn new RectHV(rect.xmin(), rect.ymin(), h.p.x(), rect.ymax());\r\n\t\t} else { //bottom rect\r\n\t\t\treturn new RectHV(rect.xmin(), rect.ymin(), rect.xmax(), h.p.y());\r\n\t\t}\r\n\t}", "private void setVertices(){\n \tdouble[] xs = new double[numOfSides];\n \tdouble[] ys = new double[numOfSides];\n \tif (numOfSides%2==1){\n \t\tfor (int i=0; i<numOfSides; i++){\n \t\t\txs[i]=radius*Math.cos(2*i*Math.PI/numOfSides);\n \t\t\tys[i]=radius*Math.sin(2*i*Math.PI/numOfSides);\n \t\t\t}\n \t}\n \telse{\n \t\tdouble start=Math.PI/numOfSides;\n \t\tfor (int i=0; i<numOfSides; i++){\n \t\t\txs[i]=radius*Math.cos(start+2*i*(Math.PI)/numOfSides);\n \t\t\tys[i]=radius*Math.sin(start+2*i*(Math.PI)/numOfSides);\n \t\t\t}\n \t}\n \tsetXLocal(xs);\n \tsetYLocal(ys);\n }", "private int getHorizontalLocation ( int sectionNumber )\r\n\t{\n\t\treturn fromLocation\r\n\t\t+ ( \r\n\t\t\t( ( toLocation - fromLocation ) * ( to - sectionNumber ) ) / ( to - from )\r\n\t\t );\r\n\t}", "public LoopLayoutParams(int w, int h) {\n\t\t\tsuper(w, h);\n\t\t\tposition = CENTER;\n\t\t}", "public static void printVHSV(FqImage imh){\n\t\tint\ti,j;\r\n\t\tfor( i = 0 ; i < imh.width ; i++ ){\r\n\t\t\tfor( j = 0 ; j < imh.height ; j++ ){\r\n\t\t\t\tSystem.out.print(\"v\"+imh.points[i][j].getVHSV() );\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t\r\n\t}", "double getStartH();", "void position(double x, double y, double z);", "int getVerticalResolution();", "public int getXY(int x, int y);", "PositionedObject(){\n float x = DrawingHelper.getGameViewWidth()/2;\n float y = DrawingHelper.getGameViewHeight()/2;\n _position.set(x,y);\n }", "protected Point getColorPosition(float[] hsbvals) {\r\n double angle = Math.PI / 2.0 - hsbvals[0] * 2.0 * Math.PI;\r\n int x = (int) Math.round(radius - radius * hsbvals[1] * Math.cos(angle));\r\n int y = (int) Math.round(radius - radius * hsbvals[1] * Math.sin(angle));\r\n return new Point(x, y);\r\n }", "@Override\r\n public void setOutputPos(int left, int top, int width, int height) {\r\n NexLog.d(LOG_TAG, \"setOutputPos mode:0x\" + Integer.toHexString(videoRenderMode) + \" left:\" + left + \" top:\" + top\r\n + \" width:\" + width + \" height:\" + height + \" getW:\" + getWidth() + \" getH:\" + getHeight());\r\n\r\n if (width == 0 || height == 0)\r\n {\r\n NexLog.d(LOG_TAG, \"setOutputPos : width or height is zero. width and height should be bigger than zero\");\r\n return;\r\n }\r\n\r\n Rect outputPos = new Rect(left, top, left + width, top + height);\r\n setDisplayedRect(outputPos);\r\n\r\n if(mBaseView instanceof NexSurfaceTextureView) {\r\n ((NexSurfaceTextureView)mBaseView).setOutputPos(left, top, width, height);\r\n }\r\n }", "Position getPosition();", "Position getPosition();", "void moveMouse(int horizontal, int vertical);", "void setPosition(double xPos, double yPos);", "public Point centeroid ()\r\n {\r\n return new Point ((v1.getX()+v2.getX()+v3.getX())/3,(v1.getY()+v2.getY()+v3.getY())/3);\r\n }", "private void moveVerticalMhos() {\n\n\t\t//Assign playerX and playerY to the X and Y of the player\n\t\tint playerX = getNewPlayerLocation()[0];\n\t\tint playerY = getNewPlayerLocation()[1];\n\n\t\t//Iterate through every mho's X and Y values\n\t\tfor(int i = 0; i < mhoLocations.size()/2; i++) {\n\n\t\t\t//Assign mhoX and mhoY to the X and Y values of the mho that is currently being tested\n\t\t\tint mhoX = mhoLocations.get(i*2);\n\t\t\tint mhoY = mhoLocations.get(i*2+1);\n\n\t\t\t//set the default X and Y offsets to 0, and the move to NO_MOVEMENT\n\t\t\tint xOffset = 0;\n\t\t\tint yOffset = 0;\n\t\t\tchar move = Legend.NO_MOVEMENT;\n\n\t\t\t//If the horizontal distance is less than or equal to the vertical distance, change the xOffset and yOffset\n\t\t\tif((Math.abs(playerX-mhoX))<=(Math.abs(playerY-mhoY))) {\n\t\t\t\tif(playerY > mhoY) {\n\t\t\t\t\tyOffset = 1;\n\t\t\t\t\tmove = Legend.DOWN;\n\t\t\t\t} else {\n\t\t\t\t\tyOffset = -1;\n\t\t\t\t\tmove = Legend.UP;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//If the new location is an instance of BlankSpace, move the mho\n\t\t\tif(newMap[mhoX+xOffset][mhoY+yOffset] instanceof BlankSpace) {\n\t\t\t\tnewMap[mhoX][mhoY] = new BlankSpace(mhoX, mhoY, board);\n\t\t\t\t\n\t\t\t\t//If the new location is a player, shrink the player and call gameOver()\n\t\t\t\tif(newMap[mhoX+xOffset][mhoY+yOffset] instanceof Player) {\n\t\t\t\t\tmoveList[mhoX+xOffset][mhoY+yOffset] = Legend.SHRINK;\n\t\t\t\t\tgameOver();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Set the mho's move in the moveList\n\t\t\t\tmoveList[mhoX][mhoY] = move;\n\t\t\t\t\n\t\t\t\t//Assign the new map location as a Mho\n\t\t\t\tnewMap[mhoX+xOffset][mhoY+yOffset] = new Mho(mhoX+xOffset, mhoY+yOffset, board);\n\t\t\t\t\n\t\t\t\t//remove each X and Y from mhoLocations\n\t\t\t\tmhoLocations.remove(i*2+1);\n\t\t\t\tmhoLocations.remove(i*2);\n\t\t\t\t\n\t\t\t\t//Call moveVerticalMhos again, because the list failed to be checked through completely\n\t\t\t\tmoveVerticalMhos();\n\t\t\t\tbreak;\n\t\t\t} \n\t\t}\n\t\treturn;\n\t}", "public static Double boxSurfaceArea (double l, double w, double h) {\n\t\treturn 2 * (h * w) + 2 * (h * l) + 2 * (w * l);\n\t}", "private Sprite.UV[] buildLogoSpriteCoords() {\n Sprite.UV[] uvs = new Sprite.UV[8];\n float step = 1.0f / (float) 8;\n\n for (int i=0; i<8; i++) {\n uvs[i] = new Sprite.UV();\n uvs[i].s = (i * step) + step;\n uvs[i].t = 1.0f;\n uvs[i].u = i * step;\n uvs[i].v = 0.0f;\n }\n\n return uvs;\n }", "public int getXPos();", "public static void printHHSV(FqImage imh){\n\t\tint\ti,j;\r\n\t\tfor( i = 0 ; i < imh.width ; i++ ){\r\n\t\t\tfor( j = 0 ; j < imh.height ; j++ ){\r\n\t\t\t\tSystem.out.print(\"h\"+imh.points[i][j].getHHSV() );\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t\r\n\t}", "Tile getPosition();", "Oval(int width, int height, int x, int y){\n setWidth(width);\n setHeight(height);\n setX(x);\n setY(y);\n }", "void calcVertSeamInfo() {\n SeamInfo tr = null;\n SeamInfo tl = null;\n SeamInfo t = null;\n if (this.topRight() != null) {\n tr = topRight().seamInfo;\n }\n if (this.topLeft() != null) {\n tl = topLeft().seamInfo;\n }\n if (this.up != null) {\n t = up.seamInfo;\n }\n\n double min = Double.MAX_VALUE;\n SeamInfo cameFrom = null;\n\n if (tr != null && min > tr.totalWeight) {\n min = tr.totalWeight;\n cameFrom = tr;\n }\n if (tl != null && min > tl.totalWeight) {\n min = tl.totalWeight;\n cameFrom = tl;\n }\n if (t != null && min > t.totalWeight) {\n min = t.totalWeight;\n cameFrom = t;\n }\n\n // for top border cases\n if (cameFrom == null) {\n min = 0;\n }\n\n this.seamInfo = new SeamInfo(this, min + this.energy(), cameFrom, true);\n }", "double getPositionY();", "double getPositionY();", "double getPositionY();", "public ConvexRegion(Halfplane h) {\n this();\n if (h.isLeftBoundary()) {\n left.add(h);\n } else {\n right.add(h);\n }\n }", "public void reshape(int x, int y, int w, int h) {\n size.width = w;\n size.height = h;\n }", "public Vector2d() {\n\t\tthis.x = 0;\n\t\tthis.y = 0;\n\t}", "private Point convertToLogical(int x, int y)\n {\n // convert to next lowest multiple of agentGUISize using int division\n int agentGUISize = Parameters.getAgentGUISize();\n int newX = (x - viewportX) / agentGUISize;\n int newY = (y - viewportY) / agentGUISize;\n\n return new Point(newX, newY);\n }" ]
[ "0.6308036", "0.6113545", "0.5960019", "0.5864781", "0.57613647", "0.5629759", "0.55990386", "0.55128646", "0.54859763", "0.5403556", "0.5339601", "0.5333012", "0.5282969", "0.52805054", "0.52598953", "0.523991", "0.52241373", "0.5220663", "0.521651", "0.52090764", "0.51962596", "0.51792866", "0.5169019", "0.5168774", "0.5137775", "0.5132419", "0.5131528", "0.5128977", "0.51186717", "0.5111889", "0.5094398", "0.50707346", "0.50645757", "0.5054228", "0.5039851", "0.50383186", "0.5038035", "0.50197875", "0.5014343", "0.5013714", "0.50031286", "0.50016993", "0.49940854", "0.49888596", "0.49781102", "0.49759513", "0.4973685", "0.49721694", "0.4971569", "0.4962045", "0.49601364", "0.49594197", "0.49592027", "0.49577197", "0.49575213", "0.49496698", "0.49490198", "0.49490198", "0.49437508", "0.49436057", "0.49434665", "0.49402666", "0.49351484", "0.4934761", "0.4933064", "0.49307036", "0.49299422", "0.4929002", "0.49279815", "0.4925233", "0.49074334", "0.49068952", "0.4905575", "0.49055314", "0.49019894", "0.4901771", "0.49001855", "0.4893355", "0.4891595", "0.4885132", "0.4884278", "0.48791927", "0.48791927", "0.4879011", "0.4868988", "0.486758", "0.4865952", "0.4861905", "0.4859825", "0.48597327", "0.4858385", "0.48582584", "0.48582208", "0.48551488", "0.48548573", "0.48548573", "0.48548573", "0.48527527", "0.48527247", "0.4852343", "0.48457628" ]
0.0
-1
Constructor of the exception class.
public PreprocessorException(String message) { super(message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Exception() {\n\tsuper();\n }", "public Exception() {\n\t\t\tsuper();\n\t\t}", "public CIMException() {\n\t\tthis((String) null, (Object[]) null);\n\t}", "public NSException() {\n\t\tsuper();\n\t\tthis.exception = new Exception();\n\t}", "public Exception(String s) {\n\tsuper(s);\n }", "public SMSLibException() {}", "public Error() {\n }", "public EmailException()\n {\n super();\n }", "public JavaException()\r\n\t{\r\n\t\tsuper();\r\n\t}", "public CanyonException()\r\n {\r\n super();\r\n }", "public OLMSException() {\r\n super();\r\n }", "public HttpException() {\n }", "public MyException() {\n super(\"This is my message. There are many like it but this one is mine.\");\n }", "public SMSLibException(String errorMessage, Throwable originalE)\n/* 22: */ {\n/* 23:50 */ super(errorMessage);\n/* 24:51 */ this.originalE = originalE;\n/* 25: */ }", "public XDBBaseException() {\n }", "public FullCarException() {\r\n super(\"\");\r\n }", "MyException(String str)\n {\n //parametrize constructor\n super(str);\n }", "public SMSLibException(String errorMessage)\n/* 10: */ {\n/* 11:34 */ super(errorMessage);\n\n/* 12: */ }", "public SmppException() {\n\t\tsuper();\n\t}", "public CRLException() {\n super();\n }", "public SMSLibException(Throwable originalE)\n/* 17: */ {\n/* 18:45 */ this.originalE = originalE;\n/* 19: */ }", "public TrafficspacesAPIException() {\n \tthis(null, DEFAULT_MESSAGE);\n }", "public OperationException() {\n super();\n }", "public ExceptionDate(){\n\t\tsuper();\n\t}", "GitletException() {\n super();\n }", "public MRFException() {\n\t\tsuper();\n\t}", "public SucheException() {\n }", "public ShopingCartException() {\n\tsuper(); // call superclass constructor\n\tmistake = \"unknown\";\n }", "public ScheduleException() {\r\n }", "public SearchException() {\n }", "public NoTraceOntimizeJEEException() {\r\n this((String) null);\r\n }", "public TechnicalException() {\r\n }", "public EventException() {\n super(\"OOPS!!! The description or time of an event cannot be empty.\");\n }", "public CacheException() {\r\n\t\tsuper();\r\n\t}", "public VelocityEmailException()\n {\n super();\n }", "public ExcelImportException() {\r\n\t\tsuper();\r\n\t}", "public QueryException() {\n\n }", "public UnmatchedException(){\r\n\r\n\t}", "public BusinessObjectException() {\r\n super();\r\n }", "public MyException(String message)\n { super(message); }", "public AuthException()\n {\n\n }", "public MyMoneyException() {\r\n\t\tsuper();\r\n\t}", "public EncodingException(String s, Throwable ex) {\n\tsuper(s, null); // Disallow initCause\n\tthis.ex = ex;\n }", "public DynamicDeckDynamoException() {\n }", "public CalculadoraException() {\r\n }", "public SmppException(Exception e) {\n\t\tsuper(e);\n\t}", "public TypeException() {\n }", "public ExceptionUtils()\n {\n // nothing to do\n }", "public PriceModelException() {\n\n }", "public AditoGitException(Exception pE)\n {\n super(pE);\n }", "public ExceptionDate(String parMessage){\n\t\tsuper(parMessage);\n\t}", "public EmailException(String msg)\n {\n super(msg);\n }", "public BusinessObjectException(Exception e) {\r\n super( \"\" + e );\r\n }", "public AditoGitException(String pMessage, Exception pE)\n {\n super(pMessage, pE);\n }", "public DataAccessLayerException() {\n }", "public QpidRAException()\n {\n super();\n }", "public Exception(String message) {\n\t\t\tsuper(message);\n\t\t}", "public ExceptionSubVersion() {\n this(\"EcologicaExcepciones\");\n }", "protected MultiException() {\n\t\t// Can't delegate to the other constructor or GWT RPC gets cranky\n\t\tsuper(MULTIPLE);\n\t\t_causes = Collections.<Throwable> emptySet();\n\t}", "public MessageParseException() {\n }", "public DataControlException() {\r\n }", "public BaseException(String message) {\n super(message);\n setErrorCode();\n }", "public TeWeinigGeldException(Exception e) {this.e = e;}", "public CommunicationException() {\r\n\t\tsuper();\r\n\t}", "public SintaxException() { //Si se llama con el mensaje por defecto\n super(\"Error de sintaxis en el polinomio\"); //El constructor llama a la clase superior\n }", "public ShieldException() {\n }", "public GameBuyException() {\n }", "public ExceptionBase( ExceptionType exceptionType ) {\n\t\tsuper();\n\t\texceptionsCatching( exceptionType );\n\t}", "public SmppException(String s, Exception e) {\n\t\tsuper(s, e);\n\t}", "public AuthException(String message, Exception ex)\n {\n super(message,ex);\n }", "public AuthenticationException() {\n }", "public VariableNotSetException() {\n }", "public SyscallException() {\n\t\tsuper();\n\t}", "public negativeNumberException() {\r\n\t \t \r\n\t }", "public NetworkException() {\n\t\tsuper();\n\t}", "public ArgumentException() {\n super(\"Wrong arguments passed to function\");\n }", "public DaoException() {\r\n\t\tsuper();\r\n\t}", "public ItemInvalidoException() {\r\n }", "private ExceptionLogger() {\n }", "public OfferingException() {\n }", "public StockException() {\r\n\t\tsuper();\r\n\t}", "public PizzaException() {\n super(\"That pizza has been eaten.\");\n }", "public LexerException() {\n\n\t}", "public MyException(String message) {\r\n\t\tsuper(message);\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "public ResourceException(Exception exception) {\r\n super(exception);\r\n }", "public CIMException(String pReason) {\n\t\tthis(pReason, (String[]) null);\n\t}", "public RDISException(String msg) {\n\t\tthis(msg, null);\n\t}", "public Error(String message) {\r\n \tsuper(message);\r\n \t}", "public QueryException(){\n\t\tsuper();\n\t}", "public MyException(){\r\n super(\"Loi sai nhap du lieu!!!!\");// super là nói về lớp cha- đại diện đối tượng cha\r\n }", "public MyCustomException( String message )\n {\n\n\t// Why are we doing this??\n super( message );\n }", "public BDException() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}", "public TaxException(String arg0, Throwable arg1)\n {\n super(arg0, arg1);\n }", "public BattleException(String message, int i, int j) { //constructor\n super(message); // call the constructor of Super Class Exception and insert our message\n this.message = message;\n this.i = i;\n this.j = j;\n }", "public TwoDAReadException(String message) { super(message); }", "public NEOLoggerException()\n {\n }", "public cardYearException() {\r\n\t \t \r\n\t }", "public SonsureException(IEnum e) {\n this(e.getCode(), e.getDesc());\n }", "public DaoException(String arg0, Throwable arg1) {\r\n\t\tsuper(arg0, arg1);\r\n\t}", "public CIMException(String pReason, Object[] pExtendedReason) {\n\t\tsuper(pReason);\n\t\tif (pExtendedReason != null) {\n\t\t\tfor (int i = 0; i < pExtendedReason.length; i++) {\n\t\t\t\tif (pExtendedReason[i] instanceof Throwable) {\n\t\t\t\t\tthis.iCause = (Throwable) pExtendedReason[i];\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tthis.iReason = pReason;\n\t\tthis.iExtendedReason = pExtendedReason;\n\t}", "public CredentialManagerException() {\n\t\tsuper();\n\t}" ]
[ "0.8494733", "0.84452665", "0.8156281", "0.7871589", "0.7842381", "0.77496797", "0.77150065", "0.7692102", "0.763333", "0.7614605", "0.7595329", "0.7568654", "0.7560295", "0.75458544", "0.7535612", "0.7406927", "0.7390282", "0.7385478", "0.7382402", "0.73807365", "0.73804647", "0.73615956", "0.736111", "0.7357937", "0.7344593", "0.73362076", "0.73280567", "0.7318818", "0.73177624", "0.73073125", "0.7292816", "0.7291341", "0.7288692", "0.72558254", "0.72441304", "0.72007966", "0.71933496", "0.71895444", "0.7189234", "0.71843696", "0.7180727", "0.7167999", "0.7163328", "0.7158329", "0.71368986", "0.71333265", "0.71148914", "0.71141773", "0.7096273", "0.7088539", "0.7074026", "0.704843", "0.70376235", "0.7035095", "0.7019781", "0.70117146", "0.70112085", "0.7006884", "0.70053816", "0.7004049", "0.6970854", "0.6964963", "0.6962077", "0.6953058", "0.6951943", "0.6947541", "0.69440824", "0.6927437", "0.6923731", "0.6921594", "0.69099665", "0.68976533", "0.6886657", "0.68835545", "0.6882385", "0.68722266", "0.68649805", "0.6860985", "0.6848589", "0.6843813", "0.683275", "0.68289304", "0.68282497", "0.6825926", "0.68243515", "0.68228406", "0.68119544", "0.68109626", "0.6803272", "0.680116", "0.6800429", "0.6797962", "0.67924255", "0.67828524", "0.6768269", "0.67659736", "0.6763473", "0.67590016", "0.67470944", "0.6742268", "0.67379135" ]
0.0
-1
This should be safe down to mBest of about 10^12 and is definitely safe to the value below
@Override public Z next() { if (mN <= 12068659184L) { final double best = mBest.doubleValue(); while (true) { final double d = Math.tan(++mN); double frac = d % 1; if (frac < 0) { frac = 1 + frac; } if (frac > best) { mBest = CR.valueOf(frac); return Z.valueOf(mN); } } } // More careful searching while (true) { final CR tan = ComputableReals.SINGLETON.tan(CR.valueOf(++mN)); CR frac = tan.subtract(CR.valueOf(tan.floor())); if (frac.signum() < 0) { frac = CR.ONE.add(frac); } if (frac.compareTo(mBest) > 0) { mBest = frac; return Z.valueOf(mN); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testLargeALargeM() {\n assertEquals(11479907, PiGenerator.powerMod(123456, 2, 42423131));\n }", "@Test\n public void testLargeM() {\n assertEquals(32, PiGenerator.powerMod(2, 5, 42423131));\n }", "@Test\n public void testLargeA() {\n assertEquals(18, PiGenerator.powerMod(123456, 2, 23));\n }", "private int m23822a() {\n int min = Math.min(this.f25314a.getMemoryClass() * 1048576, Integer.MAX_VALUE);\n if (min < 33554432) {\n return 4194304;\n }\n if (min < 67108864) {\n return 6291456;\n }\n if (VERSION.SDK_INT < 11) {\n return 8388608;\n }\n return min / 4;\n }", "@Test\n public void testLargeB() {\n assertEquals(12, PiGenerator.powerMod(2, 42, 13));\n }", "public abstract long mo9746k();", "@Test\n public void errCase() {\n MaximumSwap s = new MaximumSwap();\n int ans = s.maximumSwap(98368);\n assertEquals(98863, ans);\n }", "private void m27469e() {\n int i;\n int i2 = this.f25262I * this.f25259F;\n if (this.f25281ae) {\n i = Integer.MIN_VALUE;\n } else {\n i = ((-this.f25259F) * (this.f25301p.size() - 1)) + i2;\n }\n this.f25264K = i;\n if (this.f25281ae) {\n i2 = Integer.MAX_VALUE;\n }\n this.f25265L = i2;\n }", "private static void badApproach() {\n\t\t\n\t\tList<Double> result = new ArrayList<>();\n\t\t\n\t\tThreadLocalRandom.current()\n\t\t\t.doubles(10_000).boxed()\n\t\t\t.forEach(\n\t\t\t\t\td -> NewMath.inv(d)\n\t\t\t\t\t\t.ifPresent(\n\t\t\t\t\t\t\tinv -> NewMath.sqrt(inv)\n\t\t\t\t\t\t\t\t.ifPresent(\n\t\t\t\t\t\t\t\t\t\tsqrt -> result.add(sqrt)\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\n\t\tSystem.out.println(\"# result = \"+result.size());\n\t\t\n\t}", "public abstract byte getMaxExponentSize();", "@Test\n void readabilityOfBigIntegers() {\n int x = 1_000_000;\n\n // However, these are not semantically checked:\n int y = 1_00;\n }", "private static int betterSolution(int n) {\n return n*n*n;\n }", "public boolean isMaximumBetter(){\n return false;\n }", "@Test\n @Tag(\"slow\")\n public void testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", NumberContext.of(7, 4));\n }", "private float testMethod() {\n {\n int lI0 = (-1456058746 << mI);\n mD = ((double)(int)(double) mD);\n for (int i0 = 56 - 1; i0 >= 0; i0--) {\n mArray[i0] &= (Boolean.logicalOr(((true ? ((boolean) new Boolean((mZ))) : mZ) || mArray[i0]), (mZ)));\n mF *= (mF * mF);\n if ((mZ ^ true)) {\n mF *= ((float)(int)(float) 267827331.0f);\n mZ ^= ((false & ((boolean) new Boolean(false))) | mZ);\n for (int i1 = 576 - 1; i1 >= 0; i1--) {\n mZ &= ((mArray[279]) | ((boolean) new Boolean(true)));\n mD -= (--mD);\n for (int i2 = 56 - 1; i2 >= 0; i2--) {\n mF /= (mF - mF);\n mI = (Math.min(((int) new Integer(mI)), (766538816 * (++mI))));\n mF += (mZ ? (mB.a()) : ((! mZ) ? -752042357.0f : (++mF)));\n mJ |= ((long) new Long((-2084191070L + (mJ | mJ))));\n lI0 |= ((int) new Integer(((int) new Integer(mI))));\n if (((boolean) new Boolean(false))) {\n mZ &= (mZ);\n mF *= (mF--);\n mD = (Double.POSITIVE_INFINITY);\n mF += ((float)(int)(float) (-2026938813.0f * 638401585.0f));\n mJ = (--mJ);\n for (int i3 = 56 - 1; i3 >= 0; i3--) {\n mI &= (- mI);\n mD = (--mD);\n mArray[426] = (mZ || false);\n mF -= (((this instanceof Main) ? mF : mF) + 976981405.0f);\n mZ &= ((mZ) & (this instanceof Main));\n }\n mZ ^= (Float.isFinite(-1975953895.0f));\n } else {\n mJ /= ((long) (Math.nextDown(-1519600008.0f)));\n mJ <<= (Math.round(1237681786.0));\n }\n }\n mArray[i0] &= (false || ((1256071300.0f != -353296391.0f) ? false : (mZ ^ mArray[i0])));\n mF *= (+ ((float) mD));\n for (int i2 = 0; i2 < 576; i2++) {\n mD *= ((double) lI0);\n lI0 = (lI0 & (Integer.MIN_VALUE));\n mF -= (--mF);\n }\n if ((this instanceof Main)) {\n mZ ^= ((boolean) new Boolean(true));\n } else {\n {\n int lI1 = (mZ ? (--lI0) : 1099574344);\n mJ >>= (Math.incrementExact(mJ));\n mJ = (~ -2103354070L);\n }\n }\n }\n } else {\n mJ *= (- ((long) new Long(479832084L)));\n mJ %= (Long.MAX_VALUE);\n mD /= (--mD);\n if ((mI > ((mBX.x()) << mI))) {\n {\n long lJ0 = (mJ--);\n mI >>>= (mBX.x());\n }\n mF = (+ 505094603.0f);\n mD *= (((boolean) new Boolean((! false))) ? mD : 1808773781.0);\n mI *= (Integer.MIN_VALUE);\n for (int i1 = 576 - 1; i1 >= 0; i1--) {\n if (((boolean) new Boolean(false))) {\n mD += ((double)(float)(double) -1051436901.0);\n } else {\n mF -= ((float)(int)(float) (Float.min(mF, (mF--))));\n }\n for (int i2 = 0; i2 < 576; i2++) {\n mJ -= ((long) new Long(-1968644857L));\n mJ ^= (+ (mC.s()));\n }\n }\n } else {\n mF -= ((- mF) + -2145489966.0f);\n }\n mD -= (mD++);\n mD = (949112777.0 * 1209996119.0);\n }\n mZ &= (Boolean.logicalAnd(true, ((mZ) & (((boolean) new Boolean(true)) && true))));\n }\n }\n return ((float) 964977619L);\n }", "private static int m27460a(int i, int i2, int i3) {\n if (i == 1073741824) {\n return i2;\n }\n if (i == Integer.MIN_VALUE) {\n return Math.min(i3, i2);\n }\n return i3;\n }", "public p207() {\n double target = 1/12345.0;\n double log2 = Math.log(2);\n\n for (int x = 2; x < 2000000; x++){\n double a = Math.floor(Math.log(x) / log2) / (x-1);\n if (a < target){\n System.out.println(x*(x-1L));\n break;\n }\n }\n }", "public long getLeastSignificantBits() { throw new RuntimeException(\"Stub!\"); }", "@Test\n public void calculationOfNoRedundantBitsIsCorrect() {\n final int length = 10;\n final int expectedNoRedundantBits = 5;\n\n // When performing calculation of noRedundantBits\n final int noRedundantBits = HammingAlgorithm.calculateNoRedundantBits(length);\n\n // Then check if noRedundantBits is as expected\n assertThat(noRedundantBits).isEqualTo(expectedNoRedundantBits);\n }", "public static int offsetBits_cost() {\n return 56;\n }", "@Test\n\tpublic void testOneMillion() {\n\n\tdouble tax = Main.calcTax(1_000_000.);\n\tassertEquals(50_250., tax, .01);\n\n\t}", "java.math.BigInteger getNcbieaa();", "public long getMostSignificantBits() { throw new RuntimeException(\"Stub!\"); }", "@Test\n\tpublic void nearestSmallerEqFibTest() {\n\t\tAssert.assertTrue(ifn.nearestSmallerEqFib(30) == 21);\n\t}", "public abstract BigInteger getUseed();", "@Override public short getComplexity() {\n return 0;\n }", "java.math.BigInteger getNcbistdaa();", "private static long find_fast(long u)\n {\n long a, b, r;\n long maxUInt = 4294967295L;\n\n u += 0xe91aaa35;\n u = maxUInt % u;\n u ^= u >> 16;\n u = maxUInt % u;\n u += u << 8;\n u = maxUInt % u;\n u ^= u >> 4;\n u = maxUInt % u;\n b = (u >> 8) & 0x1ff;\n b = maxUInt % b;\n a = (u + (u << 2)) >> 19;\n a = maxUInt % a;\n r = a ^ hash_adjust[(int)b];\n r = maxUInt % r;\n return r;\n }", "public int findLHSMemoryLimitExceeded(int[] nums) {\n if (nums.length < 2)\n return 0;\n int[] array = new int[Integer.MAX_VALUE];\n for (int i = 0; i < nums.length; i++) {\n array[i]++;\n }\n int ans = 0;\n for (int i = 0; i < nums.length - 1; ) {\n if (nums[i] == 0) {\n i++;\n continue;\n }\n if (nums[i + 1] == 0) {\n i += 2;\n continue;\n }\n ans = ans < nums[i] + nums[i + 1] ? nums[i] + nums[i + 1] : ans;\n i++;\n }\n return ans;\n }", "protected int getTimesOptimized()\r\n {\r\n return timesOptimized;\r\n }", "public static int m8655e() {\n return 8;\n }", "@Test\n public static void tinyUBTest() {\n final double[] answers = {0.5307575646626514, 0.7264168965132833, 0.860376939237304,\n 0.952744626134358, 0.9954079673114701, 1.0};\n final double kappa = 2.0;\n assertTrue(1.0 == approximateUpperBoundOnP(0, 0, kappa));\n final long n = 5;\n for (long k = 0; k <= n; k++) {\n final double ub = approximateUpperBoundOnP(n, k, kappa);\n final double est = estimateUnknownP(n, k);\n assertTrue(ub >= est);\n assertTrue(Math.abs(ub - answers[(int) k]) < 1e-14);\n // System.out.printf (\"UB\\t%d\\t%d\\t%.1f\\t%.16g%n\", n, k, kappa, ub);\n }\n }", "BigInteger getPower_consumption();", "private int m14720s() {\n try {\n m14721t();\n byte[] bArr = this.f10950e;\n int i = this.f10952g;\n this.f10952g = i + 1;\n return bArr[i] & 255;\n } catch (Exception unused) {\n this.f10965t = 1;\n return 0;\n }\n }", "@Test\r\n\tpublic void testLargeBasePrice() throws BasePriceMustBePositiveException, \r\n\t NegativePersonCountException, ProductCategoryNotSpecifiedException {\r\n\t\tNuPackEstimator estimator = new NuPackEstimator(new BigDecimal(\"10000000\"), 1, \"drugs\");\r\n\t assertEquals(estimator.estimateFinalCost(), new BigDecimal(\"11413500.00\"));\r\n\t}", "static void pregenFact() \n\t{ \n\t\tfact[0] = fact[1] = 1; \n\t\tfor (int i = 1; i <= 1000000; ++i) \n\t\t{ \n\t\t\tfact[i] = (int) ((long) fact[i - 1] * i % mod); \n\t\t} \n\t}", "public static boolean testMonobit(byte[] data) \r\n {\r\n if( data.length != 2500 )\r\n throw new IllegalArgumentException(\"2500 bytes expected\");\r\n \r\n int total = 0;\r\n for(int i=0; i<2500; i++) {\r\n int hi = ONE_COUNT[ (data[i]>>4) & 0xF ];\r\n int lo = ONE_COUNT[ (data[i] ) & 0xF ];\r\n total += hi + lo;\r\n }\r\n \r\n return (9654 < total) && (total < 10346);\r\n }", "private double loadFactor()\n {\n double bucketsLength = buckets.length;\n return currentSize / bucketsLength;\n }", "private BigInteger[] factor(BigInteger i) {\n return null;\r\n }", "@LargeTest\n public void testMandelbrotfp64() {\n TestAction ta = new TestAction(TestName.MANDELBROT_DOUBLE);\n runTest(ta, TestName.MANDELBROT_DOUBLE.name());\n }", "@Override\n protected long getTestSolution() {\n return 100024;\n }", "private static int getTreeSize(int totalSize) {\n if (totalSize <= 32) {\n return 0;\n } else {\n // TODO: Clojure does ((realSize - 1) >>> 5) << 5); is that faster?\n return ((totalSize - 1) & (~0x1F));\n }\n }", "int getWrongScale();", "@Test(timeout = 4000)\n public void test27() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickPrice(Integer.MAX_VALUE, Integer.MAX_VALUE, 0.0, (-2146710316));\n assertEquals(\"id=2147483647 unknown=0.0 canAutoExecute\", string0);\n }", "public static int size_cost() {\n return (16 / 8);\n }", "public int R_M(){\n\t\tBigInteger nminus1=n.subtract(BigInteger.ONE);\n\t\tdo{\n\t\t\tif(nminus1.mod(two.pow(a)).equals(BigInteger.ZERO)){\n\t\t\t\ttable.add(a);\n\t\t\t}\n\t\t\titerator++;\n\t\t\ta++;\n\t\t}while(!(two.pow(a).compareTo(n)>0));\n\t\t\n\t\ta=table.get(table.size()-1);\n\t\tBigInteger m=nminus1.divide(two.pow(a));\n\t\tint wlen=n.bitLength();\n\t\tBigInteger b;\n\t\tBigInteger z;\n\t\tfor(int i=0;i<iterations;i++){\n\t\t\tint straznik=0;\n\t\t\tint straznik1=0;\n\t\t\tdo{\n\t\t\t b=new BigInteger(wlen,new Random());\n\t\t\t}while(!(b.compareTo(BigInteger.ONE)>0) && !(b.compareTo(nminus1)<0));\n\t\t\tz=b.modPow(m, n);\n\t\t\tif(z.equals(BigInteger.ONE) || z.equals(nminus1)){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfor(int j=0;j<a-1;j++){\n\t\t\t\t\tz=z.pow(2).mod(n);\n\t\t\t\t\tif(z.equals(nminus1)){\n\t\t\t\t\t\tstraznik++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif(z.equals(BigInteger.ONE)){\n\t\t\t\t\t\tstraznik1++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(straznik==1){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(straznik1==1){\n\t\t\t\t\tgetComposite();\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\t\t\t\t}\n\t\t\tgetComposite();\n\t\t\treturn 0;\n\t\t}\n\t\tgetProbablyPrime();\n\t\treturn 1;\n\t\t}", "private static int getBytes(long r23) {\n /*\n java.lang.ThreadLocal<byte[]> r0 = TEMP_NUMBER_BUFFER\n java.lang.Object r0 = r0.get()\n byte[] r0 = (byte[]) r0\n r1 = 20\n if (r0 != 0) goto L_0x0013\n byte[] r0 = new byte[r1]\n java.lang.ThreadLocal<byte[]> r2 = TEMP_NUMBER_BUFFER\n r2.set(r0)\n L_0x0013:\n r2 = -9223372036854775808\n r4 = 54\n r5 = 57\n r6 = 45\n r7 = 53\n r8 = 56\n r9 = 55\n r10 = 51\n r11 = 50\n r12 = 0\n r13 = 48\n r14 = 1\n int r15 = (r23 > r2 ? 1 : (r23 == r2 ? 0 : -1))\n if (r15 != 0) goto L_0x0076\n r0[r12] = r6\n r0[r14] = r5\n r2 = 2\n r0[r2] = r11\n r2 = 3\n r0[r2] = r11\n r2 = 4\n r0[r2] = r10\n r2 = 5\n r0[r2] = r10\n r2 = 6\n r0[r2] = r9\n r2 = 7\n r0[r2] = r11\n r2 = 8\n r0[r2] = r13\n r2 = 9\n r0[r2] = r10\n r2 = 10\n r0[r2] = r4\n r2 = 11\n r0[r2] = r8\n r2 = 12\n r0[r2] = r7\n r2 = 13\n r3 = 52\n r0[r2] = r3\n r2 = 14\n r0[r2] = r9\n r2 = 15\n r0[r2] = r9\n r2 = 16\n r0[r2] = r7\n r2 = 17\n r0[r2] = r8\n r2 = 18\n r0[r2] = r13\n r2 = 19\n r0[r2] = r8\n return r1\n L_0x0076:\n r1 = 0\n int r3 = (r23 > r1 ? 1 : (r23 == r1 ? 0 : -1))\n if (r3 != 0) goto L_0x007f\n r0[r12] = r13\n return r14\n L_0x007f:\n if (r3 >= 0) goto L_0x0088\n r0[r12] = r6\n long r15 = java.lang.Math.abs(r23)\n goto L_0x008b\n L_0x0088:\n r14 = 0\n r15 = r23\n L_0x008b:\n r17 = 9\n r19 = 10\n r21 = 1\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0099\n r17 = r21\n goto L_0x017e\n L_0x0099:\n r17 = 99\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00a3\n r17 = r19\n goto L_0x017e\n L_0x00a3:\n r17 = 999(0x3e7, double:4.936E-321)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00ad\n r17 = 100\n goto L_0x017e\n L_0x00ad:\n r17 = 9999(0x270f, double:4.94E-320)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00b7\n r17 = 1000(0x3e8, double:4.94E-321)\n goto L_0x017e\n L_0x00b7:\n r17 = 99999(0x1869f, double:4.9406E-319)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00c2\n r17 = 10000(0x2710, double:4.9407E-320)\n goto L_0x017e\n L_0x00c2:\n r17 = 999999(0xf423f, double:4.94065E-318)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00ce\n r17 = 100000(0x186a0, double:4.94066E-319)\n goto L_0x017e\n L_0x00ce:\n r17 = 9999999(0x98967f, double:4.940656E-317)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00da\n r17 = 1000000(0xf4240, double:4.940656E-318)\n goto L_0x017e\n L_0x00da:\n r17 = 99999999(0x5f5e0ff, double:4.9406564E-316)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00e6\n r17 = 10000000(0x989680, double:4.9406565E-317)\n goto L_0x017e\n L_0x00e6:\n r17 = 999999999(0x3b9ac9ff, double:4.940656453E-315)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00f2\n r17 = 100000000(0x5f5e100, double:4.94065646E-316)\n goto L_0x017e\n L_0x00f2:\n r17 = 9999999999(0x2540be3ff, double:4.940656458E-314)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0100\n r17 = 1000000000(0x3b9aca00, double:4.94065646E-315)\n goto L_0x017e\n L_0x0100:\n r17 = 99999999999(0x174876e7ff, double:4.94065645836E-313)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0110\n r17 = 10000000000(0x2540be400, double:4.9406564584E-314)\n goto L_0x017e\n L_0x0110:\n r17 = 999999999999(0xe8d4a50fff, double:4.940656458408E-312)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x011f\n r17 = 100000000000(0x174876e800, double:4.9406564584E-313)\n goto L_0x017e\n L_0x011f:\n r17 = 9999999999999(0x9184e729fff, double:4.940656458412E-311)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x012e\n r17 = 1000000000000(0xe8d4a51000, double:4.94065645841E-312)\n goto L_0x017e\n L_0x012e:\n r17 = 99999999999999(0x5af3107a3fff, double:4.9406564584124E-310)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x013d\n r17 = 10000000000000(0x9184e72a000, double:4.9406564584125E-311)\n goto L_0x017e\n L_0x013d:\n r17 = 999999999999999(0x38d7ea4c67fff, double:4.94065645841246E-309)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x014c\n r17 = 100000000000000(0x5af3107a4000, double:4.94065645841247E-310)\n goto L_0x017e\n L_0x014c:\n r17 = 9999999999999999(0x2386f26fc0ffff, double:5.431165199810527E-308)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x015b\n r17 = 1000000000000000(0x38d7ea4c68000, double:4.940656458412465E-309)\n goto L_0x017e\n L_0x015b:\n r17 = 99999999999999999(0x16345785d89ffff, double:5.620395787888204E-302)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x016a\n r17 = 10000000000000000(0x2386f26fc10000, double:5.431165199810528E-308)\n goto L_0x017e\n L_0x016a:\n r17 = 999999999999999999(0xde0b6b3a763ffff, double:7.832953389245684E-242)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0179\n r17 = 100000000000000000(0x16345785d8a0000, double:5.620395787888205E-302)\n goto L_0x017e\n L_0x0179:\n r17 = 1000000000000000000(0xde0b6b3a7640000, double:7.832953389245686E-242)\n L_0x017e:\n long r1 = r15 / r17\n int r3 = (int) r1\n switch(r3) {\n case 0: goto L_0x01b6;\n case 1: goto L_0x01af;\n case 2: goto L_0x01aa;\n case 3: goto L_0x01a5;\n case 4: goto L_0x019e;\n case 5: goto L_0x0199;\n case 6: goto L_0x0194;\n case 7: goto L_0x018f;\n case 8: goto L_0x018a;\n case 9: goto L_0x0185;\n default: goto L_0x0184;\n }\n L_0x0184:\n goto L_0x01bb\n L_0x0185:\n int r3 = r14 + 1\n r0[r14] = r5\n goto L_0x01ba\n L_0x018a:\n int r3 = r14 + 1\n r0[r14] = r8\n goto L_0x01ba\n L_0x018f:\n int r3 = r14 + 1\n r0[r14] = r9\n goto L_0x01ba\n L_0x0194:\n int r3 = r14 + 1\n r0[r14] = r4\n goto L_0x01ba\n L_0x0199:\n int r3 = r14 + 1\n r0[r14] = r7\n goto L_0x01ba\n L_0x019e:\n int r3 = r14 + 1\n r6 = 52\n r0[r14] = r6\n goto L_0x01ba\n L_0x01a5:\n int r3 = r14 + 1\n r0[r14] = r10\n goto L_0x01ba\n L_0x01aa:\n int r3 = r14 + 1\n r0[r14] = r11\n goto L_0x01ba\n L_0x01af:\n int r3 = r14 + 1\n r6 = 49\n r0[r14] = r6\n goto L_0x01ba\n L_0x01b6:\n int r3 = r14 + 1\n r0[r14] = r13\n L_0x01ba:\n r14 = r3\n L_0x01bb:\n int r3 = (r17 > r21 ? 1 : (r17 == r21 ? 0 : -1))\n if (r3 != 0) goto L_0x01c0\n goto L_0x01d8\n L_0x01c0:\n java.lang.Long.signum(r17)\n long r1 = r1 * r17\n long r15 = r15 - r1\n r1 = 0\n int r3 = (r15 > r1 ? 1 : (r15 == r1 ? 0 : -1))\n if (r3 != 0) goto L_0x01d9\n L_0x01cc:\n int r1 = (r17 > r21 ? 1 : (r17 == r21 ? 0 : -1))\n if (r1 <= 0) goto L_0x01d8\n int r1 = r14 + 1\n r0[r14] = r13\n long r17 = r17 / r19\n r14 = r1\n goto L_0x01cc\n L_0x01d8:\n return r14\n L_0x01d9:\n long r17 = r17 / r19\n goto L_0x017e\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.unboundid.util.ByteStringBuffer.getBytes(long):int\");\n }", "private int m14719r() {\n int s = m14720s();\n if (s > 0) {\n try {\n if (this.f10949d == null) {\n this.f10949d = this.f10962q.mo12209b(255);\n }\n int i = this.f10951f - this.f10952g;\n if (i >= s) {\n System.arraycopy(this.f10950e, this.f10952g, this.f10949d, 0, s);\n this.f10952g += s;\n } else if (this.f10948c.remaining() + i >= s) {\n System.arraycopy(this.f10950e, this.f10952g, this.f10949d, 0, i);\n this.f10952g = this.f10951f;\n m14721t();\n int i2 = s - i;\n System.arraycopy(this.f10950e, 0, this.f10949d, i, i2);\n this.f10952g += i2;\n } else {\n this.f10965t = 1;\n }\n } catch (Exception e) {\n C3111h1.m14932d(f10944y, \"Error Reading Block\", e);\n this.f10965t = 1;\n }\n }\n return s;\n }", "static int yeusOptimized(){\n for(int x=9;x>=0;--x){\tint a=x*100001; //Setting up palindrome. 100001 * 9 = 900009\n for(int y=9;y>=0;--y){\tint b=a+y*10010; //Setting up the inner numbers so 10010*9. 90090 + 900009 = 990099\n for(int z=9;z>=0;--z){\tint n=b+z*1100; //Final inner numbers 9900+990099 = 999999 Palindrome\n for(int i=990;i>99;i-=11){ //Since we start with the largest palindrome, we just need to make sure it is a factor of two 3 digit numbers.\n if(n%i==0){//If there is a remainder, i isn't a factor.\n int t=n/i; //t is the palindrome divided by the factor to get the other factor\n if(t<1000)return n; //make sure that other factor was also a 3 digit number (only one check since we're starting from the maximum possible values)\n }}}}} //And return the palindrome\n return 0;}", "@Test\n public void computeDigits()\n {\n assertEquals(1, BinaryEncoder.computeDigits(0.0, 1.0));\n assertEquals(1, BinaryEncoder.computeDigits(1.0, 1.0));\n assertEquals(1, BinaryEncoder.computeDigits(2.0, 1.0));\n assertEquals(2, BinaryEncoder.computeDigits(3.0, 1.0));\n assertEquals(2, BinaryEncoder.computeDigits(4.0, 1.0));\n assertEquals(3, BinaryEncoder.computeDigits(4.5, 1.0));\n assertEquals(3, BinaryEncoder.computeDigits(5.0, 1.0));\n assertEquals(3, BinaryEncoder.computeDigits(6.0, 1.0));\n assertEquals(3, BinaryEncoder.computeDigits(7.0, 1.0));\n assertEquals(3, BinaryEncoder.computeDigits(8.0, 1.0));\n assertEquals(4, BinaryEncoder.computeDigits(9.0, 1.0));\n\n assertEquals(1, BinaryEncoder.computeDigits(0.0, 0.1));\n assertEquals(4, BinaryEncoder.computeDigits(1.0, 0.1));\n assertEquals(5, BinaryEncoder.computeDigits(2.0, 0.1));\n assertEquals(5, BinaryEncoder.computeDigits(3.0, 0.1));\n assertEquals(6, BinaryEncoder.computeDigits(4.0, 0.1));\n\n assertEquals(1, BinaryEncoder.computeDigits(0.0, 0.01));\n assertEquals(7, BinaryEncoder.computeDigits(1.0, 0.01));\n assertEquals(8, BinaryEncoder.computeDigits(2.0, 0.01));\n assertEquals(9, BinaryEncoder.computeDigits(3.0, 0.01));\n assertEquals(9, BinaryEncoder.computeDigits(4.0, 0.01));\n\n assertEquals(1, BinaryEncoder.computeDigits(0.0, 10.0));\n assertEquals(1, BinaryEncoder.computeDigits(1.0, 10.0));\n assertEquals(1, BinaryEncoder.computeDigits(2.0, 10.0));\n assertEquals(1, BinaryEncoder.computeDigits(3.0, 10.0));\n assertEquals(1, BinaryEncoder.computeDigits(4.0, 10.0));\n assertEquals(2, BinaryEncoder.computeDigits(30.0, 10.0));\n assertEquals(2, BinaryEncoder.computeDigits(40.0, 10.0));\n }", "protected long m8222b(long j) {\n return (((long) this.f7048i) * j) / 1000000;\n }", "@Test\n @Tag(\"slow\")\n public void testMODSZK1() {\n CuteNetlibCase.doTest(\"MODSZK1.SIF\", \"320.6197293824883\", null, NumberContext.of(7, 4));\n }", "public abstract Integer mo36210m();", "public static int sizeBits_cost() {\n return 16;\n }", "private static final int calcLog (int value)\n {\n // Shortcut for uncached_data_length\n if (value <= 1023 )\n {\n return MIN_CACHE;\n }\n else\n {\n return (int)(Math.floor (Math.log (value) / LOG2));\n }\n }", "protected long m8217a(long j) {\n return (j * 1000000) / ((long) this.f7048i);\n }", "@Test\n public final void testGetLong() {\n String msg2 = \"get(long) illegal arguments check failed.\";\n\n boolean[] a1_a = new boolean[1023];\n boolean[] a1_1_a = new boolean[320];\n boolean[] a1_2_a = new boolean[621];\n boolean[] a1_3_a = new boolean[82];\n boolean[] a2_a = new boolean[2048];\n boolean[] a2_1_a = new boolean[641];\n boolean[] a2_2_a = new boolean[490];\n boolean[] a2_3_a = new boolean[690];\n boolean[] a2_4_a = new boolean[317];\n for (int i = 0; i < a1_a.length; i++) {\n a1_a[i] = (i % 17 == 0);\n }\n {\n int c = 17, i = 0, s;\n for (s = i; (i - s) < a1_1_a.length; i++) {\n a1_1_a[i - s] = (i % c == 0);\n }\n for (s = i; (i - s) < a1_2_a.length; i++) {\n a1_2_a[i - s] = (i % c == 0);\n }\n for (s = i; (i - s) < a1_3_a.length; i++) {\n a1_3_a[i - s] = (i % c == 0);\n }\n }\n for (int i = 0; i < a2_a.length; i++) {\n a2_a[i] = (i % 19 == 0);\n }\n {\n int c = 19, i = 0, s;\n for (s = i; (i - s) < a2_1_a.length; i++) {\n a2_1_a[i - s] = (i % c == 0);\n }\n for (s = i; (i - s) < a2_2_a.length; i++) {\n a2_2_a[i - s] = (i % c == 0);\n }\n for (s = i; (i - s) < a2_3_a.length; i++) {\n a2_3_a[i - s] = (i % c == 0);\n }\n for (s = i; (i - s) < a2_4_a.length; i++) {\n a2_4_a[i - s] = (i % c == 0);\n }\n }\n\n MemoryBitList a1_1 = new MemoryBitList(a1_1_a);\n MemoryBitList a1_2 = new MemoryBitList(a1_2_a);\n MemoryBitList a1_3 = new MemoryBitList(a1_3_a);\n SequenceBitList a1 = new SequenceBitList();\n a1.add(new SimpleRange(a1_1, 0, a1_1.length()));\n a1.add(new SimpleRange(a1_2, 0, a1_2.length()));\n a1.add(new SimpleRange(a1_3, 0, a1_3.length()));\n\n MemoryBitList a2_1 = new MemoryBitList(a2_1_a);\n MemoryBitList a2_2 = new MemoryBitList(a2_2_a);\n MemoryBitList a2_3 = new MemoryBitList(a2_3_a);\n MemoryBitList a2_4 = new MemoryBitList(a2_4_a);\n SequenceBitList a2 = new SequenceBitList();\n a2.add(new SimpleRange(a2_1, 0, a2_1.length()));\n a2.add(new SimpleRange(a2_2, 0, a2_2.length()));\n a2.add(new SimpleRange(a2_3, 0, a2_3.length()));\n a2.add(new SimpleRange(a2_4, 0, a2_4.length()));\n\n LargeBitListTest.testGetLongInner(a1, 0, a1_a);\n LargeBitListTest.testGetLongInner(a2, 0, a2_a);\n\n try {\n a1.get(a1_a.length);\n fail(msg2);\n } catch (IndexOutOfBoundsException ex) {\n //OK\n }\n\n try {\n a1.get(-1);\n fail(msg2);\n } catch (IndexOutOfBoundsException ex) {\n //OK\n }\n }", "private static int m24353e(int i) {\n return i - (i >> 2);\n }", "private long m18344e(long frameCount) {\n return (1000000 * frameCount) / ((long) this.f16624r);\n }", "private void m145775e() {\n long j;\n String str;\n int i;\n if (!this.f119477j.mo115499a()) {\n if (this.f119484q != null) {\n str = \"PRAGMA cipher_page_size\";\n if (this.f119485r == null || this.f119485r.pageSize <= 0) {\n i = SQLiteGlobal.f119529a;\n } else {\n i = this.f119485r.pageSize;\n }\n j = (long) i;\n } else {\n str = \"PRAGMA page_size\";\n j = (long) SQLiteGlobal.f119529a;\n }\n if (mo115435b(str, null, null) != j) {\n StringBuilder sb = new StringBuilder();\n sb.append(str);\n sb.append(\"=\");\n sb.append(j);\n mo115433a(sb.toString(), null, null);\n }\n }\n }", "protected double minimumCostPerUnitDistance( ) {\n\t\treturn 0.0;\n\t}", "@Test\n\tpublic void test100000() {\n\n\tdouble tax = Main.calcTax(100_000.);\n\tassertEquals(1750., tax, .01);\n\n\t}", "private static long f(long m) {\n\t\tlong k = 1;\r\n\t\tfor (long i=1; i<=m; i++){\r\n\t\t\tk *= i;\r\n\t\t}\r\n\t\treturn k;\r\n\t}", "private static void testAlgorithmOptimality() {\n AlgoFunction testAlgo = SG16Algorithm::new;\n\n //printSeed = false; // keep this commented out.\n Random seedRand = new Random(1241);\n int initial = seedRand.nextInt();\n for (int i=0; i<50000000; i++) {\n int sizeX = seedRand.nextInt(150) + 5;\n int sizeY = seedRand.nextInt(150) + 5;\n int seed = i+initial;\n int ratio = seedRand.nextInt(50) + 5;\n \n int max = (sizeX+1)*(sizeY+1);\n int p1 = seedRand.nextInt(max);\n int p2 = seedRand.nextInt(max-1);\n if (p2 == p1) {\n p2 = max-1;\n }\n \n int sx = p1%(sizeX+1);\n int sy = p1/(sizeX+1);\n int ex = p2%(sizeX+1);\n int ey = p2/(sizeX+1);\n\n double restPathLength = 0, normalPathLength = 0;\n try {\n GridGraph gridGraph = DefaultGenerator.generateSeededGraphOnly(seed, sizeX, sizeY, ratio);\n for (int iii=0;iii<300;++iii) Utility.generatePath(testAlgo, gridGraph, seedRand.nextInt(sizeX+1),seedRand.nextInt(sizeY+1),seedRand.nextInt(sizeX+1),seedRand.nextInt(sizeY+1));\n int[][] path = Utility.generatePath(testAlgo, gridGraph, sx, sy, ex, ey);\n path = Utility.removeDuplicatesInPath(path);\n restPathLength = Utility.computePathLength(gridGraph, path);\n \n path = Utility.computeOptimalPathOnline(gridGraph, sx, sy, ex, ey);\n path = Utility.removeDuplicatesInPath(path);\n normalPathLength = Utility.computePathLength(gridGraph, path);\n }catch (Exception e) {\n e.printStackTrace();\n System.out.println(\"EXCEPTION OCCURRED!\");\n System.out.println(\"Seed = \" + seed +\" , Ratio = \" + ratio + \" , Size: x=\" + sizeX + \" y=\" + sizeY);\n System.out.println(\"Start = \" + sx + \",\" + sy + \" End = \" + ex + \",\" + ey);\n throw new UnsupportedOperationException(\"DISCREPANCY!!\");\n }\n \n if (Math.abs(restPathLength - normalPathLength) > 0.000001f) {\n //if ((restPathLength == 0.f) != (normalPathLength == 0.f)) {\n System.out.println(\"============\");\n System.out.println(\"Discrepancy Discovered!\");\n System.out.println(\"Seed = \" + seed +\" , Ratio = \" + ratio + \" , Size: x=\" + sizeX + \" y=\" + sizeY);\n System.out.println(\"Start = \" + sx + \",\" + sy + \" End = \" + ex + \",\" + ey);\n System.out.println(\"Actual: \" + restPathLength + \" , Expected: \" + normalPathLength);\n System.out.println(restPathLength / normalPathLength);\n System.out.println(\"============\");\n throw new UnsupportedOperationException(\"DISCREPANCY!!\");\n } else {\n if (i%1000 == 999) {\n System.out.println(\"Count: \" + (i+1));\n System.out.println(\"OK: Seed = \" + seed +\" , Ratio = \" + ratio + \" , Size: x=\" + sizeX + \" y=\" + sizeY);\n System.out.println(\"Actual: \" + restPathLength + \" , Expected: \" + normalPathLength);\n }\n }\n }\n }", "public long getMinFeePerByteNQT()\r\n/* 120: */ {\r\n/* 121:125 */ return this.minFeePerByteNQT;\r\n/* 122: */ }", "private void faster() {\n BigInteger[] denoms = new BigInteger[1000];\n BigInteger[] nums = new BigInteger[1000];\n\n nums[0] = BigInteger.valueOf(3);\n denoms[0] = BigInteger.valueOf(2);\n\n for (int i = 1; i < 1000; i++) {\n denoms[i] = nums[i - 1].add(denoms[i - 1]);\n nums[i] = denoms[i].add(denoms[i - 1]);\n }\n\n int count = 0;\n for (int i = 1; i < 1000; i++) {\n if (nums[i].toString().length() > denoms[i].toString().length()) {\n count++;\n }\n }\n this.answer = count;\n }", "public abstract int getMaxIntermediateSize();", "public static void main(String[] args) throws IOException {\r\n\t long a = 1182312000;\r\n\t System.out.println((a<<1) + 57596000);\r\n\t System.out.println(Long.MAX_VALUE);\r\n }", "private static int primitiveRoot(int m) {\n if (m == 2)\n return 1;\n if (m == 167772161)\n return 3;\n if (m == 469762049)\n return 3;\n if (m == 754974721)\n return 11;\n if (m == 998244353)\n return 3;\n\n int[] divs = new int[20];\n divs[0] = 2;\n int cnt = 1;\n int x = (m - 1) / 2;\n while (x % 2 == 0)\n x /= 2;\n for (int i = 3; (long) (i) * i <= x; i += 2) {\n if (x % i == 0) {\n divs[cnt++] = i;\n while (x % i == 0) {\n x /= i;\n }\n }\n }\n if (x > 1) {\n divs[cnt++] = x;\n }\n for (int g = 2;; g++) {\n boolean ok = true;\n for (int i = 0; i < cnt; i++) {\n if (pow(g, (m - 1) / divs[i], m) == 1) {\n ok = false;\n break;\n }\n }\n if (ok)\n return g;\n }\n }", "public static int m5097e() {\n if (f3978b == 0) {\n f3978b = Math.min(4, C1258b.m5098a());\n }\n return f3978b;\n }", "@Test\n public void testRandomSeries() {\n\tlong overallStart = System.currentTimeMillis();\n for (long a = Short.MIN_VALUE ; a <= Short.MAX_VALUE; a+= random.nextInt(300) + 113) {\n for (long b = Short.MAX_VALUE; b >= Short.MIN_VALUE; b-= random.nextInt(300) + 113) {\n\t\tlong start = System.currentTimeMillis();\n\t\tint ua = (int)(a + Short.MAX_VALUE + 1),\n\t\t\tub = (int)(b + Short.MAX_VALUE + 1);\n verify(ua, ub, false);\n verify(a, b, true);\n\t\tlong end = System.currentTimeMillis();\n\t\tSystem.out.println(\"a \" + a + \"b \" + b + \": \" + (end - start) + \"ms\");\n }\n }\n\tlong overallEnd = System.currentTimeMillis();\n\tSystem.out.println(\"Test Duration: \" + ((overallEnd - overallStart) / 1000) + \"s\");\n }", "@Override\n public int getMaxCapacity() {\n return 156250000;\n }", "@Test\n\tpublic void testOptimization() throws Exception {\n\t\tfor(int i = 0; i < 20000000; i++) {\n\t\t\tint _300s = (int) (Math.random() * 100);\n\t\t\tint _100s = (int) (Math.random() * 100);\n\t\t\tint _50s = (int) (Math.random() * 100);\n\t\t\tint misses = (int) (Math.random() * 100);\n\t\t\t\n\t\t\tdouble acc = OsuApiScore.getAccuracy(_300s, _100s, _50s, misses);\n\t\t\t\n\t\t\tAccuracyDistribution accuracyDistribution = AccuracyDistribution.closest(\n\t\t\t\t\t_300s + _100s + _50s + misses, misses,\n\t\t\t\t\tacc);\n\t\t\t\n\t\t\tdouble rec = OsuApiScore.getAccuracy(accuracyDistribution.getX300(),\n\t\t\t\t\taccuracyDistribution.getX100(), accuracyDistribution.getX50(),\n\t\t\t\t\taccuracyDistribution.getMiss());\n\t\t\t\n\t\t\tassertEquals(acc, rec, 0d);\n\t\t}\n\t}", "public long mo9776z() {\n long j = 0;\n for (int i = 0; i < 64; i += 7) {\n byte u = mo9771u();\n j |= ((long) (u & Byte.MAX_VALUE)) << i;\n if ((u & 128) == 0) {\n return j;\n }\n }\n throw C3606c0.m8178e();\n }", "public double defaultEvaulateAsMiniBits() {\n double result = 0;\n for (int i = 0; i < this.m_GenotypeLength; i++) {\n if (this.m_Genotype.get(i)) result++;\n }\n return result;\n }", "public long estimateSize() {\n/* 1668 */ return this.est;\n/* */ }", "public static void main (String[] args)\n {\n int[] f = {3,3,1}; \n \n //System.out.println(nCPr(f,3));\n System.out.println(nCPr(f,3));\n \n System.exit(0);\n \n /*\n long t = System.currentTimeMillis();\n System.out.println(primes0(Long.MAX_VALUE)); \n System.out.println((System.currentTimeMillis() - t) /1);\n \n t = System.currentTimeMillis();\n System.out.println(primes(Long.MAX_VALUE,null)); \n System.out.println((System.currentTimeMillis() - t) /1);*/\n \n br.com.hkp.classes.math.numberstheory.QuickSieve sv = \n new br.com.hkp.classes.math.numberstheory.QuickSieve(50000000);\n \n System.out.println(\">>>\"+primeFactors(89999999));\n \n \n \n Iterator<Integer> it = sv.getList().iterator();\n \n double soma = 0;\n \n while (it.hasNext())\n \n {\n long n = it.next();\n if (n > 6000)\n break;\n else\n soma += 32000000 / it.next();\n }\n \n System.out.println(soma);\n \n //System.exit(0);\n \n \n System.out.println(\" Fatorando...\");\n long pow = (long)Math.pow(50000000, 2);\n \n System.out.println(\" pow = \" +pow);\n \n for (int i = 0; i <= 300; i++)\n {\n long random = (long)(pow * Math.random());//715256374182293l;\n System.out.println(\" random = \" + random);\n long t = System.currentTimeMillis();\n System.out.print(\"Primes : \"+primeFactors(random,sv.getList())); \n long time = System.currentTimeMillis() - t;\n System.out.println(\" > \"+ time + \" milseg\");\n \n t = System.currentTimeMillis();\n System.out.print(\"Primes0 : \"+primeFactors(random)); \n long time0 = System.currentTimeMillis() - t;\n System.out.println(\" > \"+ time0 + \" milseg\");\n \n \n System.out.println(\" ratio = \" + ((time != 0) ? time0/time : \"N/A\"));\n }\n //System.out.println(primes(14552145213l)); \n //System.out.println((7l*7l*73l*127l*337l*92737l*649657l) == Long.MAX_VALUE); \n //System.out.println(5l*23l*53301701l*1504703107l); \n //System.out.println((7l*7l*73l*127l*337l*92737l*649657l)); \n System.exit(0);\n //System.out.println(frac(5.97));\n int[] v = {3,2,0};\n System.out.println(nPr(v,3));\n \n System.exit(0);\n\n double pi = 5.97;\n //System.out.println(frac(pi));\n double fracPi = frac (pi);\n double fracMinusPi = frac (-pi);\n double i = integ(pi);\n //System.out.printf (\"%f %f %f %.14f%n\", pi, fracPi, fracMinusPi,i);\n System.out.println ( fracPi);\n\n BigDecimal bdPi = new BigDecimal (\"\" +5.97);\n BigDecimal bdFracPi = frac (bdPi);\n BigDecimal bdFracMinusPi = frac (bdFracPi.negate());\n\n //System.out.printf (\"%f %f %f%n\", bdPi, bdFracPi, bdFracMinusPi);\n System.out.println(bdFracPi);\n }", "public long estimateSize() {\n/* 1448 */ return this.est;\n/* */ }", "public long estimateSize() {\n/* 1338 */ return this.est;\n/* */ }", "@Test(timeout = TIMEOUT)\n public void testRadixOverflow() {\n int[] arr = {Integer.MIN_VALUE, 2, 1, -50};\n int[] original = {Integer.MIN_VALUE, 2, 1, -50};\n Sorting.lsdRadixSort(arr);\n Arrays.sort(original);\n assertArrayEquals(arr, original);\n }", "public int optimizedCom() {\n\tint b = 0, c = 0, d = 0, e = 0, f = 0, g = 0, h = 0;\n\tint a = 1;\n\n\tb = 65;\n\tc = b;\n\n\tif (a != 0) {\n\t b = (b * 100) + 100000;\n\t c = b + 17000;\n\t}\n\n\t// at this point:\n\t// a == 1\n\t// b == 106500\n\t// c == 123500\n\n\t// outer loop terminates when b == c\n\t// c never changes, serves as termination condition\n\t// b only gets +17 added for every execution of the outer loop\n\n\tdo {\n\t f = 1;\n\t d = 2;\n\t do { // jnz g -13\n\t\te = 2;\n\n\t\tdo { // jnz g - 8\n\t\t g = (d * e) - b;\n\n\t\t if (g == 0)\n\t\t\tf = 0;\n\n\t\t e++;\n\n\t\t g = e - b;\n\t\t} while (g != 0);\n\n\t\td++;\n\n\t\tg = d - b;\n\t } while (g != 0);\n\n\t // increments h if register b contains a non-prime number (checked by printing all values)\n\t if (f == 0) {\n\t\th++;\n\t\tSystem.out.println(\"b: \" + b + \" c: \" + c + \" d: \" + d + \" e: \" + e + \" f: \" + f + \" g: \" + g);\n\t }\n\n\t // c does not change, b only gets increased by 17\n\t // if b == c, the method returns h which is the number of non-prime numbers encountered in the loop\n\t g = b - c;\n\n\t if (g == 0)\n\t\treturn h;\n\n\t b += 17;\n\n\t} while (true);\n }", "public static void main(String[] args) {\n\tString NUM = \"73167176531330624919225119674426574742355349194934\" +\n \"96983520312774506326239578318016984801869478851843\" +\n \"85861560789112949495459501737958331952853208805511\" +\n \"12540698747158523863050715693290963295227443043557\" +\n \"66896648950445244523161731856403098711121722383113\" +\n \"62229893423380308135336276614282806444486645238749\" +\n \"30358907296290491560440772390713810515859307960866\" +\n \"70172427121883998797908792274921901699720888093776\" +\n \"65727333001053367881220235421809751254540594752243\" +\n \"52584907711670556013604839586446706324415722155397\" +\n \"53697817977846174064955149290862569321978468622482\" +\n \"83972241375657056057490261407972968652414535100474\" +\n \"82166370484403199890008895243450658541227588666881\" +\n \"16427171479924442928230863465674813919123162824586\" +\n \"17866458359124566529476545682848912883142607690042\" +\n \"24219022671055626321111109370544217506941658960408\" +\n \"07198403850962455444362981230987879927244284909188\" +\n \"84580156166097919133875499200524063689912560717606\" +\n \"05886116467109405077541002256983155200055935729725\" +\n \"71636269561882670428252483600823257530420752963450\";\n\n //greatest combo array\n int[] greatestCombo = new int[13];\n //array to iterate through NUMS\n int[] combos = new int[13];\n //adjacency\n boolean adjacent = true;\n //product\n long product = 1;\n //maxProduct\n long maxProduct = 0;\n\n\t//iterating through the entire NUM string\n\tfor(int i = 0 ; i < NUM.length()-13; i++){\n\t //make a temporary array with the combination of the three numbers\n\t for(int c = 0; c < 13; c++){\n\t combos[c] = NUM.charAt(i+c);\n }\n\n\t //loop to determine if the numbers are adjacent\n for(int k = 1; k < 13; k++){\n if(abs(combos[k-1]-combos[k])>1){\n adjacent = false;\n break;\n }\n }\n\n //now that we have an adjacent 13-number array\n if(adjacent){\n //find the product\n for(int r = 0; r < 13; r++){\n product *= combos[r];\n }\n\n if(product > maxProduct){\n maxProduct = product;\n for(int p = 0; p < 13; p++){\n greatestCombo[p]=combos[p];\n }\n }\n }\n\n }\n System.out.println(maxProduct);\n\n }", "public int mo9754s() {\n return mo9774x();\n }", "@Test\n public void shouldSolveProblem2() {\n assertThat(sumOfEvenFibonacciValuesNotExceeding(90)).isEqualTo(2 + 8 + 34);\n assertThat(sumOfEvenFibonacciValuesNotExceeding(4_000_000)).isEqualTo(4_613_732);\n }", "private static int m31087b(zzss zzss) {\n int a = zzss.mo32193a(4);\n if (a == 15) {\n return zzss.mo32193a(24);\n }\n zzsk.m31080a(a < 13);\n return f29311b[a];\n }", "private double m9971g() {\n return (new Random().nextDouble() * 0.4d) - 22.4d;\n }", "@Test\n public void testValidHashMax() \n\t{\n\tLaboonCoin l = new LaboonCoin();\n\tboolean result = l.validHash(8,0);\n\tassertEquals(result, true);\n }", "@Test(timeout = 4000)\n public void test077() throws Throwable {\n byte[] byteArray0 = new byte[1];\n ValueLobDb valueLobDb0 = ValueLobDb.createSmallLob(1459, byteArray0, (byte)0);\n Reader reader0 = valueLobDb0.getReader();\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(reader0);\n streamTokenizer0.nval = 32768.0;\n String string0 = SQLUtil.renderNumber(streamTokenizer0);\n assertEquals(\"32768\", string0);\n }", "@Test\n\tpublic void test500000() {\n\n\tdouble tax = Main.calcTax(500_000.);\n\tassertEquals(20_250., tax, .01);\n\n\t}", "private void m76767e() {\n m76765c();\n this.f61649f -= this.f61648e;\n if (this.f61649f < 0) {\n this.f61649f = 0;\n }\n m76768f();\n }", "@Test\r\n public void testCalculateMax1() {\r\n System.out.println(\"calculateMax\");\r\n String[] args = new String[]{\"20\"};\r\n int expResult = 0;\r\n int result = Sieve.calculateMax(args);\r\n assertEquals(20, result);\r\n \r\n }", "public void a()\r\n/* 49: */ {\r\n/* 50: 64 */ HashSet<BlockPosition> localHashSet = Sets.newHashSet();\r\n/* 51: */ \r\n/* 52: 66 */ int m = 16;\r\n/* 53: 67 */ for (int n = 0; n < 16; n++) {\r\n/* 54: 68 */ for (int i1 = 0; i1 < 16; i1++) {\r\n/* 55: 69 */ for (int i2 = 0; i2 < 16; i2++) {\r\n/* 56: 70 */ if ((n == 0) || (n == 15) || (i1 == 0) || (i1 == 15) || (i2 == 0) || (i2 == 15))\r\n/* 57: */ {\r\n/* 58: 74 */ double d1 = n / 15.0F * 2.0F - 1.0F;\r\n/* 59: 75 */ double d2 = i1 / 15.0F * 2.0F - 1.0F;\r\n/* 60: 76 */ double d3 = i2 / 15.0F * 2.0F - 1.0F;\r\n/* 61: 77 */ double d4 = Math.sqrt(d1 * d1 + d2 * d2 + d3 * d3);\r\n/* 62: */ \r\n/* 63: 79 */ d1 /= d4;\r\n/* 64: 80 */ d2 /= d4;\r\n/* 65: 81 */ d3 /= d4;\r\n/* 66: */ \r\n/* 67: 83 */ float f2 = this.i * (0.7F + this.d.rng.nextFloat() * 0.6F);\r\n/* 68: 84 */ double d6 = this.e;\r\n/* 69: 85 */ double d8 = this.f;\r\n/* 70: 86 */ double d10 = this.g;\r\n/* 71: */ \r\n/* 72: 88 */ float f3 = 0.3F;\r\n/* 73: 89 */ while (f2 > 0.0F)\r\n/* 74: */ {\r\n/* 75: 90 */ BlockPosition localdt = new BlockPosition(d6, d8, d10);\r\n/* 76: 91 */ Block localbec = this.d.getBlock(localdt);\r\n/* 77: 93 */ if (localbec.getType().getMaterial() != Material.air)\r\n/* 78: */ {\r\n/* 79: 94 */ float f4 = this.h != null ? this.h.a(this, this.d, localdt, localbec) : localbec.getType().a((Entity)null);\r\n/* 80: 95 */ f2 -= (f4 + 0.3F) * 0.3F;\r\n/* 81: */ }\r\n/* 82: 98 */ if ((f2 > 0.0F) && ((this.h == null) || (this.h.a(this, this.d, localdt, localbec, f2)))) {\r\n/* 83: 99 */ localHashSet.add(localdt);\r\n/* 84: */ }\r\n/* 85:102 */ d6 += d1 * 0.300000011920929D;\r\n/* 86:103 */ d8 += d2 * 0.300000011920929D;\r\n/* 87:104 */ d10 += d3 * 0.300000011920929D;\r\n/* 88:105 */ f2 -= 0.225F;\r\n/* 89: */ }\r\n/* 90: */ }\r\n/* 91: */ }\r\n/* 92: */ }\r\n/* 93: */ }\r\n/* 94:111 */ this.j.addAll(localHashSet);\r\n/* 95: */ \r\n/* 96:113 */ float f1 = this.i * 2.0F;\r\n/* 97: */ \r\n/* 98:115 */ int i1 = MathUtils.floor(this.e - f1 - 1.0D);\r\n/* 99:116 */ int i2 = MathUtils.floor(this.e + f1 + 1.0D);\r\n/* 100:117 */ int i3 = MathUtils.floor(this.f - f1 - 1.0D);\r\n/* 101:118 */ int i4 = MathUtils.floor(this.f + f1 + 1.0D);\r\n/* 102:119 */ int i5 = MathUtils.floor(this.g - f1 - 1.0D);\r\n/* 103:120 */ int i6 = MathUtils.floor(this.g + f1 + 1.0D);\r\n/* 104:121 */ List<Entity> localList = this.d.b(this.h, new AABB(i1, i3, i5, i2, i4, i6));\r\n/* 105:122 */ Vec3 localbrw = new Vec3(this.e, this.f, this.g);\r\n/* 106:124 */ for (int i7 = 0; i7 < localList.size(); i7++)\r\n/* 107: */ {\r\n/* 108:125 */ Entity localwv = (Entity)localList.get(i7);\r\n/* 109:126 */ if (!localwv.aV())\r\n/* 110: */ {\r\n/* 111:129 */ double d5 = localwv.f(this.e, this.f, this.g) / f1;\r\n/* 112:131 */ if (d5 <= 1.0D)\r\n/* 113: */ {\r\n/* 114:132 */ double d7 = localwv.xPos - this.e;\r\n/* 115:133 */ double d9 = localwv.yPos + localwv.getEyeHeight() - this.f;\r\n/* 116:134 */ double d11 = localwv.zPos - this.g;\r\n/* 117: */ \r\n/* 118:136 */ double d12 = MathUtils.sqrt(d7 * d7 + d9 * d9 + d11 * d11);\r\n/* 119:137 */ if (d12 != 0.0D)\r\n/* 120: */ {\r\n/* 121:141 */ d7 /= d12;\r\n/* 122:142 */ d9 /= d12;\r\n/* 123:143 */ d11 /= d12;\r\n/* 124: */ \r\n/* 125:145 */ double d13 = this.d.a(localbrw, localwv.getAABB());\r\n/* 126:146 */ double d14 = (1.0D - d5) * d13;\r\n/* 127:147 */ localwv.receiveDamage(DamageSource.a(this), (int)((d14 * d14 + d14) / 2.0D * 8.0D * f1 + 1.0D));\r\n/* 128: */ \r\n/* 129:149 */ double d15 = EnchantmentProtection.a(localwv, d14);\r\n/* 130:150 */ localwv.xVelocity += d7 * d15;\r\n/* 131:151 */ localwv.yVelocity += d9 * d15;\r\n/* 132:152 */ localwv.zVelocity += d11 * d15;\r\n/* 133:154 */ if ((localwv instanceof EntityPlayer)) {\r\n/* 134:155 */ this.k.put((EntityPlayer)localwv, new Vec3(d7 * d14, d9 * d14, d11 * d14));\r\n/* 135: */ }\r\n/* 136: */ }\r\n/* 137: */ }\r\n/* 138: */ }\r\n/* 139: */ }\r\n/* 140: */ }", "public static int offset_cost() {\n return (56 / 8);\n }", "public long mo9746k() {\n return mo9775y();\n }", "public static String nthrt(String bytes,int size, int value){\n if(value==1||value==0||size<1||size>bytes.length()||!Cript2010x8b.USEPOWNTHRT) return bytes; \n String out=\"\"; \n int max=bytes.length()/size; \n if(bytes.length()%size!=0) \n max++; \n for(int i=0;i<max;i++){ \n String subStr=\"\"; \n for(int l=0;l<size;l++) \n try{ \n subStr+=bytes.charAt(i*size+(size-l-1)); \n }catch(Exception e){ \n String bug=bytes.substring(i*size); \n bug=addLong(bug,1,value); \n return out+bug; \n } \n BigInteger current=strToBInt(subStr); \n int exiter=0;\n while(Operations.nthRootFloor(current, value).pow(value).compareTo(current)!=0){ \n if(exiter>66) break;\n current=current.add(BigInteger.valueOf(2).pow(8*size)); \n exiter++;\n } \n current=Operations.nthRootFloor(current, value); \n exiter=0;\n while(current.compareTo(BigInteger.valueOf(2).pow(8*size))>0){if(exiter>66) break;current=current.add(BigInteger.valueOf(2).pow(8*size).negate());exiter++;} \n exiter=0;\n while(current.compareTo(BigInteger.ZERO)<0){if(exiter>66) break;current=current.add(BigInteger.valueOf(2).pow(8*size));exiter++;} \n \n out+=BintToStr(current,size); \n } \n return out; \n }", "@Override\n public long estimateSize() { return Long.MAX_VALUE; }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testQAP8() {\n CuteNetlibCase.doTest(\"QAP8.SIF\", \"2.0350000000E+02\", null, NumberContext.of(7, 4));\n }", "public long calHurt() {\n/* 82 */ return 0L;\n/* */ }", "private void notEligibleForRealMin() {\n eligibleForRealMin = false;\n }", "private static boolean isJamoVTNorm32JamoV(long paramLong)\n/* */ {\n/* 350 */ return paramLong < 4294115328L;\n/* */ }", "@Test\n\tvoid test() {\n\t\tassertEquals(0, solution1.solution(2147483647));\n\t\tassertEquals(1, solution1.solution(5));\n\t}" ]
[ "0.6283214", "0.6216989", "0.61863536", "0.61347044", "0.6007158", "0.5975214", "0.59401596", "0.59239286", "0.5902288", "0.5846242", "0.5771421", "0.5770484", "0.5767264", "0.5757537", "0.5739364", "0.5732865", "0.570582", "0.5689782", "0.56851685", "0.5675509", "0.56730527", "0.56596035", "0.5655796", "0.56512386", "0.56412005", "0.5629417", "0.5628203", "0.56240153", "0.5596099", "0.55864346", "0.55750066", "0.5570495", "0.55597836", "0.55568266", "0.5536229", "0.5532042", "0.54939103", "0.5484363", "0.54837286", "0.5482626", "0.5471979", "0.54638517", "0.54602903", "0.54556906", "0.5454319", "0.54384", "0.5433683", "0.542913", "0.5423377", "0.5422244", "0.5415457", "0.5413469", "0.5413466", "0.54124653", "0.54117024", "0.54086393", "0.5398764", "0.5393108", "0.5393027", "0.5391915", "0.5390024", "0.5389085", "0.5387493", "0.53872293", "0.53799254", "0.5379643", "0.53784347", "0.53778684", "0.5374961", "0.5372398", "0.536794", "0.5363132", "0.53625154", "0.5361126", "0.53590953", "0.53585553", "0.5357064", "0.5355571", "0.53547513", "0.5352821", "0.53498614", "0.53440756", "0.53422624", "0.5341078", "0.533635", "0.53347343", "0.5334701", "0.5334381", "0.533435", "0.53337353", "0.5330525", "0.5330494", "0.5330491", "0.532617", "0.53260064", "0.5319935", "0.53128755", "0.5311756", "0.5309695", "0.53073674", "0.5307194" ]
0.0
-1
Serialize to a byte array
public static byte[] GetByteArrayFromObject(Object object) throws IOException { ByteArrayOutputStream bos = new ByteArrayOutputStream(); ObjectOutputStream out = new ObjectOutputStream(bos); out.writeObject(object); out.close(); return bos.toByteArray(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public byte[] serialize();", "public abstract byte[] toByteArray();", "public abstract byte[] toByteArray();", "byte[] serialize(Serializable object);", "public byte[] toBytes() {\n return toProtobuf().toByteArray();\n }", "public byte[] marshall();", "public byte[] toBytes() {\n ByteArrayOutputStream os = new ByteArrayOutputStream();\n try {\n writeTo(os);\n } catch (IOException e) {e.printStackTrace();}\n return os.toByteArray();\n }", "public byte[] toBytes () {\n return toTuple().toBytes();\n }", "public abstract byte[] toBytes() throws Exception;", "public byte[] toByteArray() {\n\t\treturn baos.toByteArray();\n\t}", "void writeByteArray(ByteArray array);", "public byte[] toByteArray() {\n/* 510 */ ByteBuffer buff = ByteBuffer.allocate(40).order(ByteOrder.LITTLE_ENDIAN);\n/* 511 */ writeTo(buff);\n/* 512 */ return buff.array();\n/* */ }", "@Override\n\tpublic byte[] toByteArray() throws OpException {\n\t\ttry\n\t\t{\n\t\t\treturn serialize();\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tOpException eop = new OpException(e.getMessage());\n\t\t\teop.setStackTrace(e.getStackTrace());\n\t\t\tthrow eop;\n\t\t}\n\t}", "public final byte[] serializeArray() {\n if(this.b.arrayOffset() == 0) return this.b.array();\n return this.serializeArray_copy();\n }", "@Override\r\n public byte[] toBinary(Object obj) {\r\n return JSON.toJSONBytes(obj, SerializerFeature.WriteClassName);\r\n }", "public byte[] toByteArray() {\n ByteBuffer buf = ByteBuffer.allocate(blockSize);\n for (Record record : records) {\n buf.put(record.isEmpty() ? (byte) 1 : (byte) 0);\n buf.put(new String(record.getTconst()).getBytes(StandardCharsets.US_ASCII));\n buf.putFloat(record.getAvgRating());\n buf.putInt(record.getNumVotes());\n }\n return buf.array();\n }", "byte[] getBytes();", "byte[] getBytes();", "void writeBytes(byte[] value);", "public byte[] serialize() {\n try {\n ByteArrayOutputStream b = new ByteArrayOutputStream();\n ObjectOutputStream o = new ObjectOutputStream(b);\n o.writeObject(this);\n return b.toByteArray();\n } catch (IOException ioe) {\n return null;\n }\n }", "byte[] toByteArray(ORecordVersion version);", "public byte[] getBytes() {\r\n \treturn toString().getBytes();\r\n }", "public byte[] toByteArray()\n {\n // stuff the array\n byte[] array = new byte[4];\n array[0] = majorVersion;\n array[1] = minorVersion;\n array[2] = featureCode;\n array[3] = 0; // reserved\n\n // done\n return array;\n }", "public byte[] toArray()\r\n {\r\n return _stream.toByteArray();\r\n }", "public byte[] asByteArray() {\n return data;\n }", "@Override\n public byte[] toByteArray() {\n return null;\n }", "public byte[] getBytes() {\n return baos.toByteArray();\n }", "public byte[] toByteArray() {\n byte[] array = new byte[count];\n System.arraycopy(buf, 0, array, 0, count);\n return array;\n }", "public byte[] toByteArray() throws Exception {\n int size = getSize();\n if (size == 0) {\n return null;\n }\n ByteArrayOutputStream byteStream = new ByteArrayOutputStream();\n CCompatibleOutputStream os = new CCompatibleOutputStream(byteStream);\n write(os);\n return byteStream.toByteArray();\n }", "public static byte[] serialize(Serializable obj) throws IOException {\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\tObjectOutputStream oos = new ObjectOutputStream(baos);\n\t\toos.writeObject(obj);\n\t\treturn baos.toByteArray();\n\t}", "@Override\n\tpublic byte[] toByteArray() {\n\t\tComparatorProtos.ByteArrayComparable.Builder builder = ComparatorProtos.ByteArrayComparable.newBuilder();\n\t\tbuilder.setValue(ByteString.copyFrom(getValue()));\n\t\treturn builder.build().toByteArray();\n\t}", "public abstract byte[] getEncoded();", "com.google.protobuf.ByteString\n getToBytes();", "public byte[] toByteArray() {\n return null;\n }", "private byte[] serialize(Serializable object) throws Exception {\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n ObjectOutputStream objectStream = new ObjectOutputStream(stream);\n objectStream.writeObject(object);\n objectStream.flush();\n return stream.toByteArray();\n }", "byte[] toByteArray() throws IOException {\n return ProtobufUtil.prependPBMagic(convert().toByteArray());\n }", "private static <T extends Serializable> byte[] pickle(T obj)\n throws IOException {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n ObjectOutputStream oos = new ObjectOutputStream(baos);\n oos.writeObject(obj);\n oos.close();\n return baos.toByteArray();\n }", "public byte[] toByteArray() {\n byte[] retour;\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n try {\n ObjectOutputStream oos = new ObjectOutputStream(bos);\n oos.writeObject(new String(hostID));\n oos.writeObject(new Integer(hostAddresses.size()));\n for (int i=0; i<hostAddresses.size(); i++) oos.writeObject(new String(hostAddresses.elementAt(i).getNormalizedAddress()));\n oos.writeObject(new Integer(cpuLoad));\n oos.writeObject(new Integer(memoryLoad));\n oos.writeObject(new Integer(batteryLevel));\n oos.writeObject(new Integer(numberOfThreads));\n oos.writeObject(new Integer(numberOfBCs));\n oos.writeObject(new Integer(numberOfConnectors));\n oos.writeObject(new Integer(numberOfConnectorsNetworkInputs));\n oos.writeObject(new Integer(numberOfConnectorsNetworkOutputs));\n oos.writeObject(new Integer(networkPFInputTraffic));\n oos.writeObject(new Integer(networkPFOutputTraffic));\n oos.writeObject(new Integer(networkApplicationInputTraffic));\n oos.writeObject(new Integer(networkApplicationOutputTraffic));\n retour = bos.toByteArray();\n }\n catch (IOException ioe) {\n System.err.println(\"Error converting a host status to byte array\");\n retour = null;\n }\n return retour;\n }", "@Override\r\n\tpublic byte[] getBytes() {\n\t\treturn buffer.array();\r\n\t}", "@ZenCodeType.Caster\n @ZenCodeType.Method\n default byte[] asByteArray() {\n //TODO this is actually sbyte[], but @Unsigned doesn't work on arrays right now\n return notSupportedCast(\"byte[]\");\n }", "@Override\n\tpublic byte[] toBytes() {\n\t\treturn null;\n\t}", "public static byte[] objectToBytes(Serializable s) throws IOException\r\n {\r\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\r\n ObjectOutputStream oos = new ObjectOutputStream(baos);\r\n try\r\n {\r\n oos.writeObject(s);\r\n oos.flush();\r\n return baos.toByteArray();\r\n }\r\n finally\r\n {\r\n oos.close();\r\n }\r\n\r\n }", "public byte[] getByteArray() {\n long val = getValue();\n return new byte[] {\n (byte)((val>>24) & 0xff),\n (byte)((val>>16) & 0xff),\n (byte)((val>>8) & 0xff),\n (byte)(val & 0xff) };\n }", "private static byte[] construct(Serializable object) {\n\tByteArrayOutputStream bos = new ByteArrayOutputStream();\n\n\ttry {\n\t // Wrap the ByteArrayOutputStream in an ObjectOutputStream\n\t ObjectOutputStream oos = new ObjectOutputStream(bos);\n\t // and write the objects to the stream\n\t oos.writeObject(object);\n\t oos.close();\n\t} catch (Exception e) {\n\t e.printStackTrace();\n\t throw new Error(\"Failed to write serializable data for \" + object);\n\t}\n\n\t// the bytes are now held in the ByteArrayOutputStream\n\t// so we get the bytes of the ByteArrayOutputStream\n\tbyte[] rawBytes = bos.toByteArray();\n\n\treturn rawBytes;\n\n }", "public byte[] toByteArray() {\n final byte[] data = new byte[maxIndex];\n for (Map.Entry<Integer, String> entry : addr2str.entrySet()) {\n final String str = entry.getValue();\n final int addr = entry.getKey();\n for (int k = 0; k < str.length(); k++) {\n data[addr + k] = (byte) str.charAt(k);\n }\n }\n return data;\n }", "com.google.protobuf.ByteString\n getEncodedBytes();", "public byte[] toByteArray() throws IOException{\r\n ByteArrayOutputStream ba = new ByteArrayOutputStream();\r\n DataOutputStream dos = new DataOutputStream(ba);\r\n\r\n dos.writeUTF(this.nome);\r\n dos.writeUTF(this.email);\r\n dos.writeUTF(this.endereco);\r\n // System.out.println(ba);\r\n \r\n return ba.toByteArray();\r\n }", "public byte[] toBytes()\n {\n String rep = sessionid + \"_\" + version + \"_\" + message;\n return rep.getBytes();\n }", "public byte[] toByteArray() \r\n {\r\n \tbyte newbuf[] = new byte[count];\r\n \tSystem.arraycopy(buf, 0, newbuf, 0, count);\r\n \treturn newbuf;\r\n }", "public final ByteBuffer serialize() {\n return this.b.asReadOnlyBuffer().order(this.b.order());\n }", "public byte[] getEncoded() {\n return toByteArray(Integer.valueOf(this.intValue));\n }", "public static byte[] getByteArray(Object obj) {\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\tObjectOutputStream oos = null;\n\t\ttry {\n\t\t\toos = new ObjectOutputStream(baos);\n\t\t\toos.writeObject(obj);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tcloseCloseable(oos);\n\t\t}\n\t\t\n\t\treturn baos.toByteArray();\n\t}", "public byte[] toByteArray() throws IOException\n {\n try (InputStream is = createInputStream())\n {\n return is.readAllBytes();\n }\n }", "public abstract byte[] encode () throws IOException;", "public byte[] getByteArray(){\r\n\r\n byte[] b = new byte[0x54];\r\n\r\n System.arraycopy(PID_pointer, 0, b, 0, 4);\r\n System.arraycopy(MPID_pointer, 0, b, 4, 4);\r\n System.arraycopy(Null_pointer, 0, b, 8, 4);\r\n System.arraycopy(Portrait_pointer, 0, b, 12, 4);\r\n System.arraycopy(Class_pointer, 0, b, 16, 4);\r\n System.arraycopy(Affiliation_pointer, 0, b, 20, 4);\r\n System.arraycopy(Weaponlevel_pointer, 0, b, 24, 4);\r\n System.arraycopy(Skill1_pointer, 0, b, 28, 4);\r\n System.arraycopy(Skill2_pointer, 0, b, 32, 4);\r\n System.arraycopy(Skill3_pointer, 0, b, 36, 4);\r\n System.arraycopy(Animation1_pointer, 0, b, 40, 4);\r\n System.arraycopy(Animation2_pointer, 0, b, 44, 4);\r\n b[48] = unknownbyte1;\r\n b[49] = unknownbyte2;\r\n b[50] = unknownbyte3;\r\n b[51] = unknownbyte4;\r\n b[52] = unknownbyte5;\r\n b[53] = unknownbyte6;\r\n b[54] = level;\r\n b[55] = build;\r\n b[56] = weight;\r\n System.arraycopy(bases, 0, b, 57, 8);\r\n System.arraycopy(growths, 0, b, 65, 8);\r\n System.arraycopy(supportgrowth, 0, b, 73, 8);\r\n b[81] = unknownbyte9;\r\n b[82] = unknownbyte10;\r\n b[83] = unknownbyte11;\r\n\r\n return b;\r\n }", "public static byte[] toByteArray(Object obj) throws IOException\n {\n byte[] bytes = null;\n ByteArrayOutputStream bos = null;\n ObjectOutputStream oos = null;\n \n try \n {\n bos = new ByteArrayOutputStream();\n oos = new ObjectOutputStream(bos);\n oos.writeObject(obj);\n oos.flush();\n bytes = bos.toByteArray();\n }\n finally\n {\n if (oos != null)\n {\n oos.close();\n }\n if (bos != null)\n {\n bos.close();\n }\n }\n return bytes;\n }", "@Override\n public void serialize(ByteBuffer buf) {\n }", "byte[] getEByteArray();", "public byte[] getAsBytes() {\n return (byte[])data;\n }", "public static byte[] objectToBytes( Object object ) throws IOException{\n byte[] output = null;\n if( object != null ){\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n ObjectOutputStream out = new ObjectOutputStream(stream);\n out.writeObject(object);\n output = stream.toByteArray();\n }\n return output;\n }", "com.google.protobuf.ByteString\n getSerBytes();", "public byte[] toByteArray()\n\t{\n\t\tfinal ByteArrayOutputStream os = new ByteArrayOutputStream();\n\t\tos.write(length);\n\t\tos.write(connType);\n\t\tos.write(opt, 0, opt.length);\n\t\treturn os.toByteArray();\n\t}", "public static <O> byte[] toBytes(O object) {\n try (ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n ObjectOutputStream objOutputStream = new ObjectOutputStream(byteArrayOutputStream);) {\n objOutputStream.writeObject(object);\n return byteArrayOutputStream.toByteArray();\n\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }", "public static <T> byte[] writeToByteArray(T obj) {\n Output output = kryoThreadLocalContext.get().getOutput();\n while (true) {\n output.clear();\n try {\n Kryo kryo = getInstance();\n kryo.writeClassAndObject(output, obj);\n output.flush();\n break;\n } catch (KryoException e) {\n // need resize\n if (e.getMessage() != null && e.getMessage()\n .startsWith(BUFFER_OVERFLOW_EXCEPTION_MESSAGE)) {\n output = kryoThreadLocalContext.get().resizeOutputBuffer();\n } else {\n throw e;\n }\n }\n }\n return output.toBytes();\n }", "public static byte[] asByteArray(JsonElement element) {\n String hex = element.getAsString();\n return TestUtil.hexToBytes(hex);\n }", "@Override\n public <T> byte[] serialize( final T obj )\n throws IOException\n {\n final byte[] unencrypted = serializer.serialize(obj);\n return encrypt(unencrypted);\n }", "private byte[] toByteArray() {\n\n byte[] validUntilBytes = ByteBuffer.allocate(Long.BYTES).putLong(validUntil).array();\n return Tools.concatAllBytes(pseudoniem, validUntilBytes);\n }", "public byte[] toByteArray()\r\n\t{\r\n\t\tbyte[] b = new byte[(this.maze.length*this.maze[0].length*this.maze[0][0].length)+9];\r\n\t\tb[0] = (byte) this.maze.length;\r\n\t\tb[1] = (byte) this.maze[0].length;\r\n\t\tb[2] = (byte) this.maze[0][0].length;\r\n\t\tb[3] = (byte) this.getStartPosition().getY();\r\n\t\tb[4] = (byte) this.getStartPosition().getZ();\r\n\t\tb[5] = (byte) this.getStartPosition().getX();\r\n\t\tb[6] = (byte) this.getGoalPosition().getY();\r\n\t\tb[7] = (byte) this.getGoalPosition().getZ();\r\n\t\tb[8] = (byte) this.getGoalPosition().getX();\r\n\t\tint counter = 9;\r\n\t\tfor(int i = 0;i<maze.length;i++)\r\n\t\t{\r\n\t\t\tfor(int j = 0;j<maze[0].length;j++)\r\n\t\t\t{\r\n\t\t\t\tfor(int k = 0;k<maze[0][0].length;k++)\r\n\t\t\t\t{\r\n\t\t\t\t\tb[counter] = (byte) this.maze[i][j][k];\r\n\t\t\t\t\tcounter++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn b;\r\n\t\t\r\n\t}", "public static byte[] serializeObject(final Serializable obj) {\n\t\tfinal ObjectOutputStream out;\n\t\tfinal ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n\n\t\ttry {\n\t\t\tout = new ObjectOutputStream(outputStream);\n\n\t\t\tout.writeObject(obj);\n\t\t} catch (final IOException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\n\t\treturn outputStream.toByteArray();\n\t}", "public byte[] getByteArray() throws IOException {\n ByteArrayOutputStream dados = new ByteArrayOutputStream();\n DataOutputStream saida = new DataOutputStream(dados);\n\n saida.writeInt(idProduto);\n saida.writeUTF(nomePro);\n saida.writeUTF(descricao);\n saida.writeFloat(preco);\n return dados.toByteArray();\n }", "public abstract void write(byte[] b);", "private static byte[] toBytes(Object sdkBytes) {\n return ((SdkBytes) sdkBytes).asByteArrayUnsafe();\n }", "@Override\n\tpublic byte[] serialize(Object obj) throws SerializationException {\n\t\tif(obj==null) \n\t\t{\n\t\t\treturn EMPTY_BYTE_ARRAY;\n\t\t}\n\t\treturn serializingConverter.convert(obj);\n\t}", "public byte[] toByteArray(){\n int bound=numOfBits*2/*The Start Position*/+numOfBits*2/*The Goal Position*/+numOfBits/*Num of Rows*/+numOfBits/*Num of Columns*/+(maze.length*maze[0].length);\n byte[] arrayByte=new byte[bound];\n\n fillArrayByte(arrayByte,0,toBinary(start.getRowIndex()));\n fillArrayByte(arrayByte,numOfBits,toBinary(start.getColumnIndex()));\n fillArrayByte(arrayByte,numOfBits*2,toBinary(goal.getRowIndex()));\n fillArrayByte(arrayByte,numOfBits*3,toBinary(goal.getColumnIndex()));\n fillArrayByte(arrayByte,numOfBits*4,toBinary(maze.length));\n fillArrayByte(arrayByte,numOfBits*5,toBinary(maze[0].length));\n int counter=numOfBits*6;\n for(int i=0;i<maze.length;i++){\n for(int j=0;j<maze[0].length;j++){\n arrayByte[counter]=(byte)maze[i][j];\n counter++;\n }\n }\n return arrayByte;\n\n\n }", "public byte[] writeValue(TBase value) throws IOException {\n Validate.notNull(value, \"Value object is null\");\n\n byte[] bytes;\n try {\n bytes = serializer.serialize(value);\n } catch (TException e) {\n throw new IOException(e);\n }\n\n return bytes;\n }", "byte[] getByteArrayField();", "protected abstract byte[] encode(Object o) throws EncoderException;", "public static byte[] ToBytes(AsonValue obj,byte flag) throws java.io.IOException {\n return new AsonSerializer(flag).serialize(obj);\n }", "public static byte[] save(Object obj) {\r\n byte[] bytes = null;\r\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\r\n ObjectOutputStream oos = null;\r\n try {\r\n oos = new ObjectOutputStream(baos);\r\n oos.writeObject(obj);\r\n oos.flush();\r\n bytes = baos.toByteArray();\r\n } catch (IOException e) {\r\n e.printStackTrace(); //To change body of catch statement use Options | File Templates.\r\n }\r\n return bytes;\r\n }", "private static byte[] toByteArray(int[] array) {\n final byte[] res = new byte[array.length];\n for (int i = 0; i < array.length; ++i) {\n final int value = array[i];\n res[i] = (byte) value;\n }\n return res;\n }", "public byte[] GetBytes() {\n return data;\n }", "public byte[] serialize() {\n int size = distanceVectors.size();\n ByteBuffer buffer = ByteBuffer.allocate(46 * size + headerSize);\n serializeHeader(buffer);\n if(distanceVectors!=null) {\n for (Map.Entry<String, DistanceInfo> entry : distanceVectors.entrySet()) {\n String destination = entry.getKey();\n float cost = entry.getValue().cost;\n String firsHop = entry.getValue().firstHop;\n\n String add1 = \"\";\n String add2 = \"\";\n for (int i = 0; i < 21 - destination.length(); i++) {\n add1 += \" \";\n }\n for (int i = 0; i < 21 - firsHop.length(); i++) {\n add2 += \" \";\n }\n\n destination = destination + add1;\n firsHop = firsHop + add2;\n\n buffer.put(destination.getBytes());\n buffer.putFloat(cost);\n buffer.put(firsHop.getBytes());\n }\n }\n return buffer.array();\n }", "public byte[] toBytes() {\n return PaddingUtil.pad(\n PADDING,\n ByteArrayListUtil.merge(\n contactPublicKeyBytes,\n haNonce,\n haCiphertext,\n additionalData\n )\n );\n }", "public static byte[] serialize(Object object) {\n ByteArrayOutputStream bos = null;\n ObjectOutputStream oos = null;\n try {\n bos = new ByteArrayOutputStream();\n oos = new ObjectOutputStream(bos);\n oos.writeObject(object);\n return bos.toByteArray();\n } catch (IOException e) {\n throw new RuntimeException(e);\n } finally {\n if (null != oos) {\n try {\n oos.close();\n }\n catch (IOException ex) {}\n }\n if (null != bos) {\n try {\n bos.close();\n }\n catch (IOException ex) {}\n }\n }\n }", "@Override\r\n\t@JsonIgnore\r\n\tpublic byte[] asBytes() {\n\t\treturn null;\r\n\t}", "public void write(byte b[]) throws IOException;", "private byte[] outgoingBytes() {\n\t\t// collect all options outgoing bytes.\n\t\tfor (Option o : options) {\n\t\t\toutWriter.write(o.outgoing(outStream, this));\n\t\t}\n\t\t\n\t\t// Convert to byte[] array for writing.\n\t\tbyte[] out = outStream.toByteArray();\n\t\toutStream.reset();\n\t\t\n\t\treturn out;\n\t}", "public byte[] getBytes() {\n return bytes;\n }", "public void write(byte[] buffer);", "public byte[] getBytes() {\n return bytes;\n }", "@Override\r\n public byte[] encodeToBytes(Object object) throws Exception {\n return null;\r\n }", "public byte[] serialize() { length 9 bits, each value == byte\n // info string\n final short scratch = (short) ((0x7f & this.type) << 9 | 0x1ff & this.length);\n final byte[] data = new byte[2 + this.length];\n final ByteBuffer bb = ByteBuffer.wrap(data);\n bb.putShort(scratch);\n if (this.value != null) {\n bb.put(this.value);\n }\n return data;\n }", "public byte[] getBytes() {\n return bytes;\n }", "public byte[] getBytes()\n {\n return bytes;\n }", "public ByteBuf serialize() {\n\t\tByteBuf buffer = Unpooled.buffer();\n\t\twriteFully(buffer);\n\t\treturn buffer;\n\t}", "public static byte[] serializeObject(Object o) throws IOException {\n\t\tif (o == null) {\n\t\t\treturn null;\n\t\t}\n\t\tByteArrayOutputStream byteStream = new ByteArrayOutputStream();\n\t\tObjectOutputStream objectStream = new ObjectOutputStream(byteStream);\n\t\tobjectStream.writeObject(o);\n\t\tobjectStream.close();\n\n\t\treturn byteStream.toByteArray();\n\t}", "public static byte[] convertObjectToJsonBytes(Object object) throws IOException {\n\t\treturn MAPPER.writeValueAsBytes(object);\n\t}", "private synchronized byte[] toBytes(DataSource dataSource) {\n Kryo kryo = new Kryo();\n byte[] bytes;\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n Output output = new Output(baos);\n kryo.writeClassAndObject(output, dataSource);\n output.close();\n bytes = baos.toByteArray();\n return bytes;\n }", "public final byte[] serializeArray_copy() {\n final ByteBuffer b = this.serialize();\n return ByteBuffer.allocate(b.limit()).put(b).array();\n }", "protected byte[] objectToBytes(O object) throws OBException {\r\n try {\r\n return object.store();\r\n\r\n } catch (IOException e) {\r\n throw new OBException(e);\r\n }\r\n }" ]
[ "0.84114075", "0.78052866", "0.78052866", "0.7609733", "0.7580936", "0.7573354", "0.74194974", "0.73691696", "0.72436315", "0.71375746", "0.7081305", "0.699959", "0.6914812", "0.68820137", "0.68638325", "0.68594235", "0.685672", "0.685672", "0.6853697", "0.6820411", "0.67909026", "0.67834073", "0.6777763", "0.6765258", "0.6759094", "0.674775", "0.67420995", "0.67241734", "0.672085", "0.6716112", "0.671084", "0.6694519", "0.66785043", "0.6670666", "0.6656958", "0.6639167", "0.66087496", "0.6595697", "0.65797114", "0.6565983", "0.65561897", "0.6523401", "0.6498024", "0.6480012", "0.64653677", "0.6463164", "0.64607793", "0.6454193", "0.64487743", "0.64440525", "0.6412316", "0.64007586", "0.6397388", "0.6390776", "0.6381508", "0.63716644", "0.6369631", "0.63588476", "0.6358586", "0.63581854", "0.6356677", "0.6345859", "0.63359296", "0.6331097", "0.6324286", "0.6323784", "0.6289664", "0.6285439", "0.6280677", "0.6277815", "0.6273164", "0.6270622", "0.6255715", "0.6252027", "0.6248446", "0.62317455", "0.6213497", "0.62028104", "0.6196737", "0.6196531", "0.6192325", "0.6190094", "0.616309", "0.6145493", "0.6142997", "0.6134733", "0.61071974", "0.6103556", "0.61010873", "0.6093269", "0.6085133", "0.6078861", "0.60763437", "0.60735446", "0.6072808", "0.6048251", "0.6044911", "0.60391283", "0.60353166", "0.6030083" ]
0.6274198
70
Method opens an existing project file
public int openExistingProject(File file) { try { projectData = projectLoader.openExistingProject(file); } catch (FileNotFoundException ex) { return 1; // can not find ini file } catch (Exception ex) { return 2; // can not load project } if (projectData == null) return 2; return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void open(IdeaProject project);", "public void openProject(File pfile, FileOpenSelector files) { }", "public void openProject(File file) {\n\n try {\n if (!file.exists()) {\n JOptionPane.showMessageDialog(Application.getFrame(),\n \"Can't open project - file \\\"\" + file.getPath() + \"\\\" does not exist\",\n \"Can't Open Project\", JOptionPane.OK_OPTION);\n return;\n }\n \n getApplication().getFrameController().addToLastProjListAction(\n file.getAbsolutePath());\n\n Configuration config = buildProjectConfiguration(file);\n Project project = new ApplicationProject(file, config);\n getProjectController().setProject(project);\n\n // if upgrade was canceled\n int upgradeStatus = project.getUpgradeStatus();\n if (upgradeStatus > 0) {\n JOptionPane\n .showMessageDialog(\n Application.getFrame(),\n \"Can't open project - it was created using a newer version of the Modeler\",\n \"Can't Open Project\",\n JOptionPane.OK_OPTION);\n closeProject(false);\n }\n else if (upgradeStatus < 0) {\n if (processUpgrades(project)) {\n getApplication().getFrameController().projectOpenedAction(project);\n }\n else {\n closeProject(false);\n }\n }\n else {\n getApplication().getFrameController().projectOpenedAction(project);\n }\n }\n catch (Exception ex) {\n logObj.warn(\"Error loading project file.\", ex);\n ErrorDebugDialog.guiWarning(ex, \"Error loading project\");\n }\n }", "public void loadTheProject() {\n\t\tProjectHandler.openProject(mFilePath);\n }", "public Project(File file)\n {\n super(file);\n this.open();\n }", "public void projectOpened(File pfile, FileOpenSelector files) { }", "public void openNewProject() {\n\n\t\t// Dispose of all the sound objects in the project that is currently open\n\t\tCollection<SoundInfo> sounds = soundList.values();\n for(SoundInfo sound: sounds){\n sound.close();\n }\n \n // Set the newly opened project variables\n\t\tsoundList = new HashMap<Integer, SoundInfo>();\n\t\tprojectModified = false;\n\t\tprojectFileIO = null;\n\t}", "private void browseProject()\n {\n List<FileFilter> filters = new ArrayList<>();\n filters.add(new FileNameExtensionFilter(\"Bombyx3D project file\", \"yml\"));\n\n File directory = new File(projectPathEdit.getText());\n File selectedFile = FileDialog.chooseOpenFile(this, BROWSE_DIALOG_TITLE, directory, filters);\n if (selectedFile != null) {\n projectDirectory = selectedFile.getParentFile();\n projectPathEdit.setText(projectDirectory.getPath());\n projectPathEdit.selectAll();\n }\n }", "private void loadProject()\n\t{\n\t\t\n\t\tint fileChooserReturnValue =\n\t\t\twindowTemplate\n\t\t\t\t.getFileChooser()\n\t\t\t\t.showOpenDialog(windowTemplate);\n\t\t\n\t\tif(fileChooserReturnValue == JFileChooser.APPROVE_OPTION) {\n\t\t\t// Delete the current cards\n\t\t\tdeleteAllCards();\n\t\t\t\n\t\t\t// Get the file that the user selected\n\t\t\tFile file = windowTemplate.getFileChooser().getSelectedFile();\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t// Open the input streams\n\t\t\t\tFileInputStream fileInput = new FileInputStream(file.getAbsolutePath());\n\t\t\t\tObjectInputStream objectInput = new ObjectInputStream(fileInput);\n\t\t\t\t\n\t\t\t\t// Get ready to save the cards\n\t\t\t\tArrayList<Card> newCards = new ArrayList<Card>();\n\t\t\t\t\n\t\t\t\t// Get the objects\n\t\t\t\ttry {\n\t\t\t\t\t\n\t\t\t\t\tObject inputObject = objectInput.readObject();\n\t\t\t\t\t\n\t\t\t\t\twhile(inputObject instanceof Card) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Add the card\n\t\t\t\t\t\tnewCards.add((Card) inputObject);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Read the next object\n\t\t\t\t\t\tinputObject = objectInput.readObject();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t} catch(EOFException e2) {\n\t\t\t\t\t\n\t\t\t\t\t// We've reached the end of the file, time to add the new project\n\t\t\t\t\taddCards(newCards);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Close the input streams\n\t\t\t\tobjectInput.close();\n\t\t\t\tfileInput.close();\n\t\t\t\t\n\t\t\t\t// Update the title of the frame to reflect the current project\n\t\t\t\twindowTemplate.setTitle(file.getName());\n\t\t\t\t\n\t\t\t} catch (ClassNotFoundException | IOException e1) {\n\t\t\t\tJOptionPane.showMessageDialog(windowTemplate, \"Could not open the file.\");\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void loadProject(String arg) throws IOException {\n Project newProject = Project.readProject(arg);\n newProject.setConfiguration(project.getConfiguration());\n project = newProject;\n projectLoadedFromFile = true;\n }", "public void openBuildFile( String filename ) {\n if ( filename == null )\n return ;\n File f = new File( filename );\n openBuildFile( f );\n }", "public Project(String name) {\r\n\t\tsuper(name);\r\n\t\tthis.opened = true;\r\n\t\tthis.projectFile = null;\r\n\t}", "Project createProject();", "Project createProject();", "Project createProject();", "protected abstract void processProjectFile(Path path);", "public File getProjectFile() {\r\n\t\treturn projectFile;\r\n\t}", "public Project createProjectFromPRJ() {\n\n\t\tSystem.out.println(\"Trying to load prj file with : \" + data_path + \" \" + projectName + \" \" + conceptName + \" \");\n\n\t\tProject project = null;\n\n\t\ttry {\n\n\t\t\tproject = new Project(data_path + projectName);\n\n\t\t\t// Sehr wichtig hier das Warten einzubauen, sonst gibts leere\n\t\t\t// Retrieval Results, weil die Faelle noch nicht geladen sind wenn\n\t\t\t// das\n\t\t\t// Erste Retrieval laueft\n\t\t\twhile (project.isImporting()) {\n\t\t\t\tThread.sleep(1000);\n\t\t\t\tSystem.out.print(\".\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\"); // console pretty print\n\t\t} catch (Exception ex) {\n\n\t\t\tSystem.out.println(\"Error when loading the project\");\n\t\t}\n\t\treturn project;\n\t}", "public void editProjectAction() throws IOException {\n\t\tfinal List<Project> projects = selectionList.getSelectionModel().getSelectedItems();\n\t\tif (projects.size() == 1) {\n\t\t\tfinal Project project = projects.get(0);\n\t\t\tfinal FXMLSpringLoader loader = new FXMLSpringLoader(appContext);\n\t\t\tfinal Dialog<Project> dialog = loader.load(\"classpath:view/Home_AddProjectDialog.fxml\");\n\t\t\tdialog.initOwner(addProject.getScene().getWindow());\n\t\t\t((AddProjectDialogController) loader.getController()).getContentController().setProjectToEdit(project);\n\t\t\tfinal Optional<Project> result = dialog.showAndWait();\n\t\t\tif (result.isPresent()) {\n\t\t\t\tlogger.trace(\"dialog 'edit project' result: {}\", result::get);\n\t\t\t\tupdateProjectList();\n\t\t\t}\n\t\t}\n\t}", "private static File getProjectsPath() {\n File projectsPath = loadFilePath();\n if (projectsPath == null) {\n JFileChooser fc = createFileChooser();\n if (fc.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) {\n return fc.getSelectedFile();\n }\n }\n return projectsPath;\n }", "public void openFile() {\n\t\tfc.setCurrentDirectory(new File(System.getProperty(\"user.dir\")));\n\t\tint returnVal = fc.showOpenDialog(null);\n\t\tif (returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\tFile file = fc.getSelectedFile();\n\t filename.setText(file.getName());\n\t try {\n\t\t\t\tmodel.FileContent(file);\t//read the content of the input file\n\t\t\t\tplotContent.repaint();\t//repaint the JComponent\n\t\t\t\t\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "void open(String fileName);", "public static TargetProject loadProject(String file) throws TargetException\r\n {\r\n TargetProject project = null;\r\n\r\n try\r\n {\r\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder docBuilder = factory.newDocumentBuilder();\r\n Document doc = docBuilder.parse(new File(file));\r\n String projectName = doc.getDocumentElement().getAttribute(\"name\");\r\n String rootDir = FileUtil.getFilePath(file);\r\n project = new TargetProject(projectName, rootDir);\r\n }\r\n catch (Exception e)\r\n {\r\n e.printStackTrace();\r\n throw new TargetException(\"The file \" + file + \" is not a valid TaRGeT project.\");\r\n }\r\n\r\n return project;\r\n }", "private void openFile(File file){\r\n\t\ttry {\r\n\t\t\tlocal.openFile(file);\r\n\t\t\topenFile = file;\r\n\t\t\tframe.setTitle(file.getName());\r\n\t\t\tedit = false;\r\n\t\t\tBibtexPrefs.addOpenedFile(file);\r\n\t\t\tpopulateRecentMenu();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\terrorDialog(e.toString());\r\n\t\t} catch (IllegalArgumentException e){\r\n\t\t\terrorDialog(\"The bibtex file \" +file.getPath()+ \" appears to be invalid.\\n\"\r\n\t\t\t\t\t+ \"Parsing error occured because you have the following in your file:\\n\"\r\n\t\t\t\t\t+e.getMessage());\r\n\t\t}\r\n\t}", "Project getProject();", "public void loadFile() {\n\t\tFile file = fileChooser.showOpenDialog(stage);\n\t\t\n\t\tif(file != null && file.getName().endsWith(\".json\")) {\n\t\t\ttry {\n\t\t\t\t//Grab the json text from the supplied json file\n\t\t\t\tString projectJson = Files.readString(Path.of(file.getAbsolutePath()));\n\n\t\t\t\t//Deserialize the Json and construct the Project object\n\t\t\t\tProject project = gson.fromJson(projectJson, Project.class);\n\n\t\t\t\t//If project successfully instantiated, continue on\n\t\t\t\tif(project != null){\n\t\t\t\t\t//Set the current project file to the file opened\n\t\t\t\t\tprojectFile = file;\n\n\t\t\t\t\t//Grab the instruments list\n\t\t\t\t\tObservableList<Node> instrumentsList = instrumentList.getChildren();\n\n\t\t\t\t\t//Remove the instruments from the grid and the synth\n\t\t\t\t\tfor(int i = 0; i < instrumentsList.size(); i++ ){\n\t\t\t\t\t\tif(instrumentsList.get(i).getId() != \"btnAddInstrument\")\n\t\t\t\t\t\t\tremoveInstrument((Button) instrumentsList.get(i));\n\t\t\t\t\t}\n\n\t\t\t\t\t//Add each instrument and update its envelope\n\t\t\t\t\tfor(Project.ProjectInstrument projInstrument : project.getInstruments()) {\n\t\t\t\t\t\t//Only run for non-null instrument entries\n\t\t\t\t\t\tif(projInstrument != null){\n\t\t\t\t\t\t\tonAddInstrumentClick(null);\n\n\t\t\t\t\t\t\tsynth.setSelectedInstrument(synth.getInstrumentCount() - 1);\n\n\t\t\t\t\t\t\tToggleButton waveformButton = null;\n\n\t\t\t\t\t\t\tswitch(projInstrument.getWaveformID()){\n\t\t\t\t\t\t\t\tcase Instrument.SINE_WAVE:\n\t\t\t\t\t\t\t\t\twaveformButton = sineButton;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\tcase Instrument.SQUARE_WAVE:\n\t\t\t\t\t\t\t\t\twaveformButton = squareButton;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\tcase Instrument.TRIANGLE_WAVE:\n\t\t\t\t\t\t\t\t\twaveformButton = triangleButton;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\tcase Instrument.SAW_WAVE:\n\t\t\t\t\t\t\t\t\twaveformButton = sawButton;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//Toggle the waveform in the UI\n\t\t\t\t\t\t\twaveformGroup.selectToggle(waveformButton);\n\n\t\t\t\t\t\t\t//Change it in the instrument\n\t\t\t\t\t\t\tchangeWaveform(waveformButton);\n\n\t\t\t\t\t\t\t//Grab the envelope data from the project instrument\n\t\t\t\t\t\t\tdouble[] envelopeData = projInstrument.getEnvelopeData();\n\n\t\t\t\t\t\t\t//Set the appropriate slider values in the UI\n\t\t\t\t\t\t\tattackSlider.setValue(envelopeData[Instrument.ATTACK_VALUE]);\n\t\t\t\t\t\t\tdecaySlider.setValue(envelopeData[Instrument.DECAY_VALUE]);\n\t\t\t\t\t\t\tsustainSlider.setValue(envelopeData[Instrument.SUSTAIN_VALUE]);\n\t\t\t\t\t\t\treleaseSlider.setValue(envelopeData[Instrument.RELEASE_VALUE]);\n\n\t\t\t\t\t\t\t//Update the instrument's envelope\n\t\t\t\t\t\t\tupdateEnvelope(0);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t//Grab the master volume from the project\n\t\t\t\t\tdouble masterVolume = project.getMasterVolume();\n\n\t\t\t\t\t//Change it in the UI\n\t\t\t\t\tvolumeSlider.setValue(masterVolume);\n\n\t\t\t\t\t//Update it in the synth\n\t\t\t\t\tchangeVolume(masterVolume);\n\n\t\t\t\t\t//Grab the BPM form the project and parse it as a string\n\t\t\t\t\tString bpm = String.valueOf(project.getBpm());\n\n\t\t\t\t\t//Set the BPM in the UI\n\t\t\t\t\tbpmLabel.setText(bpm);\n\n\t\t\t\t\t//Update it in the synth\n\t\t\t\t\tchangeBPM(bpm);\n\n\t\t\t\t\t//Unhighlight all notes\n\t\t\t\t\tchordsGrid.lookupAll(\".selected\").forEach(node -> {\n\t\t\t\t\t\tnode.getStyleClass().remove(\"selected\");\n\t\t\t\t\t});\n\n\t\t\t\t\t//Set the note frequencies from the project\n\t\t\t\t\tnoteFrequencies = project.getNoteFrequencies();\n\n\t\t\t\t\t//Highlight the selected notes and add them to the selectedNotes array\n\t\t\t\t\tfor(int i = 0; i < noteFrequencies.length; i++){\n\t\t\t\t\t\tif(noteFrequencies[i] > -1){\n\t\t\t\t\t\t\tint noteRow = 88 - Utils.Math.getKey(noteFrequencies[i]);\n\n\t\t\t\t\t\t\tfor(Node note : chordsGrid.getChildren()){\n\t\t\t\t\t\t\t\tInteger gridRow = GridPane.getRowIndex(note), gridCol = GridPane.getColumnIndex(note);\n\t\t\t\t\t\t\t\tif(gridRow != null && gridCol != null && GridPane.getRowIndex(note) == noteRow && GridPane.getColumnIndex(note) == i){\n\t\t\t\t\t\t\t\t\tnote.getStyleClass().add(\"selected\");\n\t\t\t\t\t\t\t\t\tselectedNotes[i] = (Button)note;\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\n\t\t\t\t\t//Reset the action log\n\t\t\t\t\tactionLog.emptyLog();\n\t\t\t\t}\n\t\t\t} catch (IOException ignored) {}\n\t\t}\n\t}", "@Test\n\tpublic void testExistsProjectOpen() throws Exception {\n\t\tassertExists(\"The Rodin project should exist\", rodinProject);\n\n\t\t// Try after unloading the project from the database \n\t\trodinProject.close();\n\t\tassertExists(\"The Rodin project should exist\", rodinProject);\n\t\tassertFalse(\"The existence test should not have opened the project\",\n\t\t\t\trodinProject.isOpen());\n\t}", "public void openProject(AbstractProject project) {\n\t\tsetActiveValue(project.getId(), \"1\"); //$NON-NLS-1$\n\t}", "public AddProject() {\n try\n {\n infDB = new InfDB(\"\\\\Users\\\\Oliver\\\\Documents\\\\Skola\\\\Mini_sup\\\\Realisering\\\\MICEDB.FDB\");\n System.out.println(\"Uppkopplingen lyckades\");\n }\n catch(InfException e)\n {\n System.out.println(e.getMessage());\n }\n \n try\n {\n infDB = new InfDB(\"C:\\\\Users\\\\TP300LA-C4034\\\\Desktop\\\\Delkurs 4, Lill-supen\\\\InformatikDB\\\\MICEDB.FDB\");\n System.out.println(\"Uppkopplingen lyckades\");\n }\n catch(InfException e)\n {\n System.out.println(e.getMessage());\n }\n getPlatforms();\n initComponents();\n setLocationRelativeTo(null);\n \n }", "void openFilePath(String newFilePath) throws IllegalValueException;", "public void fileOpen () {\n\t\ttry {\n\t\t\tinput = new Scanner(new File(file));\n\t\t\tSystem.out.println(\"file created\");\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"file could not be created\");\n\t\t}\n\t}", "private void tryToOpen() {\n if (current != null) {\n if (!this.tryToClose()) return;\n }\n\n //open an existing file...\n JFileChooser chooser = new JFileChooser(new File(\".\"));\n chooser.setDialogTitle(\"Select model file\");\n chooser.setFileFilter(new FileNameExtensionFilter(\n \"Only xml files\",\"xml\"\n ));\n\n int result = chooser.showOpenDialog(this);\n if (result == JFileChooser.APPROVE_OPTION) {\n File file = chooser.getSelectedFile();\n try {\n current = new Document(file);\n this.update();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, \"ERROR: the file '\" + file.getName() + \"' could not be opened!\", \"An Error Occured\", JOptionPane.ERROR_MESSAGE);\n// e.printStackTrace();\n }\n }\n }", "File openFile();", "public LoadRecentProject(String displayName, String filePath){\n \tsuper(); \n this.mDisplayName = displayName;\n this.mFilePath = filePath;\n putValue(Action.ACCELERATOR_KEY, null);\n\t\tputValue(Action.DEFAULT, \"Reopen Project\");\n\t\tputValue(Action.LONG_DESCRIPTION, \"Reopen Project\");\n }", "public boolean isProjectOpen() {\n\t\treturn (projectFileIO != null);\n\t}", "private boolean createProject() {\r\n ProjectOverviewerApplication app = (ProjectOverviewerApplication)getApplication();\r\n Projects projects = app.getProjects();\r\n String userHome = System.getProperty(\"user.home\");\r\n // master file for projects management\r\n File projectsFile = new File(userHome + \"/.hackystat/projectoverviewer/projects.xml\");\r\n \r\n // create new project and add it to the projects\r\n Project project = new Project();\r\n project.setProjectName(this.projectName);\r\n project.setOwner(this.ownerName);\r\n project.setPassword(this.password);\r\n project.setSvnUrl(this.svnUrl);\r\n for (Project existingProject : projects.getProject()) {\r\n if (existingProject.getProjectName().equalsIgnoreCase(this.projectName)) {\r\n return false;\r\n }\r\n }\r\n projects.getProject().add(project);\r\n \r\n try {\r\n // create the specific tm3 file and xml file for the new project\r\n File tm3File = new File(userHome + \r\n \"/.hackystat/projectoverviewer/\" + this.projectName + \".tm3\");\r\n File xmlFile = new File(userHome + \r\n \"/.hackystat/projectoverviewer/\" + this.projectName + \".xml\");\r\n tm3File.createNewFile();\r\n \r\n // initialize the data for the file\r\n SensorDataCollector collector = new SensorDataCollector(app.getSensorBaseHost(), \r\n this.ownerName, \r\n this.password);\r\n collector.getRepository(this.svnUrl, this.projectName);\r\n collector.write(tm3File, xmlFile);\r\n } \r\n catch (IOException e) {\r\n e.printStackTrace();\r\n return false;\r\n }\r\n // write the projects.xml file with the new project added\r\n String packageName = \"org.hackystat.iw.projectoverviewer.jaxb.projects\";\r\n return XmlConverter.objectToXml(projects, projectsFile, packageName);\r\n }", "public void setProjectFile(File projectFile) {\r\n\t\tthis.projectFile = projectFile;\r\n\t}", "private ProjectMgr getPmNameTrueLoadActualProject() {\n ProjectMgr pm = null;\n try {\n pm = new ProjectMgr(\"Example\", true);\n\n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (SAXException e) {\n e.printStackTrace();\n }\n\n IOException e;\n return pm;\n }", "public void doProjectOpen() {\r\n\t\tthis.observerList.notifyObservers(GNotification.PROJECT_OPEN, null);\r\n\t}", "Builder forProjectDirectory(File projectDir);", "public ProjectFile getProject()\r\n {\r\n return m_project;\r\n }", "public void openFile() {\n\t\tJFileChooser choose = new JFileChooser();\n\t\t if(choose.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) {\n\t\t\t\ttry {\n\t\t\t\t\tFile selectedFile = choose.getSelectedFile();\n\t\t\t\t\tdir=choose.getCurrentDirectory().toString();\n\t\t\t\t\tScanner readFile = new Scanner(selectedFile);\n\t\t\t\t\tif(!frame.textArea.getText().isEmpty()) {\n\t\t\t\t\t\tframe.textArea.setText(\"\");\n\t\t\t\t\t}\n\t\t\t\t\twhile(readFile.hasNext()) {\n\t\t\t\t\t\tString currentLine = readFile.nextLine();\n\t\t\t\t\t\tframe.textArea.append(currentLine+\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t\tframe.setTitle(selectedFile.getName()+\"-Text Editor\");\n\t\t\t\t\tframe.originalText=frame.textArea.getText();\n\t\t\t\t\treadFile.close();\n\t\t\t\t} catch (FileNotFoundException ex) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"File Not Found\");\n\t\t\t\t}\n\n\t\t }\n\t}", "public void newProjectAction() throws IOException {\n\t\tfinal FXMLSpringLoader loader = new FXMLSpringLoader(appContext);\n\t\tfinal Dialog<Project> dialog = loader.load(\"classpath:view/Home_NewProjectDialog.fxml\");\n\t\tdialog.initOwner(newProject.getScene().getWindow());\n\t\tfinal Optional<Project> result = dialog.showAndWait();\n\t\tif (result.isPresent()) {\n\t\t\tlogger.trace(\"dialog 'new project' result: {}\", result::get);\n\t\t\tprojectsObservable.add(result.get());\n\t\t}\n\t}", "private static void addProjectFile(IProject newProject, String fileName, String projectPath){\n \tBundle bundle = Platform.getBundle(BUNDLE_ID);//plugin id\n \tString filePath = DEFAULT_FILE_PATH + fileName;\n \tIPath location= Path.fromOSString(filePath); \n \tInputStream stream;\n\t\ttry {\n\t\t\tstream = FileLocator.openStream( bundle, location, false );\n\t\t\tString createdFilePath = projectPath+fileName;\n\t \tIFile file = newProject.getFile(createdFilePath);\n\t\t\tfile.create( stream, true, null );\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}catch (CoreException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n }", "public IProject getProject();", "public File openInputFile() throws Exception{\n\t\t// Open the input file\n\t\tinputFile = new File(PLEIADEAN_FILE);\n\t\t\n\t\t// return to the caller\n\t\treturn(inputFile);\n\t}", "LectureProject createLectureProject();", "public static void open() {\n JFileChooser fileChooser;\n String fileContent;\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(\"Select text file\");\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\"Text files\",\"mytxt\");\n fileChooser.addChoosableFileFilter(filter);\n fileChooser.setAcceptAllFileFilterUsed(true);\n\n if (fileChooser.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) {\n path = fileChooser.getSelectedFile().getParent();\n FileLoader.saveFile(\"path.txt\", path, false);\n fileContent = FileLoader.loadFile(fileChooser.getSelectedFile().getAbsolutePath());\n TextEditor.setFileName(fileChooser.getSelectedFile().getAbsolutePath());\n TextEditor.getTextArea().setText(fileContent);\n }\n }", "public void projectOpened() {\n initToolWindow();\n }", "private void openFile()\r\n {\r\n int returnState = openFileChooser.showOpenDialog(frame);\r\n if (returnState == JFileChooser.APPROVE_OPTION) \r\n {\r\n File file = openFileChooser.getSelectedFile();\r\n openUriInBackground(file.toURI());\r\n } \r\n }", "public void open(){\n\t\ttry {\n\t\t\tdocFactory = DocumentBuilderFactory.newInstance();\n\t\t\tdocBuilder = docFactory.newDocumentBuilder();\n\t\t\tdoc = docBuilder.parse(ManipXML.class.getResourceAsStream(path));\n\t\t\t\n\t\t} catch (ParserConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SAXException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void createProject(Project newProject);", "void open();", "void open();", "void open();", "private static File loadFile(){\n\t\t//make the window\n\t\tJFrame window=new JFrame();\n\t\ttry{\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n\t\t}catch(Exception ex){}\n\t\tUIManager.put(\"FileChooser.readOnly\",Boolean.TRUE);\n\t\tJFileChooser fc=new JFileChooser();\n\t\tfc.setCurrentDirectory(new File(System.getProperty(\"user.dir\")+\"//examples\"));\n\t\t\n\t\t//get the file\n\t\tint result=fc.showOpenDialog(window);\n\t\tFile f;\n\t\tif(result==JFileChooser.APPROVE_OPTION){\n\t\t\tf=fc.getSelectedFile();\n\t\t}else{\n\t\t\tSystem.exit(0);\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t//close window and return\n\t\twindow.dispose();\n\t\treturn f;\n\t}", "public Project getProjectByName(String name);", "@NotNull\n protected Document getDocumentFileInProject(String filename) {\n VirtualFile sourceFile = searchForVirtualFileInProject(filename);\n Document doc = FileDocumentManager.getInstance().getDocument(sourceFile);\n assertNotNull(String.format(\"%s not found.\", filename), doc);\n return doc;\n }", "public File getFile( Project project )\n {\n // If we've implemented FileIndex correctly, the the\n // project root + full path is all we should need.\n // File will do the rest\n return( new File( project.getProjectFile().getParentFile(), fullPath ) );\n }", "public void\topen(File path) throws IOException;", "public void open();", "public void open();", "private File showOpenDialog()\n {\n \tJFileChooser fc = new JFileChooser(m_preferences.get(\"path-load-game\"));\n \tint ret = fc.showOpenDialog(this);\n \tif (ret == JFileChooser.APPROVE_OPTION)\n \t return fc.getSelectedFile();\n \treturn null;\n }", "@FXML\n\tpublic void openFile() {\n\t\tFileChooser openFileChooser = new FileChooser();\n\t\topenFileChooser.setInitialDirectory(userWorkspace);\n\t\topenFileChooser.getExtensionFilters().add(new FileChooser.ExtensionFilter(\"Text doc(*.txt)\", \"*.txt\"));\n\t\tfile = openFileChooser.showOpenDialog(ap.getScene().getWindow());\n\n\t\tuserText.clear();\n\n\t\tif (file != null) {\n\t\t\tif (file.getName().endsWith(\".txt\")) {\n\t\t\t\tfilePath = file.getAbsolutePath();\n\t\t\t\tStage primStage = (Stage) ap.getScene().getWindow();\n\t\t\t\tprimStage.setTitle(filePath);\n\t\t\t\tTab tab = tabPane.getSelectionModel().getSelectedItem();\n\t\t\t\ttab.setId(filePath);\n\t\t\t\ttab.setText(file.getName());\n\n\t\t\t\twriteToUserText();\n\t\t\t}\n\t\t}\n\t}", "public void performAction(ActionEvent e) {\n if (getProjectController() != null && !checkSaveOnClose()) {\n return;\n }\n\n File f = null;\n if (e.getSource() instanceof FileMenuItem) {\n FileMenuItem menu = (FileMenuItem) e.getSource();\n f = menu.getFile();\n }\n else if(e.getSource() instanceof File) {\n f = (File) e.getSource();\n }\n\n if (f == null) {\n try {\n // Get the project file name (always cayenne.xml)\n f = fileChooser.openProjectFile(Application.getFrame());\n }\n catch (Exception ex) {\n logObj.warn(\"Error loading project file.\", ex);\n }\n }\n\n if (f != null) {\n // by now if the project is unsaved, this has been a user choice...\n if (getProjectController() != null && !closeProject(false)) {\n return;\n }\n\n openProject(f);\n }\n }", "public static void findFile() throws IOException {\n File newFile = new File(\"test.txt\");\n FileInputStream stream = new FileInputStream(newFile);\n }", "public String openFile() {\n\t\t\n\t\tString chosenFile = \"\";\n\t\treturn chosenFile;\n\t\t\n\t}", "public static void createOrOpenTasksFile() {\n try {\r\n File tasksFile = new File(\"tasks.txt\");\r\n if (tasksFile.createNewFile()) {\r\n System.out.println(\"\\nFiles \" + tasksFile.getName() + \" has been created.\");\r\n } else {\r\n System.out.println(\"\\nFile \" + tasksFile.getName() + \" is ready.\");\r\n }\r\n } catch (IOException e) {\r\n System.out.println(\"An error occurred.\");\r\n e.printStackTrace();\r\n }\r\n }", "void open() {\n \tJFileChooser fileopen = new JFileChooser();\n int ret = fileopen.showDialog(null, \"Open file\");\n\n if (ret == JFileChooser.APPROVE_OPTION) {\n document.setFile(fileopen.getSelectedFile());\n textArea.setText(document.getContent());\n }\n }", "public File openFile() {\r\n\r\n\t\tFile chosenFile = fileChooser.showOpenDialog(fileChooserDialog);\r\n\t\treturn chosenFile;\r\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tFile projectFile;\n\t\t\t\tint rVal = fileChooser.showOpenDialog(OldTimeTableApp.this);\n\t\t\t\tif(rVal == JFileChooser.APPROVE_OPTION) {\n\t\t\t\t\tprojectFile = fileChooser.getSelectedFile();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcurrentProject.setCourseDetailsFileName(projectFile.getPath());\n\t\t\t\t\t\tupdatePanel(currentProjectFilePath, currentProject.getCourseDetailsFileName(), currentProject.getStudentAllocationDetailsFileName());\n\t\t\t\t\t} catch (Throwable error) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(OldTimeTableApp.this, error, \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "private IProject createNewProject() {\r\n\t\tif (newProject != null) {\r\n\t\t\treturn newProject;\r\n\t\t}\r\n\r\n\t\t// get a project handle\r\n\t\tfinal IProject newProjectHandle = mainPage.getProjectHandle();\r\n\r\n\t\t// get a project descriptor\r\n\t\tURI location = mainPage.getLocationURI();\r\n\r\n\t\tIWorkspace workspace = ResourcesPlugin.getWorkspace();\r\n\t\tfinal IProjectDescription description = workspace.newProjectDescription(newProjectHandle.getName());\r\n\t\tdescription.setLocationURI(location);\r\n\r\n\t\tlog.info(\"Project name: \" + newProjectHandle.getName());\r\n\t\t//log.info(\"Location: \" + location.toString());\r\n\t\t\r\n\t\t// create the new project operation\r\n\t\tIRunnableWithProgress op = new IRunnableWithProgress() {\r\n\t\t\tpublic void run(IProgressMonitor monitor)\r\n\t\t\t\t\tthrows InvocationTargetException {\r\n\t\t\t\tCreateProjectOperation op = new CreateProjectOperation(description, ResourceMessages.NewProject_windowTitle);\r\n\t\t\t\ttry {\r\n\t\t\t\t\top.execute(monitor, WorkspaceUndoUtil.getUIInfoAdapter(getShell()));\r\n\t\t\t\t} catch (ExecutionException e) {\r\n\t\t\t\t\tthrow new InvocationTargetException(e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\t// run the new project creation operation\r\n\t\ttry {\r\n\t\t\tgetContainer().run(true, true, op);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\tlog.error(\"Project creation failed.\");\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t} catch (InvocationTargetException e) {\r\n\t\t\tlog.error(\"Project creation failed.\");\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tnewProject = newProjectHandle;\r\n\r\n\t\treturn newProject;\r\n\t}", "public void addProjectAction() throws IOException {\n\t\tfinal FXMLSpringLoader loader = new FXMLSpringLoader(appContext);\n\t\tfinal Dialog<Project> dialog = loader.load(\"classpath:view/Home_AddProjectDialog.fxml\");\n\t\tdialog.initOwner(addProject.getScene().getWindow());\n\t\tfinal Optional<Project> result = dialog.showAndWait();\n\t\tif (result.isPresent()) {\n\t\t\tlogger.trace(\"dialog 'add project' result: {}\", result::get);\n\t\t\tprojectsObservable.add(result.get());\n\t\t}\n\t}", "public void open() {\r\n\t\tFile f = getOpenFile(\"Map Files\", \"tilemap\");\r\n\t\tif (f == null) return;\r\n\t\tfile = f;\r\n\t\tframe.setTitle(\"Tile Mapper - \"+file.getName());\r\n\t\tSystem.out.println(\"Opening \"+file.getAbsolutePath());\r\n\r\n\t\ttry {\r\n\t\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\r\n\t\t\tInputStream is = this.getClass().getClassLoader().getResourceAsStream(\"tilemapper/Map.xsd\");\r\n\t\t\tfactory.setSchema(SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI).newSchema(new StreamSource(is)));\r\n\r\n\t\t\tDocument dom = factory.newDocumentBuilder().parse(file);\r\n\r\n\t\t\t// we have a valid document\r\n\t\t\t//printNode(dom, \"\");\r\n\t\t\tNode mapNode = null;\r\n\t\t\tNodeList nodes = dom.getChildNodes();\r\n\t\t\tfor (int i=0; i<nodes.getLength(); i++) {\r\n\t\t\t\tNode node = nodes.item(i);\r\n\t\t\t\tif (node.getNodeName() == \"Map\") mapNode = node;\r\n\t\t\t}\r\n\t\t\tif (mapNode == null) return;\r\n\t\t\tmapPanel.parseDOM((Element)mapNode);\r\n\r\n\t\t} catch (ParserConfigurationException e) {\r\n\t\t\tSystem.out.println(\"The underlying parser does not support the requested features.\");\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (FactoryConfigurationError e) {\r\n\t\t\tSystem.out.println(\"Error occurred obtaining Document Builder Factory.\");\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void openFile()\r\n {\r\n try // open file\r\n {\r\n input = new RandomAccessFile( \"clients.dat\", \"r\" );\r\n } // end try\r\n catch ( IOException ioException )\r\n {\r\n System.err.println( \"File does not exist.\" );\r\n } // end catch\r\n }", "public void consult(String strFilePath)\r\n {\r\n m_consoleCtrl.openFile(strFilePath);\r\n }", "public void openBuildFile( final File build_file ) {\n if ( build_file == null || !build_file.exists() )\n return ;\n boolean new_file = !build_file.equals( _build_file );\n _build_file = build_file;\n try {\n // constraints for layout\n KappaLayout.Constraints con = KappaLayout.createConstraint();\n con.s = \"w\";\n con.p = 1;\n\n // set up panels\n if ( _center_panel == null ) {\n _center_panel = new DeckPanel();\n AntelopePanel.this.add( _center_panel, BorderLayout.CENTER );\n }\n else {\n _center_panel.removeAll();\n }\n if ( _button_panel == null ) {\n _button_panel = new JPanel( new KappaLayout() );\n _button_panel.setBackground( AntelopePanel.this.getBackground() );\n _button_panel.setBorder( new javax.swing.border.EmptyBorder( 3, 3, 3, 3 ) );\n _scroller = new JScrollPane( _button_panel );\n _scroller.getVerticalScrollBar().setUnitIncrement( 50 );\n _btn_container = new JPanel( new BorderLayout() );\n _btn_container.add( _scroller, BorderLayout.CENTER );\n _btn_container.add( _multi, BorderLayout.SOUTH );\n }\n else {\n _button_panel.removeAll();\n _button_panel.setLayout( new KappaLayout() );\n }\n _center_panel.add( \"panel\", _btn_container );\n\n if ( _sax_panel == null ) {\n _sax_panel = new SAXPanel( _helper );\n }\n // load the 'edit' panel\n boolean isAntBuildFile = _sax_panel.openBuildFile( _build_file );\n _center_panel.add( \"tree\", _sax_panel );\n if ( isAntBuildFile ) {\n if ( _edit_btn.isSelected() )\n _center_panel.last();\n else\n _center_panel.first();\n _run_btn.setEnabled( true );\n _trace_btn.setEnabled( true );\n _edit_btn.setEnabled( true );\n _props_btn.setEnabled( true );\n _options_btn.setEnabled( true );\n }\n else {\n _center_panel.last();\n _run_btn.setEnabled( false );\n _trace_btn.setEnabled( false );\n ///_edit_btn.setEnabled( false );\n _props_btn.setEnabled( false );\n _options_btn.setEnabled( false );\n }\n\n // create a new button panel from the build file\n // make sure the configuration settings are loaded, but first save any\n // previous settings\n try {\n Constants.PREFS.put( Constants.LAST_OPEN_FILE, build_file.getAbsolutePath() );\n }\n catch ( Throwable e ) { // NOPMD\n e.printStackTrace();\n }\n adjustRecentFiles( build_file );\n adjustRecentFilesMenu();\n saveConfigurationSettings();\n\n // create the project and set up the build logger\n if ( isAntBuildFile ) {\n try {\n\n // load the settings for the build file and create an\n // Ant project\n _project = createProject( _build_file );\n loadPropertyFiles();\n\n // set up \"Execute\" button for multiple targets\n if ( new_file ) {\n _multi.setSelected( _settings.getMultipleTargets() );\n }\n if ( _multi.isSelected() ) {\n JButton execute_btn = new JButton( \"Execute\" );\n _button_panel.add( execute_btn, con );\n execute_btn.addActionListener( _execute_listener );\n ++con.y;\n }\n\n // set the label with the name of this project\n String project_name = _project.getProperty( \"ant.project.name\" );\n if ( project_name == null || project_name.equals( \"\" ) )\n project_name = \"<unnamed project>\";\n _project_name.setText( project_name );\n\n // load the targets from the build file, only keep the targets\n // that meet the user's subtarget display settings.\n Map targets = _project.getTargets();\n if ( targets == null || targets.size() == 0 ) {\n //Log.log( \"no targets in project\" );\n return ; /// ??? really ???\n }\n\n ///\n for ( Iterator it = targets.keySet().iterator(); it.hasNext(); ) {\n Log.log( \"target in targets: \" + it.next() );\n }\n\n\n\n // Ant 1.6 has an un-named target to hold project-level tasks, so\n // find it and save it for later.\n _unnamed_target = null;\n Log.log( \"+++++ AntUtils.getAntVersion: \" + AntUtils.getAntVersion() );\n if ( AntUtils.getAntVersion() >= 1.6 ) {\n Iterator iter = targets.keySet().iterator();\n while ( iter.hasNext() ) {\n if ( iter.next().toString().equals( \"\" ) ) {\n _unnamed_target = ( Target ) targets.get( \"\" );\n }\n }\n }\n\n // make buttons by sorting the targets by name or by leaving\n // them in the order they appear in the build file\n if ( _settings.getSortTargets() )\n _targets = new TreeMap( java.text.Collator.getInstance() );\n else\n _targets = new LinkedHashMap();\n Map sax_targets = _sax_panel.getTargets();\n\n ///\n ///for (Iterator ix = sax_targets.keySet().iterator(); ix.hasNext(); ) {\n /// String key = (String)ix.next();\n /// Object value = sax_targets.get(key);\n /// Log.log(\"sax_targets: \" + key + \":\" + value);\n ///}\n ///\n\n Iterator it = sax_targets.keySet().iterator(); ///targets.keySet().iterator();\n while ( it.hasNext() ) {\n // adjust which targets are showing --\n String target_name = ( String ) it.next();\n // Ant 1.6 has an un-named target to hold project-level tasks.\n // It has no name and shouldn't be executed by itself, so\n // don't make a button for it.\n if ( target_name == null || target_name.equals( \"\" ) ) {\n continue;\n }\n\n Target target = ( Target ) targets.get( target_name );\n\n if ( target == null ) {\n SAXTreeNode node = ( SAXTreeNode ) sax_targets.get( target_name );\n if ( node.isImported() ) {\n target_name = node.getAttributeValue( \"name\" );\n target = ( Target ) targets.get( target_name );\n ///\n ///System.out.println(\"+++++ \" + node.getFile());\n ///\n }\n if ( target == null )\n continue;\n }\n String description = target.getDescription();\n if ( _settings.getShowAllTargets() ) {\n _targets.put( target_name, target );\n }\n else {\n if ( target_name.indexOf( '.' ) > 0 && _settings.getShowTargetsWDot() ) {\n // got dots and that's okay, show the target\n _targets.put( target_name, target );\n continue;\n }\n if ( target_name.indexOf( '.' ) > 0 && !_settings.getShowTargetsWDot() ) {\n // got dots and that's not okay\n continue;\n }\n if ( target_name.startsWith( \"-\" ) && _settings.getShowTargetsWDash() ) {\n // got dash and that's okay, show the target\n _targets.put( target_name, target );\n continue;\n }\n if ( target_name.startsWith( \"-\" ) && !_settings.getShowTargetsWDash() ) {\n // got dash and that's not okay\n continue;\n }\n if ( ( description == null || description.equals( \"\" ) ) && _settings.getShowTargetsWODesc() ) {\n // got no desc and that's okay, show the target\n _targets.put( target_name, target );\n continue;\n }\n if ( ( description == null || description.equals( \"\" ) ) && !_settings.getShowTargetsWODesc() ) {\n // got no desc and that's not okay\n continue;\n }\n if ( target_name.indexOf( '.' ) == -1 && description != null ) {\n // got no dots and got desc, show the target\n _targets.put( target_name, target );\n }\n }\n }\n\n if ( _unnamed_target != null ) {\n _targets.put( IMPLICIT_TARGET_NAME, _unnamed_target );\n }\n // make a new button panel and populate it with new buttons\n // for the targets for this project\n _buttons = new ArrayList();\n _execute_targets = new ArrayList();\n it = _targets.keySet().iterator();\n while ( it.hasNext() ) {\n String target_name = ( String ) it.next();\n Target target = ( Target ) _targets.get( target_name );\n if ( target == null ) {\n continue;\n }\n String description = target.getDescription();\n if ( description == null ) {\n description = target_name;\n }\n AbstractButton button;\n if ( _multi.isSelected() ) {\n if ( target_name.equals( IMPLICIT_TARGET_NAME ) )\n continue;\n SAXTreeNode node = ( SAXTreeNode ) sax_targets.get( target_name );\n button = new JCheckBox( );\n StringBuilder btn_text = new StringBuilder(\"<html>\");\n if ( node == null ) {\n btn_text.append( \"<i>\" );\n }\n else {\n if ( node.isPrivate() )\n btn_text.append(\"<i>\");\n if ( node.isDefaultTarget() )\n button.setForeground( GREEN );\n }\n btn_text.append(target_name);\n button.setText( btn_text.toString() );\n button.addActionListener( _cb_listener );\n button.setBackground( _button_panel.getBackground() );\n if ( node != null && node.isDefaultTarget() )\n _default_btn = button;\n }\n else {\n StringBuilder btn_text = new StringBuilder(\"<html>\");\n SAXTreeNode node = ( SAXTreeNode ) sax_targets.get( target_name );\n button = new JButton();\n if ( node == null ) { // this shouldn't happen\n btn_text.append(isPrivate( target ) ? \"<i>\" : \"\");\n }\n else {\n if ( node.isPrivate() )\n btn_text.append(\"<i>\");\n if ( node.isDefaultTarget() )\n button.setForeground( GREEN );\n }\n btn_text.append(target_name);\n button.setText( btn_text.toString() );\n button.addActionListener( _button_listener );\n if ( node != null && node.isDefaultTarget() )\n _default_btn = button;\n }\n button.setActionCommand( target_name );\n button.setToolTipText( description );\n _button_panel.add( button, con );\n _buttons.add( button );\n ++con.y;\n }\n // if new and was multi, restore selected targets\n if ( new_file && _multi.isSelected() ) {\n it = _settings.getMultipleTargetList().iterator();\n while ( it.hasNext() ) {\n String name = ( String ) it.next();\n Iterator itr = _buttons.iterator();\n while ( itr.hasNext() ) {\n AbstractButton btn = ( AbstractButton ) itr.next();\n if ( btn.getActionCommand().equals( name ) )\n btn.doClick();\n }\n }\n }\n }\n catch ( Exception e ) {\n e.printStackTrace();\n }\n }\n\n /// not sure this is a good idea, we're calling invokeLater\n /// from within an invokeLater\n /* */\n SwingUtilities.invokeLater(\n new Runnable() {\n public void run() {\n _button_panel.validate();\n AntelopePanel.this.validate();\n AntelopePanel.this.repaint();\n }\n }\n );\n /* */\n }\n catch ( Exception e ) {\n e.printStackTrace();\n }\n fireEvent( _build_file );\n\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tFile projectFile;\n\t\t\t\tint rVal = fileChooser.showOpenDialog(OldTimeTableApp.this);\n\t\t\t\tif(rVal == JFileChooser.APPROVE_OPTION) {\n\t\t\t\t\tprojectFile = fileChooser.getSelectedFile();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcurrentProject.setStudentAllocationDetailsFileName(projectFile.getPath());\n\t\t\t\t\t\tupdatePanel(currentProjectFilePath, currentProject.getCourseDetailsFileName(), currentProject.getStudentAllocationDetailsFileName());\n\t\t\t\t\t} catch (Throwable error) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(OldTimeTableApp.this, error, \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "public void openFile(File selectedFile) {\n System.err.println(\"selected: \" + selectedFile);\n }", "@Override\n public InputStream open() throws IOException {\n return getClass().getClassLoader().getResourceAsStream(name);\n }", "private void promptToOpen()\r\n {\r\n // WE'LL NEED THE GUI\r\n AnimatedSpriteEditor singleton = AnimatedSpriteEditor.getEditor();\r\n AnimatedSpriteEditorGUI gui = singleton.getGUI();\r\n \r\n // AND NOW ASK THE USER FOR THE POSE TO OPEN\r\n JFileChooser poseFileChooser = new JFileChooser(POSES_PATH);\r\n int buttonPressed = poseFileChooser.showOpenDialog(gui);\r\n \r\n // ONLY OPEN A NEW FILE IF THE USER SAYS OK\r\n if (buttonPressed == JFileChooser.APPROVE_OPTION)\r\n {\r\n // GET THE FILE THE USER ENTERED\r\n currentFile = poseFileChooser.getSelectedFile();\r\n currentFileName = currentFile.getName();\r\n currentPoseName = currentFileName.substring(0, currentFileName.indexOf(\".\"));\r\n saved = true;\r\n \r\n // AND PUT THE FILE NAME IN THE TITLE BAR\r\n String appName = gui.getAppName();\r\n gui.setTitle(appName + APP_NAME_FILE_NAME_SEPARATOR + currentFile); \r\n \r\n // AND LOAD THE .pose (XML FORMAT) FILE\r\n poseIO.loadPose(currentFile.getAbsolutePath());\r\n singleton.getStateManager().getPoseurStateManager().clearClipboardShape();\r\n }\r\n }", "void openResource(String resourcePath);", "public void open (File file)\n\t{\n\t\topen (file, false);\n\t}", "public void openFile(String file)\n\t{\n\t\tthis.file=file;\n\t\tSystem.out.println(\"file has been opened\");\n\t}", "public void setProjectFilePath(String textFilePath) {\n\t\tprojectFileIO = new XMLReaderWriter(textFilePath);\n\t\tprojectModified = true;\n\t}", "public static Project getProject() {\n if (ProjectList.size() == 0) {\n System.out.print(\"No Projects were found.\");\n return null;\n }\n\n System.out.print(\"\\nPlease enter the project number: \");\n int projNum = input.nextInt();\n input.nextLine();\n\n for (Project proj : ProjectList) {\n if (proj.projNum == projNum) {\n return proj;\n }\n }\n\n System.out.print(\"\\nProject was not found. Please try again.\");\n return getProject();\n }", "HibProject getProject(InternalActionContext ac);", "public void load() {\r\n try {\r\n project = ProjectAccessor.findFromTitle(title, conn);\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n }\r\n }", "@Test\n\tpublic void testExistsProjectInexistent() throws Exception {\n\t\tIRodinProject other = getRodinProject(\"Inexistent\");\n\t\tassertFalse(\"An existent project should not be open\",\n\t\t\t\tother.isOpen());\n\t\tassertNotExists(\"The Rodin project should not exist\", other);\n\t\tassertFalse(\"The existence test should not have opened the project\",\n\t\t\t\tother.isOpen());\n\t}", "public void onMouseClickedOnRecentFile(MouseEvent mouseEvent) {\n if (MouseButton.PRIMARY.equals(mouseEvent.getButton()) && 2 == mouseEvent.getClickCount()) {\n String fileLocationStr = listRecentProjects.getSelectionModel().getSelectedItem();\n\n if (StringUtils.isNotBlank(fileLocationStr)) {\n File projectFile = new File(fileLocationStr);\n openProject(projectFile);\n }\n }\n }", "public void load() throws IOException {\r\n\t\tFile file = new File(projectDir, TERN_PROJECT);\r\n\t\tif (file.exists()) {\r\n\t\t\tJSONParser parser = new JSONParser();\r\n\t\t\ttry {\r\n\t\t\t\tJSONObject result = (JSONObject) parser.parse(new FileReader(\r\n\t\t\t\t\t\tfile));\r\n\t\t\t\tsuper.putAll(result);\r\n\t\t\t} catch (ParseException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void actionNewProject ()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tDataController.scenarioNewProject();\r\n\r\n\t\t\thelperDisplayProjectFiles();\r\n\r\n\t\t\t//---- Change button icon\r\n\t\t\tImageIcon iconButton = FormUtils.getIconResource(FormStyle.RESOURCE_PATH_ICO_VIEW_SAMPLES);\r\n\r\n\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewSamples().setIcon(iconButton);\r\n\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewSamples().setActionCommand(FormMainHandlerCommands.AC_VIEW_SAMPLES_ON);\r\n\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewSamples().setToolTipText(\"View detected samples\");\r\n\r\n\t\t\tmainFormLink.reset();\r\n\t\t}\r\n\t\tcatch (ExceptionMessage e)\r\n\t\t{\r\n\t\t\tExceptionHandler.processException(e);\r\n\t\t}\r\n\t}", "void openFile() {\n\t\tJFileChooser fileChooser = new JFileChooser(desktopPath);\n\t\tint returnVal = fileChooser.showOpenDialog(null);\n if(returnVal == JFileChooser.APPROVE_OPTION) {\n \tString filePath = fileChooser.getSelectedFile().getPath();\n File file = new File(filePath);\n textEditor.setText(\"\");\n try {\n \tScanner in = new Scanner(file);\n \twhile(in.hasNextLine()) {\n \t\ttextEditor.append(in.nextLine()+'\\n');\n \t}\n \tin.close();\n \ttextAreaChanged = false;\n \tsavedFilePath = filePath;\n } catch (Exception ex) {\n \terrorTextArea.setForeground(Color.RED);\n\t\t\t\terrorTextArea.setText(\"Error loding file\");\n\t\t\t}\n }\n\t}", "public boolean openFile(final File file)\n {\n BufferedReader bufferedReader = null;\n\n try\n {\n bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(file)));\n final StringBuilder stringBuilder = new StringBuilder();\n String line = bufferedReader.readLine();\n\n while(line != null)\n {\n stringBuilder.append(line);\n line = bufferedReader.readLine();\n\n if(line != null)\n {\n stringBuilder.append('\\n');\n }\n }\n\n this.componentEditor.setText(stringBuilder.toString());\n this.currentFile = file;\n this.preferences.setValue(CompilerEditorPanel.PREFERENCE_LAST_FILE, this.currentFile);\n this.preferences.setValue(CompilerEditorPanel.PREFERENCE_LAST_DIRECTORY, this.currentFile.getParentFile());\n this.fileChooser.setStartDirectory(this.currentFile.getParentFile());\n this.title.setText(UtilText.concatenate(\"--\", this.currentFile.getAbsolutePath(), \"--\"));\n return true;\n }\n catch(final Exception exception)\n {\n Debug.printException(exception, \"Failed to load : \" + file.getAbsolutePath());\n this.printMessage(UtilText.concatenate(\"Failed to load file at :\\n\", file.getAbsolutePath(), \"\\nBecause :\\n\", UtilEditor.extractMessage(exception)));\n return false;\n }\n finally\n {\n if(bufferedReader != null)\n {\n try\n {\n bufferedReader.close();\n }\n catch(final Exception ignored)\n {\n }\n }\n }\n }", "public static WorkspaceComponent open(final Class<?> fileClass,\r\n final File file) {\r\n String extension = file.getName()\r\n .substring(file.getName().indexOf(\".\"));\r\n try {\r\n Method method = fileClass.getMethod(\"open\", InputStream.class,\r\n String.class, String.class);\r\n WorkspaceComponent wc = (WorkspaceComponent) method.invoke(null,\r\n new FileInputStream(file), file.getName(), extension);\r\n wc.setCurrentFile(file);\r\n wc.setChangedSinceLastSave(false);\r\n return wc;\r\n } catch (RuntimeException e) {\r\n throw e;\r\n } catch (Exception e) {\r\n throw new RuntimeException(e);\r\n }\r\n }", "public void open() {\n Optional<MidiSequence> sequenceOptional = MidiFileIO.loadMIDIFile();\n if (sequenceOptional.isPresent()) sequenceOptional.ifPresent(inSequence -> {\n cursor = 0;\n controller.setSelected(cursor);\n\n sequence = inSequence;\n controller.setMidiSequence(sequence);\n });\n else {\n JOptionPane.showMessageDialog(null, \"Failed to open file!\", \"OH NO!!!\", JOptionPane.WARNING_MESSAGE);\n }\n }", "@Override\n\tpublic void actionPerformed(final AnActionEvent e)\n\t{\n\t\tfinal Project project = e.getData(PlatformDataKeys.PROJECT);\n\t\tfinal VirtualFile file = e.getData(PlatformDataKeys.VIRTUAL_FILE);\n\n\t\tif(project == null || project.isDisposed())\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tshareProjectOnGithub(project, file);\n\t}", "public @Override void actionPerformed(ActionEvent e) {\n RP.post(new Runnable() {\n public @Override void run() {\n Set<Project> projects = new HashSet<Project>();\n // Collect projects corresponding to selected folders.\n for (DataFolder d : context.lookupAll(DataFolder.class)) {\n try {\n Project p = ProjectManager.getDefault().findProject(d.getPrimaryFile());\n if (p != null) {\n projects.add(p);\n }\n // Ignore folders not corresponding to projects (will not disable action if some correspond to projects).\n // Similarly, do not worry about projects which are already open - no harm done.\n } catch (IOException x) {\n Logger.getLogger(OpenProjectFolderAction.class.getName()).log(Level.INFO, null, x);\n }\n }\n OpenProjectList.getDefault().open(projects.toArray(new Project[projects.size()]), false, true);\n }\n });\n }", "public Project getProject(Long projectId);", "@SuppressWarnings(\"resource\")\n public Scanner openFile() {\n boolean flag = false;\n Scanner input;\n\n while(!flag) {\n\t\t\tScanner scanned = new Scanner(System.in); \n\t if((scanned.next()).equals(\"game\")) {\n\t \tthis.fileName = scanned.next();\n\t try\n\t {\n\t File file = new File(\"./examples/\"+this.fileName);\n\t input = new Scanner(file);\n\t flag = true;\n\t return input;\n\t }\n\t catch (FileNotFoundException e)\n\t {\n\t \tSystem.err.println(\"File was not found, try again\");\n\t } \t\n\t }\n\t else {\n\t \tSystem.err.println(\"First command must be game, try again\");\n\t }\n }\n return null;\n }" ]
[ "0.7522025", "0.7392475", "0.7370743", "0.72926664", "0.70931673", "0.7019146", "0.6999864", "0.6852219", "0.670721", "0.66031224", "0.6427669", "0.62977904", "0.62462026", "0.62462026", "0.62462026", "0.61893237", "0.6108948", "0.6101429", "0.6097974", "0.6081798", "0.60734403", "0.60511655", "0.6040131", "0.6018662", "0.60177326", "0.5996801", "0.5983143", "0.5937586", "0.59303457", "0.59254915", "0.5912552", "0.59048903", "0.5893663", "0.5885339", "0.5880387", "0.5859864", "0.58540624", "0.58295405", "0.5818003", "0.5817364", "0.5815249", "0.58006823", "0.57730556", "0.5760532", "0.57456505", "0.574258", "0.57403225", "0.57316947", "0.5726759", "0.5726438", "0.57231426", "0.5715436", "0.56856143", "0.56856143", "0.56856143", "0.5668838", "0.5657958", "0.5656053", "0.56521356", "0.56372505", "0.56290036", "0.56290036", "0.56209576", "0.56086904", "0.5603979", "0.5590143", "0.55848616", "0.5584188", "0.558178", "0.5576106", "0.5574252", "0.55627984", "0.5559695", "0.55467767", "0.55418074", "0.5525874", "0.55133563", "0.5484068", "0.5469136", "0.54678756", "0.5467829", "0.54566216", "0.54358405", "0.5419413", "0.5414013", "0.54139084", "0.541224", "0.541042", "0.5408586", "0.5404036", "0.5402752", "0.53844804", "0.53772795", "0.53764755", "0.5376359", "0.5376149", "0.53746", "0.53741175", "0.53691083", "0.5368523" ]
0.7381686
2
Method creates a new projet by importing project files in Jar
public int createProject(File jarFile, String packageName, boolean isSource) { try { projectData = projectLoader.createProject(jarFile, packageName, isSource); } catch (FileNotFoundException ex) { return 1; // can not find ini file } catch (Exception ex) { return 2; // can not load import classes data } catch (TokenMgrError tm) { return 2; // can not load import classes data } return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Project createProject();", "Project createProject();", "Project createProject();", "public void createProject(Project newProject);", "private void newProject()\n\t{\n\t\tnew FenetreCreationProjet();\n\t}", "@TaskAction\n public void createProject()\n throws IOException {\n String projectName = getProjectName();\n\n // Get the output directory\n String outputDir = \"build/\";\n String projectFolderPath = outputDir + PROJECT_PREFIX + PROJECT_PREFIX_INTEGRATION + projectName;\n Path outputPath = getProject().mkdir(new File(projectFolderPath)).toPath();\n\n // Build the project\n new ProjectBuilder(projectName, outputPath, getProject()).build();\n }", "private boolean createProject() {\r\n ProjectOverviewerApplication app = (ProjectOverviewerApplication)getApplication();\r\n Projects projects = app.getProjects();\r\n String userHome = System.getProperty(\"user.home\");\r\n // master file for projects management\r\n File projectsFile = new File(userHome + \"/.hackystat/projectoverviewer/projects.xml\");\r\n \r\n // create new project and add it to the projects\r\n Project project = new Project();\r\n project.setProjectName(this.projectName);\r\n project.setOwner(this.ownerName);\r\n project.setPassword(this.password);\r\n project.setSvnUrl(this.svnUrl);\r\n for (Project existingProject : projects.getProject()) {\r\n if (existingProject.getProjectName().equalsIgnoreCase(this.projectName)) {\r\n return false;\r\n }\r\n }\r\n projects.getProject().add(project);\r\n \r\n try {\r\n // create the specific tm3 file and xml file for the new project\r\n File tm3File = new File(userHome + \r\n \"/.hackystat/projectoverviewer/\" + this.projectName + \".tm3\");\r\n File xmlFile = new File(userHome + \r\n \"/.hackystat/projectoverviewer/\" + this.projectName + \".xml\");\r\n tm3File.createNewFile();\r\n \r\n // initialize the data for the file\r\n SensorDataCollector collector = new SensorDataCollector(app.getSensorBaseHost(), \r\n this.ownerName, \r\n this.password);\r\n collector.getRepository(this.svnUrl, this.projectName);\r\n collector.write(tm3File, xmlFile);\r\n } \r\n catch (IOException e) {\r\n e.printStackTrace();\r\n return false;\r\n }\r\n // write the projects.xml file with the new project added\r\n String packageName = \"org.hackystat.iw.projectoverviewer.jaxb.projects\";\r\n return XmlConverter.objectToXml(projects, projectsFile, packageName);\r\n }", "public CreateProject() {\n\t\tsuper();\n\t}", "private static void addProjectFiles(IProject newProject){\n \t//add README file\n \taddProjectFile(newProject , README_FILE_NAME , \"\" );\n \t//add ProviderClass\n \taddProjectFile(newProject , PROVIDER_SCRIPT_FILE_NAME , CLASSES_FOLDER+\"/\" );\n }", "private IProject createNewProject() {\r\n\t\tif (newProject != null) {\r\n\t\t\treturn newProject;\r\n\t\t}\r\n\r\n\t\t// get a project handle\r\n\t\tfinal IProject newProjectHandle = mainPage.getProjectHandle();\r\n\r\n\t\t// get a project descriptor\r\n\t\tURI location = mainPage.getLocationURI();\r\n\r\n\t\tIWorkspace workspace = ResourcesPlugin.getWorkspace();\r\n\t\tfinal IProjectDescription description = workspace.newProjectDescription(newProjectHandle.getName());\r\n\t\tdescription.setLocationURI(location);\r\n\r\n\t\tlog.info(\"Project name: \" + newProjectHandle.getName());\r\n\t\t//log.info(\"Location: \" + location.toString());\r\n\t\t\r\n\t\t// create the new project operation\r\n\t\tIRunnableWithProgress op = new IRunnableWithProgress() {\r\n\t\t\tpublic void run(IProgressMonitor monitor)\r\n\t\t\t\t\tthrows InvocationTargetException {\r\n\t\t\t\tCreateProjectOperation op = new CreateProjectOperation(description, ResourceMessages.NewProject_windowTitle);\r\n\t\t\t\ttry {\r\n\t\t\t\t\top.execute(monitor, WorkspaceUndoUtil.getUIInfoAdapter(getShell()));\r\n\t\t\t\t} catch (ExecutionException e) {\r\n\t\t\t\t\tthrow new InvocationTargetException(e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\t// run the new project creation operation\r\n\t\ttry {\r\n\t\t\tgetContainer().run(true, true, op);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\tlog.error(\"Project creation failed.\");\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t} catch (InvocationTargetException e) {\r\n\t\t\tlog.error(\"Project creation failed.\");\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tnewProject = newProjectHandle;\r\n\r\n\t\treturn newProject;\r\n\t}", "public Project createProjectFromPRJ() {\n\n\t\tSystem.out.println(\"Trying to load prj file with : \" + data_path + \" \" + projectName + \" \" + conceptName + \" \");\n\n\t\tProject project = null;\n\n\t\ttry {\n\n\t\t\tproject = new Project(data_path + projectName);\n\n\t\t\t// Sehr wichtig hier das Warten einzubauen, sonst gibts leere\n\t\t\t// Retrieval Results, weil die Faelle noch nicht geladen sind wenn\n\t\t\t// das\n\t\t\t// Erste Retrieval laueft\n\t\t\twhile (project.isImporting()) {\n\t\t\t\tThread.sleep(1000);\n\t\t\t\tSystem.out.print(\".\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\"); // console pretty print\n\t\t} catch (Exception ex) {\n\n\t\t\tSystem.out.println(\"Error when loading the project\");\n\t\t}\n\t\treturn project;\n\t}", "LectureProject createLectureProject();", "private static void addProjectFile(IProject newProject, String fileName, String projectPath){\n \tBundle bundle = Platform.getBundle(BUNDLE_ID);//plugin id\n \tString filePath = DEFAULT_FILE_PATH + fileName;\n \tIPath location= Path.fromOSString(filePath); \n \tInputStream stream;\n\t\ttry {\n\t\t\tstream = FileLocator.openStream( bundle, location, false );\n\t\t\tString createdFilePath = projectPath+fileName;\n\t \tIFile file = newProject.getFile(createdFilePath);\n\t\t\tfile.create( stream, true, null );\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}catch (CoreException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n }", "protected void createProject(IProgressMonitor monitor)\n {\n monitor.beginTask(\"Creating the Totori project\", 50);\n try\n {\n IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();\n monitor.subTask(\"Defining the nature of the project\");\n IProject project = root.getProject(page.getProjectName());\n IProjectDescription description = ResourcesPlugin.getWorkspace().newProjectDescription(project.getName());\n if(!Platform.getLocation().equals(page.getLocationPath()))\n description.setLocation(page.getLocationPath());\n project.create(description,monitor);\n monitor.worked(10);\n project.open(monitor);\n description = project.getDescription();\n description.setNatureIds(new String[] { TotoriNature.NATURE_ID });\n project.setDescription(description,new SubProgressMonitor(monitor,10));\n monitor.subTask(\"Creating subdirectories\");\n createFolderHelper(root.getFolder(project.getFullPath().append(\"config\")), monitor);\n createFolderHelper(root.getFolder(project.getFullPath().append(\"ext\")), monitor);\n createFolderHelper(root.getFolder(project.getFullPath().append(\"ext\").append(\"nircmd\")), monitor);\n createFolderHelper(root.getFolder(project.getFullPath().append(\"features\")), monitor);\n createFolderHelper(root.getFolder(project.getFullPath().append(\"features\").append(\"plugins\")), monitor);\n createFolderHelper(root.getFolder(project.getFullPath().append(\"features\").append(\"steps\")), monitor);\n createFolderHelper(root.getFolder(project.getFullPath().append(\"features\").append(\"support\")), monitor);\n createFolderHelper(root.getFolder(project.getFullPath().append(\"reports\")), monitor);\n createFolderHelper(root.getFolder(project.getFullPath().append(\"reports\").append(\"assets\")), monitor);\n createFolderHelper(root.getFolder(project.getFullPath().append(\"reports\").append(\"screens\")), monitor);\n project.setDescription(description,new SubProgressMonitor(monitor,10));\n monitor.subTask(\"Creating files\");\n Vector<String> assets = new Vector<String>();\n assets.add(\"config/myconfig.yml\");\n assets.add(\"ext/nircmd/nircmd.chm\");\n assets.add(\"ext/nircmd/nircmd.exe\");\n assets.add(\"ext/nircmd/nircmdc.exe\");\n assets.add(\"features/support/env.rb\");\n assets.add(\"features/support/functions.rb\");\n assets.add(\"features/support/screenshots.rb\");\n assets.add(\"features/support/totori_formatter.rb\");\n assets.add(\"reports/assets/jquery-1.4.1.min.js\");\n assets.add(\"reports/assets/jquery.lightbox-0.5.css\");\n assets.add(\"reports/assets/jquery.lightbox-0.5.min.js\");\n assets.add(\"reports/assets/jquery.thumbs.js\");\n assets.add(\"reports/assets/lightbox-blank.gif\");\n assets.add(\"reports/assets/lightbox-btn-close.gif\");\n assets.add(\"reports/assets/lightbox-btn-next.gif\");\n assets.add(\"reports/assets/lightbox-btn-prev.gif\");\n assets.add(\"reports/assets/lightbox-ico-loading.gif\");\n assets.add(\"reports/assets/search.png\");\n assets.add(\"reports/assets/thumbs.css\");\n assets.add(\"reports/assets/totori.css\");\n for(String asset : assets) {\n \t String resource = \"/assets/\"+asset;\n \t InputStream stream = this.getClass().getResourceAsStream(resource);\n \t System.out.println(resource + \" : \" + stream);\n IPath path = project.getFullPath();\n for(String dir : asset.split(\"/\")) {\n \t path = path.append(dir);\n }\n IFile file = root.getFile(path);\n //file.getFullPath().toFile().mkdirs();\n //file.setCharset(\"utf-8\", monitor);\n file.create(stream, false, monitor);\n }\n monitor.worked(20);\n }\n catch(CoreException x)\n {\n reportError(x);\n }\n finally\n {\n monitor.done();\n }\n }", "public static void newProject() {\n\n //create the arena representation\n //populateBlocks();\n //populateSensors();\n }", "private static void createProject(final ProjectProperties props, final Path projectDir) throws IOException\n {\n // Create and set the Freemarker configuration\n final Configuration freeMarkerConfig = new Configuration();\n final File templateDir = new File(props.getApiDirectory(), \"templates\");\n freeMarkerConfig.setDirectoryForTemplateLoading(templateDir);\n freeMarkerConfig.setObjectWrapper(new DefaultObjectWrapper());\n\n // Generate the project\n final Injector injector = Guice.createInjector(new UtilInjectionModule(), new LocalInjectionModule());\n final ProjectGenerator projectGen = injector.getInstance(ProjectGenerator.class);\n projectGen.initialize(freeMarkerConfig, OUT_STREAM);\n try\n {\n projectGen.create(props, projectDir.toFile());\n }\n catch (final Exception ex)\n {\n OUT_STREAM.println(\"Error generating the project: \" + ex.getMessage());\n }\n }", "public void init() {\n- newProject = new Project();\n- newProject.setDefaultInputStream(getProject().getDefaultInputStream());\n+ newProject = getProject().createSubProject();\n newProject.setJavaVersionProperty();\n }", "public AddProject() {\n try\n {\n infDB = new InfDB(\"\\\\Users\\\\Oliver\\\\Documents\\\\Skola\\\\Mini_sup\\\\Realisering\\\\MICEDB.FDB\");\n System.out.println(\"Uppkopplingen lyckades\");\n }\n catch(InfException e)\n {\n System.out.println(e.getMessage());\n }\n \n try\n {\n infDB = new InfDB(\"C:\\\\Users\\\\TP300LA-C4034\\\\Desktop\\\\Delkurs 4, Lill-supen\\\\InformatikDB\\\\MICEDB.FDB\");\n System.out.println(\"Uppkopplingen lyckades\");\n }\n catch(InfException e)\n {\n System.out.println(e.getMessage());\n }\n getPlatforms();\n initComponents();\n setLocationRelativeTo(null);\n \n }", "private void actionNewProject ()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tDataController.scenarioNewProject();\r\n\r\n\t\t\thelperDisplayProjectFiles();\r\n\r\n\t\t\t//---- Change button icon\r\n\t\t\tImageIcon iconButton = FormUtils.getIconResource(FormStyle.RESOURCE_PATH_ICO_VIEW_SAMPLES);\r\n\r\n\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewSamples().setIcon(iconButton);\r\n\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewSamples().setActionCommand(FormMainHandlerCommands.AC_VIEW_SAMPLES_ON);\r\n\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewSamples().setToolTipText(\"View detected samples\");\r\n\r\n\t\t\tmainFormLink.reset();\r\n\t\t}\r\n\t\tcatch (ExceptionMessage e)\r\n\t\t{\r\n\t\t\tExceptionHandler.processException(e);\r\n\t\t}\r\n\t}", "public void newProjectAction() throws IOException {\n\t\tfinal FXMLSpringLoader loader = new FXMLSpringLoader(appContext);\n\t\tfinal Dialog<Project> dialog = loader.load(\"classpath:view/Home_NewProjectDialog.fxml\");\n\t\tdialog.initOwner(newProject.getScene().getWindow());\n\t\tfinal Optional<Project> result = dialog.showAndWait();\n\t\tif (result.isPresent()) {\n\t\t\tlogger.trace(\"dialog 'new project' result: {}\", result::get);\n\t\t\tprojectsObservable.add(result.get());\n\t\t}\n\t}", "public static void main(String[] args) {\n AddNewProject addNewProject = new AddNewProject();\n addNewProject.setVisible(true);\n }", "public RepositoryArtifact createProject(RepositoryConnector connector, String rootFolderId, String projectName, String processDefinitionXml) {\r\n RepositoryArtifact result = null;\r\n try {\r\n ZipInputStream projectTemplateInputStream = new ZipInputStream(getProjectTemplate());\r\n ZipEntry zipEntry = null;\r\n \r\n String rootSubstitution = null;\r\n \r\n while ((zipEntry = projectTemplateInputStream.getNextEntry()) != null) {\r\n String zipName = zipEntry.getName();\r\n if (zipName.endsWith(\"/\")) {\r\n zipName = zipName.substring(0, zipName.length() - 1);\r\n }\r\n String path = \"\";\r\n String name = zipName;\r\n if (zipName.contains(\"/\")) {\r\n path = zipName.substring(0, zipName.lastIndexOf(\"/\"));\r\n name = zipName.substring(zipName.lastIndexOf(\"/\") + 1);\r\n }\r\n if (\"\".equals(path)) {\r\n // root folder is named after the project, not like the\r\n // template\r\n // folder name\r\n rootSubstitution = name;\r\n name = projectName;\r\n } else {\r\n // rename the root folder in all other paths as well\r\n path = path.replace(rootSubstitution, projectName);\r\n }\r\n String absolutePath = rootFolderId + \"/\" + path;\r\n boolean isBpmnModel = false;\r\n if (zipEntry.isDirectory()) {\r\n connector.createFolder(absolutePath, name);\r\n } else {\r\n Content content = new Content();\r\n \r\n if (\"template.bpmn20.xml\".equals(name)) {\r\n // This file shall be replaced with the process\r\n // definition\r\n content.setValue(processDefinitionXml);\r\n name = projectName + \".bpmn20.xml\";\r\n isBpmnModel = true;\r\n log.log(Level.INFO, \"Create processdefinition from Signavio process model \" + projectName);\r\n } else {\r\n byte[] bytes = IoUtil.readInputStream(projectTemplateInputStream, \"ZIP entry '\" + zipName + \"'\");\r\n String txtContent = new String(bytes).replaceAll(REPLACE_STRING, projectName).replaceAll(\"@@ACTIVITI.HOME@@\", ACTIVITI_HOME_PATH);\r\n content.setValue(txtContent);\r\n }\r\n log.log(Level.INFO, \"Create new artifact from zip entry '\" + zipEntry.getName() + \"' in folder '\" + absolutePath + \"' with name '\" + name + \"'\");\r\n RepositoryArtifact artifact = connector.createArtifact(absolutePath, name, null, content);\r\n if (isBpmnModel) {\r\n result = artifact;\r\n }\r\n }\r\n projectTemplateInputStream.closeEntry();\r\n }\r\n projectTemplateInputStream.close();\r\n } catch (IOException ex) {\r\n throw new RepositoryException(\"Couldn't create maven project due to IO errors\", ex);\r\n }\r\n return result;\r\n }", "void createProject(IProjectDescription description, IProject proj,\n\t\t\tIProgressMonitor monitor) throws CoreException,\n\t\t\tOperationCanceledException {\n\t\ttry {\n\n\t\t\tmonitor.beginTask(\"\", 2000);\n\n\t\t\tproj.create(description, new SubProgressMonitor(monitor, 1000));\n\n\t\t\tif (monitor.isCanceled()) {\n\t\t\t\tthrow new OperationCanceledException();\n\t\t\t}\n\n\t\t\tproj.open(IResource.BACKGROUND_REFRESH, new SubProgressMonitor(\n\t\t\t\t\tmonitor, 1000));\n\n\t\t\t/*\n\t\t\t * Okay, now we have the project and we can do more things with it\n\t\t\t * before updating the perspective.\n\t\t\t */\n\t\t\tIContainer container = (IContainer) proj;\n\n\t\t\t/* Add an XHTML file */\n\t\t\t/*addFileToProject(container, new Path(\"index.html\"),\n\t\t\t\t\tJ15NewModel.openContentStream(\"Welcome to \"\n\t\t\t\t\t\t\t+ proj.getName(),\"5\"),monitor);*/\n\n\t\t\t/* Create the admin folder */\n\t\t\tfinal IFolder adminFolder = container.getFolder(new Path(\"admin\"));\n\t\t\tadminFolder.create(true, true, monitor);\n\t\t\t\n\t\t\tfinal IFolder adminModels = adminFolder.getFolder(new Path(\"models\"));\n\t\t\tadminModels.create(true, true, monitor);\n\t\t\t\n\t\t\tfinal IFolder adminControllers = adminFolder.getFolder(new Path(\"controllers\"));\n\t\t\tadminControllers.create(true, true, monitor);\n\t\t\t\n\t\t\tfinal IFolder adminViews = adminFolder.getFolder(new Path(\"views\"));\n\t\t\tadminViews.create(true, true, monitor);\n\t\t\t\n\t\t\tfinal IFolder adminTables = adminFolder.getFolder(new Path(\"tables\"));\n\t\t\tadminTables.create(true, true, monitor);\n\t\t\t\n\t\t\t/* Create the site folder */\n\t\t\tfinal IFolder siteFolder = container.getFolder(new Path(\"site\"));\n\t\t\tsiteFolder.create(true, true, monitor);\n\t\t\t\n\t\t\tfinal IFolder siteModels = siteFolder.getFolder(new Path(\"models\"));\n\t\t\tsiteModels.create(true, true, monitor);\n\t\t\t\n\t\t\tfinal IFolder siteViews = siteFolder.getFolder(new Path(\"views\"));\n\t\t\tsiteViews.create(true, true, monitor);\n\n\t\t\tInputStream resourceStream = this.getClass().getResourceAsStream(\n\t\t\t\t\t\"templates/blank-html.template\");\n\n\t\t\t/* Add blank HTML Files */\n\t\t\t\n\t\t\t/* Admin Folders first */\n\t\t\taddFileToProject(container, new Path(adminFolder.getName()\n\t\t\t\t\t+ Path.SEPARATOR + \"index.html\"),\n\t\t\t\t\tresourceStream, monitor);\n\t\t\t\n\t\t\tresourceStream.close();\n\t\t\tresourceStream = this.getClass().getResourceAsStream(\n\t\t\t\t\"templates/blank-html.template\");\n\t\t\t\n\t\t\taddFileToProject(container, new Path(adminFolder.getName()\n\t\t\t\t\t+ Path.SEPARATOR + adminModels.getName()\n\t\t\t\t\t+ Path.SEPARATOR + \"index.html\"),\n\t\t\t\t\tresourceStream, monitor);\n\t\t\t\n\t\t\tresourceStream.close();\n\t\t\tresourceStream = this.getClass().getResourceAsStream(\n\t\t\t\t\"templates/blank-html.template\");\n\t\t\t\n\t\t\taddFileToProject(container, new Path(adminFolder.getName()\n\t\t\t\t\t+ Path.SEPARATOR + adminControllers.getName()\n\t\t\t\t\t+ Path.SEPARATOR + \"index.html\"),\n\t\t\t\t\tresourceStream, monitor);\n\t\t\t\n\t\t\tresourceStream.close();\n\t\t\tresourceStream = this.getClass().getResourceAsStream(\n\t\t\t\t\"templates/blank-html.template\");\n\t\t\t\n\t\t\taddFileToProject(container, new Path(adminFolder.getName()\n\t\t\t\t\t+ Path.SEPARATOR + adminViews.getName()\n\t\t\t\t\t+ Path.SEPARATOR + \"index.html\"),\n\t\t\t\t\tresourceStream, monitor);\n\t\t\t\n\t\t\tresourceStream.close();\n\t\t\tresourceStream = this.getClass().getResourceAsStream(\n\t\t\t\t\"templates/blank-html.template\");\n\t\t\t\n\t\t\taddFileToProject(container, new Path(adminFolder.getName()\n\t\t\t\t\t+ Path.SEPARATOR + adminTables.getName()\n\t\t\t\t\t+ Path.SEPARATOR + \"index.html\"),\n\t\t\t\t\tresourceStream, monitor);\n\t\t\t\n\t\t\tresourceStream.close();\n\t\t\tresourceStream = this.getClass().getResourceAsStream(\n\t\t\t\t\"templates/blank-html.template\");\n\t\t\t\n\t\t\t/* Now the site folders */\n\t\t\taddFileToProject(container, new Path(siteFolder.getName()\n\t\t\t\t\t+ Path.SEPARATOR + \"index.html\"),\n\t\t\t\t\tresourceStream, monitor);\n\t\t\t\n\t\t\tresourceStream.close();\n\t\t\tresourceStream = this.getClass().getResourceAsStream(\n\t\t\t\t\"templates/blank-html.template\");\n\t\t\t\n\t\t\taddFileToProject(container, new Path(siteFolder.getName()\n\t\t\t\t\t+ Path.SEPARATOR + siteModels.getName()\n\t\t\t\t\t+ Path.SEPARATOR + \"index.html\"),\n\t\t\t\t\tresourceStream, monitor);\n\t\t\t\n\t\t\tresourceStream.close();\n\t\t\tresourceStream = this.getClass().getResourceAsStream(\n\t\t\t\t\"templates/blank-html.template\");\n\n\t\t\taddFileToProject(container, new Path(siteFolder.getName()\n\t\t\t\t\t+ Path.SEPARATOR + siteViews.getName()\n\t\t\t\t\t+ Path.SEPARATOR + \"index.html\"),\n\t\t\t\t\tresourceStream, monitor);\n\t\t\t\n\t\t\tresourceStream.close();\n\n\t\t\t/* All over! */\n\t\t} catch (IOException ioe) {\n\t\t\tIStatus status = new Status(IStatus.ERROR, \"J15Wizard\", IStatus.OK,\n\t\t\t\t\tioe.getLocalizedMessage(), null);\n\t\t\tthrow new CoreException(status);\n\t\t} finally {\n\t\t\tmonitor.done();\n\t\t}\n\t}", "public void createProject(String name) {\n Project project = new Project(name);\n Leader leader = new Leader(this, project);\n project.addLeader(leader);\n }", "public int createProject(Map<File, String> classes, boolean isSource) {\n try {\n projectData = projectLoader.createProject(classes, isSource);\n } catch (FileNotFoundException ex) {\n Logger.getLogger(ProjectManager.class.getName()).log(Level.SEVERE, null, ex);\n } catch (Exception ex) {\n try {\n \n projectData = projectLoader.createProject(classes, isSource);\n } catch (FileNotFoundException ex1) {\n Logger.getLogger(ProjectManager.class.getName()).log(Level.SEVERE, null, ex1);\n } catch (Exception ex1) {\n ex1.printStackTrace();\n JOptionPane.showMessageDialog(master, \"Cannot open file \\nTry it again, please\");\n }\n }\n return 0;\n }", "void createProjectForExercise(ProgrammingExercise programmingExercise) throws VersionControlException;", "private void createProjectGroup(Composite parent) {\n int col = 0;\n\n // project name\n String tooltip = \"The Android Project where the new resource file will be created.\";\n Label label = new Label(parent, SWT.NONE);\n label.setText(\"Project\");\n label.setToolTipText(tooltip);\n ++col;\n\n mProjectTextField = new Text(parent, SWT.BORDER);\n mProjectTextField.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n mProjectTextField.setToolTipText(tooltip);\n mProjectTextField.addModifyListener(new ModifyListener() {\n public void modifyText(ModifyEvent e) {\n onProjectFieldUpdated();\n }\n });\n ++col;\n\n mProjectBrowseButton = new Button(parent, SWT.NONE);\n mProjectBrowseButton.setText(\"Browse...\");\n mProjectBrowseButton.setToolTipText(\"Allows you to select the Android project to modify.\");\n mProjectBrowseButton.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n onProjectBrowse();\n }\n });\n mProjectChooserHelper = new ProjectChooserHelper(parent.getShell(), null /*filter*/);\n ++col;\n\n col = padWithEmptyCells(parent, col);\n\n // file name\n tooltip = \"The name of the resource file to create.\";\n label = new Label(parent, SWT.NONE);\n label.setText(\"File\");\n label.setToolTipText(tooltip);\n ++col;\n\n mFileNameTextField = new Text(parent, SWT.BORDER);\n mFileNameTextField.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n mFileNameTextField.setToolTipText(tooltip);\n mFileNameTextField.addModifyListener(new ModifyListener() {\n public void modifyText(ModifyEvent e) {\n validatePage();\n }\n });\n ++col;\n\n padWithEmptyCells(parent, col);\n }", "public void testNewJavaProject() {\n NewProjectWizardOperator.invoke().cancel();\n NewProjectWizardOperator npwo = NewProjectWizardOperator.invoke();\n // \"Standard\"\n String standardLabel = Bundle.getStringTrimmed(\"org.netbeans.modules.java.j2seproject.ui.wizards.Bundle\", \"Templates/Project/Standard\");\n npwo.selectCategory(standardLabel);\n // \"Java Application\"\n String javaApplicationLabel = Bundle.getStringTrimmed(\"org.netbeans.modules.java.j2seproject.ui.wizards.Bundle\", \"template_app\");\n npwo.selectProject(javaApplicationLabel);\n npwo.next();\n NewJavaProjectNameLocationStepOperator npnlso = new NewJavaProjectNameLocationStepOperator();\n npnlso.txtProjectName().setText(SAMPLE_PROJECT_NAME);\n npnlso.txtProjectLocation().setText(System.getProperty(\"netbeans.user\")); // NOI18N\n npnlso.btFinish().pushNoBlock();\n npnlso.getTimeouts().setTimeout(\"ComponentOperator.WaitStateTimeout\", 120000);\n npnlso.waitClosed();\n // wait project appear in projects view\n new ProjectsTabOperator().getProjectRootNode(SAMPLE_PROJECT_NAME);\n\n //disable the compile on save:\n ProjectsTabOperator.invoke().getProjectRootNode(SAMPLE_PROJECT_NAME).properties();\n // \"Project Properties\"\n String projectPropertiesTitle = Bundle.getStringTrimmed(\"org.netbeans.modules.java.j2seproject.ui.customizer.Bundle\", \"LBL_Customizer_Title\");\n NbDialogOperator propertiesDialogOper = new NbDialogOperator(projectPropertiesTitle);\n // select \"Compile\" category\n String buildCategoryTitle = Bundle.getStringTrimmed(\"org.netbeans.modules.java.j2seproject.ui.customizer.Bundle\", \"LBL_Config_BuildCategory\");\n String compileCategoryTitle = Bundle.getStringTrimmed(\"org.netbeans.modules.java.j2seproject.ui.customizer.Bundle\", \"LBL_Config_Build\");\n new Node(new Node(new JTreeOperator(propertiesDialogOper), buildCategoryTitle), compileCategoryTitle).select();\n // actually disable the quick run:\n String compileOnSaveLabel = Bundle.getStringTrimmed(\"org.netbeans.modules.java.j2seproject.ui.customizer.Bundle\", \"CustomizerCompile.CompileOnSave\");\n JCheckBox cb = JCheckBoxOperator.waitJCheckBox((Container) propertiesDialogOper.getSource(), compileOnSaveLabel, true, true);\n if (cb.isSelected()) {\n cb.doClick();\n }\n // confirm properties dialog\n propertiesDialogOper.ok();\n\n // wait classpath scanning finished\n PerfWatchProjects.waitScanFinished();\n }", "private static IProject createBaseProject(String projectName, URI location) {\n // it is acceptable to use the ResourcesPlugin class\n IProject newProject = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);\n \n if (!newProject.exists()) {\n URI projectLocation = location;\n IProjectDescription desc = newProject.getWorkspace().newProjectDescription(newProject.getName());\n if (location != null && ResourcesPlugin.getWorkspace().getRoot().getLocationURI().equals(location)) {\n projectLocation = null;\n }\n \n desc.setLocationURI(projectLocation);\n try {\n newProject.create(desc, null);\n if (!newProject.isOpen()) {\n newProject.open(null);\n }\n } catch (CoreException e) {\n e.printStackTrace();\n }\n }\n \n return newProject;\n }", "void build(String name, Project project);", "public static IProject createProject(String projectName, URI location) {\n \n IProject project = createBaseProject(projectName, location);\n try {\n addNature(project);\n String[] paths = {CLASSES_FOLDER};\n addToProjectStructure(project,paths);\n addProjectFiles(project);\n } catch (CoreException e) {\n e.printStackTrace();\n project = null;\n }\n \n return project;\n }", "private IProject createEclipseProject(IProgressMonitor monitor, IProject project, IProjectDescription description,\n Map<String, Object> parameters, ProjectPopulator projectPopulator, boolean isCmsProject) \n \t\tthrows CoreException, IOException {\n\n // Create project and open it\n project.create(description, new SubProgressMonitor(monitor, 10));\n if (monitor.isCanceled()) throw new OperationCanceledException();\n\n project.open(IResource.BACKGROUND_REFRESH, new SubProgressMonitor(monitor, 10));\n\n // Add the Java and CMS nature to the project\n DescriptorNature.setupProjectNatures(project, monitor, isCmsProject);\n\n // Create folders in the project if they don't already exist\n addDefaultDirectories(project, WS_ROOT, DEFAULT_DIRECTORIES, monitor);\n String[] sourceFolders;\n if (isCmsProject) {\n sourceFolders = new String[] {\n (String) parameters.get(PARAM_SRC_FOLDER),\n };\n } else {\n sourceFolders = new String[] {\n (String) parameters.get(PARAM_SRC_FOLDER)\n };\n }\n addDefaultDirectories(project, WS_ROOT, sourceFolders, monitor);\n\n if (projectPopulator != null) {\n try {\n projectPopulator.populate(project);\n } catch (InvocationTargetException ite) {\n ite.printStackTrace();\n }\n }\n\n // Setup class path: mark folders as source folders\n IJavaProject javaProject = JavaCore.create(project);\n setupSourceFolders(javaProject, sourceFolders, monitor);\n // Set output location\n// javaProject.setOutputLocation(project.getFolder(BIN_CLASSES_DIRECTORY).getFullPath(), monitor);\n // Create the reference to the target project\n\n return project;\n }", "private void loadProject()\n\t{\n\t\t\n\t\tint fileChooserReturnValue =\n\t\t\twindowTemplate\n\t\t\t\t.getFileChooser()\n\t\t\t\t.showOpenDialog(windowTemplate);\n\t\t\n\t\tif(fileChooserReturnValue == JFileChooser.APPROVE_OPTION) {\n\t\t\t// Delete the current cards\n\t\t\tdeleteAllCards();\n\t\t\t\n\t\t\t// Get the file that the user selected\n\t\t\tFile file = windowTemplate.getFileChooser().getSelectedFile();\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t// Open the input streams\n\t\t\t\tFileInputStream fileInput = new FileInputStream(file.getAbsolutePath());\n\t\t\t\tObjectInputStream objectInput = new ObjectInputStream(fileInput);\n\t\t\t\t\n\t\t\t\t// Get ready to save the cards\n\t\t\t\tArrayList<Card> newCards = new ArrayList<Card>();\n\t\t\t\t\n\t\t\t\t// Get the objects\n\t\t\t\ttry {\n\t\t\t\t\t\n\t\t\t\t\tObject inputObject = objectInput.readObject();\n\t\t\t\t\t\n\t\t\t\t\twhile(inputObject instanceof Card) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Add the card\n\t\t\t\t\t\tnewCards.add((Card) inputObject);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Read the next object\n\t\t\t\t\t\tinputObject = objectInput.readObject();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t} catch(EOFException e2) {\n\t\t\t\t\t\n\t\t\t\t\t// We've reached the end of the file, time to add the new project\n\t\t\t\t\taddCards(newCards);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Close the input streams\n\t\t\t\tobjectInput.close();\n\t\t\t\tfileInput.close();\n\t\t\t\t\n\t\t\t\t// Update the title of the frame to reflect the current project\n\t\t\t\twindowTemplate.setTitle(file.getName());\n\t\t\t\t\n\t\t\t} catch (ClassNotFoundException | IOException e1) {\n\t\t\t\tJOptionPane.showMessageDialog(windowTemplate, \"Could not open the file.\");\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private synchronized static void createProjectIfNotExist(Project aweProject, String rubyProjectName) {\r\n \t\tboolean exist = false;\r\n \t\t\r\n \t\tfor (RubyProject rubyProject : aweProject.getElements(RubyProject.class)) {\r\n \t\t\tif (rubyProject.getName().equals(rubyProjectName)) {\r\n \t\t\t\texist = true;\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n \t\tif (!exist) {\r\n \t\t\tRubyProject ruby = ProjectFactoryImpl.eINSTANCE.createRubyProject();\r\n \t\t\truby.setName(rubyProjectName);\r\n \t\t\truby.setProjectInternal(aweProject);\t\t\t\r\n \t\t}\r\n \t}", "private void registerProject(String projectName, String... importNames) {\n Project p = new Project(projectName);\n List<ModelImport<Project>> imps = null;\n if (null != importNames) {\n imps = new ArrayList<ModelImport<Project>>();\n for (int i = 0; i < importNames.length; i++) {\n if (null != importNames[i] && importNames[i].length() > 0) {\n ProjectImport imp = new ProjectImport(importNames[i], null);\n p.addImport(imp);\n imps.add(imp);\n }\n }\n if (imps.isEmpty()) {\n imps = null;\n }\n }\n File file = new File(BASE, projectName + \".ivml\");\n // don't care whether this exists or not\n ModelInfo<Project> info = new ModelInfo<Project>(p.getName(), p.getVersion(), this, file.toURI(), imps);\n data.put(info, p);\n name2Info.put(projectName, info);\n }", "public static Project creer(String name){\n\t\treturn new Project(name);\n\t}", "@ApiMethod(\n \t\tname = \"createProject\", \n \t\tpath = \"createProject\", \n \t\thttpMethod = HttpMethod.POST)\n public Project createProject(final ProjectForm projectForm) {\n\n final Key<Project> projectKey = factory().allocateId(Project.class);\n final long projectId = projectKey.getId();\n final Queue queue = QueueFactory.getDefaultQueue();\n \n // Start transactions\n Project project = ofy().transact(new Work<Project>(){\n \t@Override\n \tpublic Project run(){\n \t\tProject project = new Project(projectId, projectForm);\n ofy().save().entities(project).now();\n \n return project;\n \t}\n }); \n return project;\n }", "public void loadProject(String arg) throws IOException {\n Project newProject = Project.readProject(arg);\n newProject.setConfiguration(project.getConfiguration());\n project = newProject;\n projectLoadedFromFile = true;\n }", "public void testNewFile() {\n // create a new package\n // \"Java Classes\"\n String javaClassesLabel = Bundle.getString(\"org.netbeans.modules.java.project.Bundle\", \"Templates/Classes\");\n NewJavaFileWizardOperator.create(SAMPLE_PROJECT_NAME, javaClassesLabel, \"Java Package\", null, SAMPLE1_PACKAGE_NAME);\n // wait package node is created\n Node sample1Node = new Node(new SourcePackagesNode(SAMPLE_PROJECT_NAME), SAMPLE1_PACKAGE_NAME);\n\n // create a new classes\n\n NewFileWizardOperator.invoke(sample1Node, javaClassesLabel, \"Java Main Class\");\n NewJavaFileNameLocationStepOperator nameStepOper = new NewJavaFileNameLocationStepOperator();\n nameStepOper.setObjectName(SAMPLE1_CLASS_NAME);\n nameStepOper.finish();\n // check class is opened in Editor\n new EditorOperator(SAMPLE1_FILE_NAME);\n NewFileWizardOperator.invoke(sample1Node, javaClassesLabel, \"Java Main Class\");\n nameStepOper = new NewJavaFileNameLocationStepOperator();\n nameStepOper.setObjectName(SAMPLE2_CLASS_NAME);\n nameStepOper.finish();\n // check class is opened in Editor and then close all documents\n new EditorOperator(SAMPLE2_FILE_NAME).closeAllDocuments();\n }", "Builder forProjectDirectory(File projectDir);", "public void addProj() {\n\t\tbtnAdd.click();\n\t}", "private void initializeProject() {\n newProject.setInputHandler(getProject().getInputHandler());\n \n Iterator iter = getBuildListeners();\n while (iter.hasNext()) {\n newProject.addBuildListener((BuildListener) iter.next());\n }\n \n if (output != null) {\n File outfile = null;\n if (dir != null) {\n outfile = FILE_UTILS.resolveFile(dir, output);\n } else {\n outfile = getProject().resolveFile(output);\n }\n try {\n out = new PrintStream(new FileOutputStream(outfile));\n DefaultLogger logger = new DefaultLogger();\n logger.setMessageOutputLevel(Project.MSG_INFO);\n logger.setOutputPrintStream(out);\n logger.setErrorPrintStream(out);\n newProject.addBuildListener(logger);\n } catch (IOException ex) {\n log(\"Ant: Can't set output to \" + output);\n }\n }\n-\n- getProject().initSubProject(newProject);\n-\n // set user-defined properties\n getProject().copyUserProperties(newProject);\n \n if (!inheritAll) {\n // set Java built-in properties separately,\n // b/c we won't inherit them.\n newProject.setSystemProperties();\n \n } else {\n // set all properties from calling project\n addAlmostAll(getProject().getProperties());\n }\n \n Enumeration e = propertySets.elements();\n while (e.hasMoreElements()) {\n PropertySet ps = (PropertySet) e.nextElement();\n addAlmostAll(ps.getProperties());\n }\n }", "public void openNewProject() {\n\n\t\t// Dispose of all the sound objects in the project that is currently open\n\t\tCollection<SoundInfo> sounds = soundList.values();\n for(SoundInfo sound: sounds){\n sound.close();\n }\n \n // Set the newly opened project variables\n\t\tsoundList = new HashMap<Integer, SoundInfo>();\n\t\tprojectModified = false;\n\t\tprojectFileIO = null;\n\t}", "@Override\n\tpublic void createProject(ProjectCreate project) {\n\t\tprojectDao.createProject(project);\n\t}", "public void addProjectAction() throws IOException {\n\t\tfinal FXMLSpringLoader loader = new FXMLSpringLoader(appContext);\n\t\tfinal Dialog<Project> dialog = loader.load(\"classpath:view/Home_AddProjectDialog.fxml\");\n\t\tdialog.initOwner(addProject.getScene().getWindow());\n\t\tfinal Optional<Project> result = dialog.showAndWait();\n\t\tif (result.isPresent()) {\n\t\t\tlogger.trace(\"dialog 'add project' result: {}\", result::get);\n\t\t\tprojectsObservable.add(result.get());\n\t\t}\n\t}", "private void convert(IProject project, AcceleoProjectWizard wizard, IProgressMonitor monitor) {\n \t\tString projectName = wizard.newProjectPage.getProjectName();\n \t\tString generatorName = this.computeGeneratorName(projectName);\n \n \t\tAcceleoProject acceleoProject = AcceleowizardmodelFactory.eINSTANCE.createAcceleoProject();\n \t\tacceleoProject.setName(projectName);\n \t\tacceleoProject.setGeneratorName(generatorName);\n \n \t\tList<AcceleoModule> allModules = this.newAcceleoModulesCreationPage.getAllModules();\n \t\tfor (AcceleoModule acceleoModule : allModules) {\n \t\t\tString parentFolder = acceleoModule.getParentFolder();\n \n \t\t\tIProject moduleProject = ResourcesPlugin.getWorkspace().getRoot().getProject(\n \t\t\t\t\tacceleoModule.getProjectName());\n \t\t\tif (moduleProject.exists() && moduleProject.isAccessible()\n \t\t\t\t\t&& acceleoModule.getModuleElement() != null\n \t\t\t\t\t&& acceleoModule.getModuleElement().isIsMain()) {\n \t\t\t\tIPath parentFolderPath = new Path(parentFolder);\n \t\t\t\tIFolder folder = moduleProject.getFolder(parentFolderPath.removeFirstSegments(1));\n \t\t\t\tacceleoProject.getExportedPackages().add(\n \t\t\t\t\t\tfolder.getProjectRelativePath().removeFirstSegments(1).toString().replaceAll(\"/\", //$NON-NLS-1$\n \t\t\t\t\t\t\t\t\"\\\\.\")); //$NON-NLS-1$\n \t\t\t}\n \t\t}\n \t\t// Prepare Ant folder\n \t\tIFolder antTasksFolder = project.getFolder(\"tasks\"); //$NON-NLS-1$\n \t\tif (!antTasksFolder.exists()) {\n \t\t\ttry {\n \t\t\t\tantTasksFolder.create(true, false, monitor);\n \t\t\t} catch (CoreException e) {\n \t\t\t\tAcceleoUIActivator.log(e, true);\n \t\t\t}\n \t\t}\n \n \t\t// Generate files\n \t\ttry {\n \t\t\tIProjectDescription description = project.getDescription();\n \t\t\tString[] natureIds = new String[] {IAcceleoConstants.ACCELEO_NATURE_ID,\n \t\t\t\t\tIAcceleoConstants.PLUGIN_NATURE_ID, IAcceleoConstants.JAVA_NATURE_ID, };\n \t\t\tdescription.setNatureIds(natureIds);\n \t\t\tproject.setDescription(description, monitor);\n \t\t} catch (CoreException e) {\n \t\t\tAcceleoUIActivator.log(e, true);\n \t\t}\n \t\tmonitor.beginTask(AcceleoUIMessages.getString(\"AcceleoNewProjectWizard.Monitor\"), 100); //$NON-NLS-1$\n \t\tmonitor.worked(10);\n \t\tAcceleoUIGenerator.getDefault().generateProjectSettings(acceleoProject, project);\n \t\tmonitor.worked(10);\n \t\tAcceleoUIGenerator.getDefault().generateProjectClasspath(acceleoProject, project);\n \t\tmonitor.worked(10);\n \t\tAcceleoUIGenerator.getDefault().generateProjectManifest(acceleoProject, project);\n \t\tmonitor.worked(10);\n \t\tAcceleoUIGenerator.getDefault().generateBuildProperties(acceleoProject, project);\n \t\tmonitor.worked(10);\n \t\tAcceleoUIGenerator.getDefault().generateActivator(acceleoProject, project);\n \n \t\tfor (AcceleoModule acceleoModule : allModules) {\n \t\t\tmonitor.worked(10);\n \t\t\tString parentFolder = acceleoModule.getParentFolder();\n \n \t\t\tIProject moduleProject = ResourcesPlugin.getWorkspace().getRoot().getProject(\n \t\t\t\t\tacceleoModule.getProjectName());\n \t\t\tif (moduleProject.exists() && moduleProject.isAccessible()) {\n \t\t\t\tIPath parentFolderPath = new Path(parentFolder);\n \t\t\t\tIFolder folder = moduleProject.getFolder(parentFolderPath.removeFirstSegments(1));\n \t\t\t\tAcceleoUIGenerator.getDefault().generateAcceleoModule(acceleoModule, folder);\n \n \t\t\t\tif (acceleoModule.isIsInitialized()) {\n \t\t\t\t\tString initializationKind = acceleoModule.getInitializationKind();\n \t\t\t\t\tIAcceleoInitializationStrategy strategy = null;\n \t\t\t\t\tList<IAcceleoInitializationStrategy> initializationStrategy = AcceleoInitializationStrategyUtils\n \t\t\t\t\t\t\t.getInitializationStrategy();\n \t\t\t\t\tfor (IAcceleoInitializationStrategy iAcceleoInitializationStrategy : initializationStrategy) {\n \t\t\t\t\t\tif (iAcceleoInitializationStrategy.getDescription() != null\n \t\t\t\t\t\t\t\t&& iAcceleoInitializationStrategy.getDescription().equals(initializationKind)) {\n \t\t\t\t\t\t\tstrategy = iAcceleoInitializationStrategy;\n \t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \n \t\t\t\t\tIFile file = folder.getFile(acceleoModule.getName()\n \t\t\t\t\t\t\t+ \".\" + IAcceleoConstants.MTL_FILE_EXTENSION); //$NON-NLS-1$\n \t\t\t\t\tIFile exampleFile = ResourcesPlugin.getWorkspace().getRoot().getFile(\n \t\t\t\t\t\t\tnew Path(acceleoModule.getInitializationPath()));\n \n \t\t\t\t\tString moduleElementKind = IAcceleoInitializationStrategy.TEMPLATE_KIND;\n \t\t\t\t\tif (acceleoModule.getModuleElement().getKind().equals(ModuleElementKind.QUERY)) {\n \t\t\t\t\t\tmoduleElementKind = IAcceleoInitializationStrategy.QUERY_KIND;\n \t\t\t\t\t}\n \n \t\t\t\t\tif (strategy != null && file.exists()) {\n \t\t\t\t\t\ttry {\n \t\t\t\t\t\t\tstrategy.configure(moduleElementKind, acceleoModule.getModuleElement()\n \t\t\t\t\t\t\t\t\t.isGenerateFile(), acceleoModule.getModuleElement().isIsMain(),\n \t\t\t\t\t\t\t\t\tacceleoModule.isGenerateDocumentation());\n \t\t\t\t\t\t\tString content = strategy.getContent(exampleFile, acceleoModule.getName(),\n \t\t\t\t\t\t\t\t\tacceleoModule.getMetamodelURIs(), acceleoModule.getModuleElement()\n \t\t\t\t\t\t\t\t\t\t\t.getParameterType());\n \t\t\t\t\t\t\tByteArrayInputStream javaStream = new ByteArrayInputStream(content\n \t\t\t\t\t\t\t\t\t.getBytes(\"UTF8\")); //$NON-NLS-1$\n \t\t\t\t\t\t\tfile.setContents(javaStream, true, false, new NullProgressMonitor());\n \t\t\t\t\t\t} catch (CoreException e) {\n \t\t\t\t\t\t\tAcceleoUIActivator.log(e, true);\n \t\t\t\t\t\t} catch (UnsupportedEncodingException e) {\n \t\t\t\t\t\t\tAcceleoUIActivator.log(e, true);\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \n \t\t}\n \n \t}", "private static void addToProjectStructure(IProject newProject, String[] paths) throws CoreException {\n for (String path : paths) {\n IFolder etcFolders = newProject.getFolder(path);\n createFolder(etcFolders);\n }\n }", "private void newProject(ActionEvent x) {\n\t\tthis.controller.newProject();\n\t}", "@SystemSetup(type = Type.PROJECT, process = Process.ALL)\n\tpublic void createProjectData(final SystemSetupContext context)\n\t{\n\t\tif (getBooleanSystemSetupParameter(context, IMPORT_PROJECT_DATA))\n\t\t{\n\t\t\t\n\t\t\t//Store locator is out of scope for SBD b2b\t\n\t\t\timportStoreInitialData(context, PROJECT_DATA_IMPORT_FOLDER, PROJECT_NAME, PROJECT_NAME,\n\t\t\t\t\tCollections.singletonList(PROJECT_NAME));\n\t\t\t\n\t\t}\n\t\tif (getBooleanSystemSetupParameter(context, IMPORT_SBD_SAMPLE_PRODUCT_DATA))\n\t\t{\n\t\t\timportCommonData(context, PROJECT_DATA_IMPORT_FOLDER);\n\t\t\timportProductCatalog(context, PROJECT_DATA_IMPORT_FOLDER, PROJECT_NAME);\t\n\t\t\t\n\t\t}\n\t}", "public void testAdd() throws TeamException, CoreException {\n IProject project = createProject(\"testAdd\", new String[] { });\n // add some resources\n buildResources(project, new String[] { \"changed.txt\", \"deleted.txt\", \"folder1/\", \"folder1/a.txt\", \"folder1/b.txt\", \"folder1/subfolder1/c.txt\" }, false);\n // add them to CVS\n add(asResourceMapping(new IResource[] { project }, IResource.DEPTH_ONE));\n add(asResourceMapping(new IResource[] { project.getFolder(\"folder1\") }, IResource.DEPTH_ONE));\n add(asResourceMapping(new IResource[] { project.getFile(\"folder1/subfolder1/c.txt\") }, IResource.DEPTH_ZERO));\n add(asResourceMapping(new IResource[] { project }, IResource.DEPTH_INFINITE));\n }", "public ProjectModule() {\n packaging = AutomationConstant.PACKAGING_POM;\n }", "private void createProjectAsync(IProgressMonitor monitor, ProjectInfo mainData, List<ProjectInfo> importData,\n boolean isAndroidProject) throws InvocationTargetException {\n monitor.beginTask(\"Create CMS Descriptor Project\", 100);\n try {\n IProject mainProject = null;\n\n if (mainData != null) {\n mainProject = createEclipseProject(\n new SubProgressMonitor(monitor, 50),\n mainData.getProject(),\n mainData.getDescription(),\n mainData.getParameters(),\n null,\n isAndroidProject);\n if (mainProject != null) {\n final IJavaProject javaProject = JavaCore.create(mainProject);\n }\n }\n } catch (CoreException e) {\n throw new InvocationTargetException(e);\n } catch (IOException e) {\n throw new InvocationTargetException(e);\n } finally {\n monitor.done();\n }\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}", "private Project(){}", "public void loadTheProject() {\n\t\tProjectHandler.openProject(mFilePath);\n }", "public FinalProject() {\n initComponents();\n iconImage();\n }", "@Test (groups = {\"Functional\"})\n public void testAddProject() {\n //When\n CreateProject createProject = dashboard.clickCreateProjectButton();\n String projectName = \"TestProject\";\n String testAccount = \"Account1\";\n createProject.setProjectName(projectName);\n createProject.clickPublicProjectPrivacy();\n createProject.setAccountDropDown(testAccount);\n project = createProject.clickCreateProject();\n\n //Then\n assertEquals(PROJECT_NAME, project.getTitle());\n }", "private MavenModuleSet createMavenProject() throws IOException {\n MavenModuleSet mavenModuleSet = j.jenkins.createProject(MavenModuleSet.class, \"test\"+j.jenkins.getItems().size());\n mavenModuleSet.setRunHeadless(true);\n return mavenModuleSet;\n }", "protected void createProjectPair(String baseName, MultiJobDetail detail, boolean update) throws IOException {\r\n // Building job\r\n\n if (!getInstance().getJobNames().contains(baseName)) {\r\n projectsAdded.add(baseName);\r\n FreeStyleProject p;\n if (getTopProject().getParent() instanceof Jenkins) {\n p = getInstance().createProject(FreeStyleProject.class, baseName);\n }\n else {\n Folder parentFolder = (Folder)getTopProject().getParent();\n p = parentFolder.createProject(FreeStyleProject.class, baseName);\n }\n if (p == null) {\r\n return;\r\n }\r\n SCM scm = getTopProject().getScm();\r\n p.setScm(scm);\r\n addDeleteWorkspaceBeforeBuildStarts(p);\r\n addSetup(p);\r\n // Set the label after addSetup because otherwise it's overwritten by the defaul value in VectorCASTSetup\n Label label = getTopProject().getAssignedLabel();\n p.setAssignedLabel(label);\n addBuildCommands(p, detail, baseName, detail.getProjectName());\r\n if (getOptionUseReporting()) {\r\n addReportingCommands(p, detail, baseName);\r\n addArchiveArtifacts(p);\r\n addXunit(p);\r\n addVCCoverage(p);\r\n addPostReportingGroovy(p);\r\n // RMK : TODO - fixup/combine groovy\r\n } else {\r\n addPostbuildGroovy(p, detail, baseName);\r\n }\r\n p.save();\r\n } else {\r\n projectsExisting.add(baseName);\r\n }\r\n }", "@Override\r\n protected void doCreate(boolean update) throws IOException, ServletException, Descriptor.FormException, InvalidProjectFileException {\r\n // Read the manage project file\r\n FileItem fileItem = getRequest().getFileItem(\"manageProject\");\r\n if (fileItem == null) {\r\n return;\r\n }\r\n\r\n manageFile = fileItem.getString();\r\n manageProject = new ManageProject(manageFile);\r\n manageProject.parse();\r\n\r\n getTopProject().setDescription(\"Top-level multi job to run the manage project: \" + getManageProjectName());\r\n String tmpLabel = getNodeLabel();\r\n if (tmpLabel == null || tmpLabel.isEmpty()) {\r\n tmpLabel = \"master\";\r\n }\r\n Label label = new LabelAtom(tmpLabel);\r\n getTopProject().setAssignedLabel(label);\r\n \r\n // Build actions...\r\n addSetup(getTopProject());\r\n // Add multi-job phases\r\n // Building...\r\n List<PhaseJobsConfig> phaseJobs = new ArrayList<>();\r\n \r\n projectsAdded = new ArrayList<>();\r\n projectsNeeded = new ArrayList<>();\r\n projectsExisting = new ArrayList<>();\r\n \r\n projectsAdded.add(getTopProject().getFullName());\n \r\n String baseName = getBaseName();\r\n if (getJobName() != null && !getJobName().isEmpty()) {\r\n baseName = getJobName();\r\n }\r\n\n String folderName = getTopProject().getParent().getFullName();\n if (folderName != null && !folderName.isEmpty()) {\n folderName = folderName + \"/\";\n }\n\n for (MultiJobDetail detail : manageProject.getJobs()) {\r\n String name = folderName + baseName + \"_\" + detail.getProjectName();\n projectsNeeded.add(name);\r\n PhaseJobsConfig phase = new PhaseJobsConfig(name, \r\n /*jobproperties*/\"\", \r\n /*currParams*/true, \r\n /*configs*/null, \r\n PhaseJobsConfig.KillPhaseOnJobResultCondition.NEVER, \r\n /*disablejob*/false, \r\n /*enableretrystrategy*/false, \r\n /*parsingrulespath*/null, \r\n /*retries*/0, \r\n /*enablecondition*/false, \r\n /*abort*/false, \r\n /*condition*/\"\", \r\n /*buildonly if scm changes*/false,\r\n /*applycond if no scm changes*/false);\r\n phaseJobs.add(phase);\r\n }\r\n MultiJobBuilder multiJobBuilder = new MultiJobBuilder(\"Build, Execute and Report\", phaseJobs, MultiJobBuilder.ContinuationCondition.COMPLETED);\r\n getTopProject().getBuildersList().add(multiJobBuilder);\r\n\r\n // Copy artifacts per building project\r\n for (MultiJobDetail detail : manageProject.getJobs()) {\r\n String name = folderName + baseName + \"_\" + detail.getProjectName();\n String tarFile = \"\";\r\n if (isUsingSCM()) {\r\n tarFile = \", \" + getBaseName() + \"_\" + detail.getProjectName() + \"_build.tar\";\r\n }\r\n CopyArtifact copyArtifact = new CopyArtifact(name);\r\n copyArtifact.setOptional(true);\r\n copyArtifact.setFilter(\"**/*_rebuild*,\" +\r\n \"execution/*.html, \" +\r\n \"management/*.html, \" +\r\n \"xml_data/**\" +\r\n tarFile);\r\n copyArtifact.setFingerprintArtifacts(false);\r\n BuildSelector bs = new WorkspaceSelector();\r\n copyArtifact.setSelector(bs);\r\n getTopProject().getBuildersList().add(copyArtifact);\r\n }\r\n addMultiJobBuildCommand();\r\n \r\n // Post-build actions if doing reporting\r\n if (getOptionUseReporting()) {\r\n addArchiveArtifacts(getTopProject());\r\n addXunit(getTopProject());\r\n addVCCoverage(getTopProject());\r\n addGroovyScriptMultiJob();\r\n }\r\n \r\n getTopProject().save();\r\n \r\n for (MultiJobDetail detail : manageProject.getJobs()) {\r\n String name = baseName + \"_\" + detail.getProjectName();\n createProjectPair(name, detail, update);\r\n }\r\n }", "@PostMapping(value = \"/project\", consumes = \"application/json\", produces = \"application/json\")\n public ResponseEntity<?> addNewProject(@Valid @RequestBody Project newProject) throws URISyntaxException\n {\n newProject.setProjectid(0);\n newProject = projectService.save(newProject);\n\n // set the location header for the newly created resource\n HttpHeaders responseHeaders = new HttpHeaders();\n URI newProjectURI = ServletUriComponentsBuilder.fromCurrentRequest()\n .path(\"/{projectid}\")\n .buildAndExpand(newProject.getProjectid())\n .toUri();\n responseHeaders.setLocation(newProjectURI);\n\n return new ResponseEntity<>(null, responseHeaders, HttpStatus.CREATED);\n }", "public void cloneProject(String selectedProjectName, String newProjectName) throws Exception{\n\t\tDataManager.createFolderVersion(selectedProjectName, newProjectName);\n\t\tajdtHandler.copyProject(selectedProjectName, newProjectName);\n\t}", "@RequestMapping(value = \"/create/project/{projectId}\", method = RequestMethod.GET)\r\n public ModelAndView create(@PathVariable(\"projectId\") String projectId) {\r\n ModelAndView mav = new ModelAndView(\"creates2\");\r\n int pid = -1;\r\n try {\r\n pid = Integer.parseInt(projectId);\r\n } catch (Exception e) {\r\n LOG.error(e);\r\n }\r\n User loggedIn = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\r\n User user = hibernateTemplate.get(User.class, loggedIn.getUsername());\r\n Project project = hibernateTemplate.get(Project.class, pid);\r\n if (!dataAccessService.isProjectAvailableToUser(project, user)) {\r\n return accessdenied();\r\n }\r\n List<SubProject> subProjects = dataAccessService.getResearcherSubProjectsForUserInProject(user, project);\r\n mav.addObject(\"projectId\", projectId);\r\n mav.addObject(\"methods\", project.getMethods());\r\n mav.addObject(\"subProjects\", subProjects);\r\n return mav;\r\n }", "public static Project createProject() throws ParseException {\n System.out.println(\"Please enter the project number: \");\n int projNum = input.nextInt();\n input.nextLine();\n\n System.out.println(\"Please enter the project name: \");\n String projName = input.nextLine();\n\n System.out.println(\"Please enter the type of building: \");\n String buildingType = input.nextLine();\n\n System.out.println(\"Please enter the physical address for the project: \");\n String address = input.nextLine();\n\n System.out.println(\"Please enter the ERF number: \");\n String erfNum = input.nextLine();\n\n System.out.println(\"Please enter the total fee for the project: \");\n int totalFee = input.nextInt();\n input.nextLine();\n\n System.out.println(\"Please enter the total amount paid to date: \");\n int amountPaid = input.nextInt();\n input.nextLine();\n\n System.out.println(\"Please enter the deadline for the project (dd/MM/yyyy): \");\n String sdeadline = input.nextLine();\n Date deadline = dateformat.parse(sdeadline);\n\n Person architect = createPerson(\"architect\", input);\n Person contractor = createPerson(\"contractor\", input);\n Person client = createPerson(\"client\", input);\n\n // If the user did not enter a name for the project, then the program will\n // concatenate the building type and the client's surname as the new project\n // name.\n\n if (projName == \"\") {\n String[] clientname = client.name.split(\" \");\n String lastname = clientname[clientname.length - 1];\n projName = buildingType + \" \" + lastname;\n }\n\n return new Project(projNum, projName, buildingType, address, erfNum, totalFee, amountPaid, deadline, contractor,\n architect, client);\n\n }", "public static Projects createEntity() {\n Projects projects = new Projects();\n projects = new Projects()\n .name(DEFAULT_NAME)\n .startDate(DEFAULT_START_DATE)\n .endDate(DEFAULT_END_DATE)\n .status(DEFAULT_STATUS);\n return projects;\n }", "public static AddProject newInstance() {\n AddProject fragment = new AddProject();\n return fragment;\n }", "public ProjectBean getProject2(String projectIdentifier) {\n List<Experiment> experiments =\n this.getOpenBisClient().getExperimentsForProject3(projectIdentifier);// TODO changed this\n // from\n // getExperimentsForProject2\n\n float projectStatus = this.getOpenBisClient().computeProjectStatus(experiments);\n\n Project project = getOpenbisDtoProject(projectIdentifier);\n if (project == null) {\n project = getOpenBisClient().getProjectByIdentifier(projectIdentifier);\n addOpenbisDtoProject(project);\n }\n ProjectBean newProjectBean = new ProjectBean();\n\n ProgressBar progressBar = new ProgressBar();\n progressBar.setValue(projectStatus);\n\n Date registrationDate = project.getRegistrationDetails().getRegistrationDate();\n\n String pi = getDatabaseManager().getPersonDetailsForProject(project.getIdentifier(), \"PI\");\n String cp = getDatabaseManager().getPersonDetailsForProject(project.getIdentifier(), \"Contact\");\n String manager =\n getDatabaseManager().getPersonDetailsForProject(project.getIdentifier(), \"Manager\");\n\n String longDesc = getDatabaseManager().getLongProjectDescription(project.getIdentifier());\n\n if (pi.equals(\"\")) {\n newProjectBean.setPrincipalInvestigator(\"n/a\");\n } else {\n newProjectBean.setPrincipalInvestigator(pi);\n }\n\n if (cp.equals(\"\")) {\n newProjectBean.setContactPerson(\"n/a\");\n } else {\n newProjectBean.setContactPerson(cp);\n }\n\n if (manager.equals(\"\")) {\n newProjectBean.setProjectManager(\"n/a\");\n } else {\n newProjectBean.setProjectManager(manager);\n }\n\n if (longDesc == null)\n longDesc = \"\";\n\n newProjectBean.setLongDescription(longDesc);\n\n newProjectBean.setId(project.getIdentifier());\n newProjectBean.setCode(project.getCode());\n String desc = project.getDescription();\n if (desc == null)\n desc = \"\";\n newProjectBean.setDescription(desc);\n newProjectBean.setRegistrationDate(registrationDate);\n newProjectBean.setProgress(progressBar);\n newProjectBean.setRegistrator(project.getRegistrationDetails().getUserId());\n newProjectBean.setContact(project.getRegistrationDetails().getUserEmail());\n\n // Create sample Beans (or fetch them) for samples of experiments\n List<Sample> allSamples = this.getOpenBisClient()\n .getSamplesWithParentsAndChildrenOfProjectBySearchService(projectIdentifier);\n\n BeanItemContainer<ExperimentBean> experimentBeans =\n new BeanItemContainer<ExperimentBean>(ExperimentBean.class);\n\n AlternativeSecondaryNameCreator altNameCreator = new AlternativeSecondaryNameCreator(\n openBisClient.getVocabCodesAndLabelsForVocab(\"Q_NCBI_TAXONOMY\"));\n for (Experiment experiment : experiments) {\n ExperimentBean newExperimentBean = new ExperimentBean();\n\n // TODO doesn't work with getExperimentsForProject2\n Map<String, String> assignedProperties = experiment.getProperties();\n\n String status = \"\";\n\n if (assignedProperties.keySet().contains(\"Q_CURRENT_STATUS\")) {\n status = assignedProperties.get(\"Q_CURRENT_STATUS\");\n }\n\n else if (assignedProperties.keySet().contains(\"Q_WF_STATUS\")) {\n status = assignedProperties.get(\"Q_WF_STATUS\");\n }\n\n List<Sample> samples = new ArrayList<Sample>();\n for (Sample s : allSamples) {\n if (s.getExperimentIdentifierOrNull().equals(experiment.getIdentifier()))\n samples.add(s);\n }\n BeanItemContainer<SampleBean> sampleBeans =\n new BeanItemContainer<SampleBean>(SampleBean.class);\n for (Sample sample : samples) {\n SampleBean sbean = new SampleBean();\n sbean.setId(sample.getIdentifier());\n sbean.setCode(sample.getCode());\n sbean.setType(sample.getSampleTypeCode());\n sbean.setProperties(sample.getProperties());\n sbean.setParents(this.getOpenBisClient().getParentsBySearchService(sample.getCode())); //changed by cfh \n sampleBeans.addBean(sbean);\n }\n newExperimentBean.setSamples(sampleBeans);\n\n newExperimentBean.setAltNameCreator(altNameCreator);\n newExperimentBean.setProperties(assignedProperties);\n newExperimentBean.setSecondaryName(assignedProperties.get(\"Q_SECONDARY_NAME\"));\n newExperimentBean.setId(experiment.getIdentifier());\n newExperimentBean.setCode(experiment.getCode());\n newExperimentBean.setType(experiment.getExperimentTypeCode());\n newExperimentBean.setRegistrator(experiment.getRegistrationDetails().getUserId());\n newExperimentBean\n .setRegistrationDate(experiment.getRegistrationDetails().getRegistrationDate());\n newExperimentBean.setStatus(status);\n experimentBeans.addBean(newExperimentBean);\n }\n\n List<ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.DataSet> projectData = this\n .getOpenBisClient().getDataSetsOfProjectByIdentifierWithSearchCriteria(projectIdentifier);\n\n Boolean containsData = false;\n Boolean containsResults = false;\n Boolean attachmentResult = false;\n // Boolean containsAttachments = false;\n\n for (ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.DataSet ds : projectData) {\n attachmentResult = false;\n if (ds.getDataSetTypeCode().equals(\"Q_PROJECT_DATA\")) {\n attachmentResult = ds.getProperties().get(\"Q_ATTACHMENT_TYPE\").equals(\"RESULT\");\n }\n\n if (!(ds.getDataSetTypeCode().equals(\"Q_PROJECT_DATA\"))\n && !(ds.getDataSetTypeCode().contains(\"RESULTS\"))) {\n containsData = true;\n } else if (ds.getDataSetTypeCode().contains(\"RESULTS\") || attachmentResult) {\n containsResults = true;\n } // else if (ds.getDataSetTypeCode() == \"Q_PROJECT_DATA\") {\n // containsAttachments = true;\n // }\n }\n\n newProjectBean.setContainsData(containsData);\n newProjectBean.setContainsResults(containsResults);\n // newProjectBean.setContainsAttachments(containsAttachments);\n\n newProjectBean.setExperiments(experimentBeans);\n newProjectBean.setMembers(new HashSet<String>());\n\n String secondaryName = getDatabaseManager().getProjectName(projectIdentifier);\n if (secondaryName == null || secondaryName.isEmpty())\n secondaryName = \"n/a\";\n\n newProjectBean.setSecondaryName(secondaryName);\n return newProjectBean;\n }", "Imports createImports();", "public Project createProject( File build_file ) throws Exception { // NOPMD\n if ( build_file == null || !build_file.exists() )\n return null;\n\n // load the option settings for this build file\n setPrefs( build_file );\n\n // configure the project\n Project p = new Project();\n\n // set the project helper -- the AntelopeProjectHelper2 is the same as the Ant\n // ProjectHelper2, but has been slightly modified so it does not automatically\n // run the implicit target\n System.setProperty( \"org.apache.tools.ant.ProjectHelper\", \"ise.antelope.common.AntelopeProjectHelper2\" );\n\n try {\n ClassLoader cl = _helper.getAntClassLoader();\n p.setCoreLoader( cl );\n\n /*\n try {\n Log.log(\"loading antlib with _helper classloader\");\n cl.getResource( \"ise/antelope/tasks/antlib.xml\" );\n Log.log(\"loaded antlib with _helper classloader\");\n }\n catch(Exception e) {\n e.printStackTrace();\n }\n */\n\n // add the antelope build logger now so that any output produced by the\n // ProjectHelper is captured\n p.addBuildListener( _build_logger );\n\n // add the progress bar build listener\n p.addBuildListener( _progress );\n\n // optionally add the antelope performance listener\n if ( _settings.getShowPerformanceOutput() ) {\n if ( _performance_listener == null )\n _performance_listener = new AntPerformanceListener();\n p.addBuildListener( _performance_listener );\n }\n\n // add the gui input handler\n setInputHandler( p );\n\n p.init(); // this takes as much as 9 seconds the first time, less than 1/2 second later\n\n p.setUserProperty( \"ant.file\", build_file.getAbsolutePath() );\n p.setProperty( \"ant.version\", Main.getAntVersion() );\n //String ant_home = System.getProperty(\"ant.home\");\n String ant_home = AntUtils.getAntHome();\n if ( ant_home != null ) {\n p.setProperty( \"ant.home\", ant_home );\n }\n String ant_lib_dirs = AntUtils.getAntLibDirs();\n if ( ant_lib_dirs != null )\n p.setProperty( \"ant.library.dir\", ant_lib_dirs );\n\n // add ant.jar to the classpath\n // for Ant 1.6, does ant-launcher.jar need to be added also? --\n // yes -- add all jars in $ant_home/lib and $user.home/.ant/lib, this\n // is what command-line Ant does. Ant also supports a -lib command-line\n // option where the user can specify additional locations. Should\n // Antelope support this? Need a gui in the properties panel if so.\n // 12/22/2004: added AntelopeLauncher, so -lib option is handled for app,\n // but not for plugin\n /// -- should this be done here or in the helper? --\n java.util.List ant_jars = _helper.getAntJarList();\n if ( ant_jars != null ) {\n java.util.List cp_list = new ArrayList();\n String classpath = p.getProperty( \"java.class.path\" );\n StringTokenizer st = new StringTokenizer( classpath, File.pathSeparator );\n while ( st.hasMoreTokens() ) {\n cp_list.add( new File( st.nextToken() ) );\n }\n Iterator it = ant_jars.iterator();\n while ( it.hasNext() ) {\n File f = new File( ( String ) it.next() );\n if ( !cp_list.contains( f ) ) {\n cp_list.add( f );\n }\n }\n StringBuffer sb = new StringBuffer();\n it = cp_list.iterator();\n while ( it.hasNext() ) {\n sb.append( ( ( File ) it.next() ).getAbsolutePath() ).append( File.pathSeparator );\n }\n classpath = sb.toString();\n p.setProperty( \"java.class.path\", classpath );\n System.setProperty( \"java.class.path\", classpath );\n }\n\n // load any saved user properties for this build file. These are properties\n // that the user has set using the properties dialog and in command-line\n // Ant would have been passed on the command line.\n Preferences user_prefs = getPrefs().node( Constants.ANT_USER_PROPS );\n String[] keys = user_prefs.keys();\n for ( int i = 0; i < keys.length; i++ ) {\n p.setUserProperty( keys[ i ], user_prefs.get( keys[ i ], \"\" ) );\n }\n\n //ProjectHelper.configureProject( p, build_file ); // deprecated\n ProjectHelper helper = ProjectHelper.getProjectHelper();\n p.addReference( \"ant.projectHelper\", helper );\n helper.parse( p, build_file );\n\n //for (Iterator it = p.getTargets().keySet().iterator(); it.hasNext(); ) {\n // System.out.println(\"target: \" + it.next());\n //}\n\n /*\n // looks like a recent change for antlib has busted loading custom tasks from\n // an antlib declaration. Need to check if this ever worked, I used to use\n // taskdef exclusively, and have only recently switched to using antlib.\n // Using antlib works when Antelope is running as an application, but not as\n // a plugin. Seems to have something to do with classloading.\n try {\n System.out.println(\"AntelopePanel classloader = \" + getClass().getClassLoader().hashCode());\n Class c = Class.forName(\"org.apache.tools.ant.Main\");\n if (c != null) {\n System.out.println(\"classloader for Main = \" + c.getClassLoader().hashCode());\n System.out.println(\"parent classloader for Main = \" + c.getClassLoader().getParent());\n }\n else\n System.out.println(\"did not find class for Main\");\n c = Class.forName(\"ise.antelope.tasks.Unset\");\n if (c != null){\n System.out.println(\"classloader for Unset = \" + c.getClassLoader().hashCode());\n System.out.println(\"parent classloader for Unset = \" + c.getClassLoader().getParent());\n System.out.println(\"classloader for Unset is a \" + c.getClassLoader().getClass().getName());\n }\n else\n System.out.println(\"did not find class for Unset\");\n c = Class.forName(\"org.apache.tools.ant.taskdefs.optional.EchoProperties\");\n if (c != null){\n System.out.println(\"classloader for EchoProperties = \" + c.getClassLoader().hashCode());\n System.out.println(\"parent classloader for EchoProperties = \" + c.getClassLoader().getParent());\n System.out.println(\"classloader for EchoProperties is a \" + c.getClassLoader().getClass().getName());\n }\n else\n System.out.println(\"did not find class for EchoProperties\");\n }\n catch(Exception e) {\n e.printStackTrace();\n }\n */\n\n\n return p;\n }\n catch ( Exception e ) {\n Log.log( e );\n e.printStackTrace( System.out );\n JOptionPane.showMessageDialog( GUIUtils.getRootJFrame( this ),\n \"<html>Error:<br>\" + e.getMessage(),\n \"Ant Error\",\n JOptionPane.ERROR_MESSAGE );\n throw e;\n }\n catch ( NoClassDefFoundError error ) {\n Log.log( error );\n error.printStackTrace( System.out );\n JOptionPane.showMessageDialog( GUIUtils.getRootJFrame( this ),\n \"<html>Error: No Class Definition Found for<br>\" + error.getMessage() +\n \"<br><p>This is most likely caused by a required third-party<br>\" +\n \"jar file not being in the class path.\",\n \"Ant Error\",\n JOptionPane.ERROR_MESSAGE );\n throw new Exception( error.getMessage() ); // NOPMD\n }\n }", "public Project() {\n\t\t\n\t}", "public UploadProjectAction() {\n\t\tsuper();\n\t}", "public int DSAddProject(String ProjectName, String ProjectLocation);", "@Override\n public final void generateProject(@NotNull final Project project,\n @NotNull final VirtualFile baseDir,\n @NotNull final T settings,\n @NotNull final Module module) {\n if (settings == NO_SETTINGS) {\n // We are in Intellij Module and framework is implemented as project template, not facet.\n // See class doc for mote info\n configureProjectNoSettings(project, baseDir, module);\n return;\n }\n\n /*Instead of this method overwrite ``configureProject``*/\n\n // If we deal with remote project -- use remote manager to configure it\n final Sdk sdk = settings.getSdk();\n\n if (sdk instanceof PyLazySdk) {\n final Sdk createdSdk = ((PyLazySdk)sdk).create();\n settings.setSdk(createdSdk);\n if (createdSdk != null) {\n SdkConfigurationUtil.addSdk(createdSdk);\n }\n }\n\n final PyProjectSynchronizer synchronizer = sdk != null ? PyProjectSynchronizerProvider.getSynchronizer(sdk) : null;\n\n if (synchronizer != null) {\n // Before project creation we need to configure sync\n // We call \"checkSynchronizationAvailable\" until it returns success (means sync is available)\n // Or user confirms she does not need sync\n String userProvidedPath = settings.getRemotePath();\n while (true) {\n final String syncError = synchronizer.checkSynchronizationAvailable(new PySyncCheckCreateIfPossible(module, userProvidedPath));\n if (syncError == null) {\n break;\n }\n userProvidedPath = null; // According to checkSynchronizationAvailable should be cleared\n final String message =\n PyBundle.message(\"python.new.project.synchronization.not.configured.dialog.message\", syncError);\n if (Messages.showYesNoDialog(project,\n message,\n PyBundle.message(\"python.new.project.synchronization.not.configured.dialog.title\"),\n General.WarningDialog) == Messages.YES) {\n break;\n }\n }\n }\n\n configureProject(project, baseDir, settings, module, synchronizer);\n var statisticsInfo = settings.getInterpreterInfoForStatistics();\n if (statisticsInfo instanceof InterpreterStatisticsInfo interpreterStatisticsInfo) {\n PythonNewProjectWizardCollector.Companion.logPythonNewProjectGenerated(interpreterStatisticsInfo,\n PyStatisticToolsKt.getVersion(settings.getSdk()),\n this.getClass());\n }\n }", "private void browseProject()\n {\n List<FileFilter> filters = new ArrayList<>();\n filters.add(new FileNameExtensionFilter(\"Bombyx3D project file\", \"yml\"));\n\n File directory = new File(projectPathEdit.getText());\n File selectedFile = FileDialog.chooseOpenFile(this, BROWSE_DIALOG_TITLE, directory, filters);\n if (selectedFile != null) {\n projectDirectory = selectedFile.getParentFile();\n projectPathEdit.setText(projectDirectory.getPath());\n projectPathEdit.selectAll();\n }\n }", "Import createImport();", "Import createImport();", "public Project() {\n\t}", "public Project() {\n\t}", "public ProjectFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "public Project() {\n\n }", "public CreateProjectPanel() {\n isFinished = true;\n }", "private void setProject()\n\t{\n\t\tproject.setName(tf0.getValue().toString());\n \t\tproject.setDescription(tf8.getValue().toString());\n \t\tproject.setEndDate(df4.getValue());\n \t\tif (sf6.getValue().toString().equals(\"yes\"))project.setActive(true);\n \t\telse project.setActive(false);\n \t\tif (!tf7.getValue().toString().equals(\"\"))project.setBudget(Float.parseFloat(tf7.getValue().toString()));\n \t\telse project.setBudget(-1);\n \t\tproject.setNextDeadline(df5.getValue());\n \t\tproject.setStartDate(df3.getValue());\n \t\ttry \n \t\t{\n \t\t\t\tif (sf1.getValue()!=null)\n\t\t\t\tproject.setCustomerID(db.selectCustomerforName( sf1.getValue().toString()));\n\t\t}\n \t\tcatch (SQLException|java.lang.NullPointerException e) \n \t\t{\n \t\t\tErrorWindow wind = new ErrorWindow(e); \n \t UI.getCurrent().addWindow(wind);\t\t\n \t e.printStackTrace();\n\t\t\t}\n \t\tproject.setInserted_by(\"Grigoris\");\n \t\tproject.setModified_by(\"Grigoris\");\n \t\tproject.setRowversion(1);\n \t\tif (sf2.getValue()!=null)project.setProjectType(sf2.getValue().toString());\n \t\telse project.setProjectType(null);\n\t }", "private void createNewLab(){\n String newLabName = NewLabNameTextfield.getText();\n // If lab doesn't exist make the new lab\n if(!Arrays.asList(labsPath.list()).contains(newLabName)){ \n try{\n LabExistLabel.setVisible(false);\n NewLabDialog.revalidate();\n //call python new_lab_script: new_lab_setup.py -b basename \n File labdir = new File(labsPath+File.separator+newLabName);\n labdir.mkdir();\n this.labName = newLabName;\n String cmd = \"new_lab_setup.py -b \"+NewLabBaseImageComboBox.getSelectedItem();\n doLabCommand(cmd);\n \n // Close the new lab dialog and open the new lab\n NewLabDialog.setVisible(false);\n openLab(new File(labsPath+File.separator+newLabName));\n } \n catch (IOException e){\n System.out.println(e);\n }\n }\n else{\n LabExistLabel.setVisible(true);\n NewLabDialog.revalidate();\n System.out.println(\"Lab already exists. Make the lab with a different name other than:\");\n printExistingLabs();\n }\n }", "@PostMapping\n public ResponseEntity<Project> createNewProject(@Valid @RequestBody Project project) {\n\n Project project1 = projectService.saveOrUpdateProject(project);\n return new ResponseEntity<Project>(project1, HttpStatus.CREATED);\n }", "GradleBuild create();", "private void createProjectComposite() {\r\n\t\tGridLayout gridLayout2 = new GridLayout();\r\n\t\tgridLayout2.numColumns = 2;\r\n\t\tprojectComposite = new Composite(composite, SWT.NONE);\r\n\t\tprojectComposite.setLayout(gridLayout2);\r\n\t\tprojectComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));\r\n\t\toutputChooserTreeViewer = new TreeViewer(projectComposite, SWT.BORDER);\r\n\t\toutputChooserTreeViewer.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));\r\n\t\toutputChooserTreeViewer.setContentProvider(new ProjectContentProvider());\r\n\t\toutputChooserTreeViewer.setLabelProvider(new DecoratingLabelProvider(\r\n\t\t\t\t\t\t\t\tnew WorkbenchLabelProvider(), \r\n\t\t\t\t\t\t\t\tPlatformUI.getWorkbench().getDecoratorManager().getLabelDecorator()));\r\n\t\toutputChooserTreeViewer.setInput(ResourcesPlugin.getWorkspace().getRoot());\r\n\t\toutputChooserTreeViewer.getTree().addSelectionListener(new SelectionListener() {\r\n\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent arg0) {\r\n\t\t\t}\r\n\r\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\t\r\n\t\t\t\tvalidatePage();\r\n\t\t\t}\r\n\t\t});\r\n\t\toutputChooserTreeViewer.addSelectionChangedListener(new ISelectionChangedListener() {\r\n\r\n\t\t\tpublic void selectionChanged(SelectionChangedEvent arg0) {\r\n\t\t\t\tTreeSelection selection = (TreeSelection) outputChooserTreeViewer.getSelection();\r\n\t\t\t\tif (selection != null) {\r\n\t\t\t\t\tObject selected = selection.getFirstElement();\r\n\t\t\t\t\tif (selected != null) {\r\n\t\t\t\t\t\tif (selected instanceof IContainer) {\r\n\t\t\t\t\t\t\tNewPIWizardSettings.getInstance().outputContainer = (IContainer) selected;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tcreateButtonComposite();\r\n\t}", "public ProjectViewController(){\n InputStream request = appController.httpRequest(\"http://localhost:8080/project/getProject\", \"GET\");\n try {\n String result = IOUtils.toString(request, StandardCharsets.UTF_8);\n Gson gson = new Gson();\n this.projectModel = gson.fromJson(result, ProjectModel.class);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void importAll() {\n\t\tfinal JFileChooser chooser = new JFileChooser(System.getProperty(\"user.home\"));\n\t\tint returnVal = chooser.showOpenDialog(null);\n\t\tif(returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\tFile file = chooser.getSelectedFile();\n\t\t\tdeserializeFile(file);\n\t\t\t // imported the projects for this application from a file, so update what should be persisted on close\n\t\t\tupdatePersistence();\n\t\t}\n\t}", "public synchronized void addProjectCP(File f) { projectCP.add(f); }", "private static boolean addNewProject() {\n\t\tString[] options = new String[] {\"Ongoing\",\"Finished\",\"Cancel\"};\n\t\tint choice = JOptionPane.showOptionDialog(frame, \"Select new project type\" , \"Add new Project\", \n\t\t\t\tJOptionPane.DEFAULT_OPTION, JOptionPane.PLAIN_MESSAGE, null, options, options[2]);\n\t\t\n\t\tNewProjectDialog dialog;\n\t\t\n\t\tswitch(choice) {\n\t\tcase 0:\n\t\t\tdialog = new NewProjectDialog(\"o\");\n\t\t\tdialog.setVisible(true);\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tdialog = new NewProjectDialog(\"f\");\n\t\t\tdialog.setVisible(true);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "Compleja createCompleja();", "public project() {\n\n initComponents();\n }", "public void addFromProject() {\n btAddFromProject().push();\n }", "@POST\n @Path(\"accept\")\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.APPLICATION_JSON)\n public Factory acceptFactory(final Factory factory) {\n final ProjectImporter importer = getGitProjectImporter();\n\n //try to check if factory contains project name value otherwise we set default project name to \"Unnamed\"\n ProjectAttributes projectAttributes = factory.getProjectattributes();\n if (projectAttributes == null) {\n projectAttributes = DtoFactory.getInstance().createDto(ProjectAttributes.class).withPname(DEFAULT_PROJECT_NAME);\n factory.setProjectattributes(projectAttributes);\n } else if (projectAttributes.getPname() == null || projectAttributes.getPname().isEmpty()) {\n projectAttributes = factory.getProjectattributes().withPname(DEFAULT_PROJECT_NAME);\n }\n\n List<FolderEntry> existedFolders = projectManager.getProjectsRoot(workspace).getChildFolders();\n\n //if project with the same name exist we should create new one with another name.\n for (FolderEntry existProject : existedFolders) {\n if (projectAttributes.getPname().equals(existProject.getName())) {\n projectAttributes.setPname(NameGenerator.generate(projectAttributes.getPname(), 4));\n break;\n }\n }\n\n //get newly created empty folder in which clone should be proceed\n FolderEntry projectFolder = projectManager.getProjectsRoot(workspace).createFolder(factory.getProjectattributes().getPname());\n\n try {\n importer.importSources(projectFolder, factory.getVcsurl());\n } catch (IOException e) {\n if (e.getCause() != null && e.getCause() instanceof NotAuthorizedException) {\n throw halt(UNAUTHORIZED, e.getMessage(), e);\n }\n throw halt(INTERNAL_SERVER_ERROR, e.getMessage());\n }\n\n //get physical path to project on file system to allow native git to work with repository\n String absoluteProjectPath;\n try {\n absoluteProjectPath = localPathResolver.resolve(projectFolder.getVirtualFile());\n } catch (VirtualFileSystemException e) {\n removeInvalidClonedFolder(projectFolder);\n throw halt(INTERNAL_SERVER_ERROR, \"Unable to resolve Git project directory.\", e);\n }\n\n GitConnection gitConnection;\n try {\n gitConnection = gitConnectionFactory.getConnection(absoluteProjectPath);\n } catch (GitException e) {\n removeInvalidClonedFolder(projectFolder);\n throw halt(INTERNAL_SERVER_ERROR, \"Unable to get Git connection to cloned project.\", e);\n }\n\n if (!Strings.isNullOrEmpty(factory.getCommitid())) {\n performCheckoutToCommitId(factory.getCommitid(), gitConnection);\n } else if (!Strings.isNullOrEmpty(factory.getVcsbranch())) {\n performCheckoutToBranch(factory.getVcsbranch(), gitConnection);\n }\n\n if (factory.getVariables() != null && factory.getVariables().size() > 0) {\n performReplaceVariables(factory.getVariables(), absoluteProjectPath);\n }\n\n if (!factory.getVcsinfo()) {\n AbstractVirtualFileEntry gitFolder = projectFolder.getChild(\".git\");\n if (gitFolder != null && gitFolder.isFolder()) {\n pushClientNotification(\"Git information erased.\");\n gitFolder.remove();\n }\n }\n\n return factory;\n }", "public Project_Create() {\n initComponents();\n }", "Project getProject();", "public void createProject(String nameProject, String nameDiscipline) throws \n InvalidDisciplineException,InvalidProjectException{\n int id = _person.getId();\n Professor _professor = getProfessors().get(id);\n _professor.createProject(nameProject, nameDiscipline);\n }", "public Project parseNewProject(String projectName, String directoryPath) {\n ProjectBuilder projectBuilder = new ProjectBuilder(projectName);\n\n List<Issue> issueList = issueParser.parseRepoData(projectName, directoryPath);\n List<PullRequest> pullRequestList = pullRequestParser.parseRepoData(projectName, directoryPath, projectBuilder);\n projectBuilder.issues(issueList);\n projectBuilder.pullRequests(pullRequestList);\n projectBuilder.closedIssues(issueParser.getClosedIssues(issueList));\n\n commitParser.parseCommits(projectName, directoryPath, projectBuilder);\n\n Project project = projectBuilder.build();\n\n\n TrainingSetBuilder trainingSetBuilder = new TrainingSetBuilder(directoryPath);\n trainingSetBuilder.createFile(project);\n\n\n DefectPrediction defectPrediction = new DefectPrediction(projectName);\n defectPrediction.evaluateClassifierAndPredict(directoryPath + \"/training.arff\", directoryPath + \"/test.arff\");\n databaseService.saveDefectPrediction(defectPrediction);\n project.setDefectPrediction(defectPrediction);\n databaseService.saveProject(project);\n LOGGER.log(Level.INFO, () -> \"Parsing completed with \" + project.getNumberOfCommits() + \" commits and \" +\n project.getNumberOfIssues() + \" issues\");\n return project;\n }", "protected ProjectCreationDescriptor() {\n\t}", "public Project()\n {\n\n }" ]
[ "0.7570214", "0.7570214", "0.7570214", "0.74841547", "0.70353794", "0.6930584", "0.686508", "0.67955774", "0.67511", "0.6644663", "0.6610598", "0.66008544", "0.6553207", "0.6547112", "0.65117645", "0.6438081", "0.6424783", "0.6420179", "0.63813066", "0.6373082", "0.6330929", "0.6299406", "0.62911886", "0.6225921", "0.6212863", "0.61893225", "0.61600095", "0.61571306", "0.6146425", "0.6133924", "0.6114377", "0.61081576", "0.60840106", "0.6036818", "0.6036163", "0.6020936", "0.59907615", "0.59880674", "0.59866345", "0.59637403", "0.5963574", "0.59606105", "0.59024745", "0.58937496", "0.5879384", "0.5878743", "0.5872139", "0.5857448", "0.5849265", "0.5833899", "0.58109957", "0.5808631", "0.57920927", "0.5764188", "0.57637525", "0.57342726", "0.57331294", "0.57100356", "0.5698462", "0.56966585", "0.56912607", "0.5664125", "0.56385696", "0.56288993", "0.5610035", "0.56042695", "0.5601123", "0.5588172", "0.5568263", "0.5565356", "0.5564875", "0.5563759", "0.5563497", "0.55633444", "0.5561661", "0.5561661", "0.5528951", "0.5528951", "0.5523177", "0.5519942", "0.5518072", "0.55022776", "0.5500096", "0.54941654", "0.5490565", "0.54729456", "0.54676163", "0.5464448", "0.5456708", "0.5456551", "0.5452289", "0.545227", "0.54492813", "0.54467046", "0.5444338", "0.5439573", "0.5431384", "0.54185903", "0.5415859", "0.54156995" ]
0.6474004
15
Method creates a new projet by importing project classes
public int createProject(Map<File, String> classes, boolean isSource) { try { projectData = projectLoader.createProject(classes, isSource); } catch (FileNotFoundException ex) { Logger.getLogger(ProjectManager.class.getName()).log(Level.SEVERE, null, ex); } catch (Exception ex) { try { projectData = projectLoader.createProject(classes, isSource); } catch (FileNotFoundException ex1) { Logger.getLogger(ProjectManager.class.getName()).log(Level.SEVERE, null, ex1); } catch (Exception ex1) { ex1.printStackTrace(); JOptionPane.showMessageDialog(master, "Cannot open file \nTry it again, please"); } } return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createProject(Project newProject);", "Project createProject();", "Project createProject();", "Project createProject();", "private void newProject()\n\t{\n\t\tnew FenetreCreationProjet();\n\t}", "public CreateProject() {\n\t\tsuper();\n\t}", "LectureProject createLectureProject();", "private boolean createProject() {\r\n ProjectOverviewerApplication app = (ProjectOverviewerApplication)getApplication();\r\n Projects projects = app.getProjects();\r\n String userHome = System.getProperty(\"user.home\");\r\n // master file for projects management\r\n File projectsFile = new File(userHome + \"/.hackystat/projectoverviewer/projects.xml\");\r\n \r\n // create new project and add it to the projects\r\n Project project = new Project();\r\n project.setProjectName(this.projectName);\r\n project.setOwner(this.ownerName);\r\n project.setPassword(this.password);\r\n project.setSvnUrl(this.svnUrl);\r\n for (Project existingProject : projects.getProject()) {\r\n if (existingProject.getProjectName().equalsIgnoreCase(this.projectName)) {\r\n return false;\r\n }\r\n }\r\n projects.getProject().add(project);\r\n \r\n try {\r\n // create the specific tm3 file and xml file for the new project\r\n File tm3File = new File(userHome + \r\n \"/.hackystat/projectoverviewer/\" + this.projectName + \".tm3\");\r\n File xmlFile = new File(userHome + \r\n \"/.hackystat/projectoverviewer/\" + this.projectName + \".xml\");\r\n tm3File.createNewFile();\r\n \r\n // initialize the data for the file\r\n SensorDataCollector collector = new SensorDataCollector(app.getSensorBaseHost(), \r\n this.ownerName, \r\n this.password);\r\n collector.getRepository(this.svnUrl, this.projectName);\r\n collector.write(tm3File, xmlFile);\r\n } \r\n catch (IOException e) {\r\n e.printStackTrace();\r\n return false;\r\n }\r\n // write the projects.xml file with the new project added\r\n String packageName = \"org.hackystat.iw.projectoverviewer.jaxb.projects\";\r\n return XmlConverter.objectToXml(projects, projectsFile, packageName);\r\n }", "private IProject createNewProject() {\r\n\t\tif (newProject != null) {\r\n\t\t\treturn newProject;\r\n\t\t}\r\n\r\n\t\t// get a project handle\r\n\t\tfinal IProject newProjectHandle = mainPage.getProjectHandle();\r\n\r\n\t\t// get a project descriptor\r\n\t\tURI location = mainPage.getLocationURI();\r\n\r\n\t\tIWorkspace workspace = ResourcesPlugin.getWorkspace();\r\n\t\tfinal IProjectDescription description = workspace.newProjectDescription(newProjectHandle.getName());\r\n\t\tdescription.setLocationURI(location);\r\n\r\n\t\tlog.info(\"Project name: \" + newProjectHandle.getName());\r\n\t\t//log.info(\"Location: \" + location.toString());\r\n\t\t\r\n\t\t// create the new project operation\r\n\t\tIRunnableWithProgress op = new IRunnableWithProgress() {\r\n\t\t\tpublic void run(IProgressMonitor monitor)\r\n\t\t\t\t\tthrows InvocationTargetException {\r\n\t\t\t\tCreateProjectOperation op = new CreateProjectOperation(description, ResourceMessages.NewProject_windowTitle);\r\n\t\t\t\ttry {\r\n\t\t\t\t\top.execute(monitor, WorkspaceUndoUtil.getUIInfoAdapter(getShell()));\r\n\t\t\t\t} catch (ExecutionException e) {\r\n\t\t\t\t\tthrow new InvocationTargetException(e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\t// run the new project creation operation\r\n\t\ttry {\r\n\t\t\tgetContainer().run(true, true, op);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\tlog.error(\"Project creation failed.\");\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t} catch (InvocationTargetException e) {\r\n\t\t\tlog.error(\"Project creation failed.\");\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tnewProject = newProjectHandle;\r\n\r\n\t\treturn newProject;\r\n\t}", "public static void newProject() {\n\n //create the arena representation\n //populateBlocks();\n //populateSensors();\n }", "@ApiMethod(\n \t\tname = \"createProject\", \n \t\tpath = \"createProject\", \n \t\thttpMethod = HttpMethod.POST)\n public Project createProject(final ProjectForm projectForm) {\n\n final Key<Project> projectKey = factory().allocateId(Project.class);\n final long projectId = projectKey.getId();\n final Queue queue = QueueFactory.getDefaultQueue();\n \n // Start transactions\n Project project = ofy().transact(new Work<Project>(){\n \t@Override\n \tpublic Project run(){\n \t\tProject project = new Project(projectId, projectForm);\n ofy().save().entities(project).now();\n \n return project;\n \t}\n }); \n return project;\n }", "public void createProject(String name) {\n Project project = new Project(name);\n Leader leader = new Leader(this, project);\n project.addLeader(leader);\n }", "public Project createProjectFromPRJ() {\n\n\t\tSystem.out.println(\"Trying to load prj file with : \" + data_path + \" \" + projectName + \" \" + conceptName + \" \");\n\n\t\tProject project = null;\n\n\t\ttry {\n\n\t\t\tproject = new Project(data_path + projectName);\n\n\t\t\t// Sehr wichtig hier das Warten einzubauen, sonst gibts leere\n\t\t\t// Retrieval Results, weil die Faelle noch nicht geladen sind wenn\n\t\t\t// das\n\t\t\t// Erste Retrieval laueft\n\t\t\twhile (project.isImporting()) {\n\t\t\t\tThread.sleep(1000);\n\t\t\t\tSystem.out.print(\".\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\"); // console pretty print\n\t\t} catch (Exception ex) {\n\n\t\t\tSystem.out.println(\"Error when loading the project\");\n\t\t}\n\t\treturn project;\n\t}", "@Override\n\tpublic void createProject(ProjectCreate project) {\n\t\tprojectDao.createProject(project);\n\t}", "private static void addProjectFiles(IProject newProject){\n \t//add README file\n \taddProjectFile(newProject , README_FILE_NAME , \"\" );\n \t//add ProviderClass\n \taddProjectFile(newProject , PROVIDER_SCRIPT_FILE_NAME , CLASSES_FOLDER+\"/\" );\n }", "public static Projects createEntity() {\n Projects projects = new Projects();\n projects = new Projects()\n .name(DEFAULT_NAME)\n .startDate(DEFAULT_START_DATE)\n .endDate(DEFAULT_END_DATE)\n .status(DEFAULT_STATUS);\n return projects;\n }", "public void newProjectAction() throws IOException {\n\t\tfinal FXMLSpringLoader loader = new FXMLSpringLoader(appContext);\n\t\tfinal Dialog<Project> dialog = loader.load(\"classpath:view/Home_NewProjectDialog.fxml\");\n\t\tdialog.initOwner(newProject.getScene().getWindow());\n\t\tfinal Optional<Project> result = dialog.showAndWait();\n\t\tif (result.isPresent()) {\n\t\t\tlogger.trace(\"dialog 'new project' result: {}\", result::get);\n\t\t\tprojectsObservable.add(result.get());\n\t\t}\n\t}", "private Project(){}", "private static void createProject(final ProjectProperties props, final Path projectDir) throws IOException\n {\n // Create and set the Freemarker configuration\n final Configuration freeMarkerConfig = new Configuration();\n final File templateDir = new File(props.getApiDirectory(), \"templates\");\n freeMarkerConfig.setDirectoryForTemplateLoading(templateDir);\n freeMarkerConfig.setObjectWrapper(new DefaultObjectWrapper());\n\n // Generate the project\n final Injector injector = Guice.createInjector(new UtilInjectionModule(), new LocalInjectionModule());\n final ProjectGenerator projectGen = injector.getInstance(ProjectGenerator.class);\n projectGen.initialize(freeMarkerConfig, OUT_STREAM);\n try\n {\n projectGen.create(props, projectDir.toFile());\n }\n catch (final Exception ex)\n {\n OUT_STREAM.println(\"Error generating the project: \" + ex.getMessage());\n }\n }", "@RequestMapping(value = \"/create/project/{projectId}\", method = RequestMethod.GET)\r\n public ModelAndView create(@PathVariable(\"projectId\") String projectId) {\r\n ModelAndView mav = new ModelAndView(\"creates2\");\r\n int pid = -1;\r\n try {\r\n pid = Integer.parseInt(projectId);\r\n } catch (Exception e) {\r\n LOG.error(e);\r\n }\r\n User loggedIn = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\r\n User user = hibernateTemplate.get(User.class, loggedIn.getUsername());\r\n Project project = hibernateTemplate.get(Project.class, pid);\r\n if (!dataAccessService.isProjectAvailableToUser(project, user)) {\r\n return accessdenied();\r\n }\r\n List<SubProject> subProjects = dataAccessService.getResearcherSubProjectsForUserInProject(user, project);\r\n mav.addObject(\"projectId\", projectId);\r\n mav.addObject(\"methods\", project.getMethods());\r\n mav.addObject(\"subProjects\", subProjects);\r\n return mav;\r\n }", "public static Project creer(String name){\n\t\treturn new Project(name);\n\t}", "private void actionNewProject ()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tDataController.scenarioNewProject();\r\n\r\n\t\t\thelperDisplayProjectFiles();\r\n\r\n\t\t\t//---- Change button icon\r\n\t\t\tImageIcon iconButton = FormUtils.getIconResource(FormStyle.RESOURCE_PATH_ICO_VIEW_SAMPLES);\r\n\r\n\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewSamples().setIcon(iconButton);\r\n\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewSamples().setActionCommand(FormMainHandlerCommands.AC_VIEW_SAMPLES_ON);\r\n\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewSamples().setToolTipText(\"View detected samples\");\r\n\r\n\t\t\tmainFormLink.reset();\r\n\t\t}\r\n\t\tcatch (ExceptionMessage e)\r\n\t\t{\r\n\t\t\tExceptionHandler.processException(e);\r\n\t\t}\r\n\t}", "public static Project createProject() throws ParseException {\n System.out.println(\"Please enter the project number: \");\n int projNum = input.nextInt();\n input.nextLine();\n\n System.out.println(\"Please enter the project name: \");\n String projName = input.nextLine();\n\n System.out.println(\"Please enter the type of building: \");\n String buildingType = input.nextLine();\n\n System.out.println(\"Please enter the physical address for the project: \");\n String address = input.nextLine();\n\n System.out.println(\"Please enter the ERF number: \");\n String erfNum = input.nextLine();\n\n System.out.println(\"Please enter the total fee for the project: \");\n int totalFee = input.nextInt();\n input.nextLine();\n\n System.out.println(\"Please enter the total amount paid to date: \");\n int amountPaid = input.nextInt();\n input.nextLine();\n\n System.out.println(\"Please enter the deadline for the project (dd/MM/yyyy): \");\n String sdeadline = input.nextLine();\n Date deadline = dateformat.parse(sdeadline);\n\n Person architect = createPerson(\"architect\", input);\n Person contractor = createPerson(\"contractor\", input);\n Person client = createPerson(\"client\", input);\n\n // If the user did not enter a name for the project, then the program will\n // concatenate the building type and the client's surname as the new project\n // name.\n\n if (projName == \"\") {\n String[] clientname = client.name.split(\" \");\n String lastname = clientname[clientname.length - 1];\n projName = buildingType + \" \" + lastname;\n }\n\n return new Project(projNum, projName, buildingType, address, erfNum, totalFee, amountPaid, deadline, contractor,\n architect, client);\n\n }", "public Project() {\n\n }", "private void registerProject(String projectName, String... importNames) {\n Project p = new Project(projectName);\n List<ModelImport<Project>> imps = null;\n if (null != importNames) {\n imps = new ArrayList<ModelImport<Project>>();\n for (int i = 0; i < importNames.length; i++) {\n if (null != importNames[i] && importNames[i].length() > 0) {\n ProjectImport imp = new ProjectImport(importNames[i], null);\n p.addImport(imp);\n imps.add(imp);\n }\n }\n if (imps.isEmpty()) {\n imps = null;\n }\n }\n File file = new File(BASE, projectName + \".ivml\");\n // don't care whether this exists or not\n ModelInfo<Project> info = new ModelInfo<Project>(p.getName(), p.getVersion(), this, file.toURI(), imps);\n data.put(info, p);\n name2Info.put(projectName, info);\n }", "public void testNewJavaProject() {\n NewProjectWizardOperator.invoke().cancel();\n NewProjectWizardOperator npwo = NewProjectWizardOperator.invoke();\n // \"Standard\"\n String standardLabel = Bundle.getStringTrimmed(\"org.netbeans.modules.java.j2seproject.ui.wizards.Bundle\", \"Templates/Project/Standard\");\n npwo.selectCategory(standardLabel);\n // \"Java Application\"\n String javaApplicationLabel = Bundle.getStringTrimmed(\"org.netbeans.modules.java.j2seproject.ui.wizards.Bundle\", \"template_app\");\n npwo.selectProject(javaApplicationLabel);\n npwo.next();\n NewJavaProjectNameLocationStepOperator npnlso = new NewJavaProjectNameLocationStepOperator();\n npnlso.txtProjectName().setText(SAMPLE_PROJECT_NAME);\n npnlso.txtProjectLocation().setText(System.getProperty(\"netbeans.user\")); // NOI18N\n npnlso.btFinish().pushNoBlock();\n npnlso.getTimeouts().setTimeout(\"ComponentOperator.WaitStateTimeout\", 120000);\n npnlso.waitClosed();\n // wait project appear in projects view\n new ProjectsTabOperator().getProjectRootNode(SAMPLE_PROJECT_NAME);\n\n //disable the compile on save:\n ProjectsTabOperator.invoke().getProjectRootNode(SAMPLE_PROJECT_NAME).properties();\n // \"Project Properties\"\n String projectPropertiesTitle = Bundle.getStringTrimmed(\"org.netbeans.modules.java.j2seproject.ui.customizer.Bundle\", \"LBL_Customizer_Title\");\n NbDialogOperator propertiesDialogOper = new NbDialogOperator(projectPropertiesTitle);\n // select \"Compile\" category\n String buildCategoryTitle = Bundle.getStringTrimmed(\"org.netbeans.modules.java.j2seproject.ui.customizer.Bundle\", \"LBL_Config_BuildCategory\");\n String compileCategoryTitle = Bundle.getStringTrimmed(\"org.netbeans.modules.java.j2seproject.ui.customizer.Bundle\", \"LBL_Config_Build\");\n new Node(new Node(new JTreeOperator(propertiesDialogOper), buildCategoryTitle), compileCategoryTitle).select();\n // actually disable the quick run:\n String compileOnSaveLabel = Bundle.getStringTrimmed(\"org.netbeans.modules.java.j2seproject.ui.customizer.Bundle\", \"CustomizerCompile.CompileOnSave\");\n JCheckBox cb = JCheckBoxOperator.waitJCheckBox((Container) propertiesDialogOper.getSource(), compileOnSaveLabel, true, true);\n if (cb.isSelected()) {\n cb.doClick();\n }\n // confirm properties dialog\n propertiesDialogOper.ok();\n\n // wait classpath scanning finished\n PerfWatchProjects.waitScanFinished();\n }", "@TaskAction\n public void createProject()\n throws IOException {\n String projectName = getProjectName();\n\n // Get the output directory\n String outputDir = \"build/\";\n String projectFolderPath = outputDir + PROJECT_PREFIX + PROJECT_PREFIX_INTEGRATION + projectName;\n Path outputPath = getProject().mkdir(new File(projectFolderPath)).toPath();\n\n // Build the project\n new ProjectBuilder(projectName, outputPath, getProject()).build();\n }", "public AddProject() {\n try\n {\n infDB = new InfDB(\"\\\\Users\\\\Oliver\\\\Documents\\\\Skola\\\\Mini_sup\\\\Realisering\\\\MICEDB.FDB\");\n System.out.println(\"Uppkopplingen lyckades\");\n }\n catch(InfException e)\n {\n System.out.println(e.getMessage());\n }\n \n try\n {\n infDB = new InfDB(\"C:\\\\Users\\\\TP300LA-C4034\\\\Desktop\\\\Delkurs 4, Lill-supen\\\\InformatikDB\\\\MICEDB.FDB\");\n System.out.println(\"Uppkopplingen lyckades\");\n }\n catch(InfException e)\n {\n System.out.println(e.getMessage());\n }\n getPlatforms();\n initComponents();\n setLocationRelativeTo(null);\n \n }", "public Project() {\n\t\t\n\t}", "private static IProject createBaseProject(String projectName, URI location) {\n // it is acceptable to use the ResourcesPlugin class\n IProject newProject = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);\n \n if (!newProject.exists()) {\n URI projectLocation = location;\n IProjectDescription desc = newProject.getWorkspace().newProjectDescription(newProject.getName());\n if (location != null && ResourcesPlugin.getWorkspace().getRoot().getLocationURI().equals(location)) {\n projectLocation = null;\n }\n \n desc.setLocationURI(projectLocation);\n try {\n newProject.create(desc, null);\n if (!newProject.isOpen()) {\n newProject.open(null);\n }\n } catch (CoreException e) {\n e.printStackTrace();\n }\n }\n \n return newProject;\n }", "public Project() {\n\t}", "public Project() {\n\t}", "private void createProjectGroup(Composite parent) {\n int col = 0;\n\n // project name\n String tooltip = \"The Android Project where the new resource file will be created.\";\n Label label = new Label(parent, SWT.NONE);\n label.setText(\"Project\");\n label.setToolTipText(tooltip);\n ++col;\n\n mProjectTextField = new Text(parent, SWT.BORDER);\n mProjectTextField.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n mProjectTextField.setToolTipText(tooltip);\n mProjectTextField.addModifyListener(new ModifyListener() {\n public void modifyText(ModifyEvent e) {\n onProjectFieldUpdated();\n }\n });\n ++col;\n\n mProjectBrowseButton = new Button(parent, SWT.NONE);\n mProjectBrowseButton.setText(\"Browse...\");\n mProjectBrowseButton.setToolTipText(\"Allows you to select the Android project to modify.\");\n mProjectBrowseButton.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n onProjectBrowse();\n }\n });\n mProjectChooserHelper = new ProjectChooserHelper(parent.getShell(), null /*filter*/);\n ++col;\n\n col = padWithEmptyCells(parent, col);\n\n // file name\n tooltip = \"The name of the resource file to create.\";\n label = new Label(parent, SWT.NONE);\n label.setText(\"File\");\n label.setToolTipText(tooltip);\n ++col;\n\n mFileNameTextField = new Text(parent, SWT.BORDER);\n mFileNameTextField.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n mFileNameTextField.setToolTipText(tooltip);\n mFileNameTextField.addModifyListener(new ModifyListener() {\n public void modifyText(ModifyEvent e) {\n validatePage();\n }\n });\n ++col;\n\n padWithEmptyCells(parent, col);\n }", "@Test\n @org.junit.Ignore\n public void testProject_1()\n throws Exception {\n\n Project result = new Project();\n\n assertNotNull(result);\n assertEquals(null, result.getName());\n assertEquals(null, result.getWorkloadNames());\n assertEquals(null, result.getProductName());\n assertEquals(null, result.getComments());\n assertEquals(null, result.getCreator());\n assertEquals(0, result.getId());\n assertEquals(null, result.getModified());\n assertEquals(null, result.getCreated());\n }", "public Project()\n {\n\n }", "private IProject createEclipseProject(IProgressMonitor monitor, IProject project, IProjectDescription description,\n Map<String, Object> parameters, ProjectPopulator projectPopulator, boolean isCmsProject) \n \t\tthrows CoreException, IOException {\n\n // Create project and open it\n project.create(description, new SubProgressMonitor(monitor, 10));\n if (monitor.isCanceled()) throw new OperationCanceledException();\n\n project.open(IResource.BACKGROUND_REFRESH, new SubProgressMonitor(monitor, 10));\n\n // Add the Java and CMS nature to the project\n DescriptorNature.setupProjectNatures(project, monitor, isCmsProject);\n\n // Create folders in the project if they don't already exist\n addDefaultDirectories(project, WS_ROOT, DEFAULT_DIRECTORIES, monitor);\n String[] sourceFolders;\n if (isCmsProject) {\n sourceFolders = new String[] {\n (String) parameters.get(PARAM_SRC_FOLDER),\n };\n } else {\n sourceFolders = new String[] {\n (String) parameters.get(PARAM_SRC_FOLDER)\n };\n }\n addDefaultDirectories(project, WS_ROOT, sourceFolders, monitor);\n\n if (projectPopulator != null) {\n try {\n projectPopulator.populate(project);\n } catch (InvocationTargetException ite) {\n ite.printStackTrace();\n }\n }\n\n // Setup class path: mark folders as source folders\n IJavaProject javaProject = JavaCore.create(project);\n setupSourceFolders(javaProject, sourceFolders, monitor);\n // Set output location\n// javaProject.setOutputLocation(project.getFolder(BIN_CLASSES_DIRECTORY).getFullPath(), monitor);\n // Create the reference to the target project\n\n return project;\n }", "public static IProject createProject(String projectName, URI location) {\n \n IProject project = createBaseProject(projectName, location);\n try {\n addNature(project);\n String[] paths = {CLASSES_FOLDER};\n addToProjectStructure(project,paths);\n addProjectFiles(project);\n } catch (CoreException e) {\n e.printStackTrace();\n project = null;\n }\n \n return project;\n }", "private void newProject(ActionEvent x) {\n\t\tthis.controller.newProject();\n\t}", "void createProjectForExercise(ProgrammingExercise programmingExercise) throws VersionControlException;", "private Project compileProject() {\n\t\t\tProject p = null;\n\t\t\t\n\t\t\tif(pType.equals(\"o\")) {\n\t\t\t\ttry {\n\t\t\t\t\tp = new OngoingProject(pCode.getText(), pName.getText(), dateFormat.parse(pSDate.getText()),pClient.getText(), dateFormat.parse(pDeadline.getText()), Double.parseDouble(pBudget.getText()), Integer.parseInt(pCompletion.getText()));\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t} else if(pType.equals(\"f\")) {\n\t\t\t\ttry {\n\t\t\t\t\tp = new FinishedProject(pCode.getText(), pName.getText(), dateFormat.parse(pSDate.getText()),pClient.getText(), dateFormat.parse(pEndDate.getText()), Double.parseDouble(pTotalCost.getText()));\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\n\t\t\treturn p;\n\t\t}", "@Test (groups = {\"Functional\"})\n public void testAddProject() {\n //When\n CreateProject createProject = dashboard.clickCreateProjectButton();\n String projectName = \"TestProject\";\n String testAccount = \"Account1\";\n createProject.setProjectName(projectName);\n createProject.clickPublicProjectPrivacy();\n createProject.setAccountDropDown(testAccount);\n project = createProject.clickCreateProject();\n\n //Then\n assertEquals(PROJECT_NAME, project.getTitle());\n }", "@PostMapping\n public ResponseEntity<Project> createNewProject(@Valid @RequestBody Project project) {\n\n Project project1 = projectService.saveOrUpdateProject(project);\n return new ResponseEntity<Project>(project1, HttpStatus.CREATED);\n }", "protected void createProject(IProgressMonitor monitor)\n {\n monitor.beginTask(\"Creating the Totori project\", 50);\n try\n {\n IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();\n monitor.subTask(\"Defining the nature of the project\");\n IProject project = root.getProject(page.getProjectName());\n IProjectDescription description = ResourcesPlugin.getWorkspace().newProjectDescription(project.getName());\n if(!Platform.getLocation().equals(page.getLocationPath()))\n description.setLocation(page.getLocationPath());\n project.create(description,monitor);\n monitor.worked(10);\n project.open(monitor);\n description = project.getDescription();\n description.setNatureIds(new String[] { TotoriNature.NATURE_ID });\n project.setDescription(description,new SubProgressMonitor(monitor,10));\n monitor.subTask(\"Creating subdirectories\");\n createFolderHelper(root.getFolder(project.getFullPath().append(\"config\")), monitor);\n createFolderHelper(root.getFolder(project.getFullPath().append(\"ext\")), monitor);\n createFolderHelper(root.getFolder(project.getFullPath().append(\"ext\").append(\"nircmd\")), monitor);\n createFolderHelper(root.getFolder(project.getFullPath().append(\"features\")), monitor);\n createFolderHelper(root.getFolder(project.getFullPath().append(\"features\").append(\"plugins\")), monitor);\n createFolderHelper(root.getFolder(project.getFullPath().append(\"features\").append(\"steps\")), monitor);\n createFolderHelper(root.getFolder(project.getFullPath().append(\"features\").append(\"support\")), monitor);\n createFolderHelper(root.getFolder(project.getFullPath().append(\"reports\")), monitor);\n createFolderHelper(root.getFolder(project.getFullPath().append(\"reports\").append(\"assets\")), monitor);\n createFolderHelper(root.getFolder(project.getFullPath().append(\"reports\").append(\"screens\")), monitor);\n project.setDescription(description,new SubProgressMonitor(monitor,10));\n monitor.subTask(\"Creating files\");\n Vector<String> assets = new Vector<String>();\n assets.add(\"config/myconfig.yml\");\n assets.add(\"ext/nircmd/nircmd.chm\");\n assets.add(\"ext/nircmd/nircmd.exe\");\n assets.add(\"ext/nircmd/nircmdc.exe\");\n assets.add(\"features/support/env.rb\");\n assets.add(\"features/support/functions.rb\");\n assets.add(\"features/support/screenshots.rb\");\n assets.add(\"features/support/totori_formatter.rb\");\n assets.add(\"reports/assets/jquery-1.4.1.min.js\");\n assets.add(\"reports/assets/jquery.lightbox-0.5.css\");\n assets.add(\"reports/assets/jquery.lightbox-0.5.min.js\");\n assets.add(\"reports/assets/jquery.thumbs.js\");\n assets.add(\"reports/assets/lightbox-blank.gif\");\n assets.add(\"reports/assets/lightbox-btn-close.gif\");\n assets.add(\"reports/assets/lightbox-btn-next.gif\");\n assets.add(\"reports/assets/lightbox-btn-prev.gif\");\n assets.add(\"reports/assets/lightbox-ico-loading.gif\");\n assets.add(\"reports/assets/search.png\");\n assets.add(\"reports/assets/thumbs.css\");\n assets.add(\"reports/assets/totori.css\");\n for(String asset : assets) {\n \t String resource = \"/assets/\"+asset;\n \t InputStream stream = this.getClass().getResourceAsStream(resource);\n \t System.out.println(resource + \" : \" + stream);\n IPath path = project.getFullPath();\n for(String dir : asset.split(\"/\")) {\n \t path = path.append(dir);\n }\n IFile file = root.getFile(path);\n //file.getFullPath().toFile().mkdirs();\n //file.setCharset(\"utf-8\", monitor);\n file.create(stream, false, monitor);\n }\n monitor.worked(20);\n }\n catch(CoreException x)\n {\n reportError(x);\n }\n finally\n {\n monitor.done();\n }\n }", "public Project() { }", "public void addProj() {\n\t\tbtnAdd.click();\n\t}", "protected ProjectCreationDescriptor() {\n\t}", "public void init() {\n- newProject = new Project();\n- newProject.setDefaultInputStream(getProject().getDefaultInputStream());\n+ newProject = getProject().createSubProject();\n newProject.setJavaVersionProperty();\n }", "public void createProject(String nameProject, String nameDiscipline) throws \n InvalidDisciplineException,InvalidProjectException{\n int id = _person.getId();\n Professor _professor = getProfessors().get(id);\n _professor.createProject(nameProject, nameDiscipline);\n }", "public static void main(String[] args) {\n AddNewProject addNewProject = new AddNewProject();\n addNewProject.setVisible(true);\n }", "@PostMapping(value = \"/project\", consumes = \"application/json\", produces = \"application/json\")\n public ResponseEntity<?> addNewProject(@Valid @RequestBody Project newProject) throws URISyntaxException\n {\n newProject.setProjectid(0);\n newProject = projectService.save(newProject);\n\n // set the location header for the newly created resource\n HttpHeaders responseHeaders = new HttpHeaders();\n URI newProjectURI = ServletUriComponentsBuilder.fromCurrentRequest()\n .path(\"/{projectid}\")\n .buildAndExpand(newProject.getProjectid())\n .toUri();\n responseHeaders.setLocation(newProjectURI);\n\n return new ResponseEntity<>(null, responseHeaders, HttpStatus.CREATED);\n }", "public static AddProject newInstance() {\n AddProject fragment = new AddProject();\n return fragment;\n }", "void createProject(IProjectDescription description, IProject proj,\n\t\t\tIProgressMonitor monitor) throws CoreException,\n\t\t\tOperationCanceledException {\n\t\ttry {\n\n\t\t\tmonitor.beginTask(\"\", 2000);\n\n\t\t\tproj.create(description, new SubProgressMonitor(monitor, 1000));\n\n\t\t\tif (monitor.isCanceled()) {\n\t\t\t\tthrow new OperationCanceledException();\n\t\t\t}\n\n\t\t\tproj.open(IResource.BACKGROUND_REFRESH, new SubProgressMonitor(\n\t\t\t\t\tmonitor, 1000));\n\n\t\t\t/*\n\t\t\t * Okay, now we have the project and we can do more things with it\n\t\t\t * before updating the perspective.\n\t\t\t */\n\t\t\tIContainer container = (IContainer) proj;\n\n\t\t\t/* Add an XHTML file */\n\t\t\t/*addFileToProject(container, new Path(\"index.html\"),\n\t\t\t\t\tJ15NewModel.openContentStream(\"Welcome to \"\n\t\t\t\t\t\t\t+ proj.getName(),\"5\"),monitor);*/\n\n\t\t\t/* Create the admin folder */\n\t\t\tfinal IFolder adminFolder = container.getFolder(new Path(\"admin\"));\n\t\t\tadminFolder.create(true, true, monitor);\n\t\t\t\n\t\t\tfinal IFolder adminModels = adminFolder.getFolder(new Path(\"models\"));\n\t\t\tadminModels.create(true, true, monitor);\n\t\t\t\n\t\t\tfinal IFolder adminControllers = adminFolder.getFolder(new Path(\"controllers\"));\n\t\t\tadminControllers.create(true, true, monitor);\n\t\t\t\n\t\t\tfinal IFolder adminViews = adminFolder.getFolder(new Path(\"views\"));\n\t\t\tadminViews.create(true, true, monitor);\n\t\t\t\n\t\t\tfinal IFolder adminTables = adminFolder.getFolder(new Path(\"tables\"));\n\t\t\tadminTables.create(true, true, monitor);\n\t\t\t\n\t\t\t/* Create the site folder */\n\t\t\tfinal IFolder siteFolder = container.getFolder(new Path(\"site\"));\n\t\t\tsiteFolder.create(true, true, monitor);\n\t\t\t\n\t\t\tfinal IFolder siteModels = siteFolder.getFolder(new Path(\"models\"));\n\t\t\tsiteModels.create(true, true, monitor);\n\t\t\t\n\t\t\tfinal IFolder siteViews = siteFolder.getFolder(new Path(\"views\"));\n\t\t\tsiteViews.create(true, true, monitor);\n\n\t\t\tInputStream resourceStream = this.getClass().getResourceAsStream(\n\t\t\t\t\t\"templates/blank-html.template\");\n\n\t\t\t/* Add blank HTML Files */\n\t\t\t\n\t\t\t/* Admin Folders first */\n\t\t\taddFileToProject(container, new Path(adminFolder.getName()\n\t\t\t\t\t+ Path.SEPARATOR + \"index.html\"),\n\t\t\t\t\tresourceStream, monitor);\n\t\t\t\n\t\t\tresourceStream.close();\n\t\t\tresourceStream = this.getClass().getResourceAsStream(\n\t\t\t\t\"templates/blank-html.template\");\n\t\t\t\n\t\t\taddFileToProject(container, new Path(adminFolder.getName()\n\t\t\t\t\t+ Path.SEPARATOR + adminModels.getName()\n\t\t\t\t\t+ Path.SEPARATOR + \"index.html\"),\n\t\t\t\t\tresourceStream, monitor);\n\t\t\t\n\t\t\tresourceStream.close();\n\t\t\tresourceStream = this.getClass().getResourceAsStream(\n\t\t\t\t\"templates/blank-html.template\");\n\t\t\t\n\t\t\taddFileToProject(container, new Path(adminFolder.getName()\n\t\t\t\t\t+ Path.SEPARATOR + adminControllers.getName()\n\t\t\t\t\t+ Path.SEPARATOR + \"index.html\"),\n\t\t\t\t\tresourceStream, monitor);\n\t\t\t\n\t\t\tresourceStream.close();\n\t\t\tresourceStream = this.getClass().getResourceAsStream(\n\t\t\t\t\"templates/blank-html.template\");\n\t\t\t\n\t\t\taddFileToProject(container, new Path(adminFolder.getName()\n\t\t\t\t\t+ Path.SEPARATOR + adminViews.getName()\n\t\t\t\t\t+ Path.SEPARATOR + \"index.html\"),\n\t\t\t\t\tresourceStream, monitor);\n\t\t\t\n\t\t\tresourceStream.close();\n\t\t\tresourceStream = this.getClass().getResourceAsStream(\n\t\t\t\t\"templates/blank-html.template\");\n\t\t\t\n\t\t\taddFileToProject(container, new Path(adminFolder.getName()\n\t\t\t\t\t+ Path.SEPARATOR + adminTables.getName()\n\t\t\t\t\t+ Path.SEPARATOR + \"index.html\"),\n\t\t\t\t\tresourceStream, monitor);\n\t\t\t\n\t\t\tresourceStream.close();\n\t\t\tresourceStream = this.getClass().getResourceAsStream(\n\t\t\t\t\"templates/blank-html.template\");\n\t\t\t\n\t\t\t/* Now the site folders */\n\t\t\taddFileToProject(container, new Path(siteFolder.getName()\n\t\t\t\t\t+ Path.SEPARATOR + \"index.html\"),\n\t\t\t\t\tresourceStream, monitor);\n\t\t\t\n\t\t\tresourceStream.close();\n\t\t\tresourceStream = this.getClass().getResourceAsStream(\n\t\t\t\t\"templates/blank-html.template\");\n\t\t\t\n\t\t\taddFileToProject(container, new Path(siteFolder.getName()\n\t\t\t\t\t+ Path.SEPARATOR + siteModels.getName()\n\t\t\t\t\t+ Path.SEPARATOR + \"index.html\"),\n\t\t\t\t\tresourceStream, monitor);\n\t\t\t\n\t\t\tresourceStream.close();\n\t\t\tresourceStream = this.getClass().getResourceAsStream(\n\t\t\t\t\"templates/blank-html.template\");\n\n\t\t\taddFileToProject(container, new Path(siteFolder.getName()\n\t\t\t\t\t+ Path.SEPARATOR + siteViews.getName()\n\t\t\t\t\t+ Path.SEPARATOR + \"index.html\"),\n\t\t\t\t\tresourceStream, monitor);\n\t\t\t\n\t\t\tresourceStream.close();\n\n\t\t\t/* All over! */\n\t\t} catch (IOException ioe) {\n\t\t\tIStatus status = new Status(IStatus.ERROR, \"J15Wizard\", IStatus.OK,\n\t\t\t\t\tioe.getLocalizedMessage(), null);\n\t\t\tthrow new CoreException(status);\n\t\t} finally {\n\t\t\tmonitor.done();\n\t\t}\n\t}", "public ProjectFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "public ProjectViewController(){\n InputStream request = appController.httpRequest(\"http://localhost:8080/project/getProject\", \"GET\");\n try {\n String result = IOUtils.toString(request, StandardCharsets.UTF_8);\n Gson gson = new Gson();\n this.projectModel = gson.fromJson(result, ProjectModel.class);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public int createProject(File jarFile, String packageName, boolean isSource) {\n try {\n projectData = projectLoader.createProject(jarFile, packageName, isSource);\n\n } catch (FileNotFoundException ex) {\n \n return 1; // can not find ini file\n } catch (Exception ex) {\n \n return 2; // can not load import classes data\n \n } catch (TokenMgrError tm) {\n \n return 2; // can not load import classes data\n }\n\n\n return 0;\n \n }", "private static void addToProjectStructure(IProject newProject, String[] paths) throws CoreException {\n for (String path : paths) {\n IFolder etcFolders = newProject.getFolder(path);\n createFolder(etcFolders);\n }\n }", "public IProject getNewProject() {\r\n\t\treturn newProject;\r\n\t}", "@SystemSetup(type = Type.PROJECT, process = Process.ALL)\n\tpublic void createProjectData(final SystemSetupContext context)\n\t{\n\t\tif (getBooleanSystemSetupParameter(context, IMPORT_PROJECT_DATA))\n\t\t{\n\t\t\t\n\t\t\t//Store locator is out of scope for SBD b2b\t\n\t\t\timportStoreInitialData(context, PROJECT_DATA_IMPORT_FOLDER, PROJECT_NAME, PROJECT_NAME,\n\t\t\t\t\tCollections.singletonList(PROJECT_NAME));\n\t\t\t\n\t\t}\n\t\tif (getBooleanSystemSetupParameter(context, IMPORT_SBD_SAMPLE_PRODUCT_DATA))\n\t\t{\n\t\t\timportCommonData(context, PROJECT_DATA_IMPORT_FOLDER);\n\t\t\timportProductCatalog(context, PROJECT_DATA_IMPORT_FOLDER, PROJECT_NAME);\t\n\t\t\t\n\t\t}\n\t}", "@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}", "public ProjectsPage() {\n\t\tthis.driver = DriverManager.getDriver();\n\t\tElementFactory.initElements(driver, this);\n\t\t// sets the name of the project to add, with a random integer ending for slight\n\t\t// ease on multiple test runs\n\t\tnameOfProject = \"testz2018\" + (int) Math.random() * 500;\n\t}", "public void openNewProject() {\n\n\t\t// Dispose of all the sound objects in the project that is currently open\n\t\tCollection<SoundInfo> sounds = soundList.values();\n for(SoundInfo sound: sounds){\n sound.close();\n }\n \n // Set the newly opened project variables\n\t\tsoundList = new HashMap<Integer, SoundInfo>();\n\t\tprojectModified = false;\n\t\tprojectFileIO = null;\n\t}", "private void setProject()\n\t{\n\t\tproject.setName(tf0.getValue().toString());\n \t\tproject.setDescription(tf8.getValue().toString());\n \t\tproject.setEndDate(df4.getValue());\n \t\tif (sf6.getValue().toString().equals(\"yes\"))project.setActive(true);\n \t\telse project.setActive(false);\n \t\tif (!tf7.getValue().toString().equals(\"\"))project.setBudget(Float.parseFloat(tf7.getValue().toString()));\n \t\telse project.setBudget(-1);\n \t\tproject.setNextDeadline(df5.getValue());\n \t\tproject.setStartDate(df3.getValue());\n \t\ttry \n \t\t{\n \t\t\t\tif (sf1.getValue()!=null)\n\t\t\t\tproject.setCustomerID(db.selectCustomerforName( sf1.getValue().toString()));\n\t\t}\n \t\tcatch (SQLException|java.lang.NullPointerException e) \n \t\t{\n \t\t\tErrorWindow wind = new ErrorWindow(e); \n \t UI.getCurrent().addWindow(wind);\t\t\n \t e.printStackTrace();\n\t\t\t}\n \t\tproject.setInserted_by(\"Grigoris\");\n \t\tproject.setModified_by(\"Grigoris\");\n \t\tproject.setRowversion(1);\n \t\tif (sf2.getValue()!=null)project.setProjectType(sf2.getValue().toString());\n \t\telse project.setProjectType(null);\n\t }", "public ProjectModule() {\n packaging = AutomationConstant.PACKAGING_POM;\n }", "public void testNewFile() {\n // create a new package\n // \"Java Classes\"\n String javaClassesLabel = Bundle.getString(\"org.netbeans.modules.java.project.Bundle\", \"Templates/Classes\");\n NewJavaFileWizardOperator.create(SAMPLE_PROJECT_NAME, javaClassesLabel, \"Java Package\", null, SAMPLE1_PACKAGE_NAME);\n // wait package node is created\n Node sample1Node = new Node(new SourcePackagesNode(SAMPLE_PROJECT_NAME), SAMPLE1_PACKAGE_NAME);\n\n // create a new classes\n\n NewFileWizardOperator.invoke(sample1Node, javaClassesLabel, \"Java Main Class\");\n NewJavaFileNameLocationStepOperator nameStepOper = new NewJavaFileNameLocationStepOperator();\n nameStepOper.setObjectName(SAMPLE1_CLASS_NAME);\n nameStepOper.finish();\n // check class is opened in Editor\n new EditorOperator(SAMPLE1_FILE_NAME);\n NewFileWizardOperator.invoke(sample1Node, javaClassesLabel, \"Java Main Class\");\n nameStepOper = new NewJavaFileNameLocationStepOperator();\n nameStepOper.setObjectName(SAMPLE2_CLASS_NAME);\n nameStepOper.finish();\n // check class is opened in Editor and then close all documents\n new EditorOperator(SAMPLE2_FILE_NAME).closeAllDocuments();\n }", "private synchronized static void createProjectIfNotExist(Project aweProject, String rubyProjectName) {\r\n \t\tboolean exist = false;\r\n \t\t\r\n \t\tfor (RubyProject rubyProject : aweProject.getElements(RubyProject.class)) {\r\n \t\t\tif (rubyProject.getName().equals(rubyProjectName)) {\r\n \t\t\t\texist = true;\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n \t\tif (!exist) {\r\n \t\t\tRubyProject ruby = ProjectFactoryImpl.eINSTANCE.createRubyProject();\r\n \t\t\truby.setName(rubyProjectName);\r\n \t\t\truby.setProjectInternal(aweProject);\t\t\t\r\n \t\t}\r\n \t}", "private static boolean addNewProject() {\n\t\tString[] options = new String[] {\"Ongoing\",\"Finished\",\"Cancel\"};\n\t\tint choice = JOptionPane.showOptionDialog(frame, \"Select new project type\" , \"Add new Project\", \n\t\t\t\tJOptionPane.DEFAULT_OPTION, JOptionPane.PLAIN_MESSAGE, null, options, options[2]);\n\t\t\n\t\tNewProjectDialog dialog;\n\t\t\n\t\tswitch(choice) {\n\t\tcase 0:\n\t\t\tdialog = new NewProjectDialog(\"o\");\n\t\t\tdialog.setVisible(true);\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tdialog = new NewProjectDialog(\"f\");\n\t\t\tdialog.setVisible(true);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "private void loadProject()\n\t{\n\t\t\n\t\tint fileChooserReturnValue =\n\t\t\twindowTemplate\n\t\t\t\t.getFileChooser()\n\t\t\t\t.showOpenDialog(windowTemplate);\n\t\t\n\t\tif(fileChooserReturnValue == JFileChooser.APPROVE_OPTION) {\n\t\t\t// Delete the current cards\n\t\t\tdeleteAllCards();\n\t\t\t\n\t\t\t// Get the file that the user selected\n\t\t\tFile file = windowTemplate.getFileChooser().getSelectedFile();\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t// Open the input streams\n\t\t\t\tFileInputStream fileInput = new FileInputStream(file.getAbsolutePath());\n\t\t\t\tObjectInputStream objectInput = new ObjectInputStream(fileInput);\n\t\t\t\t\n\t\t\t\t// Get ready to save the cards\n\t\t\t\tArrayList<Card> newCards = new ArrayList<Card>();\n\t\t\t\t\n\t\t\t\t// Get the objects\n\t\t\t\ttry {\n\t\t\t\t\t\n\t\t\t\t\tObject inputObject = objectInput.readObject();\n\t\t\t\t\t\n\t\t\t\t\twhile(inputObject instanceof Card) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Add the card\n\t\t\t\t\t\tnewCards.add((Card) inputObject);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Read the next object\n\t\t\t\t\t\tinputObject = objectInput.readObject();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t} catch(EOFException e2) {\n\t\t\t\t\t\n\t\t\t\t\t// We've reached the end of the file, time to add the new project\n\t\t\t\t\taddCards(newCards);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Close the input streams\n\t\t\t\tobjectInput.close();\n\t\t\t\tfileInput.close();\n\t\t\t\t\n\t\t\t\t// Update the title of the frame to reflect the current project\n\t\t\t\twindowTemplate.setTitle(file.getName());\n\t\t\t\t\n\t\t\t} catch (ClassNotFoundException | IOException e1) {\n\t\t\t\tJOptionPane.showMessageDialog(windowTemplate, \"Could not open the file.\");\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public boolean insertProject(Project project) throws EmployeeManagementException;", "public Project_Create() {\n initComponents();\n }", "public int DSAddProject(String ProjectName, String ProjectLocation);", "private static void addProjectFile(IProject newProject, String fileName, String projectPath){\n \tBundle bundle = Platform.getBundle(BUNDLE_ID);//plugin id\n \tString filePath = DEFAULT_FILE_PATH + fileName;\n \tIPath location= Path.fromOSString(filePath); \n \tInputStream stream;\n\t\ttry {\n\t\t\tstream = FileLocator.openStream( bundle, location, false );\n\t\t\tString createdFilePath = projectPath+fileName;\n\t \tIFile file = newProject.getFile(createdFilePath);\n\t\t\tfile.create( stream, true, null );\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}catch (CoreException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n }", "@Override\n protected void createEntity() {\n ProjectStatus status = createProjectStatus(5);\n setEntity(status);\n }", "ProjetoRN createProjetoRN();", "Compleja createCompleja();", "public ProjectBean getProject2(String projectIdentifier) {\n List<Experiment> experiments =\n this.getOpenBisClient().getExperimentsForProject3(projectIdentifier);// TODO changed this\n // from\n // getExperimentsForProject2\n\n float projectStatus = this.getOpenBisClient().computeProjectStatus(experiments);\n\n Project project = getOpenbisDtoProject(projectIdentifier);\n if (project == null) {\n project = getOpenBisClient().getProjectByIdentifier(projectIdentifier);\n addOpenbisDtoProject(project);\n }\n ProjectBean newProjectBean = new ProjectBean();\n\n ProgressBar progressBar = new ProgressBar();\n progressBar.setValue(projectStatus);\n\n Date registrationDate = project.getRegistrationDetails().getRegistrationDate();\n\n String pi = getDatabaseManager().getPersonDetailsForProject(project.getIdentifier(), \"PI\");\n String cp = getDatabaseManager().getPersonDetailsForProject(project.getIdentifier(), \"Contact\");\n String manager =\n getDatabaseManager().getPersonDetailsForProject(project.getIdentifier(), \"Manager\");\n\n String longDesc = getDatabaseManager().getLongProjectDescription(project.getIdentifier());\n\n if (pi.equals(\"\")) {\n newProjectBean.setPrincipalInvestigator(\"n/a\");\n } else {\n newProjectBean.setPrincipalInvestigator(pi);\n }\n\n if (cp.equals(\"\")) {\n newProjectBean.setContactPerson(\"n/a\");\n } else {\n newProjectBean.setContactPerson(cp);\n }\n\n if (manager.equals(\"\")) {\n newProjectBean.setProjectManager(\"n/a\");\n } else {\n newProjectBean.setProjectManager(manager);\n }\n\n if (longDesc == null)\n longDesc = \"\";\n\n newProjectBean.setLongDescription(longDesc);\n\n newProjectBean.setId(project.getIdentifier());\n newProjectBean.setCode(project.getCode());\n String desc = project.getDescription();\n if (desc == null)\n desc = \"\";\n newProjectBean.setDescription(desc);\n newProjectBean.setRegistrationDate(registrationDate);\n newProjectBean.setProgress(progressBar);\n newProjectBean.setRegistrator(project.getRegistrationDetails().getUserId());\n newProjectBean.setContact(project.getRegistrationDetails().getUserEmail());\n\n // Create sample Beans (or fetch them) for samples of experiments\n List<Sample> allSamples = this.getOpenBisClient()\n .getSamplesWithParentsAndChildrenOfProjectBySearchService(projectIdentifier);\n\n BeanItemContainer<ExperimentBean> experimentBeans =\n new BeanItemContainer<ExperimentBean>(ExperimentBean.class);\n\n AlternativeSecondaryNameCreator altNameCreator = new AlternativeSecondaryNameCreator(\n openBisClient.getVocabCodesAndLabelsForVocab(\"Q_NCBI_TAXONOMY\"));\n for (Experiment experiment : experiments) {\n ExperimentBean newExperimentBean = new ExperimentBean();\n\n // TODO doesn't work with getExperimentsForProject2\n Map<String, String> assignedProperties = experiment.getProperties();\n\n String status = \"\";\n\n if (assignedProperties.keySet().contains(\"Q_CURRENT_STATUS\")) {\n status = assignedProperties.get(\"Q_CURRENT_STATUS\");\n }\n\n else if (assignedProperties.keySet().contains(\"Q_WF_STATUS\")) {\n status = assignedProperties.get(\"Q_WF_STATUS\");\n }\n\n List<Sample> samples = new ArrayList<Sample>();\n for (Sample s : allSamples) {\n if (s.getExperimentIdentifierOrNull().equals(experiment.getIdentifier()))\n samples.add(s);\n }\n BeanItemContainer<SampleBean> sampleBeans =\n new BeanItemContainer<SampleBean>(SampleBean.class);\n for (Sample sample : samples) {\n SampleBean sbean = new SampleBean();\n sbean.setId(sample.getIdentifier());\n sbean.setCode(sample.getCode());\n sbean.setType(sample.getSampleTypeCode());\n sbean.setProperties(sample.getProperties());\n sbean.setParents(this.getOpenBisClient().getParentsBySearchService(sample.getCode())); //changed by cfh \n sampleBeans.addBean(sbean);\n }\n newExperimentBean.setSamples(sampleBeans);\n\n newExperimentBean.setAltNameCreator(altNameCreator);\n newExperimentBean.setProperties(assignedProperties);\n newExperimentBean.setSecondaryName(assignedProperties.get(\"Q_SECONDARY_NAME\"));\n newExperimentBean.setId(experiment.getIdentifier());\n newExperimentBean.setCode(experiment.getCode());\n newExperimentBean.setType(experiment.getExperimentTypeCode());\n newExperimentBean.setRegistrator(experiment.getRegistrationDetails().getUserId());\n newExperimentBean\n .setRegistrationDate(experiment.getRegistrationDetails().getRegistrationDate());\n newExperimentBean.setStatus(status);\n experimentBeans.addBean(newExperimentBean);\n }\n\n List<ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.DataSet> projectData = this\n .getOpenBisClient().getDataSetsOfProjectByIdentifierWithSearchCriteria(projectIdentifier);\n\n Boolean containsData = false;\n Boolean containsResults = false;\n Boolean attachmentResult = false;\n // Boolean containsAttachments = false;\n\n for (ch.systemsx.cisd.openbis.generic.shared.api.v1.dto.DataSet ds : projectData) {\n attachmentResult = false;\n if (ds.getDataSetTypeCode().equals(\"Q_PROJECT_DATA\")) {\n attachmentResult = ds.getProperties().get(\"Q_ATTACHMENT_TYPE\").equals(\"RESULT\");\n }\n\n if (!(ds.getDataSetTypeCode().equals(\"Q_PROJECT_DATA\"))\n && !(ds.getDataSetTypeCode().contains(\"RESULTS\"))) {\n containsData = true;\n } else if (ds.getDataSetTypeCode().contains(\"RESULTS\") || attachmentResult) {\n containsResults = true;\n } // else if (ds.getDataSetTypeCode() == \"Q_PROJECT_DATA\") {\n // containsAttachments = true;\n // }\n }\n\n newProjectBean.setContainsData(containsData);\n newProjectBean.setContainsResults(containsResults);\n // newProjectBean.setContainsAttachments(containsAttachments);\n\n newProjectBean.setExperiments(experimentBeans);\n newProjectBean.setMembers(new HashSet<String>());\n\n String secondaryName = getDatabaseManager().getProjectName(projectIdentifier);\n if (secondaryName == null || secondaryName.isEmpty())\n secondaryName = \"n/a\";\n\n newProjectBean.setSecondaryName(secondaryName);\n return newProjectBean;\n }", "public void cloneProject(String selectedProjectName, String newProjectName) throws Exception{\n\t\tDataManager.createFolderVersion(selectedProjectName, newProjectName);\n\t\tajdtHandler.copyProject(selectedProjectName, newProjectName);\n\t}", "@Test(alwaysRun=true)\n public void addProject() {\n driver.findElement(By.xpath(\"//ul[contains(@class, 'nav-tabs')]//li[3]\")).click();\n assertThat(driver.getTitle(), equalTo(\"Manage Projects - MantisBT\"));\n //Click \"Create New Projects\" button\n driver.findElement(By.xpath(\"//form//button[contains(@class, 'btn-primary')]\")).click();\n //Check fields on the \"Add Project\" view\t\"Project Name Status Inherit Global Categories View Status Description\"\n List<String> expCategory = Arrays.asList(new String[]{\"* Project Name\", \"Status\", \"Inherit Global Categories\",\n \"View Status\", \"Description\"});\n List<WebElement> category = driver.findElements(By.className(\"category\"));\n List<String> actCategory = new ArrayList<>();\n for (WebElement categories : category) {\n actCategory.add(categories.getText());\n }\n assertThat(actCategory, equalTo(expCategory));\n //Fill Project inforamtion\n driver.findElement(By.id(\"project-name\")).sendKeys(\"SB\");\n driver.findElement(By.id(\"project-description\")).sendKeys(\"new one\");\n //Add project\n driver.findElement(By.xpath(\"//input[@value='Add Project']\")).click();\n //delete Created class\n driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n driver.findElement(By.xpath(\"//tr//a[contains(text(),'SB')]\")).click();\n driver.findElement(By.xpath(\"//input[@value ='Delete Project']\")).click();\n driver.findElement(By.xpath(\"//input[@value ='Delete Project']\")).click();\n }", "private void initializeProject() {\n newProject.setInputHandler(getProject().getInputHandler());\n \n Iterator iter = getBuildListeners();\n while (iter.hasNext()) {\n newProject.addBuildListener((BuildListener) iter.next());\n }\n \n if (output != null) {\n File outfile = null;\n if (dir != null) {\n outfile = FILE_UTILS.resolveFile(dir, output);\n } else {\n outfile = getProject().resolveFile(output);\n }\n try {\n out = new PrintStream(new FileOutputStream(outfile));\n DefaultLogger logger = new DefaultLogger();\n logger.setMessageOutputLevel(Project.MSG_INFO);\n logger.setOutputPrintStream(out);\n logger.setErrorPrintStream(out);\n newProject.addBuildListener(logger);\n } catch (IOException ex) {\n log(\"Ant: Can't set output to \" + output);\n }\n }\n-\n- getProject().initSubProject(newProject);\n-\n // set user-defined properties\n getProject().copyUserProperties(newProject);\n \n if (!inheritAll) {\n // set Java built-in properties separately,\n // b/c we won't inherit them.\n newProject.setSystemProperties();\n \n } else {\n // set all properties from calling project\n addAlmostAll(getProject().getProperties());\n }\n \n Enumeration e = propertySets.elements();\n while (e.hasMoreElements()) {\n PropertySet ps = (PropertySet) e.nextElement();\n addAlmostAll(ps.getProperties());\n }\n }", "@Override\n\tpublic Integer addProject(ProjectInfo project) {\n\t\treturn sqlSession.insert(\"cn.sep.samp2.project.addProject\", project);\n\t}", "void build(String name, Project project);", "public static Project Create(String id)\n\t{\n\t\t// Need to use an ancestor query to do this inside a transaction.\n\t\t// But the ancestor of project is project.\n\t\t// So we just create a normal key with only the type and id\n\t\tproject = ofy().load().key(Key.create(Project.class, id)).now();\n\n\t\treturn project;\n\t}", "private void createProjectAsync(IProgressMonitor monitor, ProjectInfo mainData, List<ProjectInfo> importData,\n boolean isAndroidProject) throws InvocationTargetException {\n monitor.beginTask(\"Create CMS Descriptor Project\", 100);\n try {\n IProject mainProject = null;\n\n if (mainData != null) {\n mainProject = createEclipseProject(\n new SubProgressMonitor(monitor, 50),\n mainData.getProject(),\n mainData.getDescription(),\n mainData.getParameters(),\n null,\n isAndroidProject);\n if (mainProject != null) {\n final IJavaProject javaProject = JavaCore.create(mainProject);\n }\n }\n } catch (CoreException e) {\n throw new InvocationTargetException(e);\n } catch (IOException e) {\n throw new InvocationTargetException(e);\n } finally {\n monitor.done();\n }\n }", "public RepositoryArtifact createProject(RepositoryConnector connector, String rootFolderId, String projectName, String processDefinitionXml) {\r\n RepositoryArtifact result = null;\r\n try {\r\n ZipInputStream projectTemplateInputStream = new ZipInputStream(getProjectTemplate());\r\n ZipEntry zipEntry = null;\r\n \r\n String rootSubstitution = null;\r\n \r\n while ((zipEntry = projectTemplateInputStream.getNextEntry()) != null) {\r\n String zipName = zipEntry.getName();\r\n if (zipName.endsWith(\"/\")) {\r\n zipName = zipName.substring(0, zipName.length() - 1);\r\n }\r\n String path = \"\";\r\n String name = zipName;\r\n if (zipName.contains(\"/\")) {\r\n path = zipName.substring(0, zipName.lastIndexOf(\"/\"));\r\n name = zipName.substring(zipName.lastIndexOf(\"/\") + 1);\r\n }\r\n if (\"\".equals(path)) {\r\n // root folder is named after the project, not like the\r\n // template\r\n // folder name\r\n rootSubstitution = name;\r\n name = projectName;\r\n } else {\r\n // rename the root folder in all other paths as well\r\n path = path.replace(rootSubstitution, projectName);\r\n }\r\n String absolutePath = rootFolderId + \"/\" + path;\r\n boolean isBpmnModel = false;\r\n if (zipEntry.isDirectory()) {\r\n connector.createFolder(absolutePath, name);\r\n } else {\r\n Content content = new Content();\r\n \r\n if (\"template.bpmn20.xml\".equals(name)) {\r\n // This file shall be replaced with the process\r\n // definition\r\n content.setValue(processDefinitionXml);\r\n name = projectName + \".bpmn20.xml\";\r\n isBpmnModel = true;\r\n log.log(Level.INFO, \"Create processdefinition from Signavio process model \" + projectName);\r\n } else {\r\n byte[] bytes = IoUtil.readInputStream(projectTemplateInputStream, \"ZIP entry '\" + zipName + \"'\");\r\n String txtContent = new String(bytes).replaceAll(REPLACE_STRING, projectName).replaceAll(\"@@ACTIVITI.HOME@@\", ACTIVITI_HOME_PATH);\r\n content.setValue(txtContent);\r\n }\r\n log.log(Level.INFO, \"Create new artifact from zip entry '\" + zipEntry.getName() + \"' in folder '\" + absolutePath + \"' with name '\" + name + \"'\");\r\n RepositoryArtifact artifact = connector.createArtifact(absolutePath, name, null, content);\r\n if (isBpmnModel) {\r\n result = artifact;\r\n }\r\n }\r\n projectTemplateInputStream.closeEntry();\r\n }\r\n projectTemplateInputStream.close();\r\n } catch (IOException ex) {\r\n throw new RepositoryException(\"Couldn't create maven project due to IO errors\", ex);\r\n }\r\n return result;\r\n }", "@When(\"I click on the Create new Project\")\n public void i_click_on_the_create_new_project(){\n\n i_click_on_create_a_new_project();\n }", "Imports createImports();", "public Project procreate(Project pud) throws IOException {\n\t\tString ur = url + \"/procreate\";\n\t\tProject us = restTemplate().postForObject(ur, pud, Project.class);\n\t\tSystem.out.println(us.toString());\n\t\t//UserDetails user = om.readValue(us,UserDetails.class);\n\t\treturn us;\n\t}", "private void convert(IProject project, AcceleoProjectWizard wizard, IProgressMonitor monitor) {\n \t\tString projectName = wizard.newProjectPage.getProjectName();\n \t\tString generatorName = this.computeGeneratorName(projectName);\n \n \t\tAcceleoProject acceleoProject = AcceleowizardmodelFactory.eINSTANCE.createAcceleoProject();\n \t\tacceleoProject.setName(projectName);\n \t\tacceleoProject.setGeneratorName(generatorName);\n \n \t\tList<AcceleoModule> allModules = this.newAcceleoModulesCreationPage.getAllModules();\n \t\tfor (AcceleoModule acceleoModule : allModules) {\n \t\t\tString parentFolder = acceleoModule.getParentFolder();\n \n \t\t\tIProject moduleProject = ResourcesPlugin.getWorkspace().getRoot().getProject(\n \t\t\t\t\tacceleoModule.getProjectName());\n \t\t\tif (moduleProject.exists() && moduleProject.isAccessible()\n \t\t\t\t\t&& acceleoModule.getModuleElement() != null\n \t\t\t\t\t&& acceleoModule.getModuleElement().isIsMain()) {\n \t\t\t\tIPath parentFolderPath = new Path(parentFolder);\n \t\t\t\tIFolder folder = moduleProject.getFolder(parentFolderPath.removeFirstSegments(1));\n \t\t\t\tacceleoProject.getExportedPackages().add(\n \t\t\t\t\t\tfolder.getProjectRelativePath().removeFirstSegments(1).toString().replaceAll(\"/\", //$NON-NLS-1$\n \t\t\t\t\t\t\t\t\"\\\\.\")); //$NON-NLS-1$\n \t\t\t}\n \t\t}\n \t\t// Prepare Ant folder\n \t\tIFolder antTasksFolder = project.getFolder(\"tasks\"); //$NON-NLS-1$\n \t\tif (!antTasksFolder.exists()) {\n \t\t\ttry {\n \t\t\t\tantTasksFolder.create(true, false, monitor);\n \t\t\t} catch (CoreException e) {\n \t\t\t\tAcceleoUIActivator.log(e, true);\n \t\t\t}\n \t\t}\n \n \t\t// Generate files\n \t\ttry {\n \t\t\tIProjectDescription description = project.getDescription();\n \t\t\tString[] natureIds = new String[] {IAcceleoConstants.ACCELEO_NATURE_ID,\n \t\t\t\t\tIAcceleoConstants.PLUGIN_NATURE_ID, IAcceleoConstants.JAVA_NATURE_ID, };\n \t\t\tdescription.setNatureIds(natureIds);\n \t\t\tproject.setDescription(description, monitor);\n \t\t} catch (CoreException e) {\n \t\t\tAcceleoUIActivator.log(e, true);\n \t\t}\n \t\tmonitor.beginTask(AcceleoUIMessages.getString(\"AcceleoNewProjectWizard.Monitor\"), 100); //$NON-NLS-1$\n \t\tmonitor.worked(10);\n \t\tAcceleoUIGenerator.getDefault().generateProjectSettings(acceleoProject, project);\n \t\tmonitor.worked(10);\n \t\tAcceleoUIGenerator.getDefault().generateProjectClasspath(acceleoProject, project);\n \t\tmonitor.worked(10);\n \t\tAcceleoUIGenerator.getDefault().generateProjectManifest(acceleoProject, project);\n \t\tmonitor.worked(10);\n \t\tAcceleoUIGenerator.getDefault().generateBuildProperties(acceleoProject, project);\n \t\tmonitor.worked(10);\n \t\tAcceleoUIGenerator.getDefault().generateActivator(acceleoProject, project);\n \n \t\tfor (AcceleoModule acceleoModule : allModules) {\n \t\t\tmonitor.worked(10);\n \t\t\tString parentFolder = acceleoModule.getParentFolder();\n \n \t\t\tIProject moduleProject = ResourcesPlugin.getWorkspace().getRoot().getProject(\n \t\t\t\t\tacceleoModule.getProjectName());\n \t\t\tif (moduleProject.exists() && moduleProject.isAccessible()) {\n \t\t\t\tIPath parentFolderPath = new Path(parentFolder);\n \t\t\t\tIFolder folder = moduleProject.getFolder(parentFolderPath.removeFirstSegments(1));\n \t\t\t\tAcceleoUIGenerator.getDefault().generateAcceleoModule(acceleoModule, folder);\n \n \t\t\t\tif (acceleoModule.isIsInitialized()) {\n \t\t\t\t\tString initializationKind = acceleoModule.getInitializationKind();\n \t\t\t\t\tIAcceleoInitializationStrategy strategy = null;\n \t\t\t\t\tList<IAcceleoInitializationStrategy> initializationStrategy = AcceleoInitializationStrategyUtils\n \t\t\t\t\t\t\t.getInitializationStrategy();\n \t\t\t\t\tfor (IAcceleoInitializationStrategy iAcceleoInitializationStrategy : initializationStrategy) {\n \t\t\t\t\t\tif (iAcceleoInitializationStrategy.getDescription() != null\n \t\t\t\t\t\t\t\t&& iAcceleoInitializationStrategy.getDescription().equals(initializationKind)) {\n \t\t\t\t\t\t\tstrategy = iAcceleoInitializationStrategy;\n \t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \n \t\t\t\t\tIFile file = folder.getFile(acceleoModule.getName()\n \t\t\t\t\t\t\t+ \".\" + IAcceleoConstants.MTL_FILE_EXTENSION); //$NON-NLS-1$\n \t\t\t\t\tIFile exampleFile = ResourcesPlugin.getWorkspace().getRoot().getFile(\n \t\t\t\t\t\t\tnew Path(acceleoModule.getInitializationPath()));\n \n \t\t\t\t\tString moduleElementKind = IAcceleoInitializationStrategy.TEMPLATE_KIND;\n \t\t\t\t\tif (acceleoModule.getModuleElement().getKind().equals(ModuleElementKind.QUERY)) {\n \t\t\t\t\t\tmoduleElementKind = IAcceleoInitializationStrategy.QUERY_KIND;\n \t\t\t\t\t}\n \n \t\t\t\t\tif (strategy != null && file.exists()) {\n \t\t\t\t\t\ttry {\n \t\t\t\t\t\t\tstrategy.configure(moduleElementKind, acceleoModule.getModuleElement()\n \t\t\t\t\t\t\t\t\t.isGenerateFile(), acceleoModule.getModuleElement().isIsMain(),\n \t\t\t\t\t\t\t\t\tacceleoModule.isGenerateDocumentation());\n \t\t\t\t\t\t\tString content = strategy.getContent(exampleFile, acceleoModule.getName(),\n \t\t\t\t\t\t\t\t\tacceleoModule.getMetamodelURIs(), acceleoModule.getModuleElement()\n \t\t\t\t\t\t\t\t\t\t\t.getParameterType());\n \t\t\t\t\t\t\tByteArrayInputStream javaStream = new ByteArrayInputStream(content\n \t\t\t\t\t\t\t\t\t.getBytes(\"UTF8\")); //$NON-NLS-1$\n \t\t\t\t\t\t\tfile.setContents(javaStream, true, false, new NullProgressMonitor());\n \t\t\t\t\t\t} catch (CoreException e) {\n \t\t\t\t\t\t\tAcceleoUIActivator.log(e, true);\n \t\t\t\t\t\t} catch (UnsupportedEncodingException e) {\n \t\t\t\t\t\t\tAcceleoUIActivator.log(e, true);\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \n \t\t}\n \n \t}", "public Long createProject(ProjectTo projectTo) {\n\t\tprojectTo = new ProjectTo();\n\t\tprojectTo.setOrg_id(1L);\n\t\tprojectTo.setOrg_name(\"AP\");\n\t\tprojectTo.setName(\"Menlo\");\n\t\tprojectTo.setShort_name(\"Pioneer Towers\");\n\t\tprojectTo.setOwner_username(\"Madhapur\");\n\n\t\ttry {\n\t\t\tWebResource webResource = getJerseyClient(userOptixURL + \"CreateProject\");\n\t\t\tprojectTo = webResource.type(MediaType.APPLICATION_JSON).post(ProjectTo.class, projectTo);\n\t\t\tif(projectTo != null && projectTo.getProject_id() != null) {\n\t\t\t\treturn projectTo.getProject_id() ;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error in getting the response from REST call CreateProject : \"+e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "Import createImport();", "Import createImport();", "protected Project createProjectWithClient(long id, Client client) {\n Project project = new Project();\n setAuditableEntity(project);\n project.setActive(true);\n project.setClient(client);\n ProjectStatus projectStatus = createProjectStatus(100000);\n project.setProjectStatus(projectStatus);\n project.setId(id);\n project.setCompany(client.getCompany());\n\n // persist object\n Query query = entityManager\n .createNativeQuery(\"insert into project (project_id, project_status_id, client_id, \"\n + \"company_id,name,active,sales_tax,po_box_number,payment_terms_id,\"\n + \"description,creation_date,creation_user,modification_date,\"\n + \"modification_user,is_deleted,is_manual_prize_setting)\"\n + \" values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)\");\n int idx = 1;\n query.setParameter(idx++, project.getId());\n query.setParameter(idx++, project.getProjectStatus().getId());\n query.setParameter(idx++, project.getClient().getId());\n query.setParameter(idx++, project.getCompany().getId());\n query.setParameter(idx++, project.getName());\n query.setParameter(idx++, project.isActive());\n query.setParameter(idx++, project.getSalesTax());\n query.setParameter(idx++, project.getPOBoxNumber());\n query.setParameter(idx++, project.getPaymentTermsId());\n query.setParameter(idx++, project.getDescription());\n query.setParameter(idx++, project.getCreateDate());\n query.setParameter(idx++, project.getCreateUsername());\n query.setParameter(idx++, project.getModifyDate());\n query.setParameter(idx++, project.getModifyUsername());\n query.setParameter(idx++, 0);\n query.setParameter(idx++, 0);\n query.executeUpdate();\n\n query = entityManager\n .createNativeQuery(\"insert into client_project (project_id, client_id) values (?,?)\");\n idx = 1;\n query.setParameter(idx++, project.getId());\n query.setParameter(idx++, project.getClient().getId());\n query.executeUpdate();\n \n return project;\n }", "public void addProjectAction() throws IOException {\n\t\tfinal FXMLSpringLoader loader = new FXMLSpringLoader(appContext);\n\t\tfinal Dialog<Project> dialog = loader.load(\"classpath:view/Home_AddProjectDialog.fxml\");\n\t\tdialog.initOwner(addProject.getScene().getWindow());\n\t\tfinal Optional<Project> result = dialog.showAndWait();\n\t\tif (result.isPresent()) {\n\t\t\tlogger.trace(\"dialog 'add project' result: {}\", result::get);\n\t\t\tprojectsObservable.add(result.get());\n\t\t}\n\t}", "public Project parseNewProject(String projectName, String directoryPath) {\n ProjectBuilder projectBuilder = new ProjectBuilder(projectName);\n\n List<Issue> issueList = issueParser.parseRepoData(projectName, directoryPath);\n List<PullRequest> pullRequestList = pullRequestParser.parseRepoData(projectName, directoryPath, projectBuilder);\n projectBuilder.issues(issueList);\n projectBuilder.pullRequests(pullRequestList);\n projectBuilder.closedIssues(issueParser.getClosedIssues(issueList));\n\n commitParser.parseCommits(projectName, directoryPath, projectBuilder);\n\n Project project = projectBuilder.build();\n\n\n TrainingSetBuilder trainingSetBuilder = new TrainingSetBuilder(directoryPath);\n trainingSetBuilder.createFile(project);\n\n\n DefectPrediction defectPrediction = new DefectPrediction(projectName);\n defectPrediction.evaluateClassifierAndPredict(directoryPath + \"/training.arff\", directoryPath + \"/test.arff\");\n databaseService.saveDefectPrediction(defectPrediction);\n project.setDefectPrediction(defectPrediction);\n databaseService.saveProject(project);\n LOGGER.log(Level.INFO, () -> \"Parsing completed with \" + project.getNumberOfCommits() + \" commits and \" +\n project.getNumberOfIssues() + \" issues\");\n return project;\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\tpublic void saveProjects() throws ParseException {\n\t\tproject.setEstimates(5);\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyyMMdd\");\n\t\tDate parsed = format.parse(\"20110210\");\n\t\tjava.sql.Date sql = new java.sql.Date(parsed.getTime());\n\t\tproject.setdRequested(sql);\n\t\tproject.setdRequired(sql);\n\t\tproject.setCritical(true);\n\t\tproject.setType(\"DOCSMANAGE\");\n\t\tProjectKeyContacts contacts = new ProjectKeyContacts();\n\t\tcontacts.setEmail(\"assdasd.gmail.com\");\n\t\tcontacts.setFname(\"sdsd\");\n\t\tcontacts.setLname(\"asdasd\");\n\t\tcontacts.setPhone(\"asd\");\n\t\tcontacts.setRole(\"asda\");\n\t\tcontacts.setTeam(\"saad\");\n\t\tproject.setContacts(contacts);\n\t\tProjectDetails det = new ProjectDetails();\n\t\tdet.setDescription(\"asdsd\");\n\t\tdet.setName(\"asd\");\n\t\tdet.setName(\"asdad\");\n\t\tdet.setSummary(\"asdd\");\n\t\tproject.setProjectDetails(det);\n\t\tproject.setType(\"DOCSMANAGE\");\n\t\tassertEquals(controller.saveProject(project).getStatusCode(), HttpStatus.CREATED);\n\t}", "@Test\n\tpublic void createCDIProjectWithoutBeansXml(){\n\t\tCDIProjectWizard cw = new CDIProjectWizard();\n\t\tcw.open();\n\t\tWebProjectFirstPage fp = new WebProjectFirstPage();\n\t\tfp.setProjectName(PROJECT_NAME);\n\t\tassertEquals(sr.getRuntimeNameLabelText(sr.getConfig()),fp.getTargetRuntime());\n\t\tassertEquals(\"Dynamic Web Project with CDI \"+CDIVersion+\" (Context and Dependency Injection)\",fp.getConfiguration());\n\t\tcw.next();\n\t\tcw.next();\n\t\tcw.next();\n\t\tCDIInstallWizardPage ip = new CDIInstallWizardPage();\n\t\tip.toggleCreateBeansXml(false);\n\t\tcw.finish();\n\t\tisCDISupportEnabled(PROJECT_NAME);\n\t\tisCDIFacetEnabled(PROJECT_NAME, CDIVersion);\n\t\tProjectExplorer pe = new ProjectExplorer();\n\t\tpe.open();\n\t\tassertTrue(pe.containsProject(PROJECT_NAME));\n\t\tassertFalse(pe.getProject(PROJECT_NAME).containsItem(\"WebContent\",\"WEB-INF\",\"beans.xml\"));\n\t\tnew WaitUntil(new ProblemExists(ProblemType.ANY), TimePeriod.LONG, false);\n\t\tif(CDIVersion.equals(\"1.0\")){\n\t\t\tassertFalse(new ProblemExists(ProblemType.ANY).test());\n\t\t} else {\n\t\t\tnew WaitWhile(new ProblemExists(ProblemType.ANY));\n\t\t}\n\t}", "public Project(String name) {\n this.name = name;\n }", "public void createPackageContents() {\n\t\tif (isCreated)\n\t\t\treturn;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tprojectEClass = createEClass(PROJECT);\n\t\tcreateEReference(projectEClass, PROJECT__PLUGINS);\n\t\tcreateEAttribute(projectEClass, PROJECT__NAME);\n\t\tcreateEReference(projectEClass, PROJECT__REPOSITORIES);\n\t\tcreateEReference(projectEClass, PROJECT__DEPENDENCIES);\n\t\tcreateEReference(projectEClass, PROJECT__VIEWS);\n\t\tcreateEReference(projectEClass, PROJECT__PROPERTIES);\n\n\t\tpluginEClass = createEClass(PLUGIN);\n\t\tcreateEReference(pluginEClass, PLUGIN__REPOSITORIES);\n\t\tcreateEReference(pluginEClass, PLUGIN__OUTPUT_PORTS);\n\t\tcreateEReference(pluginEClass, PLUGIN__DISPLAYS);\n\n\t\tportEClass = createEClass(PORT);\n\t\tcreateEAttribute(portEClass, PORT__NAME);\n\t\tcreateEAttribute(portEClass, PORT__EVENT_TYPES);\n\t\tcreateEAttribute(portEClass, PORT__ID);\n\n\t\tinputPortEClass = createEClass(INPUT_PORT);\n\t\tcreateEReference(inputPortEClass, INPUT_PORT__PARENT);\n\n\t\toutputPortEClass = createEClass(OUTPUT_PORT);\n\t\tcreateEReference(outputPortEClass, OUTPUT_PORT__SUBSCRIBERS);\n\t\tcreateEReference(outputPortEClass, OUTPUT_PORT__PARENT);\n\n\t\tpropertyEClass = createEClass(PROPERTY);\n\t\tcreateEAttribute(propertyEClass, PROPERTY__NAME);\n\t\tcreateEAttribute(propertyEClass, PROPERTY__VALUE);\n\n\t\tfilterEClass = createEClass(FILTER);\n\t\tcreateEReference(filterEClass, FILTER__INPUT_PORTS);\n\n\t\treaderEClass = createEClass(READER);\n\n\t\trepositoryEClass = createEClass(REPOSITORY);\n\n\t\tdependencyEClass = createEClass(DEPENDENCY);\n\t\tcreateEAttribute(dependencyEClass, DEPENDENCY__FILE_PATH);\n\n\t\trepositoryConnectorEClass = createEClass(REPOSITORY_CONNECTOR);\n\t\tcreateEAttribute(repositoryConnectorEClass, REPOSITORY_CONNECTOR__NAME);\n\t\tcreateEReference(repositoryConnectorEClass, REPOSITORY_CONNECTOR__REPOSITORY);\n\t\tcreateEAttribute(repositoryConnectorEClass, REPOSITORY_CONNECTOR__ID);\n\n\t\tdisplayEClass = createEClass(DISPLAY);\n\t\tcreateEAttribute(displayEClass, DISPLAY__NAME);\n\t\tcreateEReference(displayEClass, DISPLAY__PARENT);\n\t\tcreateEAttribute(displayEClass, DISPLAY__ID);\n\n\t\tviewEClass = createEClass(VIEW);\n\t\tcreateEAttribute(viewEClass, VIEW__NAME);\n\t\tcreateEAttribute(viewEClass, VIEW__DESCRIPTION);\n\t\tcreateEReference(viewEClass, VIEW__DISPLAY_CONNECTORS);\n\t\tcreateEAttribute(viewEClass, VIEW__ID);\n\n\t\tdisplayConnectorEClass = createEClass(DISPLAY_CONNECTOR);\n\t\tcreateEAttribute(displayConnectorEClass, DISPLAY_CONNECTOR__NAME);\n\t\tcreateEReference(displayConnectorEClass, DISPLAY_CONNECTOR__DISPLAY);\n\t\tcreateEAttribute(displayConnectorEClass, DISPLAY_CONNECTOR__ID);\n\n\t\tanalysisComponentEClass = createEClass(ANALYSIS_COMPONENT);\n\t\tcreateEAttribute(analysisComponentEClass, ANALYSIS_COMPONENT__NAME);\n\t\tcreateEAttribute(analysisComponentEClass, ANALYSIS_COMPONENT__CLASSNAME);\n\t\tcreateEReference(analysisComponentEClass, ANALYSIS_COMPONENT__PROPERTIES);\n\t\tcreateEAttribute(analysisComponentEClass, ANALYSIS_COMPONENT__ID);\n\t}", "public ApiProject() {\n super();\n }", "@PostMapping(\"/projects\")\n @Timed\n public ResponseEntity<ProjectDTO> createProject(@Valid @RequestBody ProjectDTO projectDto)\n throws URISyntaxException, NotAuthorizedException {\n log.debug(\"REST request to save Project : {}\", projectDto);\n var org = projectDto.getOrganization();\n if (org == null || org.getName() == null) {\n throw new BadRequestException(\"Organization must be provided\",\n ENTITY_NAME, ERR_VALIDATION);\n }\n checkPermissionOnOrganization(token, PROJECT_CREATE, org.getName());\n\n if (projectDto.getId() != null) {\n return ResponseEntity.badRequest()\n .headers(HeaderUtil.createFailureAlert(\n ENTITY_NAME, \"idexists\", \"A new project cannot already have an ID\"))\n .body(null);\n }\n if (projectRepository.findOneWithEagerRelationshipsByName(projectDto.getProjectName())\n .isPresent()) {\n return ResponseEntity.badRequest()\n .headers(HeaderUtil.createFailureAlert(\n ENTITY_NAME, \"nameexists\", \"A project with this name already exists\"))\n .body(null);\n }\n ProjectDTO result = projectService.save(projectDto);\n return ResponseEntity.created(ResourceUriService.getUri(result))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getProjectName()))\n .body(result);\n }" ]
[ "0.81843853", "0.809506", "0.809506", "0.809506", "0.7919415", "0.7473316", "0.7171584", "0.7136024", "0.7133201", "0.70132124", "0.67498016", "0.6716387", "0.6675287", "0.6625159", "0.65890276", "0.65607333", "0.65589905", "0.6534191", "0.6448492", "0.6441394", "0.6424755", "0.6420323", "0.640194", "0.63871384", "0.6381318", "0.635697", "0.6353423", "0.63502127", "0.6341992", "0.6334684", "0.6333742", "0.6333742", "0.6298777", "0.6295971", "0.6290123", "0.628951", "0.62587315", "0.6250249", "0.62486833", "0.62481654", "0.6233728", "0.62308013", "0.6222559", "0.6220859", "0.6215486", "0.62029535", "0.619719", "0.6191585", "0.61590075", "0.6153123", "0.61506087", "0.6150455", "0.61433536", "0.6138426", "0.61370033", "0.6127146", "0.6114064", "0.60770303", "0.60720485", "0.60628635", "0.60601395", "0.6059653", "0.6043447", "0.6039233", "0.602061", "0.6019185", "0.60117793", "0.60067993", "0.59981805", "0.5996241", "0.5982544", "0.5970159", "0.59553504", "0.5941802", "0.5939349", "0.5938066", "0.59320146", "0.5922692", "0.5918799", "0.59141356", "0.59109336", "0.5898853", "0.589265", "0.5892576", "0.58866227", "0.58861846", "0.5884772", "0.5884077", "0.58596635", "0.58596635", "0.58205754", "0.5806795", "0.5803255", "0.5800333", "0.57901436", "0.57890934", "0.5788151", "0.578492", "0.57792467", "0.5770377" ]
0.6674885
13
Method exports project annoatated classes
public boolean exportClasses(File target) { if (projectData != null){ return exportClasses.exportAnnotatedClasses(projectData, target); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Annotations getClassAnnotations();", "@Override\n\tpublic void annotate(JDefinedClass cls) {\n\n\t}", "Set<Class<?>> getClassSetByAnnotation(String packageName, Class<? extends Annotation> annotationClass);", "protected JBuilderRenameClassRefactoring()\n\t{\n\t\tsuper();\n\t}", "public void testClassAnnotation() {\r\n TestHelper.assertClassAnnotation(ConfluenceManagementServiceLocal.class, Local.class);\r\n }", "public static void main(String[] args) {\n\n Annotation[] annotations1 = B.class.getAnnotations();\n }", "private void readClasses(SB_SingletonBook book) throws SB_FileException\r\n\t{\r\n\t for (Class javaClass : SB_ClassMap.getBaseJavaClasses()) {\r\n\t addJavaClass(book, javaClass.getSimpleName(), javaClass.getName());\r\n\t }\r\n\t \r\n\t List<String> importedClasses = _dataModel.getJavaScript().getImportedJavaClasses();\r\n\t\tfor( String javaClassName : importedClasses) {\r\n\t\t\tString classPackage = javaClassName;\r\n\t\t\tString className = javaClassName.substring(javaClassName.lastIndexOf('.') + 1);\r\n\t\t\taddJavaClass(book, className, classPackage);\r\n\t }\r\n\t\t\r\n\t\t//Now that all classes read in, convert class descriptions\r\n\t\ttry\r\n\t\t{\r\n\t\t book.getUserClassMap().convertClassDescriptions(book);\r\n\t\t}\r\n\t\tcatch(SB_Exception ex)\r\n\t\t{\r\n\t\t throw new SB_FileException(ex.toString());\r\n\t\t}\r\n\t}", "Object yangAugmentedInfo(Class classObject);", "Object yangAugmentedInfo(Class classObject);", "Imports createImports();", "Set<? extends Class<? extends Annotation>> annotations();", "private AnnotatedTypes() { throw new AssertionError(\"Class AnnotatedTypes cannot be instantiated.\");}", "private Map<String, SkylarkModuleDoc> collectTypes() throws ClassPathException {\n return SkylarkDocumentationCollector.collectModules(\n Classpath.findClasses(MODULES_PACKAGE_PREFIX));\n }", "@Override\n public void visitClass(@NotNull PsiClass aClass) {\n }", "public List<Iannotation> getClassesAnnotations(String name) {\n\n return projectData.getClassesAnnotations(name);\n }", "public abstract List<String> scanAllClassNames();", "@Override\n\tpublic void attendClass() {\n\t\tSystem.out.println(\"Attanding class locally\");\n\t}", "public Map<String, AClassDecl> basicClasses() {\n\t\tLinkedList<PFeature> featList;\n\t\tLinkedList<PFormal> formalList;\n\t\tPFeature pf;\n\t\t\n\t\tfeatList = new LinkedList<PFeature>();\n\t\t\n\t\tpf = new AMethodFeature(\n\t\t\t\tnew TObjectId(\"abort\"),\n\t\t\t\tnew LinkedList<PFormal>(),\n\t\t\t\tnew TTypeId(\"Object\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\t\t\n\t\tfeatList.add(pf);\n\t\t\n\t\tpf = new AMethodFeature(\n\t\t\t\tnew TObjectId(\"type_name\"),\n\t\t\t\tnew LinkedList<PFormal>(),\n\t\t\t\tnew TTypeId(\"String\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\n\t\tfeatList.add(pf);\n\t\t\n\t\tpf = new AMethodFeature(\n\t\t\t\tnew TObjectId(\"copy\"),\n\t\t\t\tnew LinkedList<PFormal>(),\n\t\t\t\tnew TTypeId(\"SELF_TYPE\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\n\t\tfeatList.add(pf);\n\t\t\n\t\tAClassDecl ObjectClass = new AClassDecl(\n\t\t\t\tnew TTypeId(\"Object\"),\n\t\t\t\tnew TTypeId(\"_no_class\"),\n\t\t\t\tfeatList\n\t\t\t\t);\n\t\t\n\t\t// The IO class inherits from Object. Its methods are\n\t\t// out_string(Str) : SELF_TYPE writes a string to the output\n\t\t// out_int(Int) : SELF_TYPE \" an int \" \" \"\n\t\t// in_string() : Str reads a string from the input\n\t\t// in_int() : Int \" an int \" \" \"\n\t\tfeatList = new LinkedList<PFeature>();\n\t\t\n\t\tformalList = new LinkedList<PFormal>();\t\t\n\t\tformalList.add(new AFormal(new TObjectId(\"arg\"), new TTypeId(\"String\")));\t\t\n\t\tpf = new AMethodFeature(\n\t\t\t\tnew TObjectId(\"out_string\"),\n\t\t\t\tformalList,\n\t\t\t\tnew TTypeId(\"SELF_TYPE\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\t\t\n\t\tfeatList.add(pf);\n\n\t\tformalList = new LinkedList<PFormal>();\t\t\n\t\tformalList.add(new AFormal(new TObjectId(\"arg\"), new TTypeId(\"Int\")));\n\t\tpf = new AMethodFeature(\n\t\t\t\tnew TObjectId(\"out_int\"),\n\t\t\t\tformalList,\n\t\t\t\tnew TTypeId(\"SELF_TYPE\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\t\t\n\t\tfeatList.add(pf);\n\n\t\tformalList = new LinkedList<PFormal>();\n\t\tpf = new AMethodFeature(\n\t\t\t\tnew TObjectId(\"in_string\"),\n\t\t\t\tformalList,\n\t\t\t\tnew TTypeId(\"String\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\t\t\n\t\tfeatList.add(pf);\n\n\t\tpf = new AMethodFeature(\n\t\t\t\tnew TObjectId(\"in_int\"),\n\t\t\t\tformalList,\n\t\t\t\tnew TTypeId(\"Int\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\t\t\n\t\tfeatList.add(pf);\n\n\t\tAClassDecl IOClass = new AClassDecl(\n\t\t\t\tnew TTypeId(\"IO\"),\n\t\t\t\tnew TTypeId(\"Object\"),\n\t\t\t\tfeatList\n\t\t\t\t);\n\n\n\t\t// The Int class has no methods and only a single attribute, the\n\t\t// \"val\" for the integer.\n\t\tfeatList = new LinkedList<PFeature>();\n\t\tpf = new AAttributeFeature(\n\t\t\t\tnew TObjectId(\"_val\"),\n\t\t\t\tnew TTypeId(\"_prim_slot\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\t\t\n\t\tfeatList.add(pf);\n\t\t\n\t\tAClassDecl IntClass = new AClassDecl(\n\t\t\t\tnew TTypeId(\"Int\"),\n\t\t\t\tnew TTypeId(\"Object\"),\n\t\t\t\tfeatList\n\t\t\t\t);\n\n\t\t// Bool also has only the \"val\" slot.\n\t\tfeatList = new LinkedList<PFeature>();\n\t\tpf = new AAttributeFeature(\n\t\t\t\tnew TObjectId(\"_val\"),\n\t\t\t\tnew TTypeId(\"_prim_slot\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\t\t\n\t\tfeatList.add(pf);\n\t\t\n\t\tAClassDecl BoolClass = new AClassDecl(\n\t\t\t\tnew TTypeId(\"Bool\"),\n\t\t\t\tnew TTypeId(\"Object\"),\n\t\t\t\tfeatList\n\t\t\t\t);\n\n\t\t// The class Str has a number of slots and operations:\n\t\t// val the length of the string\n\t\t// str_field the string itself\n\t\t// length() : Int returns length of the string\n\t\t// concat(arg: Str) : Str performs string concatenation\n\t\t// substr(arg: Int, arg2: Int): Str substring selection\n\t\tfeatList = new LinkedList<PFeature>();\n\t\tpf = new AAttributeFeature(\n\t\t\t\tnew TObjectId(\"_val\"),\n\t\t\t\tnew TTypeId(\"_prim_slot\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\t\t\n\t\tfeatList.add(pf);\n\n\t\tpf = new AAttributeFeature(\n\t\t\t\tnew TObjectId(\"_str_field\"),\n\t\t\t\tnew TTypeId(\"_prim_slot\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\t\t\n\t\tfeatList.add(pf);\n\t\t\n\t\tpf = new AMethodFeature(\n\t\t\t\tnew TObjectId(\"length\"),\n\t\t\t\tnew LinkedList<PFormal>(),\n\t\t\t\tnew TTypeId(\"Int\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\n\t\tfeatList.add(pf);\t\t\n\n\t\tformalList = new LinkedList<PFormal>();\n\t\tformalList.add(new AFormal(new TObjectId(\"arg\"), new TTypeId(\"String\")));\n\t\tpf = new AMethodFeature(\n\t\t\t\tnew TObjectId(\"concat\"),\n\t\t\t\tformalList,\n\t\t\t\tnew TTypeId(\"String\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\t\t\n\t\tfeatList.add(pf);\n\n\t\tformalList = new LinkedList<PFormal>();\n\t\tformalList.add(new AFormal(new TObjectId(\"arg\"), new TTypeId(\"Int\")));\n\t\tformalList.add(new AFormal(new TObjectId(\"arg2\"), new TTypeId(\"Int\")));\n\t\tpf = new AMethodFeature(\n\t\t\t\tnew TObjectId(\"substr\"),\n\t\t\t\tformalList,\n\t\t\t\tnew TTypeId(\"String\"),\n\t\t\t\tnew ANoExpr()\n\t\t\t\t);\t\t\n\t\tfeatList.add(pf);\n\t\t\n\t\t\n\t\tAClassDecl StringClass = new AClassDecl(\n\t\t\t\tnew TTypeId(\"String\"),\n\t\t\t\tnew TTypeId(\"Object\"),\n\t\t\t\tfeatList\n\t\t\t\t);\n\t\t\n\n\t\t/*\n\t\t * Do something with Object_class, IO_class, Int_class, Bool_class, and\n\t\t * Str_class here \n\t\t * \n\t\t */\n\n\t\tMap<String, AClassDecl> map = new TreeMap<String, AClassDecl>();\n\t\t\t\tOBJECT = new Klass();\n\t\t\t\tOBJECT.name = \"Object\";\n\t\t\t\tOBJECT.parent = null;\n\t\t\t\tOBJECT.methods = null;\n\t\t \t\tOBJECT.vars = null;\n\t\t \t\t\n\t\t \t\tIO = new Klass();\n\t\t \t\tIO.name = \"IO\";\n\t\t \t\tIO.parent = OBJECT;\n\n\t\t \t\t\n\t\t \t\tINT = new Klass();\n\t\t \t\tINT.name = \"Int\";\n\t\t \t\tINT.parent = OBJECT;\n\n\t\t \t\t\n\t\t \t\tBOOL = new Klass();\n\t\t \t\tBOOL.name = \"Bool\";\n\t\t \t\tBOOL.parent = OBJECT;\n\n\t\t\t\t\n\t\t \t\tSTR = new Klass();\n\t\t\t\tSTR.name =\"String\";\n\t\t\t\tSTR.parent = OBJECT;\n\n\t\t\t\t\n\t\t\t\tERROR = new Klass();\n\t\t\t\tERROR.name = \"ERROR\";\n\t\t\t\tERROR.parent = OBJECT;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tVOID = new Klass();\n\t\t\t\tVOID.name = \"VOID\";\n\t\t\t\tVOID.parent = OBJECT;\n\n\t\t\t\tklasses.put(\"Object\", OBJECT);\n\t\t\t\tklasses.put(\"IO\", IO);\n\t\t\t\tklasses.put(\"Int\", INT);\n\t\t\t\tklasses.put(\"Bool\", BOOL);\n\t\t\t klasses.put(\"String\", STR);\n\t\t\t\t\n\t\tmap.put(\"Object\", ObjectClass);\n\t\tmap.put(\"IO\", IOClass);\n\t\tmap.put(\"Int\", IntClass);\n\t\tmap.put(\"Bool\", BoolClass);\n\t\tmap.put(\"String\", StringClass);\n\t\t\n\t\treturn map;\n\t\t\n\t}", "private TypeMirror[] readCustomConverterClasses(Element classElement) {\n AnnotationMirror annotationMirror = null;\n for (AnnotationMirror candidate : classElement.getAnnotationMirrors()) {\n if (context.getClassUtils().isSame(candidate.getAnnotationType(), NamingStrategy.class)) {\n annotationMirror = candidate;\n break;\n }\n }\n assert annotationMirror != null; // We've checked that in the caller already\n\n for (Map.Entry<? extends ExecutableElement, ? extends AnnotationValue> entry :\n annotationMirror.getElementValues().entrySet()) {\n if (entry.getKey().getSimpleName().contentEquals(\"customConverterClass\")) {\n @SuppressWarnings(\"unchecked\")\n List<? extends AnnotationValue> values = (List) entry.getValue().getValue();\n TypeMirror[] result = new TypeMirror[values.size()];\n for (int i = 0; i < values.size(); i++) {\n result[i] = ((TypeMirror) values.get(i).getValue());\n }\n return result;\n }\n }\n return new TypeMirror[0];\n }", "AnnotationProvider getClassAnnotationProvider();", "public ClassAnnotationMetaDataFilter(Class<?>[] annos) {\n _annos = new HashSet<>();\n for (Class<?> anno : annos) {\n _annos.add(Type.getDescriptor(anno));\n }\n }", "public ClassDoc[] specifiedClasses() {\n // System.out.println(\"RootDoc.specifiedClasses() called.\");\n // return specClasses.values().toArray(new ClassDoc[0]);\n\n // index.html lists classes returned from specifiedClasses; return the\n // set of classes in specClasses that are\n // included as per access mod filter\n return classes();\n }", "public Framework_annotation<T> build_normal();", "IClassDefinition[] resolveAncestry(ICompilerProject project);", "public abstract Annotations mo30682c();", "protected abstract void generateClassFiles(ClassDoc[] arr, ClassTree classtree);", "@Ignore\n @Test\n public void discoverSeveralTypes() throws Exception {\n }", "public abstract Class<?>[] getCoClasses();", "public interface ClassAccessorElementTypes\n{\n\tIElementType RESERVED_MK_RO_ACCESSORS = new ClassAccessorSubElementType(\"MK_RO_ACCESSORS\");\n\tIElementType RESERVED_MK_WO_ACCESSORS = new ClassAccessorSubElementType(\"MK_WO_ACCESSORS\");\n\tIElementType RESERVED_MK_ACCESSORS = new ClassAccessorSubElementType(\"MK_ACCESSORS\");\n\tIElementType RESERVED_FOLLOW_BEST_PRACTICE = new ClassAccessorSubElementType(\"FOLLOW_BEST_PRACTICE\")\n\t{\n\t\t@NotNull\n\t\t@Override\n\t\tpublic ASTNode createLeafNode(CharSequence leafText)\n\t\t{\n\t\t\treturn new PerlClassAccessorFollowBestPracticeImpl(this, leafText);\n\t\t}\n\t};\n\n\tIElementType CLASS_ACCESSOR_DECLARATION = new ClassAccessorDeclarationStubElementType(\"CLASS_ACCESSOR_DECLARATION\");\n}", "public Framework_annotation<T> build_annotation();", "private void addClassAnnotation(List<Iannotation> annotations, String packageName, String className) {\n\n FileSavedAnnotClass annotClass;\n\n for (Iannotation item: annotations) {\n\n if (item.isChangen()) {\n\n if (item.isParam()) {\n\n annotClass = new FileSavedAnnotClass(packageName, className, item.getName(), item.getValue());\n } else {\n \n annotClass = new FileSavedAnnotClass(packageName, className, item.getName(), null);\n }\n\n saveAnnotaion.add(annotClass);\n }\n }\n }", "public String[] getClassesToCompile();", "public void testFullyQualified(){ \n // when I do this, I need to change the regex as EITHER\n // \n $anno $a = $anno.of(R.class);\n \n @draft.java.proto.SannoTest.R\n class C{} \n _class _c = _class.of(C.class); \n assertNotNull( $a.firstIn(_c) );\n \n @R\n class D{} \n _class _d = _class.of(D.class); \n assertNotNull( $a.firstIn(_d) ); \n }", "@NotNull\n List<? extends ClassInfo> getAllClasses();", "@Override\n\tpublic void buildConstants(JDefinedClass cls) {\n\n\t}", "@BeforeAll\n public static void beforeClass() {\n scanResult = new ClassGraph()\n .acceptPackages(RetentionPolicyForFunctionParameterAnnotationsTest.class.getPackage().getName())\n .enableAllInfo().scan();\n classInfo = scanResult.getClassInfo(RetentionPolicyForFunctionParameterAnnotationsTest.class.getName());\n }", "TopLevelImport createTopLevelImport();", "public ClassAnnotationMetaDataFilter(Class<?> anno) {\n this(new Class[]{ anno });\n }", "@NotNull\n List<? extends ClassInfo> getClasses();", "public interface PackageScanner {\n String FILE_SUFFIX = \".class\";\n\n /**\n * Find target element blow package except two class name.\n *\n * @param packageName\n * @param except\n * @param except2\n * @return\n * @throws IOException\n */\n Set<String> classNames(String packageName, String except, String except2) throws Exception;\n\n /**\n * Find target element blow package except single class name.\n *\n * @param packageName\n * @param except\n * @return\n * @throws IOException\n */\n Set<String> classNames(String packageName, String except) throws Exception;\n\n /**\n * Scanning target class blow package except @param except and @param except2 class.\n *\n * @param packageName\n * @param except\n * @param except2\n * @return\n */\n Set<?> scan(String packageName, Class<?> except, Class<?> except2) throws Exception;\n\n /**\n * Scanning target class blow package except @param except class.\n *\n * @param packageName\n * @param except\n * @return\n */\n Set<?> scan(String packageName, Class<?> except) throws Exception;\n\n /**\n * Instantiation a class set.\n *\n * @param classNames\n * @return\n */\n Set<?> instantiation(Set<String> classNames, Class<?> tClass) throws IOException;\n}", "default @NonNull ClassElement[] getClassElements(@NonNull String aPackage, @NonNull String... stereotypes) {\n return new ClassElement[0];\n }", "protected abstract Result createClasses( Outline outline, CClassInfo bean );", "private ClassUtil() {}", "protected void parseClassElements(TypeDeclaration argType,\r\n\t\t\tIClassCodeGenConfig argDaoConfig,\r\n\t\t\tMap<String, String> argImportClasses) {\r\n\t\tList<BodyDeclaration> bodys = argType.getMembers();\r\n\t\tif (bodys != null) {\r\n\r\n\t\t\t// Get DO class name.\r\n\t\t\tString doPackagePath = getRelativePackageForClass(\r\n\t\t\t\t\targDaoConfig.getPackagePath(), CODEGEN_DO_PACKAGE_PATH);\r\n\t\t\tString doName = getDOName(argDaoConfig.getName());\r\n\t\t\tString doClassName = doPackagePath + \".\" + doName;\r\n\r\n\t\t\tfor (BodyDeclaration bodyDeclar : bodys) {\r\n\t\t\t\tif (bodyDeclar instanceof MethodDeclaration) {\r\n\r\n\t\t\t\t\tMethodDeclaration md = (MethodDeclaration) bodyDeclar;\r\n\r\n\t\t\t\t\t// method's name\r\n\t\t\t\t\tString methodName = md.getName();\r\n\r\n\t\t\t\t\t// comment's map\r\n\t\t\t\t\tMap<String, String> commentsMap = getCommentForClassElement(md);\r\n\r\n\t\t\t\t\tMethodConfig methodConfig = new MethodConfig();\r\n\t\t\t\t\tmethodConfig.setName(methodName);\r\n\r\n\t\t\t\t\t// add annotations for the method\r\n\t\t\t\t\taddAnnotationForConfig(md.getAnnotations(), methodConfig);\r\n\r\n\t\t\t\t\tString returnType = getReturnType(methodConfig, doClassName);\r\n\t\t\t\t\tString mdReturnType = md.getType().toString();\r\n\r\n\t\t\t\t\tif (!StringUtils.isEmpty(returnType)) {\r\n\t\t\t\t\t\treturnType = getClassNameFromImportClasses(returnType,\r\n\t\t\t\t\t\t\t\targImportClasses);\r\n\t\t\t\t\t\tmethodConfig.setReturnType(returnType);\r\n\t\t\t\t\t\targDaoConfig.setOverride();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\treturnType = getClassNameFromImportClasses(\r\n\t\t\t\t\t\t\t\tmdReturnType, argImportClasses);\r\n\t\t\t\t\t\tmethodConfig.setReturnType(mdReturnType);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// add import class for all elements in class.\r\n\t\t\t\t\taddImportClassForConfig(methodConfig, returnType,\r\n\t\t\t\t\t\t\targImportClasses);\r\n\r\n\t\t\t\t\t// Set method's comment and return's comment.\r\n\t\t\t\t\tCommentConfig methodComment = new CommentConfig();\r\n\t\t\t\t\tmethodComment.setValue(commentsMap.get(METHOD_COMMENT));\r\n\t\t\t\t\tmethodConfig.setConfigObject(CommentConfig.MAIN_TAG,\r\n\t\t\t\t\t\t\tmethodComment);\r\n\t\t\t\t\tmethodConfig.setReturnComment(commentsMap\r\n\t\t\t\t\t\t\t.get(RETURN_COMMENT));\r\n\r\n\t\t\t\t\tparseParameters(md, methodConfig, commentsMap, doClassName,\r\n\t\t\t\t\t\t\targDaoConfig, argImportClasses);\r\n\r\n\t\t\t\t\tparseExceptions(md, argDaoConfig, methodConfig,\r\n\t\t\t\t\t\t\tcommentsMap, doClassName);\r\n\r\n\t\t\t\t\tBlockStmt body = md.getBody();\r\n\t\t\t\t\tif (body != null) {\r\n\t\t\t\t\t\tString statement = body.toString();\r\n\t\t\t\t\t\tif (!StringUtils.isEmpty(statement)) {\r\n\t\t\t\t\t\t\tBodyConfig bodyConfig = new BodyConfig();\r\n\t\t\t\t\t\t\tstatement = CodeGenUtils.clearBrace(statement);\r\n\t\t\t\t\t\t\tbodyConfig.setValue(statement);\r\n\t\t\t\t\t\t\tmethodConfig.setConfigObject(BodyConfig.MAIN_TAG,\r\n\t\t\t\t\t\t\t\t\tbodyConfig);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// add default exception\r\n\t\t\t\t\t// addDefaultException(methodConfig,\r\n\t\t\t\t\t// CODEGEN_DAO_DEFAULT_EXCEPTION);\r\n\r\n\t\t\t\t\tmethodConfig.clearAnnotations();\r\n\r\n\t\t\t\t\t// add method configuration into the daoConfig\r\n\t\t\t\t\targDaoConfig.setConfigObject(MethodConfig.MAIN_TAG,\r\n\t\t\t\t\t\t\tmethodConfig);\r\n\t\t\t\t} else if (bodyDeclar instanceof FieldDeclaration) {\r\n\t\t\t\t\tFieldConfig fieldConfig = new FieldConfig();\r\n\r\n\t\t\t\t\tFieldDeclaration fd = (FieldDeclaration) bodyDeclar;\r\n\t\t\t\t\tString modify = ModifierSet.getModify(fd.getModifiers());\r\n\t\t\t\t\tString className = fd.getType().toString();\r\n\t\t\t\t\tif (argImportClasses.containsKey(className)) {\r\n\t\t\t\t\t\tclassName = argImportClasses.get(className);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfieldConfig.setModify(modify);\r\n\t\t\t\t\tfieldConfig.setClassName(className);\r\n\r\n\t\t\t\t\tList<VariableDeclarator> list = fd.getVariables();\r\n\t\t\t\t\tif (list != null) {\r\n\t\t\t\t\t\tfor (VariableDeclarator vd : list) {\r\n\t\t\t\t\t\t\tString name = vd.getId().getName();\r\n\t\t\t\t\t\t\tString value = null;\r\n\t\t\t\t\t\t\tif (vd.getInit() != null) {\r\n\t\t\t\t\t\t\t\tvalue = vd.getInit().toString();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tfieldConfig.setName(name);\r\n\t\t\t\t\t\t\tif (!StringUtils.isEmpty(value)) {\r\n\t\t\t\t\t\t\t\tfieldConfig.setValue(value);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\targDaoConfig.setConfigObject(FieldConfig.MAIN_TAG,\r\n\t\t\t\t\t\t\tfieldConfig);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void addAnnotatedClass( Class clazz );", "Map<Class<?>, Object> yangAugmentedInfoMap();", "Map<Class<?>, Object> yangAugmentedInfoMap();", "private static void addAnnotatedClass(final Configuration conf) {\n // add anottations class\n // conf.addAnnotatedClass(Person.class);\n }", "public String[] readClasses();", "public ClassDoc[] classes() {\n // return specClasses.values().toArray(new ClassDoc[0]);\n\n // return the set of classes in specClasses that are \"included\"\n // according to the access modifier filter\n if (includedClasses != null) {\n // System.out.println(\"RootDoc.classes() called.\");\n return includedClasses;\n }\n int size = 0;\n Collection<X10ClassDoc> classes = specClasses.values();\n for (ClassDoc cd : classes) {\n if (cd.isIncluded()) {\n size++;\n }\n }\n includedClasses = new X10ClassDoc[size];\n int i = 0;\n for (X10ClassDoc cd : classes) {\n if (cd.isIncluded()) {\n includedClasses[i++] = cd;\n }\n }\n Comparator<X10ClassDoc> cmp = new Comparator<X10ClassDoc>() {\n public int compare(X10ClassDoc first, X10ClassDoc second) {\n return first.name().compareTo(second.name());\n }\n\n public boolean equals(Object other) {\n return false;\n }\n };\n Arrays.sort(includedClasses, cmp);\n // System.out.println(\"RootDoc.classes() called. result = \" +\n // Arrays.toString(includedClasses));\n return includedClasses;\n }", "Object getClass_();", "Object getClass_();", "private void processActivityCheck(RoundEnvironment roundEnv) throws IllegalArgumentException, ClassNotFoundException {\n for (Class<? extends Annotation> annotation : provideAnnotation()) {\n// log(\"annotation \" + annotation.getName());\n for (Element element : roundEnv.getElementsAnnotatedWith(annotation)) {\n// log(\"element \" + element.toString());\n getAnnotatedClass(annotation, element);\n }\n }\n provideFile();\n }", "private void writeClassesKey() {\n writeSpacesCorrespondingToNestedLevel(PKG_INFO_NEST_LEVEL);\n writer.println(\"classes:\");\n }", "List<AnnotationPath> findAnnotationPaths( String annotationCannonicalClassName );", "String getMetadataClassName();", "HxAnnotated<?> createAnnotated();", "TypeImport createTypeImport();", "List<Class<?>> getManagedClasses();", "protected abstract void generatePackageFiles(ClassTree classtree) throws Exception;", "@Override\n public Set<Class<?>> getClasses() {\n Set<Class<?>> resources = new java.util.HashSet<>();\n resources.add(api.Auth.class);\n resources.add(api.UserApi.class);\n resources.add(api.TicketApi.class);\n resources.add(api.DepartmentApi.class);\n resources.add(api.MessageApi.class);\n resources.add(api.MilestoneApi.class);\n resources.add(api.InvitationApi.class);\n return resources;\n }", "public interface g {\n\n /* compiled from: AccessibilityViewCommand */\n public static abstract class a {\n\n /* renamed from: a reason: collision with root package name */\n private static final Bundle f2690a = new Bundle();\n\n /* renamed from: b reason: collision with root package name */\n Bundle f2691b;\n\n public void a(Bundle bundle) {\n this.f2691b = bundle;\n }\n }\n\n /* compiled from: AccessibilityViewCommand */\n public static final class b extends a {\n }\n\n /* compiled from: AccessibilityViewCommand */\n public static final class c extends a {\n }\n\n /* compiled from: AccessibilityViewCommand */\n public static final class d extends a {\n }\n\n /* compiled from: AccessibilityViewCommand */\n public static final class e extends a {\n }\n\n /* compiled from: AccessibilityViewCommand */\n public static final class f extends a {\n }\n\n /* renamed from: b.g.i.a.g$g reason: collision with other inner class name */\n /* compiled from: AccessibilityViewCommand */\n public static final class C0028g extends a {\n }\n\n /* compiled from: AccessibilityViewCommand */\n public static final class h extends a {\n }\n\n boolean a(View view, a aVar);\n}", "public static void addPermitedType(GvgInfoAnnotation gvgAnnotation){\r\n\t\tif(GvgUtils.permitedClass == null)\r\n\t\t\tGvgUtils.permitedClass = new ArrayList<String>(); \r\n\t\tfor(Class<?> c : gvgAnnotation.value()){\r\n\t\t\tGvgUtils.permitedClass.add(c.getName());\r\n\t\t\tGvgUtils.permitedClass.add(c.getSimpleName());\r\n\t\t}\r\n\t}", "String[] getSupportedAnnotationPackages();", "@Word(word = \"First\", value = 1) \n\t public static void newMethod(){ \n\t\t FullAnnotationProgram obj = new FullAnnotationProgram(); \n\n\t try{ \n\t Class<?> c = obj.getClass(); \n\n\t // Obtain the annotation for newMethod \n\t Method m = c.getMethod(\"newMethod\"); \n\t \n\t // Display the full annotation \n\t Annotation anno = m.getAnnotation(CustomRepeatAnnots.class); \n\t System.out.println(anno); \n\t }catch (NoSuchMethodException e){ \n\t System.out.println(e); \n\t } \n\t }", "DescribedClass createDescribedClass();", "public void test0104() throws JavaModelException {\n\tIPath projectPath = env.addProject(\"Project\");\n\tenv.removePackageFragmentRoot(projectPath, \"\");\n\tIPath root = env.addPackageFragmentRoot(projectPath, \"src\");\n\tIPath classTest1 = env.addClass(root, \"p1\", \"Test1\",\n\t\t\"package p1;\\n\" +\n\t\t\"public class Test1 {}\"\n\t);\n\tfullBuild();\n\tProblem[] prob1 = env.getProblemsFor(classTest1);\n\texpectingSpecificProblemFor(classTest1, \n\t\tnew Problem(\"p1\", \"The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files\", classTest1, 0, 1, 10));\n\tassertEquals(JavaBuilder.GENERATED_BY, prob1[0].getGeneratedBy());\n}", "public interface RefProject extends RefEntity {\n RefPackage getDefaultPackage();\n}", "Set<Class<? extends Annotation>> getScanMethodAnnotations();", "public interface KClass<T> extends KDeclarationContainer, KAnnotatedElement {\n}", "Class<?>[] getHandledClasses();", "private List<String> getClassesInPackage(String packageUniqueName) {\n List<String> result = new ArrayList<String>();\n if (theModel.packages.containsKey(packageUniqueName)){\n \tTreeSet<String> children = theModel.packages.get(packageUniqueName).children;\n \tif ((children != null)){\n \t\tfor (String uniqueName : children){\n \t\t\tFamixClass foundClass = theModel.classes.get(uniqueName);\n \t\t\tif (foundClass != null){\n \t\t\t\tresult.add(uniqueName);\n \t\t\t\tif (foundClass.hasInnerClasses){\n \t\t\t\t\tresult.addAll(foundClass.children);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}\n }\n return result;\n }", "private void loadClasses() {\n\t\tString[] classes = new String[] { \"com.sssprog.delicious.api.ApiAsyncTask\" };\n\t\tfor (String c : classes) {\n\t\t\ttry {\n\t\t\t\tClass.forName(c);\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@Ignore\n @Test\n public void discoverOneTypes() throws Exception {\n }", "@Override\n\tprotected void createPackage() {\n\t\tdecorations.add(new BridesMaidDeco());\n\t\tdecorations.add(new BridalDeco());\n\t}", "Set<Class<?>> getClassSet(String packageName);", "ConjuntoTDA claves();", "public List<IclassItem> getClasses() {\n if(projectData!=null){\n return projectData.getClasses();\n }\n return new ArrayList<IclassItem>();\n }", "@CoreFunction\npublic interface ProjectAuthorisationMgt extends ProjectView {\n}", "@Override\n\tpublic void registerPrimaryTypes() {\n\t\tobjectType = registerJavaType(getBuilder().getName(), ClassType.CLASS);\n\t}", "private void classDeclaration(Modifier modifier, Scope scope, String basename)\r\n {\r\n Vector queue = new Vector();\r\n HashSet dummy = unresolved;\r\n ClassType x = new ClassType();\r\n unresolved = x.unresolved;\r\n\r\n if (comment != null && comment.length() > 0)\r\n {\r\n x.comment = comment + '\\n';\r\n resetComment();\r\n }\r\n\r\n matchKeyword(Keyword.CLASSSY);\r\n\r\n if (!scopeStack.contains(scope))\r\n scopeStack.add(scope);\r\n\r\n x.name = nextToken;\r\n\r\n //if (basename.compareTo(nextToken.string) != 0 && basename.length() > 0)\r\n // modifier.access &= ~Keyword.PUBLICSY.value;\r\n\r\n modifier.check(modifier.classes | modifier.access & (basename.compareToIgnoreCase(nextToken.string) != 0 && basename.length() > 0?~Keyword.PUBLICSY.value:-1));\r\n\r\n if ((modifier.cur & Keyword.ABSTRACTSY.value) == 0)\r\n modifier.methods &= ~Keyword.ABSTRACTSY.value;\r\n else\r\n modifier.methods |= Keyword.ABSTRACTSY.value;\r\n\r\n x.modify |= modifier.cur;\r\n\r\n matchKeyword(Keyword.IDENTSY);\r\n\r\n declMember(scope, x);\r\n\r\n x.scope = new Scope(scope, Scope.classed, x.name.string);\r\n\r\n if (nextSymbol == Keyword.EXTENDSSY)\r\n {\r\n lookAhead();\r\n Type t = type();\r\n x.extend = new ClassType(t.ident.string.substring(t.ident.string.lastIndexOf('.') + 1));\r\n }\r\n else if (((x.modify & Keyword.STATICSY.value) != 0 || (Scope)scopeStack.get(0) == scope) && x.name.string.compareTo(\"Object\") != 0)\r\n {\r\n x.extend = new ClassType(\"Object\");\r\n unresolved.add(x.extend.name.string);\r\n }\r\n else\r\n x.extend = new ClassType();\r\n\r\n if (nextSymbol == Keyword.IMPLEMENTSSY)\r\n {\r\n lookAhead();\r\n x.implement = typeList();\r\n }\r\n else\r\n x.implement = new ClassType[0];\r\n\r\n if ((modifier.cur & Keyword.ABSTRACTSY.value) != 0 && (modifier.cur & modifier.constructors) == 0)\r\n modifier.cur |= Keyword.PUBLICSY.value ;\r\n\r\n modifier.cur &= modifier.constructors;\r\n\r\n classBody(x, new Modifier(), \"\", queue);\r\n\r\n Iterator iter = x.scope.iterator();\r\n\r\n while(iter.hasNext())\r\n {\r\n Basic b = (Basic)iter.next();\r\n\r\n if (b instanceof MethodType)\r\n if ((b.modify & Keyword.STATICSY.value) != 0)\r\n { // remove this from static method\r\n MethodType m = (MethodType)b;\r\n m.scope.remove(\"§this\");\r\n if (m.parameter.length > 0 && m.parameter[0].name.string.compareTo(\"§this\") == 0)\r\n {\r\n Parameter [] p = new Parameter[m.parameter.length - 1];\r\n\r\n for(int i = 0; i < p.length; i++)\r\n p[i] = m.parameter[i + 1];\r\n\r\n m.parameter = p;\r\n }\r\n }\r\n }\r\n\r\n // add queue to constructors\r\n addToConstructor(x, queue);\r\n unresolved = dummy;\r\n\r\n writeList(x);\r\n }", "@Override\n protected void internalTransform(String arg0, Map arg1) {\n for (SootClass c : Scene.v().getApplicationClasses()) {\n //if (c.getName().startsWith(\"com\"))//TODO\n // if(c.getName().start)\n try {\n transform(c);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n\n }\n }", "void addClasses(String... classNames) throws InvocationTargetException, IllegalAccessException, NoSuchMethodException;", "@NpmPackage(\n name = \"highcharts\",\n version = \"^8.1.2\"\n)\n@Import(\n symbols = {\"Class as Class_Class\"},\n module = \"highcharts/es-modules/masters/highcharts.src.js\"\n)\n@Import(\n module = \"highcharts/es-modules/masters/highcharts.src.js\"\n)\npublic interface Class<T extends Any> extends JsFunction {\n /**\n * Class costructor.\n *\n * @param args\n * Constructor arguments.\n *\n * @return Class instance.\n *\n */\n @JSBody(\n params = {\"args\"},\n script = \"return Class_Class.apply(null, args)\"\n )\n static <T extends Any> T create(Any... args) {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n}", "public void importClass(String klass) throws Exception;", "public void createPackageContents() {\r\n\t\tif (isCreated)\r\n\t\t\treturn;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\tspringProjectEClass = createEClass(SPRING_PROJECT);\r\n\t\tcreateEAttribute(springProjectEClass, SPRING_PROJECT__BASE_PACKAGE);\r\n\t\tcreateEAttribute(springProjectEClass, SPRING_PROJECT__NAME);\r\n\t\tcreateEReference(springProjectEClass, SPRING_PROJECT__DB_SOURCE);\r\n\t\tcreateEReference(springProjectEClass, SPRING_PROJECT__ENTITIES);\r\n\t\tcreateEReference(springProjectEClass, SPRING_PROJECT__CONTROLLERS);\r\n\r\n\t\trestControllerEClass = createEClass(REST_CONTROLLER);\r\n\t\tcreateEAttribute(restControllerEClass, REST_CONTROLLER__NAME);\r\n\t\tcreateEAttribute(restControllerEClass, REST_CONTROLLER__PATH);\r\n\t\tcreateEReference(restControllerEClass, REST_CONTROLLER__USED_ENTITIES);\r\n\t\tcreateEReference(restControllerEClass, REST_CONTROLLER__MAPPINGS);\r\n\r\n\t\trestMappingEClass = createEClass(REST_MAPPING);\r\n\t\tcreateEAttribute(restMappingEClass, REST_MAPPING__PATH);\r\n\t\tcreateEAttribute(restMappingEClass, REST_MAPPING__NAME);\r\n\t\tcreateEReference(restMappingEClass, REST_MAPPING__USED_ENTITY);\r\n\t\tcreateEAttribute(restMappingEClass, REST_MAPPING__BODY);\r\n\r\n\t\tgetMappingEClass = createEClass(GET_MAPPING);\r\n\r\n\t\tpostMappingEClass = createEClass(POST_MAPPING);\r\n\t\tcreateEReference(postMappingEClass, POST_MAPPING__PARAMETERS);\r\n\r\n\t\tentityEClass = createEClass(ENTITY);\r\n\t\tcreateEReference(entityEClass, ENTITY__SUPER_CLASS);\r\n\t\tcreateEAttribute(entityEClass, ENTITY__NAME);\r\n\t\tcreateEAttribute(entityEClass, ENTITY__GENERATE_REPOSITORY);\r\n\t\tcreateEReference(entityEClass, ENTITY__FIELDS);\r\n\t\tcreateEReference(entityEClass, ENTITY__MAPPING);\r\n\r\n\t\tmappingEClass = createEClass(MAPPING);\r\n\t\tcreateEAttribute(mappingEClass, MAPPING__NAME);\r\n\t\tcreateEReference(mappingEClass, MAPPING__ENTITY);\r\n\t\tcreateEAttribute(mappingEClass, MAPPING__IS_LIST);\r\n\t\tcreateEReference(mappingEClass, MAPPING__MAPPING_TYPE);\r\n\r\n\t\tmappingTypeEClass = createEClass(MAPPING_TYPE);\r\n\t\tcreateEAttribute(mappingTypeEClass, MAPPING_TYPE__CASCADE);\r\n\t\tcreateEReference(mappingTypeEClass, MAPPING_TYPE__MAPPED_BY);\r\n\r\n\t\toneToManyEClass = createEClass(ONE_TO_MANY);\r\n\r\n\t\tmanyToOneEClass = createEClass(MANY_TO_ONE);\r\n\r\n\t\tmanyToManyEClass = createEClass(MANY_TO_MANY);\r\n\t\tcreateEAttribute(manyToManyEClass, MANY_TO_MANY__JOIN_TABLE_NAME);\r\n\t\tcreateEAttribute(manyToManyEClass, MANY_TO_MANY__JOIN_COLUMNS);\r\n\t\tcreateEAttribute(manyToManyEClass, MANY_TO_MANY__INVERSE_JOIN_COLUMNS);\r\n\r\n\t\toneToOneEClass = createEClass(ONE_TO_ONE);\r\n\r\n\t\tfieldEClass = createEClass(FIELD);\r\n\t\tcreateEAttribute(fieldEClass, FIELD__IS_ID);\r\n\t\tcreateEAttribute(fieldEClass, FIELD__NAME);\r\n\t\tcreateEAttribute(fieldEClass, FIELD__DATATYPE);\r\n\r\n\t\tdbSourceEClass = createEClass(DB_SOURCE);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__ENABLE_CONSOLE);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__WEB_ALLOW_OOTHERS);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__CONSOLE_PATH);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__URL);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__USER);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__PASSWORD);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__DRIVE_CLASS_NAME);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__SERVER_PORT);\r\n\r\n\t\t// Create enums\r\n\t\tcascadeEEnum = createEEnum(CASCADE);\r\n\t}", "default boolean isClass() {\n return false;\n }", "Set<Class<? extends Annotation>> getScanTypeAnnotations();", "@Override\n\tpublic void buildDefaultMethods(JDefinedClass cls) {\n\n\t}", "@Override\n\tpublic void buildAttributes(JDefinedClass cls) {\n\n\t}", "private void fillEmbeddedTypes() {\n List<String> otherClassesNames = new ArrayList<>(PRIMITIVE_TYPES);\n otherClassesNames.add(\"[]\");\n otherClassesNames.add(\"...\");\n\n List<TypeConstructor> otherClasses = new ArrayList<>();\n for (String type : otherClassesNames) {\n Classifier classifier = new Classifier(type, Language.JAVA, \"\", null, new ArrayList<MemberEntity>(), \"\");\n otherClasses.add(classifier);\n QualifiedName name = new QualifiedName(OTHER_PACKAGE, type);\n classes.put(name, classifier);\n parameters.put(name, new ParametersDescription());\n superTypes.put(name, new ArrayList<JavaType>());\n createClassMaps(name);\n }\n\n PackageEntity otherPackage = new PackageEntity(OTHER_PACKAGE, Language.JAVA, otherClasses,\n new ArrayList<MemberEntity>(), new ArrayList<PackageEntity>(), \"\", null);\n packages.put(OTHER_PACKAGE, otherPackage);\n\n for (TypeConstructor otherClass : otherClasses) {\n otherClass.setContainingPackage(otherPackage);\n }\n }", "public interface HasClasses {\n /**\n * Returns list of classes\n *\n * @return List&lt;? extends ClassInfo&gt; - list of classes or empty list if none\n */\n @NotNull\n List<? extends ClassInfo> getClasses();\n\n /**\n * Returns list of all classes, including indirect descendants.\n * @return List&lt;? extends ClassInfo&gt; - list of classes or empty list if none\n */\n @NotNull\n List<? extends ClassInfo> getAllClasses();\n}", "private void getAnnotatedClass(Class<? extends Annotation> annotation, final Element element) {\n TypeElement typeElement = (TypeElement) element.getEnclosingElement();\n// String fullName = typeElement.getQualifiedName().toString();\n Map<Class<? extends Annotation>, List<Element>> classListMap = mAnnotation.get(typeElement);\n if (classListMap == null) {\n classListMap = new HashMap<>();\n ArrayList<Element> elements=new ArrayList<>();\n elements.add(element);\n classListMap.put(annotation,elements);\n mAnnotation.put(typeElement, classListMap);\n } else {\n List<Element> elements = classListMap.get(annotation);\n if (elements == null) {\n elements = new ArrayList<>();\n elements.add(element);\n classListMap.put(annotation,elements);\n mAnnotation.put(typeElement, classListMap);\n } else\n mAnnotation.get(typeElement).get(annotation).add(element);\n }\n\n// log(annotationList.size() + \"fdas\");\n }", "private void onClassesFound(List<UMDClass> classes) {\n\t}", "private static List<IClassDefinition> getExtClasses(\n\t\t\tList<IClassDefinition> classList, String extensionName,\n\t\t\tEnvironment env)\n\t{\n\t\tList<IClassDefinition> classes = new LinkedList<IClassDefinition>();\n\n\t\tfor (IClassDefinition c : classList)\n\t\t{\n\t\t\t// Check for the existing of the classdef directly.\n\t\t\tif (env.isTreeNode(c))\n\t\t\t{\n\t\t\t\tclasses.add(c);\n\t\t\t}\n\t\t\t// else if it does not exist in env, check if the class has been\n\t\t\t// replaced and add this instead.\n\t\t\telse\n\t\t\t{\n\n\t\t\t\tString newName = c.getName().getPrefix() + extensionName\n\t\t\t\t\t\t+ c.getName().getRawName() + c.getName().getPostfix();\n\n\t\t\t\tIClassDefinition newC = env.lookUp(newName);\n\n\t\t\t\tif (null != newC)\n\t\t\t\t\tclasses.add(newC);\n\t\t\t}\n\t\t}\n\t\treturn classes;\n\t}", "public abstract AnnotationMap mo30683d();", "public ClassInfo declaringClass();", "public List<Class<?>> getKnownClasses();", "public abstract Class resolveClass(GenerationContext context);", "List memberClasses();", "private void visitAdditionalEntrypoints() {\n\tLinkedHashSet<jq_Class> extraClasses = new LinkedHashSet<jq_Class>();\n\tfor(jq_Method m: publicMethods) {\n\t extraClasses.add(m.getDeclaringClass());\n\t}\n\t\n\tfor(jq_Class cl: extraClasses) {\n\t visitClass(cl);\n\t\t\tjq_Method ctor = cl.getInitializer(new jq_NameAndDesc(\"<init>\", \"()V\"));\n\t\t\tif (ctor != null)\n\t\t\t\tvisitMethod(ctor);\n\t}\n\n\tfor(jq_Method m: publicMethods) {\n\t visitMethod(m);\n\t}\n }" ]
[ "0.61062694", "0.6089173", "0.5804795", "0.5743471", "0.56903887", "0.56652176", "0.5623972", "0.5616904", "0.5616904", "0.55823326", "0.55595165", "0.55455565", "0.5544182", "0.5536331", "0.55291885", "0.5511478", "0.54985416", "0.54949677", "0.54722756", "0.5465224", "0.5451251", "0.54511213", "0.5445037", "0.5415876", "0.5400699", "0.53793836", "0.5376301", "0.5355754", "0.5325315", "0.5318584", "0.5311302", "0.5310975", "0.5301805", "0.5294089", "0.52730197", "0.526423", "0.5248678", "0.5245085", "0.5234486", "0.5233711", "0.5212353", "0.5185456", "0.5181167", "0.51769584", "0.517607", "0.51741445", "0.51741445", "0.5170309", "0.51620466", "0.5160041", "0.5151089", "0.5151089", "0.5150118", "0.5149457", "0.5145398", "0.5140714", "0.51375055", "0.5123532", "0.512029", "0.5116875", "0.51079845", "0.50941753", "0.5076024", "0.5067619", "0.5063409", "0.50608957", "0.50543076", "0.50515497", "0.50502723", "0.5047121", "0.5046844", "0.5041935", "0.5036832", "0.5036204", "0.50290275", "0.5027072", "0.5025597", "0.50232357", "0.502225", "0.50181466", "0.5015027", "0.50136894", "0.5011296", "0.50024843", "0.5000725", "0.49955246", "0.49935335", "0.49912387", "0.49862942", "0.49853036", "0.4984507", "0.49804288", "0.49765617", "0.49742886", "0.49727064", "0.49665383", "0.49617648", "0.49569413", "0.4953976", "0.49524358", "0.49519193" ]
0.0
-1
Method returns project classItems
public List<IclassItem> getClasses() { if(projectData!=null){ return projectData.getClasses(); } return new ArrayList<IclassItem>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<WjrClassItem> getClassItems() {\r\n return new ArrayList<WjrClassItem>(classItems.values());\r\n }", "public List<String> getClassList() {\n return classlist;\n }", "public IProject [] getProjects(){\n\t\treturn projects;\n\t}", "@NotNull\n List<? extends ClassInfo> getClasses();", "private List<String> getClassesInPackage(String packageUniqueName) {\n List<String> result = new ArrayList<String>();\n if (theModel.packages.containsKey(packageUniqueName)){\n \tTreeSet<String> children = theModel.packages.get(packageUniqueName).children;\n \tif ((children != null)){\n \t\tfor (String uniqueName : children){\n \t\t\tFamixClass foundClass = theModel.classes.get(uniqueName);\n \t\t\tif (foundClass != null){\n \t\t\t\tresult.add(uniqueName);\n \t\t\t\tif (foundClass.hasInnerClasses){\n \t\t\t\t\tresult.addAll(foundClass.children);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}\n }\n return result;\n }", "public ArrayList<Project> getProjects(){\n return this.projects;\n }", "@Override\n\tpublic List<Classe> getClasses() {\n\t\treturn classeRepo.findAll();\n\t}", "@Override\n\tpublic List<Classe> getClasses() {\n\t\treturn classeRepository.findAll();\n\t}", "public abstract List<ProjectBean> getProjectList();", "public List findAll() {\n return findAll(ClassItem.class);\n }", "public List<String> getClassesList() {\n\t\tCursor c = theDb.rawQuery(\"SELECT * \" +\n\t\t\t\t\t\t\t\t \"FROM \" + DbContract.Classes.TABLE_NAME, null);\n\t\t\n\t\t//Read cursor into an ArrayList\n\t\tList<String> classesList = new ArrayList<String>();\n\t\tclassesList.add( context.getString(R.string.all_classes) );\t\t\t//Add \"All classes\"\n\t\t\n\t\twhile (c.moveToNext()) {\n\t\t\tclassesList.add( c.getString( c.getColumnIndex(DbContract.Classes.ATTRIBUTE_NAME)));\n\t\t}\n\t\t\n\t\treturn classesList;\n\t}", "public ClassDoc[] classes() {\n // return specClasses.values().toArray(new ClassDoc[0]);\n\n // return the set of classes in specClasses that are \"included\"\n // according to the access modifier filter\n if (includedClasses != null) {\n // System.out.println(\"RootDoc.classes() called.\");\n return includedClasses;\n }\n int size = 0;\n Collection<X10ClassDoc> classes = specClasses.values();\n for (ClassDoc cd : classes) {\n if (cd.isIncluded()) {\n size++;\n }\n }\n includedClasses = new X10ClassDoc[size];\n int i = 0;\n for (X10ClassDoc cd : classes) {\n if (cd.isIncluded()) {\n includedClasses[i++] = cd;\n }\n }\n Comparator<X10ClassDoc> cmp = new Comparator<X10ClassDoc>() {\n public int compare(X10ClassDoc first, X10ClassDoc second) {\n return first.name().compareTo(second.name());\n }\n\n public boolean equals(Object other) {\n return false;\n }\n };\n Arrays.sort(includedClasses, cmp);\n // System.out.println(\"RootDoc.classes() called. result = \" +\n // Arrays.toString(includedClasses));\n return includedClasses;\n }", "public ClassFile[] getClassFiles() {\n\t\treturn getResult().getClassFiles();\n\t}", "final Class<?>[] classes() {\n if (classes instanceof Class[]) {\n return (Class[]) classes;\n } else {\n return new Class[] { (Class) classes };\n }\n }", "public List getAvailableProjects (){\n\t\tList retValue = new ArrayList ();\n\t\tthis.setProcessing (true);\n\t\ttry {\n\t\t\tfor (Iterator it = getPersistenceManager().getExtent(Project.class, true).iterator();it.hasNext ();){\n\t\t\t\tretValue.add (it.next());\n\t\t\t}\n\t\t} finally {\n\t\t\tthis.setProcessing (false);\n\t\t}\n\t\treturn retValue;\n\t}", "public ClassDoc[] specifiedClasses() {\n // System.out.println(\"RootDoc.specifiedClasses() called.\");\n // return specClasses.values().toArray(new ClassDoc[0]);\n\n // index.html lists classes returned from specifiedClasses; return the\n // set of classes in specClasses that are\n // included as per access mod filter\n return classes();\n }", "java.util.List getClassPathElements();", "public ClassInfo[] getClasses() {\r\n return classes.toArray(new ClassInfo[classes.size()]);\r\n }", "public String getClasses() {\n String classesString = \"\";\n\n for (String className : classes) {\n classesString += (className + \"\\n\");\n }\n\n return classesString;\n }", "public List<ClassId> getThirdClasses() {\n\t\tList<ClassId> classes = new ArrayList<>();\r\n\r\n\t\t/*\r\n\t\t * classes.add(ClassId.EVAS_SAINT); classes.add(ClassId.SHILLIEN_TEMPLAR);\r\n\t\t * classes.add(ClassId.SPECTRAL_DANCER); classes.add(ClassId.GHOST_HUNTER);\r\n\t\t * \r\n\t\t * classes.add(ClassId.DREADNOUGHT); classes.add(ClassId.PHOENIX_KNIGHT);\r\n\t\t * classes.add(ClassId.HELL_KNIGHT);\r\n\t\t * \r\n\t\t * classes.add(ClassId.HIEROPHANT); classes.add(ClassId.EVAS_TEMPLAR);\r\n\t\t * classes.add(ClassId.SWORD_MUSE);\r\n\t\t * \r\n\t\t * classes.add(ClassId.DOOMCRYER); classes.add(ClassId.FORTUNE_SEEKER);\r\n\t\t * classes.add(ClassId.MAESTRO);\r\n\t\t */\r\n\r\n\t\t// classes.add(ClassId.ARCANA_LORD);\r\n\t\t// classes.add(ClassId.ELEMENTAL_MASTER);\r\n\t\t// classes.add(ClassId.SPECTRAL_MASTER);\r\n\t\t// classes.add(ClassId.SHILLIEN_SAINT);\r\n\r\n\t\tclasses.add(ClassId.SAGGITARIUS);\r\n\t\tclasses.add(ClassId.ARCHMAGE);\r\n\t\tclasses.add(ClassId.SOULTAKER);\r\n\t\tclasses.add(ClassId.MYSTIC_MUSE);\r\n\t\tclasses.add(ClassId.STORM_SCREAMER);\r\n\t\tclasses.add(ClassId.MOONLIGHT_SENTINEL);\r\n\t\tclasses.add(ClassId.GHOST_SENTINEL);\r\n\t\tclasses.add(ClassId.ADVENTURER);\r\n\t\tclasses.add(ClassId.WIND_RIDER);\r\n\t\tclasses.add(ClassId.DOMINATOR);\r\n\t\tclasses.add(ClassId.TITAN);\r\n\t\tclasses.add(ClassId.CARDINAL);\r\n\t\tclasses.add(ClassId.DUELIST);\r\n\r\n\t\tclasses.add(ClassId.GRAND_KHAVATARI);\r\n\r\n\t\treturn classes;\r\n\t}", "public List<Project> getAllProjects();", "public int getClasses(){\r\n\t\treturn this.classes;\r\n\t}", "IClassDefinition[] resolveAncestry(ICompilerProject project);", "@NotNull\n List<? extends ClassInfo> getAllClasses();", "List<Project> selectAll();", "public abstract Class<?>[] getCoClasses();", "private Class<DimensionInterface>[] getAllClasses (String pckgname) {\n\t\t\n\t\ttry {\n\t\t \n\t\t\t// Classes will store our results\n\t\t\tArrayList classes = new ArrayList ();\n\t\t\t\n\n\t\t\t// Get a File object for the package \n\t\t File directory; \n\t\t \n\t\t \n\t\t // Load the package \n\t\t try { \n\t\t \tdirectory = new File (\n\t\t \t\tThread.currentThread ()\n\t\t \t\t\t.getContextClassLoader()\n\t\t \t\t\t.getResource (pckgname.replace('.', '/'))\n\t\t \t\t\t.getFile()\n\t\t \t); \n\t\t \n\t\t } catch (NullPointerException x) { \n\t\t \tSystem.out.println (\"Nullpointer\");\n\t\t \tthrow new ClassNotFoundException (pckgname + \" does not appear to be a valid package\"); \n\t\t }\n\t\t \n\t\t \n\t\t // IF we have found our package, then\n\t\t // obtain the files withtin\n\t\t if ( ! directory.exists ()) {\n\t\t \tSystem.out.println (\"Directory does not exist\");\n\t\t \tthrow new ClassNotFoundException(pckgname + \" does not appear to be a valid package\"); \n\t\t } \t\t \t\n\t\t \t\n\t\t \n\t \t// Get the list of the files contained in the package \n\t \tString[] files = directory.list ();\n\t\t \t\n\t\t \t\n\t \t// Get the files\n\t \tfor (int i=0; i<files.length; i++) { \n\n\t \t\t// we are only interested in .class files \n\t \t\tif ( ! files[i].endsWith(\".class\")) {\n\t \t\t\tcontinue;\n\t \t\t}\n\t \t\t\t\n \t\t\t// removes the .class extension \n \t\t\tclasses.add(Class.forName (pckgname + '.' + files[i].substring (0, files[i].length() - 6)));\n\t \t\t\t\n\t \t}\n\t\t \n\t\t \n\t \t// Convert the result in an array\n\t\t Class[] classesA = new Class[classes.size()]; \n\t\t classes.toArray (classesA); \n\t\t \n\t\t \n\t\t // Return\n\t\t return classesA;\n\t\t \n\t\t// Generic error\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "Integer[] getClasses() {\n\t\tArrayList<Integer> uniqueClasses = new ArrayList<Integer>();\n\t\tfor(ClassInfo c : preferences) {\n\t\t\tif (uniqueClasses.contains(c.getCourseID()) == false){\n\t\t\t\tuniqueClasses.add(c.getCourseID());\n\t\t\t}\n\t\t}\n\t\treturn uniqueClasses.toArray(new Integer[0]);\n\t}", "List<CabinClassModel> findCabinClasses();", "public List getClassLines() {\n return classLines;\n }", "public List<Iattribute> getClassesAttribute(String name) {\n\n return projectData.getClassesAttribute(name);\n }", "public String[] getClassesToCompile();", "List<EclipseProject> getProjects() {\n return getFlattenedProjects(selectedProjects);\n }", "public List<WjrMethodItem> getMethodItems(String className) {\r\n checkNotNull(className, \"The className parameter is null.\");\r\n checkState(\r\n classItems.containsKey(className),\r\n \"The %s is not found.\",\r\n className);\r\n\r\n List<WjrMethodItem> items = new ArrayList<WjrMethodItem>();\r\n\r\n SortedMap<String, WjrMethodItem> tailMap = methodItems.tailMap(className);\r\n for (WjrMethodItem item : tailMap.values()) {\r\n if (item.getClassName().equals(className)) {\r\n items.add(item);\r\n } else {\r\n break;\r\n }\r\n }\r\n return items;\r\n }", "List<Class<?>> getManagedClasses();", "@Override\n\tpublic List<ProjectInfo> findAllProject() {\n\t\treturn sqlSession.selectList(\"cn.sep.samp2.project.findAllProject\");\n\t}", "private static List<Project> extractProjects(HttpResponse response) {\n List<Project> projects = new ArrayList<>();\n try {\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Project>>() {\n }.getType();\n projects = gson.fromJson(EntityUtils.toString(response.getEntity()), listType);\n } catch (IOException e) {\n e.printStackTrace();\n }\n return projects;\n }", "public ArrayList<String[]> getClassList(String grp, String key);", "@OneToMany(mappedBy=\"classRoom\")\n @OrderBy(\"className ASC\")\n public Collection<Class> getClasses() {\n return classes;\n }", "public ProjectsList getProjects() {\n return projects.clone();\n }", "public String[] readClasses();", "public List<String> getClassList_(final String title) {\n\t\treturn getClassList_(title, null);\n\t}", "public AssignmentClasses[] getClasses()\n\t{\n\t\treturn classes;\n\t}", "public List<Models.Class> showClasses() {\n // Get from all levels\n List<Models.Class> results = em.createNativeQuery(\"select c.* from class c, classparticipant cpa, participant p where c.classid = cpa.classid and cpa.participantid = p.participantid and p.userid = ?\", Models.Class.class).setParameter(1, user.getUserid()).getResultList();\n\n // Display the output\n String output = \"\";\n\n output = addChat(results.size() + \" classes were found.\");\n\n for (Models.Class classroom : results) {\n output += \"<div class='result display' onclick=\\\"window.location.href='Class?id=\" + classroom.getClassid() + \"'\\\">\\n\"\n + \" <div class='top'>\\n\"\n + \" <img class='icon' src='https://www.flaticon.com/svg/static/icons/svg/717/717874.svg'>\\n\"\n + \" <div class='text'>\\n\"\n + \" <a class='type'>CLASS</a>\\n\"\n + \" <a class='name'>\" + classroom.getClasstitle() + \"</a>\\n\"\n + \" <a class='subname'>\" + classroom.getClassid() + \"</a>\\n\"\n + \" </div>\\n\"\n + \" </div>\\n\"\n + \" </div>\";\n }\n\n servlet.putInJsp(\"result\", output);\n return results;\n }", "public List<Project> findAllProject() {\n\treturn projectmapper.findProject(null);\n}", "public Collection<Task> getTasksProject(String projectName) {\n\t\tCollection<Task> tasks = new ArrayList<Task>();\n\t\tfor(Task item : m_Tasks){\n\t\t\tif(item.project.equals(projectName)) tasks.add(item);\n\t\t}\n\t\tif(tasks.size() == 0) return null;\n\t\treturn tasks;\n\t}", "java.util.List<java.lang.String>\n getClasspathList();", "public ArrayList<String> getClassesToClassify(Instance instanceSelected, InfModel infModel) {\n\t\tArrayList<String> listClassesMembersTmpWithoutRepeat = new ArrayList<String>();\r\n\t\tfor (DtoCompleteClass dto : instanceSelected.ListCompleteClasses) {\r\n\t\t\tfor (String clsComplete : dto.Members) {\r\n\t\t\t\tif(! listClassesMembersTmpWithoutRepeat.contains(clsComplete))\r\n\t\t\t\t{\r\n\t\t\t\t\tlistClassesMembersTmpWithoutRepeat.add(clsComplete);\t\t\t\t\t\r\n\t\t\t\t} \r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Remove disjoint subclasses from some super class\r\n\t\tArrayList<String> listClassesMembersTmp = new ArrayList<String>();\r\n\t\tfor (DtoCompleteClass dto : instanceSelected.ListCompleteClasses) \r\n\t\t{\r\n\t\t\tArrayList<String> listDisjoint = search.GetDisjointClassesOf(dto.CompleteClass, infModel);\r\n\t\t\tfor (String clc : listClassesMembersTmpWithoutRepeat) \r\n\t\t\t{\r\n\t\t\t\tif(! listDisjoint.contains(clc))\r\n\t\t\t\t{\r\n\t\t\t\t\tlistClassesMembersTmp.add(clc);\r\n\t\t\t\t}\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\treturn listClassesMembersTmp;\r\n\t}", "private ArrayList<Class<Critter>> getCritterClasses(Package pkg) {\n\t\tArrayList<Class<Critter>> classes = new ArrayList<Class<Critter>>();\n\t\tString packagename = pkg.getName();\n\t\tURL resource = ClassLoader.getSystemClassLoader().getResource(packagename);\n\t\tString path = resource.getFile(); //path to package\n\t\tFile directory;\n\t\ttry {\n\t\t\tdirectory = new File(resource.toURI());\n\t\t} catch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t\tif (directory.exists()) {\n\t\t\tString[] files = directory.list();\n\t\t\tfor (String file : files) {\n\t\t\t\tif (file.endsWith(\".class\")) {\n\t\t\t\t\t// removes the .class extension\n\t\t\t\t\tString className = packagename + '.' + file.substring(0, file.length() - 6);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tClass classObj = Class.forName(className);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tObject obj = classObj.newInstance();\n\t\t\t\t\t\t\tif (obj instanceof Critter) {\n\t\t\t\t\t\t\t\tclasses.add(classObj);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tcontinue; //Skip if class cannot be made into object\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn classes;\n\t}", "public HashMap<Integer,Category_components> get_classes(){\n return game_classes;\n }", "public Collection getAllAuxClasss();", "public final List<ClassContentsEntry> getContents() {\n return myContents;\n }", "public Iterator<String> listAllClasses()\r\n\t{\r\n\t\treturn new ToStringIterator<String>(ONT_MODEL.listClasses().filterDrop( new Filter() {\r\n public boolean accept( Object o ) {\r\n return ((Resource) o).isAnon();\r\n }} )\r\n );\r\n\t}", "public String getClassList(final String title) {\n\t\treturn getClassList(title, null);\n\t}", "public List<AbstractProject> getProjectList() {\n\t\tList<AbstractProject> projectList = new ArrayList<AbstractProject>();\n\t\tConnection conn = getConnection();\n\t\tPreparedStatement stmtSelect = null;\n\t\tResultSet rs = null;\n\t\ttry {\n\t\t\tStringBuilder sbSelect = new StringBuilder(SELECT)\n\t\t\t\t.append(projectIdColumnName).append(COMMA)\n\t\t\t\t.append(projectNameColumnName)\n\t\t\t\t.append(FROM).append(projectTableName);\n\n\t\t\tstmtSelect = conn.prepareStatement(sbSelect.toString());\n\t\t\trs = stmtSelect.executeQuery();\n\t\t\t\n\t\t\twhile (rs.next()) { \n\t\t\t\tAbstractProject project = (AbstractProject) ATElementFactory.createITreeComponent(projectType);\n\t\t\t\tproject.setId(rs.getInt(1));\n\t\t\t\tproject.setName(rs.getString(2));\n\t\t\t\tproject.setDescription(rs.getString(3));\n\t\t\t\tprojectList.add(project);\n\t\t\t}\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\tthrow new DAOException(e);\n\t\t\t\n\t\t} finally {\n\t\t\tDbUtils.closeQuietly(conn);\n\t\t\tDbUtils.closeQuietly(stmtSelect);\n\t\t\tDbUtils.closeQuietly(rs);\n\t\t}\n\t\t\n\t\treturn projectList;\n\t}", "public List<Classinfo> list() {\n\t\treturn null;\r\n\t}", "public static String[] listFilesAsArray() {\n\t\t// Recursively find all .java files\n\t\tFile path = new File(Project.pathWorkspace());\n\t\tFilenameFilter filter = new FilenameFilter() {\n\n\t\t\tpublic boolean accept(File directory, String fileName) {\n\t\t\t\treturn fileName.endsWith(\".java\");\n\t\t\t}\n\t\t};\n\t\tCollection<File> files = listFiles(path, filter, true);\n\n\t\tArrayList<File> t = new ArrayList<File>(files);\n\t\tfor (int i = 0; i < t.size(); i++) {\n\t\t\tString s = t.get(i).getAbsolutePath();\n\t\t\tif (s.contains(\"XX\") || s.contains(\"testingpackage\") || s.contains(\"datageneration\")) {\n\t\t\t\tt.remove(t.get(i));\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\t\tfiles = t;\n\n\t\t// Convert the Collection into an array\n\t\tFile[] allJavaFiles = new File[files.size()];\n\t\tfiles.toArray(allJavaFiles);\n\n\t\tString[] allTestClasses = new String[allJavaFiles.length];\n\t\tString temp = \"\";\n\n\t\t// convert file path to full package declaration for the class\n\t\tfor (int i = 0; i < allJavaFiles.length; i++) {\n\t\t\ttemp = allJavaFiles[i].toString();\n\t\t\ttemp = temp.replace(\".java\", \"\").replace(\"\\\\\", \".\"); // remove .java convert backslash\n\t\t\tif (temp.indexOf(\"com.textura\") < 0) {\n\t\t\t\tallTestClasses[i] = \"null\";\n\t\t\t} else {\n\t\t\t\ttemp = temp.substring(temp.indexOf(\"com.textura\"));\n\t\t\t\ttemp = temp.replace(\"com.\", \"\");\n\t\t\t\tallTestClasses[i] = temp;\n\t\t\t}\n\t\t}\n\t\treturn allTestClasses;\n\t}", "public ArrayList<Project> getProjectName() {\n\t\tArrayList<Project> projectDaoList;\n\t\tprojectDaoList = new ArrayList<Project>();\n\t\tConnection con = null;\n\t\tPreparedStatement st = null;\n\t\tResultSet res = null;\n\t\ttry {\n\t\t\ttry {\n\t\t\t\tcon = DBUtility.getConnection();\n\t\t\t\tString sql = \"select * from project_master\";\n\t\t\t\tst = con.prepareStatement(sql);\n\t\t\t\tres = st.executeQuery(sql);\n\t\t\t\twhile (res.next()) {\n\t\t\t\t\tProject pdao = new Project();\n\t\t\t\t\tpdao.setId(res.getString(\"project_id\"));\n\t\t\t\t\tpdao.setPro_name(res.getString(\"project_name\"));\n\t\t\t\t\tpdao.setSite_addr(res.getString(\"project_location\"));\n\t\t\t\t\tpdao.setC_name(res.getString(\"client_name\"));\n\t\t\t\t\tpdao.setMunicipality(res.getString(\"municipality\"));\n\t\t\t\t\tpdao.setWord_no(res.getString(\"word_no\"));\n\t\t\t\t\tpdao.setGar_name(res.getString(\"gar_name\"));\n\t\t\t\t\tpdao.setGar_rel(res.getString(\"gar_rel\"));\n\t\t\t\t\tprojectDaoList.add(pdao);\n\t\t\t\t}\n\t\t\t} catch (SQLException s) {\n\t\t\t\ts.printStackTrace();\n\t\t\t\tDBUtility.closeConnection(con, st, res);\n\t\t\t\treturn null;\n\t\t\t} catch (NamingException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tDBUtility.closeConnection(con, st, res);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tDBUtility.closeConnection(con, st, res);\n\t\t\t}\n\t\t} finally {\n\t\t\tDBUtility.closeConnection(con, st, res);\n\t\t}\n\t\treturn projectDaoList;\n\t}", "public Set<String> getClassKeys();", "public List<BaseClass> baseClasses() {\r\n\t\treturn this.baseClasses;\r\n\t}", "@Override\r\n\tpublic List<Project> findProject() {\n\t\treturn iSearchSaleRecordDao.findProject();\r\n\t}", "private List<Class<?>> getClasses(String packageName) throws Exception {\n File directory = null;\n try {\n ClassLoader cld = getClassLoader();\n URL resource = getResource(packageName, cld);\n directory = new File(resource.getFile());\n } catch (NullPointerException ex) {\n throw new ClassNotFoundException(packageName + \" (\" + directory\n + \") does not appear to be a valid package\");\n }\n return collectClasses(packageName, directory);\n }", "java.util.List<java.lang.String>\n getClasspathList();", "public List<Project> findAllProject() {\n\t\tProject project;\r\n\t\tList<Project> projectList = new ArrayList<Project>();\r\n\t\tString query = \"SELECT * FROM TA_PROJECTS\";\r\n\t\tSqlRowSet srs = jdbcTemplate.queryForRowSet(query);\r\n\t\twhile(srs.next()){\r\n\t\t\tproject = new Project();\r\n\t\t\tproject.setProjectID(srs.getString(1));\r\n\t\t\tproject.setProjectName(srs.getString(2));\r\n\t\t\tproject.setManagerID(srs.getString(3));\r\n\t\t\tprojectList.add(project);\r\n\t\t}\r\n\t\treturn projectList;\r\n\t}", "public Item[] getItems() {\n/* 3068 */ if (this.vitems != null) {\n/* 3069 */ return this.vitems.getAllItemsAsArray();\n/* */ }\n/* 3071 */ return emptyItems;\n/* */ }", "@Override\n\tpublic List<Classes> findAllClasses() {\n\t\tString sql = \"select * from classes\";\n\t\tJdbcQuery querys = JdbcUtils.createNativeQuery(sql, Classes.class);\n\t\tList<Classes> classesList = (List<Classes>) querys.getResultList();\n\t\treturn classesList;\n\t}", "@ApiModelProperty(example = \"null\", value = \"Set of possible classes identified by the classifier\")\n public java.util.List<VbClass> getClasses() {\n return classes;\n }", "public WjrClassItem getClassItem(String className) {\r\n checkNotNull(className, \"The className parameter is null.\");\r\n checkState(\r\n classItems.containsKey(className),\r\n \"The %s is not found.\",\r\n className);\r\n\r\n return classItems.get(className);\r\n }", "@Override\n public int getItemCount() {\n return projects.size();\n }", "public List<String> getClassList_(final String title,\n\t\t\t\t\t\t\t\t\t final String text) {\n\t\tList<String> classList = null;\n\t\tString classes = getClassList(title, text);\n\n\t\tif (classes != null) {\n\t\t\t// Class names are linefeed separated\n\t\t\tclassList = Arrays.asList(classes.split(\"\\n\"));\n\t\t}\n\n\t\treturn classList;\n\t}", "List memberClasses();", "public ObservableList<String> getMyProjectilesNames() {\n return FXCollections.unmodifiableObservableList(myProjectilesNames);\n }", "private List<Class> getClasses(String packageName)\n throws ClassNotFoundException, IOException {\n ClassLoader classLoader = Thread.currentThread().getContextClassLoader();\n assert classLoader != null;\n String path = packageName.replace('.', '/');\n Enumeration<URL> resources = classLoader.getResources(path);\n List<File> dirs = new ArrayList<File>();\n while (resources.hasMoreElements()) {\n URL resource = resources.nextElement();\n dirs.add(new File(resource.getFile()));\n }\n ArrayList<Class> classes = new ArrayList<Class>();\n for (File directory : dirs) {\n classes.addAll(findClasses(directory, packageName));\n }\n return classes;\n }", "private static Class[] getClasses(String packageName)\n throws ClassNotFoundException, IOException {\n ClassLoader classLoader = Thread.currentThread().getContextClassLoader();\n assert classLoader != null;\n String path = packageName.replace('.', '/');\n Enumeration<URL> resources = classLoader.getResources(path);\n List<File> dirs = new ArrayList<File>();\n while (resources.hasMoreElements()) {\n URL resource = resources.nextElement();\n dirs.add(new File(resource.getFile()));\n }\n ArrayList<Class> classes = new ArrayList<Class>();\n for (File directory : dirs) {\n classes.addAll(findClasses(directory, packageName));\n }\n return classes.toArray(new Class[classes.size()]);\n }", "@Override\n public Set<Class<?>> getClasses() {\n\n Set<Class<?>> resources = new java.util.HashSet<>();\n resources.add(CountryResource.class);\n resources.add(DepartmentResource.class);\n resources.add(JobResource.class);\n return resources;\n }", "@SuppressWarnings(\"rawtypes\")\n public static Iterable<Class> getClasses(String packageName) throws ClassNotFoundException, IOException\n {\n return getClasses(packageName, null);\n }", "private static Class[] getClasses(String packageName)\n\t\t\tthrows ClassNotFoundException, IOException {\n\t\tClassLoader classLoader = Thread.currentThread()\n\t\t\t\t.getContextClassLoader();\n\t\tassert classLoader != null;\n\t\tString path = packageName.replace('.', '/');\n\t\tEnumeration<URL> resources = classLoader.getResources(path);\n\t\tList<File> dirs = new ArrayList<File>();\n\t\twhile (resources.hasMoreElements()) {\n\t\t\tURL resource = resources.nextElement();\n\t\t\tdirs.add(new File(resource.getFile()));\n\t\t}\n\t\tArrayList<Class> classes = new ArrayList<Class>();\n\t\tfor (File directory : dirs) {\n\t\t\tclasses.addAll(findClasses(directory, packageName));\n\t\t}\n\t\treturn classes.toArray(new Class[classes.size()]);\n\t}", "public List<BusinessObject> getItems(Package pkg);", "public Iterator<String> listAllandAnonClasses()\r\n\t{\r\n\t\treturn new ToStringIterator<String>(ONT_MODEL.listClasses());\r\n\t}", "public List<ProjectNameControl> getProjectNames() {\r\n\t\tfinal List<ProjectNameControl> result = new ArrayList<ProjectNameControl>(5);\r\n\t\tresult.add(new ProjectNameControl(getResourceName(), getResourceNameText()));\r\n\t\treturn result;\r\n\t}", "private String[] getReferencedJavaClasses() {\n\t\tclass ClassNameVisitor extends JVisitor {\n\t\t\tList<String> classNames = new ArrayList<String>();\n\n\t\t\t@Override\n\t\t\tpublic boolean visit(JClassType x, Context ctx) {\n\t\t\t\tclassNames.add(x.getName());\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\tClassNameVisitor v = new ClassNameVisitor();\n\t\tv.accept(jprogram);\n\t\treturn v.classNames.toArray(new String[v.classNames.size()]);\n\t}", "public List<ProjectIdea> showAll(){\n try {\n List<ProjectIdea> result = new ArrayList<ProjectIdea>();\n CloseableIterator<ProjectIdea> itr = super.closeableIterator();\n try {\n while (itr.hasNext()) {\n ProjectIdea tmp = itr.next();\n result.add(tmp);\n }\n } finally {\n itr.close();\n }\n return result;\n }catch (Exception e){\n System.out.println(e.getMessage());\n return null;\n }\n }", "public Iterator<String> listComplementClasses()\r\n\t{\r\n\t\treturn new ToStringIterator<String>(ONT_MODEL.listComplementClasses().filterDrop( new Filter() {\r\n public boolean accept( Object o ) {\r\n return ((Resource) o).isAnon();\r\n }} )\r\n );\r\n\t}", "Set<CompiledClass> getCompiledClasses() {\n if (!isCompiled()) {\n return null;\n }\n if (exposedCompiledClasses == null) {\n FindTypesInCud typeFinder = new FindTypesInCud();\n cud.traverse(typeFinder, cud.scope);\n Set<CompiledClass> compiledClasses = typeFinder.getClasses();\n exposedCompiledClasses = Sets.normalizeUnmodifiable(compiledClasses);\n }\n return exposedCompiledClasses;\n }", "public List<ProjectEntity> getProjectByName() {\n\t\treturn null;\n\t}", "public List<String> getProjects() {\r\n\t\treturn projects;\r\n\t}", "public static List<Class> getSubClasses(final String packageName) {\r\n\t\tfinal List<Class> listClasses = new ArrayList<>();\r\n\t\tSystem.err.println(\"getSubClasses \" + packageName);\r\n\t\t\r\n\t\t// System.err.println(\"java.class.path : \" +\r\n\t\t// System.getProperty(\"java.class.path\"));\r\n\t\tfinal String javaClassPaths[] = System.getProperty(\"java.class.path\").split(\";\");\r\n\t\tfor (final String s : javaClassPaths) {\r\n\t\t\tif (s.endsWith(\".jar\")) {\r\n\t\t\t\t// processJarFile(s, clazz1);\r\n\t\t\t} else {\r\n\t\t\t\tfinal File dirClasses = new File(s);\r\n\t\t\t\tfinal File dirPackage = new File(dirClasses, packageToPath(packageName));\r\n\t\t\t\tif (dirPackage.exists()) {\r\n\t\t\t\t\tfinal String[] names = dirPackage.list();\r\n\t\t\t\t\tfor (final String name : names) {\r\n\r\n\t\t\t\t\t\tif ((name.indexOf(\"$\") < 0) && (name.indexOf(\".class\") > 0)) {\r\n\t\t\t\t\t\t\tfinal String sName = name.substring(0, name.indexOf(\".\"));\r\n\t\t\t\t\t\t\tfinal String className = packageName + \".\" + sName;\r\n\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tfinal Class clazz = UtilReflection.class.getClassLoader().loadClass(className);\r\n\t\t\t\t\t\t\t\tlistClasses.add(clazz);\r\n\t\t\t\t\t\t\t} catch (final ClassNotFoundException e) {\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"ClassNotFound :\" + e.getMessage());\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn listClasses;\r\n\t}", "@GetMapping(value=\"/getProjectDetails/completed\")\n\tpublic List<Project> getAllProjectDetails()\n\t{\n\t\treturn integrationClient.getProjectDetiails();\n\t}", "@ApiModelProperty(value = \"A list of classification results\")\n public List<ProjectClassificationResult> getClassificationResults() {\n return classificationResults;\n }", "public List<org.apache.airavata.registry.core.experiment.catalog.resources.ProjectResource> getProjects(int limit, int offset, Object orderByIdentifier,\n ResultOrderType resultOrderType) throws RegistryException {\n List<org.apache.airavata.registry.core.experiment.catalog.resources.ProjectResource> result = new ArrayList<org.apache.airavata.registry.core.experiment.catalog.resources.ProjectResource>();\n List<ExperimentCatResource> list = get(ResourceType.PROJECT, limit, offset, orderByIdentifier, resultOrderType);\n for (ExperimentCatResource resource : list) {\n result.add((org.apache.airavata.registry.core.experiment.catalog.resources.ProjectResource) resource);\n }\n return result;\n }", "Collection<String> getRequiredClasses( String id );", "@Override\r\n\tpublic Set<Class<?>> getClasses() {\r\n\t\treturn BazaarApplicationImpl.CLASSES;\r\n\t}", "@Override\n public Set<Class<?>> getClasses() {\n Set<Class<?>> resources = new java.util.HashSet<>();\n resources.add(api.Auth.class);\n resources.add(api.UserApi.class);\n resources.add(api.TicketApi.class);\n resources.add(api.DepartmentApi.class);\n resources.add(api.MessageApi.class);\n resources.add(api.MilestoneApi.class);\n resources.add(api.InvitationApi.class);\n return resources;\n }", "public List<BotClassification> getClassifications() {\n return classifications;\n }", "public ArrayList<Project> getClients() {\n try {\n ArrayList<Project> clients = new ArrayList<Project>();\n String selectClients = \"SELECT NAME, CLIENT_ID FROM CLIENTS\";\n connection = ConnectionManager.getConnection();\n PreparedStatement ps = connection.prepareStatement(selectClients);\n ResultSet rs = ps.executeQuery();\n while (rs.next()) {\n String client = rs.getString(\"NAME\");\n String clientId = rs.getString(\"CLIENT_ID\");\n Project p = new Project(client, clientId);\n clients.add(p);\n }\n rs.close();\n ps.close();\n return clients;\n } catch (SQLException sqle) {\n sqle.printStackTrace(); // for debugging\n return null;\n }\n }", "public SortedSet<ClassificationPair> getClassifications() {\n\t\treturn this.classifications;\n\t}", "public List<String> getHierarchicalClass() {\r\n \t\treturn hierarchicalClass;\r\n \t}", "public Object[] getItems()\n {\n return items.toArray();\n }", "@RequestMapping( value = \"/\", method = RequestMethod.GET )\n public Iterable<ClassesDTO> list(){\n return classService.list();\n }", "public MediaAiAnalysisClassificationItem [] getClassificationSet() {\n return this.ClassificationSet;\n }" ]
[ "0.7560231", "0.6342796", "0.6286215", "0.62291366", "0.61632913", "0.610838", "0.61028016", "0.6067753", "0.60307926", "0.6026654", "0.60229117", "0.60170025", "0.5986714", "0.5967811", "0.5924342", "0.592258", "0.5905152", "0.5874429", "0.58634686", "0.58127636", "0.57982516", "0.5737433", "0.5720809", "0.5710279", "0.5705206", "0.570127", "0.56999665", "0.56885743", "0.5684629", "0.5675857", "0.5647136", "0.56234694", "0.56212854", "0.56143683", "0.56125236", "0.56021905", "0.5594493", "0.5583226", "0.55750763", "0.5572624", "0.55605084", "0.55512947", "0.5537704", "0.55236787", "0.5510843", "0.5507313", "0.54893625", "0.5480371", "0.5473516", "0.5459702", "0.54594433", "0.54563373", "0.5450084", "0.54368114", "0.54366857", "0.54212135", "0.5420541", "0.5415761", "0.54103684", "0.5399325", "0.5395116", "0.5374313", "0.5357602", "0.5352647", "0.5341774", "0.53409207", "0.5338048", "0.5334678", "0.5324681", "0.5318941", "0.5315685", "0.5314735", "0.53110933", "0.5307135", "0.53036344", "0.5296874", "0.52916545", "0.529152", "0.5286531", "0.5284798", "0.52801496", "0.52756745", "0.52642417", "0.5262974", "0.5259344", "0.5254093", "0.5249139", "0.5241996", "0.524109", "0.5203623", "0.5197376", "0.5188392", "0.5187265", "0.5185512", "0.5182062", "0.51780534", "0.5176219", "0.5173449", "0.5161936", "0.515712" ]
0.8133595
0
Method returns projcet ClassItems annotations
public List<Iannotation> getClassesAnnotations(String name) { return projectData.getClassesAnnotations(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Annotations getClassAnnotations();", "public List<FileSavedAnnotation> getChangedAnnotations(List<IclassItem> classItems) {\n\n this.saveAnnotaion = new ArrayList<FileSavedAnnotation>();\n\n for (IclassItem item: classItems) {\n\n addClassAnnotation(item.getClassAnnotations(), item.getPackageName(), item.getName());\n addAttrAnnotation(item.getClassAttributes(), item.getPackageName(), item.getName());\n }\n return saveAnnotaion;\n }", "DataMap getCustomAnnotations();", "public XSObjectList getAnnotations() {\n\treturn (fAnnotations != null) ? fAnnotations : XSObjectListImpl.EMPTY_LIST;\n }", "public List<WjrClassItem> getClassItems() {\r\n return new ArrayList<WjrClassItem>(classItems.values());\r\n }", "@PropertyGetter(role = ANNOTATION)\n\tList<CtAnnotation<? extends Annotation>> getAnnotations();", "Set<String> annotations();", "public List<IclassItem> getClasses() {\n if(projectData!=null){\n return projectData.getClasses();\n }\n return new ArrayList<IclassItem>();\n }", "public String getAnnotations() {\n\t\treturn annotations;\n\t}", "Set<? extends Class<? extends Annotation>> annotations();", "public Map<String, Object> getAnnotations() {\n return ImmutableMap.copyOf(annotations);\n }", "public AnnotationJava[] getAnnotations() {\n\t\treturn annotations;\n\t}", "public Annotations getAnnotations() {\n\t\treturn annotations;\n\t}", "public List<Annotation> getAnnotations() {\n return this.annotations.obtainAll();\n }", "java.util.List<org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall> \n getAnnotationList();", "public ElementMap[] getAnnotations() {\r\n return union.value();\r\n }", "<T extends Annotation> IList<Object> getAnnotatedObjects(Class<T> type);", "public List<AnnotationMirror> getAnnotations() {\n\t\treturn new ArrayList<>(annotations);\n\t}", "java.util.List<org.landxml.schema.landXML11.ClassificationDocument.Classification> getClassificationList();", "public List<Annotation> getAnnotations() {\r\n\t\treturn rootAnnotations;\r\n\t}", "@Override\n\tpublic Set<String> getAnnotations(OWLEntity cpt) {\n\t\treturn new HashSet<String>();\n\t}", "public ElementList[] getAnnotations() {\r\n return union.value();\r\n }", "@Override\n\tpublic AnnotationSetItem getAnnotationSetItem() {\n\t\treturn annotationSetItem;\n\t}", "@Deprecated public List<AnnotationRef> getAnnotations(){\n return build(annotations);\n }", "default List<AnnotationContext<?>> allAnnotations() {\n\n return annotations().stream()\n .flatMap(annotation -> annotation.valueType().<Stream<AnnotationContext<?>>>map(valueType -> {\n if (valueType.isArray()) {\n final TypeContext componentType = valueType.arrayComponentType();\n final AnnotationContext<Repeatable> rep = componentType.annotation(Repeatable.class);\n if (rep != null && rep.value().equals(annotation.annotationType())) {\n final Annotation[] repeated = annotation.value();\n return Arrays.stream(repeated).map(AnnotationContext::new);\n }\n }\n return Stream.of(annotation);\n }).orElseGet(() -> Stream.of(annotation)))\n .collect(Collectors.toList());\n }", "public List<J.Annotation> getAllAnnotations() {\n List<Annotation> allAnnotations = new ArrayList<>(leadingAnnotations);\n for (J.Modifier modifier : modifiers) {\n allAnnotations.addAll(modifier.getAnnotations());\n }\n if (typeParameters != null) {\n allAnnotations.addAll(typeParameters.getAnnotations());\n }\n if (returnTypeExpression instanceof AnnotatedType) {\n allAnnotations.addAll(((AnnotatedType) returnTypeExpression).getAnnotations());\n }\n allAnnotations.addAll(name.getAnnotations());\n return allAnnotations;\n }", "public List<Annotation> getMembers();", "public Element[] getAnnotations() {\r\n return union.value();\r\n }", "@Override\n\tpublic Annotation[] getAnnotations() {\n\t\treturn null;\n\t}", "AnnotationProvider getClassAnnotationProvider();", "java.util.List getClassPathElements();", "String getMetadataClassName();", "ArrayList<PropertyMetadata> getProperties();", "Set<Class<?>> getClassSetByAnnotation(String packageName, Class<? extends Annotation> annotationClass);", "org.landxml.schema.landXML11.ClassificationDocument.Classification[] getClassificationArray();", "public List<String> getAnnotations() {\n return applicationIdentifiers;\n }", "public abstract ArrayList<CustomPath> getAnnotationPathList();", "public String getAnnotation();", "Set<Class<? extends Annotation>> getScanTypeAnnotations();", "public static List<SearchAnnotation> getDefaultVisibleAnnotationTypes() {\n\t\tList<SearchAnnotation> annotations = new ArrayList<SearchAnnotation>();\n\t\t\n\t\t{\n\t\t\tSearchAnnotation annotation = new SearchAnnotation();\n\t\t\tannotation.setAnnotationName( PSMAnnotationTypes.PERCOLATOR_ANNOTATION_TYPE_QVALUE );\n\t\t\tannotation.setSearchProgram( Constants.PROGRAM_NAME_PERCOLATOR );\n\t\t\tannotations.add( annotation );\n\t\t}\n\n\t\t{\n\t\t\tSearchAnnotation annotation = new SearchAnnotation();\n\t\t\tannotation.setAnnotationName( PSMAnnotationTypes.PERCOLATOR_ANNOTATION_TYPE_PEP );\n\t\t\tannotation.setSearchProgram( Constants.PROGRAM_NAME_PERCOLATOR );\n\t\t\tannotations.add( annotation );\n\t\t}\n\t\t\n\t\t{\n\t\t\tSearchAnnotation annotation = new SearchAnnotation();\n\t\t\tannotation.setAnnotationName( PSMAnnotationTypes.COMET_ANNOTATION_TYPE_EXPECT );\n\t\t\tannotation.setSearchProgram( Constants.PROGRAM_NAME_COMET );\n\t\t\tannotations.add( annotation );\n\t\t}\n\t\t\n\t\t{\n\t\t\tSearchAnnotation annotation = new SearchAnnotation();\n\t\t\tannotation.setAnnotationName( PSMAnnotationTypes.COMET_ANNOTATION_TYPE_HIT_RANK );\n\t\t\tannotation.setSearchProgram( Constants.PROGRAM_NAME_COMET );\n\t\t\tannotations.add( annotation );\n\t\t}\n\n\t\treturn annotations;\n\t}", "@SuppressWarnings(\"unchecked\")\n private <A extends Annotation> A[] getAnnotations(AnnotationBinding[] annoInstances, Class<A> annotationClass, boolean justTheFirst) {\n if (annoInstances == null || annoInstances.length == 0 || annotationClass == null)\n return null;\n String annoTypeName = annotationClass.getName();\n if (annoTypeName == null)\n return null;\n List<A> list = new ArrayList(annoInstances.length);\n for (AnnotationBinding annoInstance : annoInstances) {\n if (annoInstance == null)\n continue;\n AnnotationMirrorImpl annoMirror = createAnnotationMirror(annoTypeName, annoInstance);\n if (annoMirror != null) {\n list.add((A) Proxy.newProxyInstance(annotationClass.getClassLoader(), new Class[] { annotationClass }, annoMirror));\n if (justTheFirst)\n break;\n }\n }\n A[] result = (A[]) Array.newInstance(annotationClass, list.size());\n return list.size() > 0 ? (A[]) list.toArray(result) : null;\n }", "public abstract ImportAttributes getAttributes();", "public List<Iannotation> getClassesAttrAnnotations(String className, String attrName) {\n\n return projectData.getClassesAttrAnnotations(className, attrName);\n }", "public String annotation() {\n return this.innerProperties() == null ? null : this.innerProperties().annotation();\n }", "public List<J.Annotation> getAllAnnotations() {\n List<Annotation> allAnnotations = new ArrayList<>(leadingAnnotations);\n for (J.Modifier modifier : modifiers) {\n allAnnotations.addAll(modifier.getAnnotations());\n }\n if (typeExpression != null && typeExpression instanceof J.AnnotatedType) {\n allAnnotations.addAll(((J.AnnotatedType) typeExpression).getAnnotations());\n }\n return allAnnotations;\n }", "public List<BotClassification> getClassifications() {\n return classifications;\n }", "@DISPID(1610940430) //= 0x6005000e. The runtime will prefer the VTID if present\n @VTID(36)\n Collection annotationSets();", "public AnnotationSearchResultItem() {\n }", "public abstract ArrayList<DrawingComponent> getAnnotationList();", "private static ArrayList<Classification> getClassifications(HttpResponse<String> response){\n\t\tArrayList<Classification> classifications;\n\t\ttry {\n\t\t\tclassifications = new ObjectMapper().readValue(response.body(), new TypeReference<ArrayList<Classification>>(){});\n\t\t\treturn classifications;\n\t\t} catch (JsonMappingException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (JsonProcessingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//return null;\n\t\treturn new ArrayList<Classification>();\n\t}", "public List<J.Annotation> getAllAnnotations() {\n List<Annotation> allAnnotations = new ArrayList<>(leadingAnnotations);\n for (J.Modifier modifier : modifiers) {\n allAnnotations.addAll(modifier.getAnnotations());\n }\n allAnnotations.addAll(kind.getAnnotations());\n return allAnnotations;\n }", "public java.util.Collection getAttributes();", "private TypeMirror[] readCustomConverterClasses(Element classElement) {\n AnnotationMirror annotationMirror = null;\n for (AnnotationMirror candidate : classElement.getAnnotationMirrors()) {\n if (context.getClassUtils().isSame(candidate.getAnnotationType(), NamingStrategy.class)) {\n annotationMirror = candidate;\n break;\n }\n }\n assert annotationMirror != null; // We've checked that in the caller already\n\n for (Map.Entry<? extends ExecutableElement, ? extends AnnotationValue> entry :\n annotationMirror.getElementValues().entrySet()) {\n if (entry.getKey().getSimpleName().contentEquals(\"customConverterClass\")) {\n @SuppressWarnings(\"unchecked\")\n List<? extends AnnotationValue> values = (List) entry.getValue().getValue();\n TypeMirror[] result = new TypeMirror[values.size()];\n for (int i = 0; i < values.size(); i++) {\n result[i] = ((TypeMirror) values.get(i).getValue());\n }\n return result;\n }\n }\n return new TypeMirror[0];\n }", "Map<String, String> getCustomMetadata();", "Set<Class<? extends Annotation>> getScanMethodAnnotations();", "public List getClassLines() {\n return classLines;\n }", "public String[] getAllFilledAnnotationFields();", "@Override\n\tpublic void annotate(JDefinedClass cls) {\n\n\t}", "@Override\n public List<BaiseeClazz> findAllClazzInfo() {\n return claMapper.findAllClazzInfo();\n }", "public List<String> getClassList() {\n return classlist;\n }", "private List<String> generateAnnotationList(List<Annotation> queryAnnotations) {\n\n List<String> annotationList = new ArrayList<>();\n AnnotationConfigGenerator annotationConfigGenerator = new AnnotationConfigGenerator();\n for (Annotation queryAnnotation : queryAnnotations) {\n if (!queryAnnotation.getName().equalsIgnoreCase(\"info\")) {\n annotationList.add(annotationConfigGenerator.generateAnnotationConfig(queryAnnotation));\n }\n }\n preserveCodeSegmentsOf(annotationConfigGenerator);\n return annotationList;\n }", "trinsic.services.common.v1.CommonOuterClass.JsonPayload getAttributes();", "public Framework_annotation<T> build_annotation();", "List<Property<?>> getProperties(ProjectEntity entity);", "@Override\n\tpublic Annotation[] getDeclaredAnnotations() {\n\t\treturn null;\n\t}", "ArrayList getAttributes();", "String[] getSupportedAnnotationPackages();", "@SuppressWarnings(\"unchecked\")\n public <A extends Annotation> A[] getAnnotationsByType(AnnotationBinding[] annoInstances, Class<A> annotationClass) {\n A[] result = getAnnotations(annoInstances, annotationClass, false);\n return result == null ? (A[]) Array.newInstance(annotationClass, 0) : result;\n }", "java.util.List<java.lang.String> getAnnotationFiltersList();", "public static Map<String, String> annotations(PodTemplateSpec podSpec) {\n return annotations(podSpec.getMetadata());\n }", "Map<Class<?>, Object> yangAugmentedInfoMap();", "Map<Class<?>, Object> yangAugmentedInfoMap();", "public abstract Annotations mo30682c();", "public static Map<String, String> annotations(HasMetadata resource) {\n return annotations(resource.getMetadata());\n }", "@ApiModelProperty(value = \"A list of classification results\")\n public List<ProjectClassificationResult> getClassificationResults() {\n return classificationResults;\n }", "public Annotation getAnnotation() {\n return annotation;\n }", "public static void main(String[] args) {\n\n Annotation[] annotations1 = B.class.getAnnotations();\n }", "public static ArrayList<Metadata> getMetadata() {\n\t\tmetadata.add(new Metadata(\"id\", \"Numero identificativo del lavoro\", \"long\"));\n\t\tmetadata.add(new Metadata(\"role\", \"Ruolo lavorativo\", \"String\"));\n\t\tmetadata.add(new Metadata(\"cname\", \"Nome dell'azienda\", \"String\"));\n\t\tmetadata.add(new Metadata(\"etype\", \"Tipo di impiego\", \"String\"));\n\t\tmetadata.add(new Metadata(\"location\", \"Luogo\", \"String\"));\n\t\tmetadata.add(new Metadata(\"remote\", \"Lavoro a distanza\", \"Bool\"));\n\t\t\n\n\t\treturn metadata;\n\t}", "private void getAnnotatedClass(Class<? extends Annotation> annotation, final Element element) {\n TypeElement typeElement = (TypeElement) element.getEnclosingElement();\n// String fullName = typeElement.getQualifiedName().toString();\n Map<Class<? extends Annotation>, List<Element>> classListMap = mAnnotation.get(typeElement);\n if (classListMap == null) {\n classListMap = new HashMap<>();\n ArrayList<Element> elements=new ArrayList<>();\n elements.add(element);\n classListMap.put(annotation,elements);\n mAnnotation.put(typeElement, classListMap);\n } else {\n List<Element> elements = classListMap.get(annotation);\n if (elements == null) {\n elements = new ArrayList<>();\n elements.add(element);\n classListMap.put(annotation,elements);\n mAnnotation.put(typeElement, classListMap);\n } else\n mAnnotation.get(typeElement).get(annotation).add(element);\n }\n\n// log(annotationList.size() + \"fdas\");\n }", "public String getClassification() {\n return classification;\n }", "public String getClassification() {\n return classification;\n }", "@Override\n\tpublic int getNbAnnotations() {\n\t\treturn annotationSetItem.getNbAnnotationItems();\n\t}", "Object yangAugmentedInfo(Class classObject);", "Object yangAugmentedInfo(Class classObject);", "public SortedSet<ClassificationPair> getClassifications() {\n\t\treturn this.classifications;\n\t}", "public Iterator<String> listAllandAnonClasses()\r\n\t{\r\n\t\treturn new ToStringIterator<String>(ONT_MODEL.listClasses());\r\n\t}", "@Override\n public String getAnnotation() {\n return annotation;\n }", "public Collection getAllAuxClasss();", "public String getCollectionClass ();", "Map<String, Object> getAllMetadata();", "public Vector getSampleAnnotationFieldNames();", "@XmlTransient\n Collection<Prestito> getPrestitoCollection();", "public String getClassification() {\n return classification;\n }", "org.landxml.schema.landXML11.ClassificationDocument.Classification getClassificationArray(int i);", "@Override\n\tpublic void buildAttributes(JDefinedClass cls) {\n\n\t}", "public String getAnnotation () {\n return annotation;\n }", "protected void createExtendedMetaDataAnnotations() {\n\t\tString source = \"http:///org/eclipse/emf/ecore/util/ExtendedMetaData\";\t\t\t\t\t\n\t\taddAnnotation\n\t\t (analyzerJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"AnalyzerJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getAnalyzerJob_RFSService(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"RFSService\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (componentFailureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ComponentFailure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getComponentFailure_ComponentRef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ComponentRef\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (componentWorkFlowRunEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ComponentWorkFlowRun\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getComponentWorkFlowRun_FailureRefs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"FailureRefs\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (expressionFailureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ExpressionFailure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getExpressionFailure_ExpressionRef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ExpressionRef\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (failureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"Failure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getFailure_Message(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Message\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"Job\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_EndTime(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"EndTime\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_Interval(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Interval\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_JobState(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"JobState\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Name\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_Repeat(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Repeat\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_StartTime(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"StartTime\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobRunContainerEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobRunContainer\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJobRunContainer_Job(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Job\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJobRunContainer_WorkFlowRuns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"WorkFlowRuns\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (jobRunStateEEnum, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobRunState\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobRunStateObjectEDataType, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobRunState:Object\",\n\t\t\t \"baseType\", \"JobRunState\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (jobStateEEnum, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobState\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobStateObjectEDataType, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobState:Object\",\n\t\t\t \"baseType\", \"JobState\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (metricSourceJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"MetricSourceJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getMetricSourceJob_MetricSources(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"MetricSources\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (nodeReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"NodeReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getNodeReporterJob_Node(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Node\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (nodeTypeReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"NodeTypeReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getNodeTypeReporterJob_NodeType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"NodeType\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getNodeTypeReporterJob_ScopeObject(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ScopeObject\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (operatorReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"OperatorReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getOperatorReporterJob_Operator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Operator\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (retentionJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"RetentionJob\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (rfsServiceMonitoringJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"RFSServiceMonitoringJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getRFSServiceMonitoringJob_RFSService(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"RFSService\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (rfsServiceReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"RFSServiceReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getRFSServiceReporterJob_RFSService(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"RFSService\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (serviceUserFailureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ServiceUserFailure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getServiceUserFailure_ServiceUserRef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ServiceUserRef\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (workFlowRunEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"WorkFlowRun\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Ended(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Ended\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Log(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Log\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Progress(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Progress\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_ProgressMessage(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"ProgressMessage\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_ProgressTask(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"ProgressTask\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Started(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Started\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_State(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"State\"\n\t\t });\n\t}", "java.lang.String getMetadataJson();", "Map<String, Object> getAttributes();", "Map<String, Object> getAttributes();" ]
[ "0.6802379", "0.63501865", "0.6181895", "0.61591136", "0.60940176", "0.60891414", "0.6071096", "0.6052804", "0.6030744", "0.5996809", "0.59681433", "0.59429073", "0.5941449", "0.59105057", "0.5787384", "0.56242204", "0.5623609", "0.5605865", "0.56010836", "0.5580924", "0.5575018", "0.5567326", "0.5551456", "0.553736", "0.55202055", "0.55161583", "0.55000234", "0.54716337", "0.5458305", "0.54230237", "0.5390821", "0.5382655", "0.53789073", "0.5378601", "0.5377622", "0.5374779", "0.53259194", "0.5322732", "0.5310314", "0.53073925", "0.53043324", "0.52703935", "0.52618957", "0.52579993", "0.52554834", "0.52551085", "0.524128", "0.5240283", "0.52367157", "0.5225382", "0.52249813", "0.51924026", "0.5169699", "0.5163148", "0.51620686", "0.5159713", "0.5155116", "0.5137682", "0.5136709", "0.5135039", "0.51333845", "0.5121383", "0.51149124", "0.51077634", "0.5101382", "0.50974464", "0.5087383", "0.5080677", "0.5071484", "0.50710714", "0.5061256", "0.5061256", "0.5054244", "0.50514567", "0.50502294", "0.5048198", "0.5038876", "0.50371367", "0.50290704", "0.5014811", "0.5014811", "0.5013445", "0.5009975", "0.5009975", "0.50073045", "0.50059426", "0.5003263", "0.5002231", "0.50005287", "0.50003386", "0.49997023", "0.49951446", "0.49697065", "0.49659005", "0.49582928", "0.49580675", "0.49543148", "0.49460465", "0.49429274", "0.49429274" ]
0.5757786
15
Method returns all ClassItems attributes
public List<Iattribute> getClassesAttribute(String name) { return projectData.getClassesAttribute(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.Collection getAttributes();", "public List<WjrClassItem> getClassItems() {\r\n return new ArrayList<WjrClassItem>(classItems.values());\r\n }", "Attributes getAttributes();", "ArrayList getAttributes();", "IAttributes getAttributes();", "public Attributes getAttributes() { return this.attributes; }", "public List<String> getAttributes(Class<?> classType) {\n\t\tList<String> properties = new ArrayList<>();\n\t\tfor (String property : attributes.keySet())\n\t\t\tif (getAttribute(property) != null && getAttribute(property) != null && getAttribute(property).getClass().equals(classType))\n\t\t\t\tif (!properties.contains(property))\n\t\t\t\t\tproperties.add(property);\n\t\treturn properties;\n\t}", "public String[] getAllAttributes() {\n\t\treturn allAttributes;\n\t}", "private Attributes getAttributes()\r\n\t{\r\n\t return attributes;\r\n\t}", "public Collection<HbAttributeInternal> attributes();", "public List<Attribute<?>> getAttributes() {\r\n\t\treturn Collections.unmodifiableList(attributes);\r\n\t}", "public final String[] getAttributes() {\n return this.attributes;\n }", "public List<GenericAttribute> getAttributes() {\n return attributes;\n }", "public String getAttributes() {\n return attributes;\n }", "public String getAttributes() {\n return attributes;\n }", "Map<String, Object> getAttributes();", "Map<String, Object> getAttributes();", "Map<String, Object> getAttributes();", "@Override\r\n\tpublic Map<String, String> getAttributes() {\r\n\t\treturn this.attributes;\r\n\t}", "public List<Attribute> getAttributes() {\r\n return attributes;\r\n }", "Map<String, String> getAttributes();", "public List<TLAttribute> getAttributes();", "public Attribute[] getAttributes()\n {\n return _attrs;\n }", "public Map<String, String> getAttributes() {\n\t\treturn atts;\n\t}", "public String getAttributes() {\n\t\treturn getProperty(\"attributes\");\n\t}", "public HashMap getClassWithAttr() {\n return storingClassWithAttr;\n }", "public List<Pair<String, String>> getAttributes() {\n\t\treturn attributes;\n\t}", "public List<Attribute> getAttributes() {\n return Collections.unmodifiableList(attributes);\n }", "public Map<String, Object> getAttributeValues()\n\t{\n\t\tMap<String, Object> retval = new TreeMap<>();\n\t\t\n\t\tfor (ClassAttribute attribute : attributes.keySet())\n\t\t{\n\t\t\tretval.put(attribute.shortName, attributes.get(attribute));\n\t\t}\n\t\t\n\t\treturn retval;\n\t}", "@Override\n public List<MappedField<?>> getAttributes() {\n return attributes;\n }", "public Map<String, Set<String>> getAttributes() {\n return attributes;\n }", "public List<String> attributes() {\n return this.attributes;\n }", "public Map<String, Object> getAttributes();", "public Map<String, Object> getAttributes();", "public Map<String, String> getAttributes();", "public ConcurrentHashMap<String, Attribute> getAttributes() {\n\t\treturn list;\n\t}", "public Map<String, String> getAttributes() {\n\t\treturn attributes;\n\t}", "public abstract Map<String, Object> getAttributes();", "@Override\n public ArrayList<SCANAttributesXML> getAttributes() {\n return mesoCfgXML.getAttributesData();\n }", "public String[] getRelevantAttributes();", "public Vector<HibernateAttribute> getAttributes() {\n\t\treturn attributes;\n\t}", "public Set<String> getAttributes() {\r\n return attributeMap.keySet();\r\n }", "@Override\n public synchronized Set<AttributeType> getAttributes() {\n return attributes = nonNullSet(attributes, AttributeType.class);\n }", "public WSLAttributeList getAttributes() {return attributes;}", "public Object[] getAttributes() {\n\t\treturn new Object[] {true}; //true for re-init... \n\t}", "trinsic.services.common.v1.CommonOuterClass.JsonPayload getAttributes();", "@Override\n\tpublic ArrayList<Object> getAttributeList() {\n\t\tArrayList<Object> attributes = new ArrayList<Object>();\n//\t\tattributes.add(\"s2014_age\");\n//\t\tattributes.add(\"s2014_prog_skill\");\n//\t\tattributes.add(\"s2014_uni_yrs\");\n//\t\tattributes.add(\"s2014_os\");\n//\t\tattributes.add(\"s2014_progLangs\");\n//\t\tattributes.add(\"s2014_engSkill\");\n\t\tattributes.add(\"s2014_favAnimal\");\n\t\tattributes.add(\"s2014_MoreMtns\");\n//\t\tattributes.add(\"s2014_winter\");\n\t\tattributes.add(\"s2014_favColor\");\n//\t\tattributes.add(\"s2014_neuralNetwork\");\n//\t\tattributes.add(\"s2014_vectorMachine\");\n//\t\tattributes.add(\"s2014_sql\");\n//\t\tattributes.add(\"s2014_favSQLServ\");\n//\t\tattributes.add(\"s2014_apriori\");\n\t\treturn attributes;\n\t}", "public Enumeration getAttributes()\n {\n ensureLoaded();\n return m_tblAttribute.elements();\n }", "public String [] getNames () { \n return this.listAttributes(); \n }", "@Override\n\tpublic Attributes getAttributes() {\n\t\treturn (Attributes)map.get(ATTRIBUTES);\n\t}", "public List<GenericAttribute> getGenericAttributes () {\n return genericAttributes;\n }", "public FactAttributes getAttributes() {\r\n return localAttributes;\r\n }", "public List findAll() {\n return findAll(ClassItem.class);\n }", "public Map<String, String> getAttributes() {\n return Collections.unmodifiableMap(attributes);\n }", "public abstract Map getAttributes();", "public Attributes getAttributes() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic Map<String, Object> getAttributes() {\n\t\treturn null;\r\n\t}", "public Attributes[] getAllAttributes() \r\n {\r\n\tfinal Attributes[] array = new Attributes[ntMap.size()];\r\n\tint i=0;\r\n\tfor (final NodeTypeHolder nt : ntMap.values())\r\n\t array[i++] = nt.getAttributes();\r\n\treturn array;\r\n }", "public abstract ImportAttributes getAttributes();", "List<Attribute<T, ?>> getAttributes();", "public Set<String> getAllAttributes() {\r\n if (parent.isPresent()) {\r\n return Sets.union(attributeMap.keySet(), parent.get().getAllAttributes());\r\n } else {\r\n return getAttributes();\r\n }\r\n }", "@java.lang.Override\n public trinsic.services.common.v1.CommonOuterClass.JsonPayload getAttributes() {\n return attributes_ == null ? trinsic.services.common.v1.CommonOuterClass.JsonPayload.getDefaultInstance() : attributes_;\n }", "public final native JsArray<Attribute> getAttributes() /*-{\n\t\t\treturn this.attributes;\n\t\t}-*/;", "public java.util.List<java.util.Map<String,AttributeValue>> getItems() {\n \n return items;\n }", "private ArrayList<Attribute> getAttributes() {\n\t\tif (attributes != null && attributes instanceof ArrayList)\n\t\t\treturn ((ArrayList<Attribute>) attributes);\n\t\telse {\n\t\t\tArrayList<Attribute> tmp = new ArrayList<Attribute>();\n\t\t\tif (attributes != null)\n\t\t\t\ttmp.addAll(attributes);\n\t\t\tattributes = tmp;\n\t\t\treturn tmp;\n\t\t}\n\t}", "public String getAttributes() {\n StringBuilder sb = new StringBuilder();\n\n // class\n if (!getClassAttribute().isEmpty()) {\n sb.append(\"class='\").append(getClassAttribute()).append(\"' \");\n }\n\n // data-*\n if (!getDataAttributes().isEmpty()) {\n sb.append(getDataAttributes()).append(\" \");\n }\n\n // hidden\n if (isHiddenAttribute()) {\n //sb.append(\"hidden \");\n addSpecialAttribute(\"hidden\");\n }\n\n // id\n if (!getIdAttribute().isEmpty()) {\n sb.append(\"id='\").append(getIdAttribute()).append(\"' \");\n }\n\n // style\n if (!getStyleAttribute().isEmpty()) {\n sb.append(\"style='\").append(getStyleAttribute()).append(\"' \");\n }\n\n // title\n if (!getTitleAttribute().isEmpty()) {\n sb.append(\"title='\").append(getTitleAttribute()).append(\"' \");\n }\n\n // custom\n if (!getCustomAttributes().isEmpty()) {\n sb.append(getCustomAttributes()).append(\" \");\n }\n \n // special\n if (!getSpecialAttribute().isEmpty()) {\n sb.append(getSpecialAttribute());\n }\n\n return sb.toString().trim();\n }", "public VAttribute[] getAttributes() throws VlException \n {\n return getAttributes(getAttributeNames());\n }", "public java.lang.Integer getAttributes() {\r\n return attributes;\r\n }", "private String getClassAttribute() {\n return String.join(\" \", classAttribute);\n }", "Iterable<? extends XomNode> attributes();", "public Collection getAllAuxClasss();", "public Enumeration getAttributes() {\n\t\treturn url.getAttributes();\n }", "@java.lang.Override\n public trinsic.services.common.v1.CommonOuterClass.JsonPayloadOrBuilder getAttributesOrBuilder() {\n return getAttributes();\n }", "java.util.List<tendermint.abci.EventAttribute> \n getAttributesList();", "public List<String> listItemAttributes(final String itemType, final String itemName){\n\t\tactivate();\n\t\tfinal List<String> names = new ArrayList<>();\n\t\tDisplay.syncExec(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n DefaultCTabItem tabItem = new DefaultCTabItem(1);\n\t\t\t\ttabItem.activate();\n\t\t\t\tModelEditorItemAttributeMatcher matcher = new ModelEditorItemAttributeMatcher(\"\", itemType, itemName);\n\t\t\t\t\n\t\t\t\tGraphicalViewer viewer = ((IEditorPart) tabItem.getSWTWidget().getData()).getAdapter(GraphicalViewer.class);\n\t\t\t\tViewerHandler.getInstance().getEditParts(viewer, matcher);\n\t\t\t\tnames.addAll(matcher.getAllAttributeNames());\n\t\t\t}\n\t\t});\n\t\treturn names;\n\t}", "@java.lang.Override\n public int getAttributesCount() {\n return attributes_.size();\n }", "public Set<String> getAllAttributes(Class type) {\r\n Map<String, Object> filtered = Maps.filterValues(attributeMap, Predicates.instanceOf(type));\r\n if (parent.isPresent()) {\r\n return Sets.union(filtered.keySet(), parent.get().getAllAttributes(type));\r\n } else {\r\n return filtered.keySet();\r\n }\r\n }", "public Map<String, Object> getAttributesMap() {\n\t\treturn this.staticAttributes;\n\t}", "public java.util.List<java.util.Map<String, AttributeValue>> getItems() {\n return items;\n }", "public Map getAttributes() {\n Map common = channel.getAttributes();\n \n if(map == null) {\n map = new HashMap(common);\n }\n return map;\n }", "public List<IclassItem> getClasses() {\n if(projectData!=null){\n return projectData.getClasses();\n }\n return new ArrayList<IclassItem>();\n }", "public Attribute[] getAvailableAttributes(){\n Attribute attributes[] = {\n TextAttribute.FAMILY,\n TextAttribute.WEIGHT,\n TextAttribute.POSTURE,\n TextAttribute.SIZE,\n\t TextAttribute.TRANSFORM,\n TextAttribute.SUPERSCRIPT,\n TextAttribute.WIDTH,\n };\n\n return attributes;\n }", "public Enumeration enumeratePropertyNames() {\n return this.attributes.keys();\n }", "public String getListAttributesPref()\n {\n Serializer<Collection<RecognizedElement>> serializer = new Serializer<Collection<RecognizedElement>>();\n return serializer.serialize(tree.getChildren());\n }", "public Map<String, Object> getAttrs();", "public List<Jattr> attributes() {\n NamedNodeMap attributes = node.getAttributes();\n if (attributes == null)\n return new ArrayList<Jattr>();\n List<Jattr> jattrs = new ArrayList<Jattr>();\n for (int i = 0; i < attributes.getLength(); i++) {\n jattrs.add(new Jattr((Attr) attributes.item(i)));\n }\n return jattrs;\n }", "public Vector getAttributeFields() {\n\treturn attributeFields;\n }", "@Override\n\tpublic AttributeMap getAttributes() {\n\t\treturn defaultEdgle.getAttributes();\n\t}", "@Override\n public synchronized Set<AttributeType> getAttributeInstances() {\n return attributeInstances = nonNullSet(attributeInstances, AttributeType.class);\n }", "public Attributes getFileAttributes()\r\n {\r\n return aFileAttributes;\r\n }", "public ArrayList<Attribute> getAttributeList(){\n\t\treturn child.getAttributeList();\n\t}", "public final int getAttributes() {\n\t\treturn m_info.getFileAttributes();\n\t}", "public TableAttributes getAttributes() {\n\treturn attrs;\n }", "default List<String> getAttributeNames() {\n\t\treturn getAttributes().stream().map(v -> v.getName()).collect(Collectors.toList());\n\t}", "@java.lang.Override\n public java.util.List<google.maps.fleetengine.v1.VehicleAttribute> getAttributesList() {\n return attributes_;\n }", "public Set<String> attributeKeys()\r\n\t{\r\n\t\treturn this.attributes.stringPropertyNames();\r\n\t}", "public List<String> getAttributeNames() {\n\t\treturn new ArrayList<>(attributes.keySet());\n\t}", "public List<Attribute> list() {\n String sql = \"select * from attributes \" +\n \"order by value\";\n List<Attribute> attributes =\n (List<Attribute>) this.getSession().createSQLQuery(sql)\n .addEntity(Attribute.class)\n .list();\n return attributes;\n }", "public Map<String, Object> attributes() {\n Map<String, Object> attributes = new HashMap<String, Object>();\n for (Column column : getColumns()) {\n String name = Strings.camelize(column.getName(), true);\n attributes.put(name, attribute(name));\n }\n return attributes;\n }", "public Map<String, Map<String, String>> getUserAttributes() {\n return m_userAttributes;\n }" ]
[ "0.7461733", "0.7065256", "0.70226717", "0.7009609", "0.6998138", "0.6949406", "0.690617", "0.68652797", "0.6825625", "0.68130606", "0.6804191", "0.67819536", "0.67622006", "0.67614555", "0.67614555", "0.6761123", "0.6761123", "0.6761123", "0.6758931", "0.6734034", "0.6734001", "0.6696434", "0.66889733", "0.6676102", "0.6664056", "0.6658975", "0.6637931", "0.6634702", "0.6601191", "0.65914375", "0.6590268", "0.6579152", "0.6576242", "0.6576242", "0.6551446", "0.6536459", "0.6522078", "0.65175366", "0.6513652", "0.65107745", "0.65067774", "0.64861864", "0.64817786", "0.6474949", "0.6455011", "0.64316666", "0.64142543", "0.64023226", "0.63911575", "0.6384687", "0.6373594", "0.63614506", "0.63503754", "0.6340144", "0.63341117", "0.6330495", "0.63278854", "0.6321155", "0.6310474", "0.62985635", "0.6286714", "0.6270237", "0.62620527", "0.6244646", "0.62325484", "0.6218599", "0.61997944", "0.61920905", "0.61675143", "0.6152717", "0.6122954", "0.6108454", "0.60922384", "0.6055332", "0.604714", "0.6035034", "0.6016962", "0.5999277", "0.5997003", "0.5982851", "0.5979639", "0.597377", "0.5967511", "0.5962237", "0.5960367", "0.59541804", "0.59481883", "0.594776", "0.5936575", "0.59362555", "0.59348917", "0.5923554", "0.5921196", "0.5903373", "0.5900991", "0.5899311", "0.58951473", "0.58905077", "0.5884545", "0.5878954" ]
0.60825133
73
Method returns Annotations of selected attribute of class
public List<Iannotation> getClassesAttrAnnotations(String className, String attrName) { return projectData.getClassesAttrAnnotations(className, attrName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Annotations getClassAnnotations();", "public String getAnnotation();", "Attributes getAttributes();", "IAttributes getAttributes();", "@PropertyGetter(role = ANNOTATION)\n\tList<CtAnnotation<? extends Annotation>> getAnnotations();", "Annotation getAnnotation();", "public Element[] getAnnotations() {\r\n return union.value();\r\n }", "public String[] getElementAnnotation(int index, String attr);", "public List<TLAttribute> getAttributes();", "public ElementList[] getAnnotations() {\r\n return union.value();\r\n }", "DataMap getCustomAnnotations();", "public String[] getRelevantAttributes();", "public ElementMap[] getAnnotations() {\r\n return union.value();\r\n }", "List<Attribute<T, ?>> getAttributes();", "Set<String> annotations();", "public java.util.Collection getAttributes();", "public List<Annotation> getAnnotations() {\n return this.annotations.obtainAll();\n }", "public String[] getAllFilledAnnotationFields();", "public Annotation getAnnotation() {\n return annotation;\n }", "public Attribute[] getTargetAttributes();", "Set<Class<? extends Annotation>> getScanMethodAnnotations();", "Set<? extends Class<? extends Annotation>> annotations();", "ArrayList getAttributes();", "public JavaAnnotation getAnnotation( String name );", "public String getAnnotation () {\n return annotation;\n }", "public Annotations getAnnotations() {\n\t\treturn annotations;\n\t}", "Attribute getAttribute();", "@Override\n public String getAnnotation() {\n return annotation;\n }", "@Override\n public List<MappedField<?>> getAttributes() {\n return attributes;\n }", "public String getAnnotations() {\n\t\treturn annotations;\n\t}", "Map<String, String> getAttributes();", "public AnnotationJava[] getAnnotations() {\n\t\treturn annotations;\n\t}", "public String getAnnotation() {\n return annotation;\n }", "public List<Annotation> getMembers();", "Map<String, Object> getAttributes();", "Map<String, Object> getAttributes();", "Map<String, Object> getAttributes();", "public List<J.Annotation> getAllAnnotations() {\n List<Annotation> allAnnotations = new ArrayList<>(leadingAnnotations);\n for (J.Modifier modifier : modifiers) {\n allAnnotations.addAll(modifier.getAnnotations());\n }\n if (typeParameters != null) {\n allAnnotations.addAll(typeParameters.getAnnotations());\n }\n if (returnTypeExpression instanceof AnnotatedType) {\n allAnnotations.addAll(((AnnotatedType) returnTypeExpression).getAnnotations());\n }\n allAnnotations.addAll(name.getAnnotations());\n return allAnnotations;\n }", "private String getClassAttribute() {\n return String.join(\" \", classAttribute);\n }", "public abstract Map getAttributes();", "public Map<String, String> getAttributes();", "public String getattribut() \n\t{\n\t\treturn attribut;\n\t}", "java.lang.String getAttribute();", "public <T extends java.lang.Object> scala.collection.Seq<org.apache.spark.sql.catalyst.expressions.Attribute> attributesFor (scala.reflect.api.TypeTags.TypeTag<T> evidence$1) ;", "public final Object getAttribute(String attribute) {\r\n\t\tfor (String key:annotations.keySet()) {\r\n\t\t\tAnnotationDefinition defn = annotations.get(key);\r\n\t\t\tif (defn.getParams() != null && defn.getParams().containsKey(attribute))\r\n\t\t\t\treturn defn.getParams().get(attribute);\t\t\t\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}", "String getControllingAttributeName();", "public abstract String[] getRequiredAttributeNames();", "public Vector getSampleAnnotationFieldNames();", "public Map<String, Object> getAttributes();", "public Map<String, Object> getAttributes();", "String getAttribute();", "public abstract Map<String, Object> getAttributes();", "public String annotation() {\n return this.innerProperties() == null ? null : this.innerProperties().annotation();\n }", "private String getCustomAttributes() {\n StringBuilder sb = new StringBuilder();\n\n customAttribute.forEach((key, value) -> {\n sb.append(key).append(\"='\").append(value).append(\"' \");\n });\n\n return sb.toString().trim();\n }", "public abstract ImportAttributes getAttributes();", "public Attributes getAttributes() { return this.attributes; }", "public Attribute[] getAttributes()\n {\n return _attrs;\n }", "public Map<String, Object> getAnnotations() {\n return ImmutableMap.copyOf(annotations);\n }", "<T extends Annotation> IList<Object> getAnnotatedObjects(Class<T> type);", "AnnotationProvider getClassAnnotationProvider();", "public String getAttributeName(){\n if(field.getAnnotation(Column.class) != null){\n return field.getAnnotation(Column.class).column();\n }\n if( field.getAnnotation(PrimaryKey.class) !=null){\n return field.getAnnotation(PrimaryKey.class).name();\n }\n return null;\n }", "public List<J.Annotation> getAllAnnotations() {\n List<Annotation> allAnnotations = new ArrayList<>(leadingAnnotations);\n for (J.Modifier modifier : modifiers) {\n allAnnotations.addAll(modifier.getAnnotations());\n }\n if (typeExpression != null && typeExpression instanceof J.AnnotatedType) {\n allAnnotations.addAll(((J.AnnotatedType) typeExpression).getAnnotations());\n }\n return allAnnotations;\n }", "Set<Class<? extends Annotation>> getScanTypeAnnotations();", "private static List<AccessibleObject> getAnnotatedFields(\n Class<? extends Annotation> annotationClass,\n Object obj,\n int maxPerClass) {\n ImmutableList.Builder<AccessibleObject> attrs = ImmutableList.builder();\n\n // Fields\n Class<?> objClass = obj.getClass();\n for (Field field : objClass.getDeclaredFields()) {\n Object annotation = field.getAnnotation(annotationClass);\n if (annotation != null) {\n if (!field.isAccessible()) {\n field.setAccessible(true);\n }\n attrs.add(field);\n }\n }\n\n // Methods\n for (Method method : objClass.getDeclaredMethods()) {\n Object annotation = method.getAnnotation(annotationClass);\n if (annotation != null) {\n if (!method.isAccessible()) {\n method.setAccessible(true);\n }\n attrs.add(method);\n }\n }\n\n // Verify limit\n List<AccessibleObject> attrList = attrs.build();\n if (attrList.size() > maxPerClass) {\n throw new IllegalArgumentException(String.format(\n \"class %s has %d attributes annotated with %s\",\n obj.getClass().getCanonicalName(),\n attrList.size(),\n annotationClass.getCanonicalName()));\n }\n return attrList;\n }", "protected String getAnnotationAttributeValue(\r\n\t\t\tIClassElementCodeGenConfig argCodeGenConfig,\r\n\t\t\tString argAnnotationName, String argAttributeName) {\r\n\t\tString result = EMPTY;\r\n\t\tif (!argCodeGenConfig.getAnnotations().isEmpty()) {\r\n\t\t\tfor (AnnotationConfig annotation : argCodeGenConfig\r\n\t\t\t\t\t.getAnnotations()) {\r\n\t\t\t\tif (argAnnotationName.equals(annotation.getName())) {\r\n\t\t\t\t\tresult = annotation.getAttribute(argAttributeName);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public List<DetailParam> getParameterWithAnnotation(Class<?> annotation) {\n List<DetailParam> params = new ArrayList<>();\n this.allClass.stream().forEach(cla -> params.addAll(this.getParameterFromClassWithAnnotation(cla, annotation)));\n return params;\n\n }", "public GenericAttribute getAttribute () {\n return attribute;\n }", "@DISPID(1610940430) //= 0x6005000e. The runtime will prefer the VTID if present\n @VTID(36)\n Collection annotationSets();", "public org.omg.uml.foundation.core.Attribute getAttribute();", "@Override\n\tpublic Annotation[] getAnnotations() {\n\t\treturn null;\n\t}", "default List<AnnotationContext<?>> allAnnotations() {\n\n return annotations().stream()\n .flatMap(annotation -> annotation.valueType().<Stream<AnnotationContext<?>>>map(valueType -> {\n if (valueType.isArray()) {\n final TypeContext componentType = valueType.arrayComponentType();\n final AnnotationContext<Repeatable> rep = componentType.annotation(Repeatable.class);\n if (rep != null && rep.value().equals(annotation.annotationType())) {\n final Annotation[] repeated = annotation.value();\n return Arrays.stream(repeated).map(AnnotationContext::new);\n }\n }\n return Stream.of(annotation);\n }).orElseGet(() -> Stream.of(annotation)))\n .collect(Collectors.toList());\n }", "public List<AnnotationMirror> getAnnotations() {\n\t\treturn new ArrayList<>(annotations);\n\t}", "@SuppressWarnings(\"unchecked\")\n public <A extends Annotation> A[] getAnnotationsByType(AnnotationBinding[] annoInstances, Class<A> annotationClass) {\n A[] result = getAnnotations(annoInstances, annotationClass, false);\n return result == null ? (A[]) Array.newInstance(annotationClass, 0) : result;\n }", "public A annotation() {\n\t\treturn proxy(annotation, loader, className, map);\n\t}", "public List<GenericAttribute> getAttributes() {\n return attributes;\n }", "public List<Annotation> getAnnotations() {\r\n\t\treturn rootAnnotations;\r\n\t}", "@Override\n\tpublic ArrayList<Object> getAttributeList() {\n\t\tArrayList<Object> attributes = new ArrayList<Object>();\n//\t\tattributes.add(\"s2014_age\");\n//\t\tattributes.add(\"s2014_prog_skill\");\n//\t\tattributes.add(\"s2014_uni_yrs\");\n//\t\tattributes.add(\"s2014_os\");\n//\t\tattributes.add(\"s2014_progLangs\");\n//\t\tattributes.add(\"s2014_engSkill\");\n\t\tattributes.add(\"s2014_favAnimal\");\n\t\tattributes.add(\"s2014_MoreMtns\");\n//\t\tattributes.add(\"s2014_winter\");\n\t\tattributes.add(\"s2014_favColor\");\n//\t\tattributes.add(\"s2014_neuralNetwork\");\n//\t\tattributes.add(\"s2014_vectorMachine\");\n//\t\tattributes.add(\"s2014_sql\");\n//\t\tattributes.add(\"s2014_favSQLServ\");\n//\t\tattributes.add(\"s2014_apriori\");\n\t\treturn attributes;\n\t}", "public List<Attribute> getAttributes() {\r\n return attributes;\r\n }", "public String getAttributes() {\n\t\treturn getProperty(\"attributes\");\n\t}", "private static void processAttributes(ClassNode cls) {\n\t\tAnnotationDefaultClassAttr defAttr = cls.get(JadxAttrType.ANNOTATION_DEFAULT_CLASS);\n\t\tif (defAttr != null) {\n\t\t\tcls.remove(JadxAttrType.ANNOTATION_DEFAULT_CLASS);\n\t\t\tfor (Map.Entry<String, EncodedValue> entry : defAttr.getValues().entrySet()) {\n\t\t\t\tMethodNode mth = cls.searchMethodByShortName(entry.getKey());\n\t\t\t\tif (mth != null) {\n\t\t\t\t\tmth.addAttr(new AnnotationDefaultAttr(entry.getValue()));\n\t\t\t\t} else {\n\t\t\t\t\tcls.addWarnComment(\"Method from annotation default annotation not found: \" + entry.getKey());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// check source file attribute\n\t\tif (!cls.checkSourceFilenameAttr()) {\n\t\t\tcls.remove(JadxAttrType.SOURCE_FILE);\n\t\t}\n\t}", "public String getAttributes() {\n return attributes;\n }", "public String getAttributes() {\n return attributes;\n }", "String attributeToGetter(String name);", "public ArrayList<AttributDescribe> getAttributs(){\r\n \treturn this.attributs;\r\n }", "java.util.List<tendermint.abci.EventAttribute> \n getAttributesList();", "public List<String> getAttributes(Class<?> classType) {\n\t\tList<String> properties = new ArrayList<>();\n\t\tfor (String property : attributes.keySet())\n\t\t\tif (getAttribute(property) != null && getAttribute(property) != null && getAttribute(property).getClass().equals(classType))\n\t\t\t\tif (!properties.contains(property))\n\t\t\t\t\tproperties.add(property);\n\t\treturn properties;\n\t}", "Map getGenAttributes();", "public Class getAttributeType();", "public final String[] getAttributes() {\n return this.attributes;\n }", "boolean isAttribute();", "public XSObjectList getAnnotations() {\n\treturn (fAnnotations != null) ? fAnnotations : XSObjectListImpl.EMPTY_LIST;\n }", "private Attributes getAttributes()\r\n\t{\r\n\t return attributes;\r\n\t}", "public Annotation getAnnotation(Class<?> aClass, Class<?> aAnnotation) {\n\t\treturn AnnotationsHelper.getAnnotation(aClass, aAnnotation);\n\t}", "public abstract Annotations mo30682c();", "public List<J.Annotation> getAllAnnotations() {\n List<Annotation> allAnnotations = new ArrayList<>(leadingAnnotations);\n for (J.Modifier modifier : modifiers) {\n allAnnotations.addAll(modifier.getAnnotations());\n }\n allAnnotations.addAll(kind.getAnnotations());\n return allAnnotations;\n }", "public Framework_annotation<T> build_annotation();", "@Deprecated public List<AnnotationRef> getAnnotations(){\n return build(annotations);\n }", "public FactAttribute[] getAttribute() {\r\n return localAttribute;\r\n }", "@Override\n\tpublic Set<String> getAnnotations(OWLEntity cpt) {\n\t\treturn new HashSet<String>();\n\t}", "List<AttributeExtend> selectByExample(AttributeExtendExample example);" ]
[ "0.6923093", "0.68240696", "0.67042047", "0.66074735", "0.6516841", "0.64874035", "0.6483968", "0.6462811", "0.6457277", "0.6426531", "0.64230406", "0.63662064", "0.6358936", "0.63556415", "0.63309", "0.63062793", "0.62657565", "0.61997074", "0.61793", "0.6165338", "0.6144475", "0.6133102", "0.61308116", "0.6091687", "0.6064984", "0.60634285", "0.60308415", "0.60278016", "0.60266525", "0.602469", "0.60080963", "0.597007", "0.5945547", "0.5929758", "0.59188944", "0.59188944", "0.59188944", "0.59179854", "0.5912439", "0.5908267", "0.58871", "0.5881363", "0.587531", "0.58734494", "0.58468646", "0.58334535", "0.5819641", "0.58135384", "0.5808719", "0.5808719", "0.58043754", "0.57797724", "0.57773787", "0.5768493", "0.57505053", "0.57349443", "0.57349", "0.5725661", "0.5725436", "0.5723559", "0.57207537", "0.57143235", "0.5707954", "0.57044244", "0.5669959", "0.5667674", "0.56587934", "0.5650446", "0.5648695", "0.5636811", "0.5631899", "0.5630263", "0.5629931", "0.56294644", "0.56259555", "0.5618487", "0.561436", "0.56045365", "0.56030643", "0.5584908", "0.558248", "0.558248", "0.5582464", "0.5572603", "0.55572355", "0.55564743", "0.55527306", "0.55396295", "0.55364305", "0.55308187", "0.55284727", "0.5525979", "0.55183107", "0.5516061", "0.5512121", "0.55120325", "0.5503105", "0.5502077", "0.5498967", "0.5497262" ]
0.58271986
46
Method sets annotation value of selected annotation of class
public void changeClassAnnotation(String className, String annotationName, String value) { projectData.changeClassAnnotation(className, annotationName, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAnnotation(String annotation) {\n this.annotation = annotation;\n }", "public void setAnnotation (String annotation) {\n this.annotation = annotation;\n }", "@PropertySetter(role = ANNOTATION)\n\t<E extends CtElement> E setAnnotations(List<CtAnnotation<? extends Annotation>> annotation);", "public void setAnnotation(DrawingComponent annotation)\n\t{\n\t\tthis.annotation = annotation;\n\t}", "@PropertySetter(role = ANNOTATION)\n\t<E extends CtElement> E addAnnotation(CtAnnotation<? extends Annotation> annotation);", "public interface AnnotationValue {\n}", "public void setAnnotationComponent(AnnotationComponent annotation) {\n\r\n org.icepdf.core.pobjects.actions.Action action = annotation.getAnnotation().getAction();\r\n\r\n // get the destination object, doesn't matter where it comes from.\r\n Destination dest = null;\r\n if (action instanceof GoToAction) {\r\n dest = ((GoToAction) action).getDestination();\r\n }\r\n // alternatively we can have a dest field on Link annotations\r\n else if (action == null && annotation.getAnnotation() instanceof LinkAnnotation) {\r\n LinkAnnotation linkAnnotation = (LinkAnnotation) annotation.getAnnotation();\r\n dest = linkAnnotation.getDestination();\r\n }\r\n\r\n if (dest != null) {\r\n // first clear all previous values.\r\n clearImplicitDestinations();\r\n // implicit assignment\r\n if (dest.getNamedDestination() == null) {\r\n implicitDestinationFieldsEnabled(true);\r\n Name type = dest.getType();\r\n applySelectedValue(implicitDestTypeComboBox, type);\r\n // set field visibility for type\r\n enableFitTypeFields(type);\r\n // type assignment.\r\n applyTypeValues(dest, type);\r\n // finally assign the page number\r\n pageNumberTextField.setText(String.valueOf(controller.getDocument()\r\n .getPageTree().getPageNumber(dest.getPageReference()) + 1));\r\n }\r\n }\r\n }", "Annotation getAnnotation();", "public void changeAttributeAnnotation(String className, String attrName, String AnnotationName, String value) {\n \n projectData.changeAttributeAnnotation(className, attrName, AnnotationName, value);\n }", "@Override\n public String getAnnotation() {\n return annotation;\n }", "private void addClassAnnotation(List<Iannotation> annotations, String packageName, String className) {\n\n FileSavedAnnotClass annotClass;\n\n for (Iannotation item: annotations) {\n\n if (item.isChangen()) {\n\n if (item.isParam()) {\n\n annotClass = new FileSavedAnnotClass(packageName, className, item.getName(), item.getValue());\n } else {\n \n annotClass = new FileSavedAnnotClass(packageName, className, item.getName(), null);\n }\n\n saveAnnotaion.add(annotClass);\n }\n }\n }", "public A annotation() {\n\t\treturn proxy(annotation, loader, className, map);\n\t}", "Annotation createAnnotation();", "Annotation createAnnotation();", "public Framework_annotation<T> build_annotation();", "public static void setTargetAnnotation (ITextUnit textUnit,\r\n \t\tLocaleId locId,\r\n \t\tIAnnotation annotation)\r\n \t{\r\n \t\tif ( textUnit == null ) return;\r\n \t\tif ( Util.isNullOrEmpty(locId) ) return;\r\n \t\tif ( textUnit.getTarget(locId) == null ) return;\r\n \t\ttextUnit.getTarget(locId).setAnnotation(annotation);\r\n \t}", "public JavaAnnotation getAnnotation( String name );", "public String getAnnotation();", "public void setClass_(String newValue);", "@Override\n\tpublic void annotate(JDefinedClass cls) {\n\n\t}", "int getAnnotationSourceValue();", "public void setAnnotations(Annotations annotations) {\n\t\tthis.annotations = annotations;\n\t}", "public Annotation getAnnotation() {\n return annotation;\n }", "public static void setSourceAnnotation (ITextUnit textUnit,\r\n \t\tIAnnotation annotation)\r\n \t{\r\n \t\tif (textUnit == null)\r\n \t\t\treturn;\r\n \t\tif (textUnit.getSource() == null)\r\n \t\t\treturn;\r\n \r\n \t\ttextUnit.getSource().setAnnotation(annotation);\r\n \t}", "String attributeToSetter(String name);", "@MyFirstAnnotation(name = \"Tom\")\n public void someMethod() {\n\n }", "@Word(word = \"First\", value = 1) \n\t public static void newMethod(){ \n\t\t FullAnnotationProgram obj = new FullAnnotationProgram(); \n\n\t try{ \n\t Class<?> c = obj.getClass(); \n\n\t // Obtain the annotation for newMethod \n\t Method m = c.getMethod(\"newMethod\"); \n\t \n\t // Display the full annotation \n\t Annotation anno = m.getAnnotation(CustomRepeatAnnots.class); \n\t System.out.println(anno); \n\t }catch (NoSuchMethodException e){ \n\t System.out.println(e); \n\t } \n\t }", "public void annotate(String annotation) {\n if (isActive())\n itemBuffer.offer(new Tag(System.currentTimeMillis(), credentials.user, annotation));\n }", "public T caseAnnotationAnnotationValue(AnnotationAnnotationValue object)\n {\n return null;\n }", "public interface SourceAnnotation {\n\n void annotate(AnnotationHolder holder, Document document, int sourceOffset);\n\n}", "public void setTargetValue(int idx, Object value);", "public String getAnnotation() {\n return annotation;\n }", "public void onScanType(Set<? extends Annotation> annotations, Class<?> clazz, Object instance);", "@Override\n public void setQualifiers(final Annotation[] annos) {\n }", "@Override\n\t\t\tpublic <T extends Annotation> T getAnnotation(Class<T> annotationClass) {\n\t\t\t\treturn null;\n\t\t\t}", "public String getAnnotation () {\n return annotation;\n }", "@Override\n public void visit(Tree.AnnotationList al) {\n }", "public void setTargetValue(String name, Object def);", "@Override\n public void xpathSet(String xpath, Object obj) {\n try {\n fetchJXPathContext().setValue(XPath.xpath(xpath), obj);\n } catch (JXPathException e) {\n throw new TypeXPathException(e);\n }\n }", "@Override\n\tpublic <T extends Annotation> T getAnnotation(Class<T> annotationClass) {\n\t\treturn null;\n\t}", "public Object handleAnnotation(AnnotationMirror annotation) {\n @SuppressWarnings(\"unchecked\")\n List<AnnotationValue> arrayMembers = (List<AnnotationValue>)annotation.getElementValues().values().iterator().next().getValue();\n return (String)arrayMembers.iterator().next().getValue();\n }", "public Builder setAnnotations(final Annotations value) {\n _annotations = value;\n return this;\n }", "public AnnotationDefaultAttr(ElemValPair s) { //\r\n elem = s;\r\n }", "@Override\r\n public void annotate(Annotation annotation) {\r\n// System.out.println(\"Tokens\");\r\n// for(CoreLabel token : annotation.get(CoreAnnotations.TokensAnnotation.class)){\r\n for(int i=0;i<annotation.get(CoreAnnotations.TokensAnnotation.class).size();i++){\r\n CoreLabel token = annotation.get(CoreAnnotations.TokensAnnotation.class).get(i);\r\n// System.out.println(token.word() +\", tokenIndex = \"+i);\r\n if(token.word().equals(sch)) {\r\n// positions.add(token.index());\r\n token.set(SearchAnnotation.class,i); //index of the token is saved\r\n\r\n }\r\n }\r\n }", "private void getAnnotatedClass(Class<? extends Annotation> annotation, final Element element) {\n TypeElement typeElement = (TypeElement) element.getEnclosingElement();\n// String fullName = typeElement.getQualifiedName().toString();\n Map<Class<? extends Annotation>, List<Element>> classListMap = mAnnotation.get(typeElement);\n if (classListMap == null) {\n classListMap = new HashMap<>();\n ArrayList<Element> elements=new ArrayList<>();\n elements.add(element);\n classListMap.put(annotation,elements);\n mAnnotation.put(typeElement, classListMap);\n } else {\n List<Element> elements = classListMap.get(annotation);\n if (elements == null) {\n elements = new ArrayList<>();\n elements.add(element);\n classListMap.put(annotation,elements);\n mAnnotation.put(typeElement, classListMap);\n } else\n mAnnotation.get(typeElement).get(annotation).add(element);\n }\n\n// log(annotationList.size() + \"fdas\");\n }", "Set<? extends Class<? extends Annotation>> annotations();", "public Annotation getAnnotationParam()\n\t{\n\t\treturn annotationParam;\n\t}", "public interface Annotation {\n\t\n\t/** Return the unique ID associated with the annotation */\n\tpublic String getId();\n\n\t/** Return the type of the annotation (such as \"laughter\", \"speaker\") according to Alveo */\n\tpublic String getType();\n\n\t/** Return the label assigned to the annotation\n\t */\n\tpublic String getLabel();\n\n\t/** Return the start offset of the annotation\n\t */\n\tpublic double getStart();\n\n\t/** Return the end offset of the annotation\n\t */\n\tpublic double getEnd();\n\n\t/** Return the <a href=\"http://www.w3.org/TR/json-ld/#typed-values\">JSON-LD value type</a>\n\t */\n\tpublic String getValueType();\n\n\t/** Return a mapping containing URIs as keys corresponding to fields, and their matching values\n\t * This is used for converting to and from JSON\n\t *\n\t * The URIs correspond to JSON-LD URIs and therefore also to RDF predicate URIs on the server side\n\t *\n\t * @return a URI to value mapping\n\t */\n\tpublic Map<String, Object> uriToValueMap();\n\n\tpublic Document getAnnotationTarget();\n\n\n}", "public void setClazz(String clazz);", "private void processAdditionalAnnotation(AnnotationMirror annotation) {\n\t\tstack.push(elementUtils.getElementValuesWithDefaults(annotation));\n\t\tElement element = annotation.getAnnotationType().asElement();\n\t\tprocessElement(element);\n\t\tstack.pop();\n\t}", "default void onDiscovery(@Nonnull A annotation, @Nonnull Class<? extends C> type) {\n }", "public void setValue(A value) {this.value = value; }", "public interface CoreAnnotationProcessorEnv\n{\n /** Map of String -> String */\n Map getOptions();\n\n Messager getMessager();\n\n Filer getFiler();\n\n TypeDeclaration[] getSpecifiedTypeDeclarations();\n\n TypeDeclaration getTypeDeclaration( String s );\n\n Declaration[] getDeclarationsAnnotatedWith( AnnotationTypeDeclaration annotationTypeDeclaration );\n \n void setAttribute( String propertyName, Object value );\n \n Object getAttribute( String propertyName );\n}", "AnnotationProvider getClassAnnotationProvider();", "@MyAnnotation(value = \"theValue\")\n private void wrapAsString() {\n }", "public interface FruitControl\n{\n\t@Target(ElementType.FIELD)\n\t@Retention(RetentionPolicy.RUNTIME)\n\tpublic @interface FruitName\n\t{\n\t\tString value() default \"\";\n\t}\n\n\tenum Color\n\t{\n\t\tRED, BULE, GREEN\n\t}\n\n\t@Target(ElementType.FIELD)\n\t@Retention(RetentionPolicy.RUNTIME)\n\t@interface FruitColor\n\t{\n\t\tColor fruitColor() default Color.RED;\n\t}\n\n\t@Target(ElementType.METHOD)\n\t@Retention(RetentionPolicy.RUNTIME)\n\t@interface FruitProvider\n\t{\n\t\tint id() default -1;\n\n\t\tString name() default \"\";\n\n\t\tString address();\n\t}\n\n\n\tpublic class Apple\n\t{\n\n\t\t@FruitName(\"MyApple\")\n\t\tprivate String appleName;\n\n\t\t@FruitColor(fruitColor = Color.GREEN)\n\t\tprivate String appleColor;\n\n\t\tprivate String appleProvider;\n\n\t\t@FruitProvider(address = \"深圳车公庙\", name = \"GibsonCool\")\n\t\tprivate void setAppleProvider()\n\t\t{\n\n\t\t}\n\t}\n\n\n}", "boolean hasAnnotationValue();", "public interface Framework_annotation<T extends Annotation> {\n \n // a builder call which returns the original Framework object\n public Framework_annotation<T> build_normal();\n \n // a builder call which requires that the T be of type Annotation or a subtype of that\n public Framework_annotation<T> build_annotation();\n \n // a call which returns a T element\n public <U extends T> U get();\n \n \n}", "Annotation readAnnotation(int annotationID);", "private String getMetaAnnotationType(Class<?> clazz, Collection<Class<? extends Annotation>> annotationSet) {\n for (Class<? extends Annotation> annotType : annotationSet) {\n Annotation annotInstance = clazz.getAnnotation(annotType);\n if (annotInstance != null) {\n return (String) invoke(annotInstance, \"value\", null, null);\n }\n }\n return null;\n }", "private void setModel(IAnnotationModel model) {\n \t\tif (fModel != model) {\n \t\t\tif (fModel != null)\n \t\t\t\tfModel.removeAnnotationModelListener(this);\n \t\t\tfModel= model;\n \t\t\tif (fModel != null) {\n \t\t\t\ttry {\n \t\t\t\t\tfIsSettingModel= true;\n \t\t\t\t\tfModel.addAnnotationModelListener(this);\n \t\t\t\t} finally {\n \t\t\t\t\tfIsSettingModel= false;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}", "public void setValue(Object val);", "@Override\r\n\tpublic Annotation annotate() {\n\t\treturn null;\r\n\t}", "public\r\n interface IAnnotation {\r\n\r\n /**\r\n * @return The type of the annotation\r\n */\r\n IType getAnnotationType() throws CompileException;\r\n\r\n /**\r\n * Returns the value of the <var>name</var>d element:\r\n * <dl>\r\n * <dt>{@link Boolean}</dt>\r\n * <dt>{@link Byte}</dt>\r\n * <dt>{@link Character}</dt>\r\n * <dt>{@link Double}</dt>\r\n * <dt>{@link Float}</dt>\r\n * <dt>{@link Integer}</dt>\r\n * <dt>{@link Long}</dt>\r\n * <dt>{@link Short}</dt>\r\n * <dd>\r\n * A primitive value\r\n * </dd>\r\n * <dt>{@link String}</dt>\r\n * <dd>\r\n * A string value\r\n * </dd>\r\n * <dt>{@link IField}</dt>\r\n * <dd>\r\n * An enum constant\r\n * </dd>\r\n * <dt>{@link IClass}</dt>\r\n * <dd>\r\n * A class literal\r\n * </dd>\r\n * <dt>{@link IAnnotation}</dt>\r\n * <dd>\r\n * An annotation\r\n * </dd>\r\n * <dt>{@link Object}{@code []}</dt>\r\n * <dd>\r\n * An array value\r\n * </dd>\r\n * </dl>\r\n * <p>\r\n * Notice that {@code null} is <em>not</em> a valid return value.\r\n * </p>\r\n */\r\n Object getElementValue(String name) throws CompileException;\r\n }", "@MyAnnotation(\"abc\")\r\n\t@Override\r\n\tpublic String perform(String arg1) {\n\t\treturn \"hello \";\r\n\t}", "public Framework_annotation<T> build_normal();", "private static <T extends Annotation> T onElement(Class<T> clazz, T defaultValue, AnnotatedElement... elements) {\n for (AnnotatedElement element : elements) {\n T ann = element.getAnnotation(clazz);\n if (ann != null) return ann;\n }\n return defaultValue;\n }", "public void setValue(Object value);", "public abstract Annotations getClassAnnotations();", "@IcalProperty(pindex = PropertyInfoIndex.CLASS,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true\n )\n public void setClassification(final String val) {\n classification = val;\n }", "void setParameter(String name, Object value);", "public void annotate(CoreDocument document){\r\n for(int i=0;i<document.tokens().size();i++){\r\n CoreLabel token = document.tokens().get(i);\r\n if(token.word().equals(sch))\r\n token.set(SearchAnnotation.class,i);\r\n }\r\n }", "public Annotation getAnnotation(long j) {\n return this.annotations.obtainBy(j);\n }", "public Class<? extends Annotation> annotationType() {\n\t\treturn null;\r\n\t}", "<T> Setter<R> set(Projection<T> projection, T value);", "<T> Setter<R> set(Projection<T> projection, T value);", "public void setBasedOnValue(entity.LocationNamedInsured value);", "@PropertySetter(role = ANNOTATION)\n\tboolean removeAnnotation(CtAnnotation<? extends Annotation> annotation);", "@Override\n public void annotate(Annotation annotation) {\n if (VERBOSE) {\n System.err.print(\"Tokenizing ... \");\n }\n\n if (annotation.has(CoreAnnotations.TextAnnotation.class)) {\n String text = annotation.get(CoreAnnotations.TextAnnotation.class);\n Reader r = new StringReader(text);\n // don't wrap in BufferedReader. It gives you nothing for in-memory String unless you need the readLine() method!\n\n List<CoreLabel> tokens = getTokenizer(r).tokenize();\n // cdm 2010-05-15: This is now unnecessary, as it is done in CoreLabelTokenFactory\n // for (CoreLabel token: tokens) {\n // token.set(CoreAnnotations.TextAnnotation.class, token.get(CoreAnnotations.TextAnnotation.class));\n // }\n\n annotation.set(CoreAnnotations.TokensAnnotation.class, tokens);\n if (VERBOSE) {\n System.err.println(\"done.\");\n System.err.println(\"Tokens: \" + annotation.get(CoreAnnotations.TokensAnnotation.class));\n }\n } else {\n throw new RuntimeException(\"Tokenizer unable to find text in annotation: \" + annotation);\n }\n }", "@Override\n\tprotected void setDataStructurePropertyOfAnnotation(DataStructure ds){\n\t\tif( ! ds.isImportedViaSubmodel()){\n\t\t\t\n\t\t\tif(ds.hasPhysicalProperty()){\n\t\t\t\tResource propres = getResourceForDataStructurePropertyAndAnnotate(rdf, ds);\n\n\t\t\t\tif(ds.hasAssociatedPhysicalComponent()){\n\t\t\t\t\tPhysicalModelComponent propof = ds.getAssociatedPhysicalModelComponent();\n\t\t\t\t\t\n\t\t\t\t\t// If the variable is a property of an entity\n\t\t\t\t\tif(propof instanceof PhysicalEntity){\n\t\t\t\t\t\tCompositePhysicalEntity cpe = (CompositePhysicalEntity)propof;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (cpe.getArrayListOfEntities().size()>1) {\n\t\t\t\t\t\t\t// Get the Resource corresponding to the index entity of the composite entity\n\t\t\t\t\t\t\tURI indexuri = setCompositePhysicalEntityMetadata(cpe);\n\t\t\t\t\t\t\tResource indexresource = rdf.getResource(indexuri.toString());\n\t\t\t\t\t\t\tStatement propofst = rdf.createStatement(\n\t\t\t\t\t\t\t\t\tpropres, \n\t\t\t\t\t\t\t\t\tSemSimRelation.PHYSICAL_PROPERTY_OF.getRDFproperty(), \n\t\t\t\t\t\t\t\t\tindexresource);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\taddStatement(propofst);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// else it's a singular physical entity\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tResource entity = getResourceForPMCandAnnotate(cpe.getArrayListOfEntities().get(0));\n\t\t\t\t\t\t\tStatement st = rdf.createStatement(\n\t\t\t\t\t\t\t\t\tpropres, \n\t\t\t\t\t\t\t\t\tSemSimRelation.PHYSICAL_PROPERTY_OF.getRDFproperty(), \n\t\t\t\t\t\t\t\t\tentity);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\taddStatement(st);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// If it's a property of a process\n\t\t\t\t\telse if(propof instanceof PhysicalProcess){\n\t\t\t\t\t\tPhysicalProcess process = (PhysicalProcess)ds.getAssociatedPhysicalModelComponent();\n\n\t\t\t\t\t\tResource processres = getResourceForPMCandAnnotate(ds.getAssociatedPhysicalModelComponent());\n\t\t\t\t\t\tStatement st = rdf.createStatement(\n\t\t\t\t\t\t\t\tpropres, \n\t\t\t\t\t\t\t\tSemSimRelation.PHYSICAL_PROPERTY_OF.getRDFproperty(), \n\t\t\t\t\t\t\t\tprocessres);\n\t\t\t\t\t\t\n\t\t\t\t\t\taddStatement(st);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// If the participants for the process have already been set, do not duplicate\n\t\t\t\t\t\t// statements (in CellML models mapped codewords may be annotated against the\n\t\t\t\t\t\t// same process, and because each process participant is created anew here, duplicate\n\t\t\t\t\t\t// participant statements would appear in CellML RDF block).\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(rdf.contains(processres, SemSimRelation.HAS_SOURCE_PARTICIPANT.getRDFproperty())\n\t\t\t\t\t\t\t\t|| rdf.contains(processres, SemSimRelation.HAS_SINK_PARTICIPANT.getRDFproperty())\n\t\t\t\t\t\t\t\t|| rdf.contains(processres, SemSimRelation.HAS_MEDIATOR_PARTICIPANT.getRDFproperty()))\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\n\t\t\t\t\t\t// If we're here, the process hasn't been assigned its participants yet\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Set the sources\n\t\t\t\t\t\tfor(PhysicalEntity source : process.getSourcePhysicalEntities()){\n\t\t\t\t\t\t\tsetRDFstatementsForEntityParticipation(process, source, \n\t\t\t\t\t\t\t\t\tSemSimRelation.HAS_SOURCE_PARTICIPANT.getRDFproperty(), process.getSourceStoichiometry(source));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Set the sinks\n\t\t\t\t\t\tfor(PhysicalEntity sink : process.getSinkPhysicalEntities()){\n\t\t\t\t\t\t\tsetRDFstatementsForEntityParticipation(process, sink,\n\t\t\t\t\t\t\t\t\tSemSimRelation.HAS_SINK_PARTICIPANT.getRDFproperty(), process.getSinkStoichiometry(sink));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Set the mediators\n\t\t\t\t\t\tfor(PhysicalEntity mediator : process.getMediatorPhysicalEntities()){\n\t\t\t\t\t\t\tsetRDFstatementsForEntityParticipation(process, mediator,\n\t\t\t\t\t\t\t\t\tSemSimRelation.HAS_MEDIATOR_PARTICIPANT.getRDFproperty(), null);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// Otherwise we assume it's a property of a force\n\t\t\t\t\telse{\n\t\t\t\t\t\tPhysicalForce force = (PhysicalForce)ds.getAssociatedPhysicalModelComponent();\n\n\t\t\t\t\t\tResource forceres = getResourceForPMCandAnnotate(ds.getAssociatedPhysicalModelComponent());\n\t\t\t\t\t\tStatement st = rdf.createStatement(\n\t\t\t\t\t\t\t\tpropres, \n\t\t\t\t\t\t\t\tSemSimRelation.PHYSICAL_PROPERTY_OF.getRDFproperty(), \n\t\t\t\t\t\t\t\tforceres);\n\t\t\t\t\t\t\n\t\t\t\t\t\taddStatement(st);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// If the participants for the process have already been set, do not duplicate\n\t\t\t\t\t\t// statements (in CellML models mapped codewords may be annotated against the\n\t\t\t\t\t\t// same process, and because each process participant is created anew here, duplicate\n\t\t\t\t\t\t// participant statements would appear in CellML RDF block).\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(rdf.contains(forceres, SemSimRelation.HAS_SOURCE_PARTICIPANT.getRDFproperty())\n\t\t\t\t\t\t\t\t|| rdf.contains(forceres, SemSimRelation.HAS_SINK_PARTICIPANT.getRDFproperty())\n\t\t\t\t\t\t\t\t|| rdf.contains(forceres, SemSimRelation.HAS_MEDIATOR_PARTICIPANT.getRDFproperty()))\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\n\t\t\t\t\t\t// If we're here, the process hasn't been assigned its participants yet\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Set the sources\n\t\t\t\t\t\tfor(PhysicalEntity source : force.getSources()){\n\t\t\t\t\t\t\tsetRDFstatementsForEntityParticipation(force, source, \n\t\t\t\t\t\t\t\t\tSemSimRelation.HAS_SOURCE_PARTICIPANT.getRDFproperty(), null);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Set the sinks\n\t\t\t\t\t\tfor(PhysicalEntity sink : force.getSinks()){\n\t\t\t\t\t\t\tsetRDFstatementsForEntityParticipation(force, sink,\n\t\t\t\t\t\t\t\t\tSemSimRelation.HAS_SINK_PARTICIPANT.getRDFproperty(), null);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "void setInt(int attributeValue);", "protected abstract void setContextAttribute(String name, Object value);", "public AnnotationMirror getAnnotation(Class<? extends Annotation> annotation) {\n\t\tString jvmName = ClassUtils.getJVMName(annotation);\n\t\tfor(AnnotationMirror a : getAnnotations()) {\n\t\t\tif(a.getType().getJVMName().equals(jvmName)) {\n\t\t\t\treturn a;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "private void parseAnnotation(final List<ScannedAnnotation> descriptions, final AnnotationNode annotation,\n final Object annotatedObject) {\n // desc has the format 'L' + className.replace('.', '/') + ';'\n final String name = annotation.desc.substring(1, annotation.desc.length() - 1).replace('/', '.');\n Map<String, Object> values = null;\n if (annotation.values != null) {\n values = new HashMap<String, Object>();\n final Iterator<?> i = annotation.values.iterator();\n while (i.hasNext()) {\n final Object vName = i.next();\n Object value = i.next();\n\n // convert type to class name string\n if (value instanceof Type) {\n value = ((Type) value).getClassName();\n } else if (value instanceof List<?>) {\n final List<?> objects = (List<?>) value;\n if (objects.size() > 0) {\n if (objects.get(0) instanceof Type) {\n final String[] classNames = new String[objects.size()];\n int index = 0;\n for (final Object v : objects) {\n classNames[index] = ((Type) v).getClassName();\n index++;\n }\n value = classNames;\n } else if (objects.get(0) instanceof AnnotationNode) {\n final List<ScannedAnnotation> innerDesc = new ArrayList<ScannedAnnotation>();\n for (final Object v : objects) {\n parseAnnotation(innerDesc, (AnnotationNode) v, annotatedObject);\n }\n if (annotatedObject instanceof Method) {\n value = innerDesc.toArray(new MethodAnnotation[innerDesc.size()]);\n } else if (annotatedObject instanceof Field) {\n value = innerDesc.toArray(new FieldAnnotation[innerDesc.size()]);\n } else {\n value = innerDesc.toArray(new ClassAnnotation[innerDesc.size()]);\n }\n } else {\n value = convertToArray(objects, objects.get(0).getClass());\n }\n } else {\n value = null;\n }\n }\n\n values.put(vName.toString(), value);\n }\n }\n\n final ScannedAnnotation a;\n if (annotatedObject instanceof Method) {\n a = new MethodAnnotation(name, values, (Method) annotatedObject);\n ((Method) annotatedObject).setAccessible(true);\n } else if (annotatedObject instanceof Field) {\n a = new FieldAnnotation(name, values, (Field) annotatedObject);\n ((Field) annotatedObject).setAccessible(true);\n } else {\n a = new ClassAnnotation(name, values);\n }\n descriptions.add(a);\n }", "public void addMember(Annotation member);", "public Annotation getAnnotation(Class<?> aClass, Class<?> aAnnotation) {\n\t\treturn AnnotationsHelper.getAnnotation(aClass, aAnnotation);\n\t}", "public void setValue(Class<? extends ADao> pType, String pName, String pAttribute, Object pValue) {\n\t\t\n\t}", "public abstract boolean mo30680a(Annotation annotation);", "public void changeNoParClassAnnotation(String className, String annotationName, boolean set) {\n projectData.changeClassNoParAnnotation(className, annotationName, set);\n }", "public T caseAnnotationValue(AnnotationValue object)\n {\n return null;\n }", "@Override\n\tpublic AnnotationSetItem getAnnotationSetItem() {\n\t\treturn annotationSetItem;\n\t}", "public Annotation(String className) {\n\t//\tthis.id = newId();\n\t\tthis.annotatonClassName = className;\n\t\tattributes = new HashSetValuedHashMap<String, String>();\n\t}", "public EvaluationResult withAnnotation(String annotation) {\n this.annotation = annotation;\n return this;\n }", "@Override\r\n\t\t\tpublic WiringSpecification apply(ReflectedParameter parameter) {\n\t\t\t\t\r\n\t\t\t\treturn parseAnnotations(parameter.getAnnotations(), parameter.getType());\r\n\t\t\t}", "public void set_attribute(Object instance, String attribute_name, Object value) throws XtumlException;", "public ExtraJaxbClassModel setClazz(Class<?> clazz);", "public T caseAnnotation(Annotation object)\n {\n return null;\n }", "public T caseAnnotation(Annotation object)\n {\n return null;\n }", "public interface IJavaAnnotation extends ITextSourceReference {\n \n \t/**\n \t * Returns resource that declares this annotation.\n \t * \n \t * @return resource that declares this annotation\n \t */\n \tpublic IResource getResource();\n \n \t/**\n \t * Returns fully qualified type name if resolved or element name otherwise.\n \t * \n \t * @return fully qualified type name if resolved or element name otherwise\n \t */\n \tpublic String getTypeName();\n \n \t/**\n\t * Returns annotation type or null if it cannot be resolved.\n \t * \n\t * @return annotation type or null if it cannot be resolved\n \t */\n \tpublic IType getType();\n \t/**\n \t * Returns Java element on which or for which this annotation was created.\n \t * \n \t * @return Java element on which or for which this annotation was created\n \t */\n \tpublic IMember getParentMember();\n \n \t/**\n \t * Returns member value pairs as IAnnotation does.\n \t * \n \t * @return member value pairs as IAnnotation does\n \t */\n \tpublic IMemberValuePair[] getMemberValuePairs();\n \n }", "public Annotation getAnnotation(Fw aField, Class<?> aAnnotation) {\n\t\treturn AnnotationsHelper.getAnnotation(aField, aAnnotation);\n\t}" ]
[ "0.6616278", "0.65320474", "0.6491765", "0.6436906", "0.6301354", "0.6128491", "0.6000087", "0.59312534", "0.5873964", "0.58712167", "0.5805223", "0.57926947", "0.5752022", "0.5752022", "0.57414246", "0.5734513", "0.57123584", "0.5700228", "0.5623517", "0.5566397", "0.556541", "0.556433", "0.5561842", "0.55488855", "0.55349594", "0.55132794", "0.5471979", "0.54267573", "0.541695", "0.53886086", "0.53644186", "0.5356762", "0.5349929", "0.5332922", "0.5330404", "0.5314695", "0.5299945", "0.52783144", "0.5278165", "0.52727634", "0.5257281", "0.5232178", "0.52311254", "0.5219196", "0.5215144", "0.5203656", "0.5200031", "0.51970214", "0.51897615", "0.51306355", "0.5123611", "0.51207775", "0.51146257", "0.51136285", "0.5113105", "0.511141", "0.5108539", "0.5103075", "0.5100958", "0.5090516", "0.5086426", "0.50841904", "0.5078015", "0.50613844", "0.5056988", "0.50559384", "0.50233424", "0.50174725", "0.5011119", "0.49948028", "0.49875674", "0.4982911", "0.4979289", "0.49683976", "0.4966726", "0.4966726", "0.49610743", "0.4957839", "0.49530146", "0.49395123", "0.49368855", "0.49353802", "0.49352056", "0.49351028", "0.4931994", "0.4930103", "0.4930044", "0.49277034", "0.49274668", "0.49193022", "0.49106687", "0.49102136", "0.49075186", "0.49061507", "0.49045116", "0.48959652", "0.48939687", "0.48939687", "0.48899484", "0.48783812" ]
0.6330856
4
Method change annotation of seleceted attribute
public void changeAttributeAnnotation(String className, String attrName, String AnnotationName, String value) { projectData.changeAttributeAnnotation(className, attrName, AnnotationName, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@MyFirstAnnotation(name = \"Tom\")\n public void someMethod() {\n\n }", "@Word(word = \"First\", value = 1) \n\t public static void newMethod(){ \n\t\t FullAnnotationProgram obj = new FullAnnotationProgram(); \n\n\t try{ \n\t Class<?> c = obj.getClass(); \n\n\t // Obtain the annotation for newMethod \n\t Method m = c.getMethod(\"newMethod\"); \n\t \n\t // Display the full annotation \n\t Annotation anno = m.getAnnotation(CustomRepeatAnnots.class); \n\t System.out.println(anno); \n\t }catch (NoSuchMethodException e){ \n\t System.out.println(e); \n\t } \n\t }", "@MyAnnotation(\"abc\")\r\n\t@Override\r\n\tpublic String perform(String arg1) {\n\t\treturn \"hello \";\r\n\t}", "@PropertySetter(role = ANNOTATION)\n\t<E extends CtElement> E addAnnotation(CtAnnotation<? extends Annotation> annotation);", "String attributeToSetter(String name);", "@Override\n public void visitAttribute(Attribute attribute) {\n }", "@Override public void visitAttribute(Attribute attr) {\n }", "@MyFirstAnnotation(name=\"tom\",description=\"write by tom\")\n\tpublic UsingMyFirstAnnotation(){\n\t\t\n\t}", "@Override public void visitAttribute(Attribute attr) {\n }", "@Override public void visitAttribute(Attribute attr) {\n }", "@Override\n\tpublic void visitAttribute(Object attr) {\n\t}", "Annotation createAnnotation();", "Annotation createAnnotation();", "@Override\n public void visit(Tree.AnnotationList al) {\n }", "@Override\r\n\tpublic Annotation annotate() {\n\t\treturn null;\r\n\t}", "public interface AttributeFun {\n}", "default void putAttribute(ConceptName name, Attribute attribute) {}", "public String getAnnotation();", "@MyAnnotation(value = \"theValue\")\n private void wrapAsString() {\n }", "public void changeAttrName() {\r\n }", "public Framework_annotation<T> build_annotation();", "Annotation getAnnotation();", "@PropertySetter(role = ANNOTATION)\n\t<E extends CtElement> E setAnnotations(List<CtAnnotation<? extends Annotation>> annotation);", "@Override\npublic void setAttributes() {\n\t\n}", "public JavaAnnotation getAnnotation( String name );", "public interface JvmAnnotationAttribute {\n\n @NotNull\n String getAttributeName();\n\n @Nullable\n JvmAnnotationAttributeValue getAttributeValue();\n}", "private void addAttrAnnotation(List<Iattribute> attributes, String packageName, String className) {\n\n FileSavedAnnotAttr annotAttr;\n\n for (Iattribute itemAttr: attributes) {\n\n for (Iannotation itemAnnot: itemAttr.getAttrAnnotations()) {\n\n if (itemAnnot.isChangen()) {\n\n if (itemAnnot.isParam()) {\n\n annotAttr = new FileSavedAnnotAttr(packageName, className, itemAnnot.getName(), itemAnnot.getValue(), itemAttr.getName(), itemAttr.getType());\n }else {\n\n annotAttr = new FileSavedAnnotAttr(packageName, className, itemAnnot.getName(), null, itemAttr.getName(), itemAttr.getType());\n }\n\n saveAnnotaion.add(annotAttr);\n }\n }\n }\n }", "public abstract Annotations mo30682c();", "public void setAnnotation(String annotation) {\n this.annotation = annotation;\n }", "private AnnotationTarget() {\n void var2_-1;\n void var1_-1;\n }", "public A annotation() {\n\t\treturn proxy(annotation, loader, className, map);\n\t}", "public void setAnnotation (String annotation) {\n this.annotation = annotation;\n }", "public abstract boolean mo30680a(Annotation annotation);", "@PropertySetter(role = ANNOTATION)\n\tboolean removeAnnotation(CtAnnotation<? extends Annotation> annotation);", "public interface IAttributeConverter\n{\n\n /**\n * Converts an ordered list of attributes to a newer one.\n * The result list has to be conform with the next ObsoleteVersion-Annotation.\n *\n * @param pAttributes Attributes to be converted\n * @param pNextAccessor Next accessor, for which the attributes should be mapped.\n * All containing attributes in this accessor are type-only -> no value\n * @return attributes of the next version\n */\n @NotNull\n List<OAAttribute> convert(@NotNull List<OAAttribute> pAttributes, @NotNull OAAccessor pNextAccessor) throws AttributeConversionException;\n\n /**\n * Default-Implementation with no conversion.\n * It just returns the original list back.\n */\n class DEFAULT implements IAttributeConverter\n {\n @NotNull\n @Override\n public List<OAAttribute> convert(@NotNull List<OAAttribute> pAttributes, @NotNull OAAccessor pNextAccessor)\n {\n return pAttributes;\n }\n }\n\n}", "public void changeNoParAttributeAnnotation(String className, String attrName, String AnnotationName, boolean set) {\n\n projectData.changeAttributeNoParAnnotation(className, attrName, AnnotationName, set);\n }", "@Override\n public void onRPClassAddAttribute(RPClass rpclass,\n String name, Definition.Type type) {\n }", "@Pointcut(\"(@annotation(HasRole) || @within(HasRole))\")\n public void annotated() {\n }", "@Override\n\tpublic void reflectWith(AttributeReflector reflector) {\n\n\t}", "@Override\n public String getAnnotation() {\n return annotation;\n }", "void changedAttributeHook(PerunSessionImpl session, User user, Attribute attribute) throws WrongReferenceAttributeValueException;", "private void addAttribute(XmlAttribute xa, Method method, Object[] args) {\n/* 147 */ assert xa != null;\n/* */ \n/* 149 */ checkStartTag();\n/* */ \n/* 151 */ String localName = xa.value();\n/* 152 */ if (xa.value().length() == 0) {\n/* 153 */ localName = method.getName();\n/* */ }\n/* 155 */ _attribute(xa.ns(), localName, args);\n/* */ }", "@Override\n\tpublic void annotate(JDefinedClass cls) {\n\n\t}", "public Framework_annotation<T> build_normal();", "public interface SourceAnnotation {\n\n void annotate(AnnotationHolder holder, Document document, int sourceOffset);\n\n}", "public interface IRenameTableAction\r\n{\r\n @Convert (TableConverter.class)\r\n\t@Attribute (\"oldTableName\")\tGenericAttributeValue<String> getOldTableName();\r\n\r\n\t@Attribute (\"newTableName\") GenericAttributeValue<String> getNewTableName();\r\n\r\n\r\n}", "void updateAttribute(final AuthValues authToken, final UUID garId, final Attribute attribute) throws WorkflowException;", "public void setInclusiveMethodAnnot (\n Class<? extends java.lang.annotation.Annotation> inclusiveMethodAnnot)\n {\n synchronized (monitor)\n {\n this.inclusiveMethodAnnot = inclusiveMethodAnnot;\n }\n }", "@Override\n\tpublic void setAttribute(String arg0, Object arg1) {\n\n\t}", "@Override\n public void addSetterComment(Method method, IntrospectedTable introspectedTable, IntrospectedColumn introspectedColumn) {\n\n }", "public void oneRuntimeRetention_OneClassRetention_ChangedAnnotationOrder(\n @ParamAnnoClass @ParamAnnoRuntime final int input) {\n }", "public boolean definesTargetAttribute(String name);", "public void setModified(AttributeDefinition attribute)\n throws UnknownAttributeException\n {\n if(builtinAttributes.containsKey(attribute.getName()))\n {\n throw new IllegalArgumentException(\"builtin attribute \"+attribute.getName()+\n \"cannot be modified this way\"); \n }\n else\n {\n throw new UnknownAttributeException(\"not a builtin attribute\");\n }\n }", "@Override\n public void setQualifiers(final Annotation[] annos) {\n }", "public interface AnnotationValue {\n}", "public void annotate(String annotation) {\n if (isActive())\n itemBuffer.offer(new Tag(System.currentTimeMillis(), credentials.user, annotation));\n }", "public void addMember(Annotation member);", "@Override\n\tpublic void setAttribute(String arg0, Object arg1, int arg2) {\n\n\t}", "@Override\npublic void processAttributes() {\n\t\n}", "public void changeClassAnnotation(String className, String annotationName, String value) {\n\n projectData.changeClassAnnotation(className, annotationName, value);\n }", "private void setAttribute(ASTAttrSpecNode attrSpec)\n {\n ASTArraySpecNode arraySpec = attrSpec.getArraySpec();\n ASTAccessSpecNode accessSpec = attrSpec.getAccessSpec();\n \n if (arraySpec != null)\n setArraySpec(arraySpec);\n else if (accessSpec != null)\n setVisibility(accessSpec);\n else if (attrSpec.isParameter())\n setParameter();\n\n // TODO: Intent, etc.\n }", "public void addAnnotation(String a) {\n applicationIdentifiers.add(a);\n }", "public void visita(Attribute attribute) {\n\t\t\n\t}", "@Test\n public void canDetect_ParameterAnnotation_OneRuntimeRetention_OneClassRetention_ChangedAnnotationOrder() {\n final MethodInfo methodInfo = classInfo.getMethodInfo()\n .getSingleMethod(\"oneRuntimeRetention_OneClassRetention_ChangedAnnotationOrder\");\n\n assertThat(methodInfo.hasParameterAnnotation(ParamAnnoRuntime.class)).isTrue();\n }", "private static void processAttributes(ClassNode cls) {\n\t\tAnnotationDefaultClassAttr defAttr = cls.get(JadxAttrType.ANNOTATION_DEFAULT_CLASS);\n\t\tif (defAttr != null) {\n\t\t\tcls.remove(JadxAttrType.ANNOTATION_DEFAULT_CLASS);\n\t\t\tfor (Map.Entry<String, EncodedValue> entry : defAttr.getValues().entrySet()) {\n\t\t\t\tMethodNode mth = cls.searchMethodByShortName(entry.getKey());\n\t\t\t\tif (mth != null) {\n\t\t\t\t\tmth.addAttr(new AnnotationDefaultAttr(entry.getValue()));\n\t\t\t\t} else {\n\t\t\t\t\tcls.addWarnComment(\"Method from annotation default annotation not found: \" + entry.getKey());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// check source file attribute\n\t\tif (!cls.checkSourceFilenameAttr()) {\n\t\t\tcls.remove(JadxAttrType.SOURCE_FILE);\n\t\t}\n\t}", "void visit(Attribute node);", "public boolean definesTargetAttribute(int idx);", "public void addAttribute(TLAttribute attribute);", "public void setAnnotation(DrawingComponent annotation)\n\t{\n\t\tthis.annotation = annotation;\n\t}", "@Override\n public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException {\n\n }", "@Override\n public void setAttribute(boolean f)\n {\n checkState();\n attribute = f;\n }", "@Override\n public String visit(AnnotationDeclaration n, Object arg) {\n return null;\n }", "@Override\n\tpublic void attribute(QName qName, String value) {\n\t\t\n\t}", "public void parameterAnnotation_WithRuntimeRetention(@ParamAnnoRuntime final int input) {\n }", "@Override\n public void onRPClassAddAttribute(RPClass rpclass,\n String name, Definition.Type type, byte flags) {\n }", "public Annotation getAnnotation() {\n return annotation;\n }", "public void setExclusiveMethodAnnot (\n Class<? extends java.lang.annotation.Annotation> exclusiveMethodAnnot)\n {\n synchronized (monitor)\n {\n this.exclusiveMethodAnnot = exclusiveMethodAnnot;\n }\n }", "public abstract AnnotationCollector mo30681b(Annotation annotation);", "void addAttribute(String attrName, Attribute<?> newAttr);", "@org.junit.Test(timeout = 10000)\n public void annotatedTwice_cf16419() {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" @java.lang.Override java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).annotated(com.squareup.javapoet.AnnotationSpec.builder(java.lang.Override.class).build()).toString();\n // StatementAdderOnAssert create random local variable\n java.lang.Object vc_7131 = new java.lang.Object();\n // AssertGenerator replace invocation\n boolean o_annotatedTwice_cf16419__12 = // StatementAdderMethod cloned existing statement\n type.equals(vc_7131);\n // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_annotatedTwice_cf16419__12);\n org.junit.Assert.assertEquals(expected, actual);\n }", "@Override\n\t\tpublic void setAttribute(String name, Object o) {\n\t\t\t\n\t\t}", "BasicRestAnnotation() {\n\t}", "public interface AnnotationAccess\n{\n /**\n * Returns a provider for annotations on the service class and interface. This will reflect annotations defined by\n * the implementation class itself, plus annotations defined by the service interface (implementation class\n * annotations take precedence).\n * @return an AnnotationProvider instance.\n */\n AnnotationProvider getClassAnnotationProvider();\n\n /**\n * Returns a provider for annotations of a method of the class. This includes annotations on\n * the implementation method, plus annotations on the corresponding service interface method\n * (if such a method exists), with precedence on the implementation class method annotations.\n * @param methodName the name of the method.\n * @param parameterTypes the types of the parameters of the method.\n * @return an AnnotationProvider instance. * \n */\n AnnotationProvider getMethodAnnotationProvider(String methodName, Class... parameterTypes);\n\n}", "public interface FruitControl\n{\n\t@Target(ElementType.FIELD)\n\t@Retention(RetentionPolicy.RUNTIME)\n\tpublic @interface FruitName\n\t{\n\t\tString value() default \"\";\n\t}\n\n\tenum Color\n\t{\n\t\tRED, BULE, GREEN\n\t}\n\n\t@Target(ElementType.FIELD)\n\t@Retention(RetentionPolicy.RUNTIME)\n\t@interface FruitColor\n\t{\n\t\tColor fruitColor() default Color.RED;\n\t}\n\n\t@Target(ElementType.METHOD)\n\t@Retention(RetentionPolicy.RUNTIME)\n\t@interface FruitProvider\n\t{\n\t\tint id() default -1;\n\n\t\tString name() default \"\";\n\n\t\tString address();\n\t}\n\n\n\tpublic class Apple\n\t{\n\n\t\t@FruitName(\"MyApple\")\n\t\tprivate String appleName;\n\n\t\t@FruitColor(fruitColor = Color.GREEN)\n\t\tprivate String appleColor;\n\n\t\tprivate String appleProvider;\n\n\t\t@FruitProvider(address = \"深圳车公庙\", name = \"GibsonCool\")\n\t\tprivate void setAppleProvider()\n\t\t{\n\n\t\t}\n\t}\n\n\n}", "@Override\n\tpublic void setAttribute(String name, Object o) {\n\t\t\n\t}", "String attributeToGetter(String name);", "public void setAttribute(List<Attribute> attribute) {\n\t\tthis.attribute = attribute;\n\t}", "@Override\r\n protected void parseAttributes()\r\n {\n\r\n }", "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "public final native void attributeFollows(String name, Element newNode, Element oldNode) /*-{ attributeFollows(name, newNode, oldNode); }-*/;", "@org.junit.Test(timeout = 10000)\n public void annotatedTwice_cf16418() {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" @java.lang.Override java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).annotated(com.squareup.javapoet.AnnotationSpec.builder(java.lang.Override.class).build()).toString();\n // StatementAdderOnAssert create null value\n java.lang.Object vc_7130 = (java.lang.Object)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_7130);\n // AssertGenerator replace invocation\n boolean o_annotatedTwice_cf16418__12 = // StatementAdderMethod cloned existing statement\n type.equals(vc_7130);\n // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_annotatedTwice_cf16418__12);\n org.junit.Assert.assertEquals(expected, actual);\n }", "public void set(AttributeDefinition attribute, Object value)\n throws UnknownAttributeException, ModificationNotPermitedException\n {\n if(builtinAttributes.containsKey(attribute.getName()))\n {\n throw new IllegalArgumentException(\"builtin attribute \"+attribute.getName()+\n \"cannot be modified with set method\"); \n }\n else\n {\n throw new UnknownAttributeException(\"not a builtin attribute\");\n }\n }", "String getControllingAttributeName();", "@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}", "public abstract AnnotationMap mo30683d();", "@org.junit.Test(timeout = 10000)\n public void annotatedTwice_cf16426() {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" @java.lang.Override java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).annotated(com.squareup.javapoet.AnnotationSpec.builder(java.lang.Override.class).build()).toString();\n // AssertGenerator replace invocation\n boolean o_annotatedTwice_cf16426__10 = // StatementAdderMethod cloned existing statement\n type.isBoxedPrimitive();\n // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_annotatedTwice_cf16426__10);\n org.junit.Assert.assertEquals(expected, actual);\n }", "public String[] getElementAnnotation(int index, String attr);", "protected void validateAttribute(FactAttribute[] param) {\r\n\r\n }", "void annotate(String line);" ]
[ "0.7115305", "0.66251117", "0.6616793", "0.6587681", "0.65554714", "0.63092583", "0.62545305", "0.62464505", "0.6215877", "0.6215877", "0.61872977", "0.6150754", "0.6150754", "0.61472493", "0.61340535", "0.6133673", "0.6093729", "0.6081526", "0.6077237", "0.6055594", "0.60304534", "0.60173684", "0.60075355", "0.5981866", "0.5965398", "0.59511536", "0.59464866", "0.59372956", "0.59283596", "0.59123677", "0.590361", "0.58969283", "0.5890759", "0.5851967", "0.5843942", "0.5838104", "0.5833115", "0.5783319", "0.57798445", "0.5772173", "0.5771424", "0.5765546", "0.5739103", "0.5731872", "0.57286865", "0.57146734", "0.5711217", "0.56934667", "0.5683172", "0.56776404", "0.56766146", "0.5655754", "0.56512994", "0.56503695", "0.5649606", "0.5626244", "0.56116045", "0.5608787", "0.5594155", "0.5592357", "0.5590943", "0.558239", "0.55749726", "0.55740166", "0.55737436", "0.55161566", "0.5515309", "0.55068195", "0.5496021", "0.54948974", "0.549209", "0.5457232", "0.54526716", "0.5447928", "0.54412967", "0.54331017", "0.54315716", "0.5423909", "0.54200894", "0.5417932", "0.5375867", "0.53735626", "0.5372854", "0.5372266", "0.5371184", "0.53659916", "0.53615373", "0.5360833", "0.5358703", "0.5354705", "0.5345719", "0.53448045", "0.53428334", "0.53395164", "0.53395164", "0.53374034", "0.53317016", "0.5330582", "0.53263587", "0.53198296" ]
0.6557797
4
Method sets nopar annotation of selected annotation of class
public void changeNoParClassAnnotation(String className, String annotationName, boolean set) { projectData.changeClassNoParAnnotation(className, annotationName, set); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic Annotation annotate() {\n\t\treturn null;\r\n\t}", "public void changeNoParAttributeAnnotation(String className, String attrName, String AnnotationName, boolean set) {\n\n projectData.changeAttributeNoParAnnotation(className, attrName, AnnotationName, set);\n }", "public void setAnnotation(String annotation) {\n this.annotation = annotation;\n }", "@Override\n\tpublic <T extends Annotation> T getAnnotation(Class<T> annotationClass) {\n\t\treturn null;\n\t}", "@Override\n\t\t\tpublic <T extends Annotation> T getAnnotation(Class<T> annotationClass) {\n\t\t\t\treturn null;\n\t\t\t}", "@Word(word = \"First\", value = 1) \n\t public static void newMethod(){ \n\t\t FullAnnotationProgram obj = new FullAnnotationProgram(); \n\n\t try{ \n\t Class<?> c = obj.getClass(); \n\n\t // Obtain the annotation for newMethod \n\t Method m = c.getMethod(\"newMethod\"); \n\t \n\t // Display the full annotation \n\t Annotation anno = m.getAnnotation(CustomRepeatAnnots.class); \n\t System.out.println(anno); \n\t }catch (NoSuchMethodException e){ \n\t System.out.println(e); \n\t } \n\t }", "public void setAnnotation (String annotation) {\n this.annotation = annotation;\n }", "@Override\n\tpublic void annotate(JDefinedClass cls) {\n\n\t}", "Annotation createAnnotation();", "Annotation createAnnotation();", "public Class<? extends Annotation> annotationType() {\n\t\treturn null;\r\n\t}", "protected void createIgnoreAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/2007/ImpactAnalysis/Ignore\";\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "@Override\n\tpublic Annotation[] getAnnotations() {\n\t\treturn null;\n\t}", "public void setAnnotation(DrawingComponent annotation)\n\t{\n\t\tthis.annotation = annotation;\n\t}", "@Override\n public void visit(Tree.AnnotationList al) {\n }", "public Framework_annotation<T> build_annotation();", "public Framework_annotation<T> build_normal();", "public A annotation() {\n\t\treturn proxy(annotation, loader, className, map);\n\t}", "@PropertySetter(role = ANNOTATION)\n\tboolean removeAnnotation(CtAnnotation<? extends Annotation> annotation);", "Annotation getAnnotation();", "@Override\n public String getAnnotation() {\n return annotation;\n }", "@PropertySetter(role = ANNOTATION)\n\t<E extends CtElement> E addAnnotation(CtAnnotation<? extends Annotation> annotation);", "boolean hasExplicitAnnotation();", "boolean hasExplicitAnnotation();", "@MyFirstAnnotation(name = \"Tom\")\n public void someMethod() {\n\n }", "TypeConstraintMappingContext<C> ignoreAllAnnotations();", "@MyFirstAnnotation(name=\"tom\",description=\"write by tom\")\n\tpublic UsingMyFirstAnnotation(){\n\t\t\n\t}", "@Override\n public String visit(AnnotationDeclaration n, Object arg) {\n return null;\n }", "public CustomAnnotationParanamer() {\n super(new AdaptiveParanamer());\n }", "public void setAnnotations(Annotations annotations) {\n\t\tthis.annotations = annotations;\n\t}", "@PropertySetter(role = ANNOTATION)\n\t<E extends CtElement> E setAnnotations(List<CtAnnotation<? extends Annotation>> annotation);", "public String getAnnotation();", "public String getAnnotationProcessor() {\n return null;\n }", "public abstract Annotations mo30682c();", "Set<? extends Class<? extends Annotation>> annotations();", "public AnnotationInfoImpl()\n {\n }", "@Override\n public void setQualifiers(final Annotation[] annos) {\n }", "@Override\r\n\tpublic String serialize(AnnotationTree tree) {\n\t\treturn null;\r\n\t}", "protected void applyOptionalAnnotation(Logger logger, GetterSpec result, AnnotationMirror mirror) {\n\t\tresult.optional = true;\n\t}", "public abstract Annotations getClassAnnotations();", "private static void processAttributes(ClassNode cls) {\n\t\tAnnotationDefaultClassAttr defAttr = cls.get(JadxAttrType.ANNOTATION_DEFAULT_CLASS);\n\t\tif (defAttr != null) {\n\t\t\tcls.remove(JadxAttrType.ANNOTATION_DEFAULT_CLASS);\n\t\t\tfor (Map.Entry<String, EncodedValue> entry : defAttr.getValues().entrySet()) {\n\t\t\t\tMethodNode mth = cls.searchMethodByShortName(entry.getKey());\n\t\t\t\tif (mth != null) {\n\t\t\t\t\tmth.addAttr(new AnnotationDefaultAttr(entry.getValue()));\n\t\t\t\t} else {\n\t\t\t\t\tcls.addWarnComment(\"Method from annotation default annotation not found: \" + entry.getKey());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// check source file attribute\n\t\tif (!cls.checkSourceFilenameAttr()) {\n\t\t\tcls.remove(JadxAttrType.SOURCE_FILE);\n\t\t}\n\t}", "@Override\n public String visit(MarkerAnnotationExpr n, Object arg) {\n return null;\n }", "@Override\r\n\tpublic String serialize(Annotation annotation) {\n\t\treturn null;\r\n\t}", "public Annotation getAnnotation() {\n return annotation;\n }", "default void onDiscovery(@Nonnull A annotation, @Nonnull Class<? extends C> type) {\n }", "public PragmaAnnotation() {\n super();\n }", "private AnnotationTarget() {\n void var2_-1;\n void var1_-1;\n }", "@Override\n public boolean canFix(Annotation annotation) {\n return false;\n }", "public static void addPermitedType(GvgInfoAnnotation gvgAnnotation){\r\n\t\tif(GvgUtils.permitedClass == null)\r\n\t\t\tGvgUtils.permitedClass = new ArrayList<String>(); \r\n\t\tfor(Class<?> c : gvgAnnotation.value()){\r\n\t\t\tGvgUtils.permitedClass.add(c.getName());\r\n\t\t\tGvgUtils.permitedClass.add(c.getSimpleName());\r\n\t\t}\r\n\t}", "public abstract boolean mo30680a(Annotation annotation);", "@Override\n public String visit(NormalAnnotationExpr n, Object arg) {\n return null;\n }", "public interface SourceAnnotation {\n\n void annotate(AnnotationHolder holder, Document document, int sourceOffset);\n\n}", "public void setExclusiveClassAnnot (\n Class<? extends java.lang.annotation.Annotation> exclusiveClassAnnot)\n {\n synchronized (monitor)\n {\n this.exclusiveClassAnnot = exclusiveClassAnnot;\n }\n }", "public Annotation(String className) {\n\t//\tthis.id = newId();\n\t\tthis.annotatonClassName = className;\n\t\tattributes = new HashSetValuedHashMap<String, String>();\n\t}", "@Override\n\tpublic Annotation[] getDeclaredAnnotations() {\n\t\treturn null;\n\t}", "public T caseAnnotation(Annotation object)\n {\n return null;\n }", "public T caseAnnotation(Annotation object)\n {\n return null;\n }", "public JavaAnnotation getAnnotation( String name );", "protected boolean skip(Annotation annotation) {\n \t\treturn false;\n \t}", "public static void setSourceAnnotation (ITextUnit textUnit,\r\n \t\tIAnnotation annotation)\r\n \t{\r\n \t\tif (textUnit == null)\r\n \t\t\treturn;\r\n \t\tif (textUnit.getSource() == null)\r\n \t\t\treturn;\r\n \r\n \t\ttextUnit.getSource().setAnnotation(annotation);\r\n \t}", "@Override\n\tpublic void setClassMissing() {\n\n\t}", "BasicRestAnnotation() {\n\t}", "public boolean isAnnotation() {\n return cut.isAnnotation();\n }", "public void todo(@MyFirstAnnotation(name=\"none\") String job){\n\t\t\n\t\t@MyFirstAnnotation(name=\"Some name\")\n\t\tint localVariable=0;\n\t}", "public void oneRuntimeRetention_OneClassRetention_ChangedAnnotationOrder(\n @ParamAnnoClass @ParamAnnoRuntime final int input) {\n }", "public abstract AnnotationCollector mo30681b(Annotation annotation);", "public void clearPedAnnotations() {\n\t\tvarTable.getColumnModel().removeColumnsByClass(PedigreeVarAnnotation.class);\n\t}", "public abstract AnnotationMap mo30683d();", "@Test\n public void canDetect_ParameterAnnotation_OneRuntimeRetention_OneClassRetention_ChangedAnnotationOrder() {\n final MethodInfo methodInfo = classInfo.getMethodInfo()\n .getSingleMethod(\"oneRuntimeRetention_OneClassRetention_ChangedAnnotationOrder\");\n\n assertThat(methodInfo.hasParameterAnnotation(ParamAnnoRuntime.class)).isTrue();\n }", "public void toCommentAnnotation() {\n if (ir != null) { // can't process if attahced ir is missing.\n List<Annotation> notes = this.ir.getAnnotations();\n int index = notes.indexOf(this);\n if (index >= 0) {\n CommentAnnotation comment =\n new CommentAnnotation(this.toString());\n notes.remove(this);\n comment.ir = ir;\n comment.setOneLiner(true);\n notes.add(index, comment);\n }\n }\n }", "org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index);", "public AnnotationDefaultAttr(ElemValPair s) { //\r\n elem = s;\r\n }", "public final void annotations() throws RecognitionException {\n int annotations_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"annotations\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(527, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 70) ) { return ; }\n // Java.g:528:5: ( ( annotation )+ )\n dbg.enterAlt(1);\n\n // Java.g:528:9: ( annotation )+\n {\n dbg.location(528,9);\n // Java.g:528:9: ( annotation )+\n int cnt88=0;\n try { dbg.enterSubRule(88);\n\n loop88:\n do {\n int alt88=2;\n try { dbg.enterDecision(88);\n\n int LA88_0 = input.LA(1);\n\n if ( (LA88_0==73) ) {\n int LA88_2 = input.LA(2);\n\n if ( (LA88_2==Identifier) ) {\n int LA88_3 = input.LA(3);\n\n if ( (synpred128_Java()) ) {\n alt88=1;\n }\n\n\n }\n\n\n }\n\n\n } finally {dbg.exitDecision(88);}\n\n switch (alt88) {\n \tcase 1 :\n \t dbg.enterAlt(1);\n\n \t // Java.g:0:0: annotation\n \t {\n \t dbg.location(528,9);\n \t pushFollow(FOLLOW_annotation_in_annotations2704);\n \t annotation();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt88 >= 1 ) break loop88;\n \t if (state.backtracking>0) {state.failed=true; return ;}\n EarlyExitException eee =\n new EarlyExitException(88, input);\n dbg.recognitionException(eee);\n\n throw eee;\n }\n cnt88++;\n } while (true);\n } finally {dbg.exitSubRule(88);}\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 70, annotations_StartIndex); }\n }\n dbg.location(529, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"annotations\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }", "public String getAnnotation() {\n return annotation;\n }", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"Disallow annotation of this PDF.\")\n @JsonProperty(JSON_PROPERTY_DISALLOW_ANNOTATE)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public Boolean getDisallowAnnotate() {\n return disallowAnnotate;\n }", "public void removeAnnotation(long j) {\n this.annotations.removeBy(j);\n }", "private void addClassAnnotation(List<Iannotation> annotations, String packageName, String className) {\n\n FileSavedAnnotClass annotClass;\n\n for (Iannotation item: annotations) {\n\n if (item.isChangen()) {\n\n if (item.isParam()) {\n\n annotClass = new FileSavedAnnotClass(packageName, className, item.getName(), item.getValue());\n } else {\n \n annotClass = new FileSavedAnnotClass(packageName, className, item.getName(), null);\n }\n\n saveAnnotaion.add(annotClass);\n }\n }\n }", "public interface RawAnnotationSet<V> extends ReadableAnnotationSet<V> {\n\n /**\n * @see NindoCursor#begin()\n */\n void begin();\n\n /**\n * @see NindoCursor#finish()\n */\n void finish();\n\n /**\n * Content has been inserted into the document being annotated\n *\n * @param insertSize\n */\n void insert(int insertSize);\n\n String getInherited(String key);\n\n /**\n * Content has been removed from the document being annotated\n *\n * @param deleteSize\n */\n void delete(int deleteSize);\n\n /**\n */\n void skip(int skipSize);\n\n /**\n * @see ModifiableDocument#startAnnotation(String, String)\n */\n void startAnnotation(String key, V value);\n\n /**\n * @see ModifiableDocument#endAnnotation(String)\n */\n void endAnnotation(String key);\n\n /**\n * @return a live updated set of the known keys\n */\n ReadableStringSet knownKeysLive();\n\n public abstract class AnnotationEvent {\n final int index;\n final String key;\n\n private AnnotationEvent(int index, String key) {\n this.index = index;\n this.key = key;\n }\n\n abstract String getChangeKey();\n abstract String getChangeOldValue();\n abstract String getEndKey();\n }\n\n public final class AnnotationStartEvent extends AnnotationEvent {\n final String value;\n AnnotationStartEvent(int index, String key, String value) {\n super(index, key);\n// assert !Annotations.isLocal(key);\n this.value = value;\n }\n\n @Override\n String getChangeKey() {\n return key;\n }\n\n @Override\n String getChangeOldValue() {\n return value;\n }\n\n @Override\n String getEndKey() {\n return null;\n }\n\n @Override\n public String toString() {\n return \"AnnotationStart \" + key + \"=\" + value + \" @\" + index;\n }\n }\n\n public final class AnnotationEndEvent extends AnnotationEvent {\n AnnotationEndEvent(int index, String key) {\n super(index, key);\n }\n\n\n @Override\n String getChangeKey() {\n return null;\n }\n\n @Override\n String getChangeOldValue() {\n return null;\n }\n\n @Override\n String getEndKey() {\n return key;\n }\n\n @Override\n public String toString() {\n return \"AnnotationEndEvent \" + key + \" @\" + index;\n }\n }\n\n}", "protected void updateAnnotations(CompilationUnit ast, IProgressMonitor progressMonitor) {\n if (ast == null || progressMonitor.isCanceled()) {\n return;\n }\n // add annotations\n OverriddenElementFinder visitor = new OverriddenElementFinder();\n ast.accept(visitor);\n // may be already cancelled\n if (progressMonitor.isCanceled()) {\n return;\n }\n // add annotations to the model\n updateAnnotations(visitor.indicators);\n }", "Set<String> annotations();", "default HxAnnotation createAnnotation(final Class<? extends Annotation> cls,\n final boolean visible) {\n return createAnnotation(cls.getName(), visible);\n }", "default void onPreConstruct(@Nonnull A annotation, @Nonnull Class<? extends C> type) {\n }", "@Override\n public Void visitUnknown(AnnotationValue av, TypeMirror expectedType) {\n defaultAction(av, expectedType);\n return null;\n }", "protected void setupAnnotationToggling() {\r\n\t\tgetWWD().addSelectListener(new SelectListener() {\r\n\t\t\tpublic void selected(SelectEvent event) {\r\n\t\t\t\tif (event.getEventAction().equals(SelectEvent.LEFT_CLICK)) {\r\n\t\t\t\t\tif (event.hasObjects()) {\r\n\t\t\t\t\t\tObject obj = event.getTopObject();\r\n\t\t\t\t\t\tif (obj instanceof ToggleAnnotation) {\r\n\t\t\t\t\t\t\tToggleAnnotation annotation = (ToggleAnnotation) obj;\r\n\t\t\t\t\t\t\tannotation.toggleText();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}", "@Override\n public String visit(AnnotationMemberDeclaration n, Object arg) {\n return null;\n }", "public void annotate(String annotation) {\n if (isActive())\n itemBuffer.offer(new Tag(System.currentTimeMillis(), credentials.user, annotation));\n }", "public static void setTargetAnnotation (ITextUnit textUnit,\r\n \t\tLocaleId locId,\r\n \t\tIAnnotation annotation)\r\n \t{\r\n \t\tif ( textUnit == null ) return;\r\n \t\tif ( Util.isNullOrEmpty(locId) ) return;\r\n \t\tif ( textUnit.getTarget(locId) == null ) return;\r\n \t\ttextUnit.getTarget(locId).setAnnotation(annotation);\r\n \t}", "@Override\n\tpublic void setMissing(final Attribute att) {\n\n\t}", "public void setUnlabeled(){\n\t\tthis._isLabeled = false;\n\t}", "@MyAnnotation(\"abc\")\r\n\t@Override\r\n\tpublic String perform(String arg1) {\n\t\treturn \"hello \";\r\n\t}", "public String getAnnotation () {\n return annotation;\n }", "public void defaultVar(ArrayCanvas canvas) {\t\t\r\n\t\tcanvas.annotations.clear();\r\n\t\tcanvas.repaint();\r\n\t}", "@Test\n public void source8_masked() throws Exception {\n ImmutableList<String> options = ImmutableList.of(\"-source\", \"8\", \"-target\", \"8\");\n String generated = runProcessor(options, \"javax.annotation\");\n assertThat(generated).doesNotContain(GeneratedAnnotationsTest.JAVAX_ANNOTATION_GENERATED);\n assertThat(generated).doesNotContain(GeneratedAnnotationsTest.JAVAX_ANNOTATION_PROCESSING_GENERATED);\n }", "public void onAnnotationsPreRemove(Map<Annot, Integer> annots) {\n/* 370 */ if (annots == null || annots.size() == 0 || !this.mPdfViewCtrl.isUndoRedoEnabled()) {\n/* */ return;\n/* */ }\n/* */ }", "public String getDiagramAnnotation() {\n\t\treturn null;\n\t}", "private void checkAnnotation()\n{\n if (getContext() == null) {\n BoardLog.logD(\"BICEX\",\"No context for annotations\");\n return;\n }\n long when = getExecution().getCurrentTime();\n Integer ilno = getContext().getLineAtTime(when);\n BoardLog.logD(\"BICEX\",\"LINE annotation at \" + ilno + \" \" + getContext().getFileName());\n\n if (ilno == null || ilno == 0) {\n removeAnnotation();\n }\n else if (ilno == current_line) ;\n else {\n removeAnnotation();\n EvalAnnot ea = new EvalAnnot(ilno,when);\n synchronized (this) {\n\t current_line = ilno;\n\t current_annotation = ea;\n\t BaleFactory.getFactory().addAnnotation(current_annotation);\n }\n }\n}", "public final void setOptional() {_occ.setOptional();}", "public void setInclusiveClassAnnot (\n Class<? extends java.lang.annotation.Annotation> inclusiveClassAnnot)\n {\n synchronized (monitor)\n {\n this.inclusiveClassAnnot = inclusiveClassAnnot;\n }\n }", "public interface AnnotationValue {\n}", "@Override\n public Void visitPackage(PackageElement e, Void p) {\n validateAnnotations(e.getAnnotationMirrors());\n return null;\n }" ]
[ "0.6995602", "0.6341827", "0.6282762", "0.627609", "0.6222206", "0.6191412", "0.61674976", "0.6152138", "0.61106384", "0.61106384", "0.59576386", "0.59483725", "0.5926211", "0.59094226", "0.5885806", "0.5860162", "0.58545554", "0.58257926", "0.5808682", "0.57533586", "0.5711026", "0.56953704", "0.5694522", "0.5694522", "0.56871015", "0.5682719", "0.5671574", "0.5655323", "0.56547487", "0.5643345", "0.56414884", "0.56399626", "0.5571654", "0.5547583", "0.5526391", "0.55174863", "0.5512025", "0.55113256", "0.5506049", "0.54699016", "0.54585856", "0.5457682", "0.54413104", "0.5409379", "0.54014146", "0.5400594", "0.5394315", "0.5392107", "0.5386078", "0.5380796", "0.5379902", "0.53772026", "0.5369248", "0.5363022", "0.53620124", "0.5357513", "0.5357513", "0.5336439", "0.5320892", "0.52922523", "0.5275141", "0.52680075", "0.5233571", "0.52040553", "0.52024734", "0.5200624", "0.51986235", "0.51981294", "0.5174324", "0.51670986", "0.5153609", "0.5153349", "0.5133692", "0.5133522", "0.51219815", "0.5119844", "0.5115491", "0.51096797", "0.51037014", "0.51026213", "0.50976515", "0.50909287", "0.5087202", "0.5085584", "0.508294", "0.5080925", "0.5080534", "0.5079328", "0.50775445", "0.5073454", "0.5044906", "0.504468", "0.5036765", "0.5028536", "0.5018771", "0.5015861", "0.5013606", "0.50104475", "0.50092167", "0.4995423" ]
0.7093819
0
Method change nopar annotation of seleceted attribute
public void changeNoParAttributeAnnotation(String className, String attrName, String AnnotationName, boolean set) { projectData.changeAttributeNoParAnnotation(className, attrName, AnnotationName, set); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic Annotation annotate() {\n\t\treturn null;\r\n\t}", "@MyFirstAnnotation(name = \"Tom\")\n public void someMethod() {\n\n }", "@Override\n public String visit(AnnotationDeclaration n, Object arg) {\n return null;\n }", "@Override\n\tpublic void setMissing(final Attribute att) {\n\n\t}", "public void changeNoParClassAnnotation(String className, String annotationName, boolean set) {\n projectData.changeClassNoParAnnotation(className, annotationName, set);\n }", "@Override public void visitAttribute(Attribute attr) {\n }", "@MyFirstAnnotation(name=\"tom\",description=\"write by tom\")\n\tpublic UsingMyFirstAnnotation(){\n\t\t\n\t}", "@Override public void visitAttribute(Attribute attr) {\n }", "@Override public void visitAttribute(Attribute attr) {\n }", "@Override\n\tpublic void visitAttribute(Object attr) {\n\t}", "@Override\n public String visit(NormalAnnotationExpr n, Object arg) {\n return null;\n }", "@Override\n public void visitAttribute(Attribute attribute) {\n }", "@Override\n\t\tprotected void resetAttribute() {\n\t\t}", "@Override\npublic void setAttributes() {\n\t\n}", "@Word(word = \"First\", value = 1) \n\t public static void newMethod(){ \n\t\t FullAnnotationProgram obj = new FullAnnotationProgram(); \n\n\t try{ \n\t Class<?> c = obj.getClass(); \n\n\t // Obtain the annotation for newMethod \n\t Method m = c.getMethod(\"newMethod\"); \n\t \n\t // Display the full annotation \n\t Annotation anno = m.getAnnotation(CustomRepeatAnnots.class); \n\t System.out.println(anno); \n\t }catch (NoSuchMethodException e){ \n\t System.out.println(e); \n\t } \n\t }", "public interface JvmAnnotationAttribute {\n\n @NotNull\n String getAttributeName();\n\n @Nullable\n JvmAnnotationAttributeValue getAttributeValue();\n}", "@Override\n public boolean canFix(Annotation annotation) {\n return false;\n }", "public interface IAttributeConverter\n{\n\n /**\n * Converts an ordered list of attributes to a newer one.\n * The result list has to be conform with the next ObsoleteVersion-Annotation.\n *\n * @param pAttributes Attributes to be converted\n * @param pNextAccessor Next accessor, for which the attributes should be mapped.\n * All containing attributes in this accessor are type-only -> no value\n * @return attributes of the next version\n */\n @NotNull\n List<OAAttribute> convert(@NotNull List<OAAttribute> pAttributes, @NotNull OAAccessor pNextAccessor) throws AttributeConversionException;\n\n /**\n * Default-Implementation with no conversion.\n * It just returns the original list back.\n */\n class DEFAULT implements IAttributeConverter\n {\n @NotNull\n @Override\n public List<OAAttribute> convert(@NotNull List<OAAttribute> pAttributes, @NotNull OAAccessor pNextAccessor)\n {\n return pAttributes;\n }\n }\n\n}", "private void initReservedAttributes()\n {\n addIgnoreProperty(ATTR_IF_NAME);\n addIgnoreProperty(ATTR_REF);\n addIgnoreProperty(ATTR_UNLESS_NAME);\n addIgnoreProperty(ATTR_BEAN_CLASS);\n addIgnoreProperty(ATTR_BEAN_NAME);\n }", "@PropertySetter(role = ANNOTATION)\n\tboolean removeAnnotation(CtAnnotation<? extends Annotation> annotation);", "public PragmaAnnotation() {\n super();\n }", "@Override\npublic void processAttributes() {\n\t\n}", "public Framework_annotation<T> build_normal();", "public void parameterAnnotation_WithRuntimeRetention(@ParamAnnoRuntime final int input) {\n }", "Annotation createAnnotation();", "Annotation createAnnotation();", "@Override\n public String visit(MarkerAnnotationExpr n, Object arg) {\n return null;\n }", "public abstract Annotations mo30682c();", "private static void processAttributes(ClassNode cls) {\n\t\tAnnotationDefaultClassAttr defAttr = cls.get(JadxAttrType.ANNOTATION_DEFAULT_CLASS);\n\t\tif (defAttr != null) {\n\t\t\tcls.remove(JadxAttrType.ANNOTATION_DEFAULT_CLASS);\n\t\t\tfor (Map.Entry<String, EncodedValue> entry : defAttr.getValues().entrySet()) {\n\t\t\t\tMethodNode mth = cls.searchMethodByShortName(entry.getKey());\n\t\t\t\tif (mth != null) {\n\t\t\t\t\tmth.addAttr(new AnnotationDefaultAttr(entry.getValue()));\n\t\t\t\t} else {\n\t\t\t\t\tcls.addWarnComment(\"Method from annotation default annotation not found: \" + entry.getKey());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// check source file attribute\n\t\tif (!cls.checkSourceFilenameAttr()) {\n\t\t\tcls.remove(JadxAttrType.SOURCE_FILE);\n\t\t}\n\t}", "@MyAnnotation(\"abc\")\r\n\t@Override\r\n\tpublic String perform(String arg1) {\n\t\treturn \"hello \";\r\n\t}", "protected void createIgnoreAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/2007/ImpactAnalysis/Ignore\";\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "public void todo(@MyFirstAnnotation(name=\"none\") String job){\n\t\t\n\t\t@MyFirstAnnotation(name=\"Some name\")\n\t\tint localVariable=0;\n\t}", "BasicRestAnnotation() {\n\t}", "protected boolean skip(Annotation annotation) {\n \t\treturn false;\n \t}", "@Test\n public void testConfigurationDeclarationIsReservedOptional()\n {\n checkOldReservedAttribute(\"optional\");\n }", "@Override\n\t\tprotected void resetAttribute() {\n\t\t\tsuper.resetAttribute();\n\t\t\tmissing = false;\n\t\t\tmalformed = false;\n\t\t}", "private AnnotationTarget() {\n void var2_-1;\n void var1_-1;\n }", "public AnnotationDefaultAttr(ElemValPair s) { //\r\n elem = s;\r\n }", "DefaultAttribute()\n {\n }", "@Override\r\n protected void parseAttributes()\r\n {\n\r\n }", "@Override\r\n\tpublic String getAttribute() {\n\t\treturn null;\r\n\t}", "boolean hasExplicitAnnotation();", "boolean hasExplicitAnnotation();", "public boolean isAttribute() {\n\t\treturn false;\n\t}", "@MyAnnotation(value = \"theValue\")\n private void wrapAsString() {\n }", "@Override\n public void visit(Tree.AnnotationList al) {\n }", "@PropertySetter(role = ANNOTATION)\n\t<E extends CtElement> E addAnnotation(CtAnnotation<? extends Annotation> annotation);", "IParser setOmitResourceId(boolean theOmitResourceId);", "@Override\n\tpublic Annotation[] getAnnotations() {\n\t\treturn null;\n\t}", "protected void applyOptionalAnnotation(Logger logger, GetterSpec result, AnnotationMirror mirror) {\n\t\tresult.optional = true;\n\t}", "protected LPDMODOMAttribute() {\n }", "private AttributePrepender(String attribute, org.apache.wicket.model.IModel<?> replaceModel) {\n super(attribute, replaceModel);\n }", "@Override\n public String visit(AnnotationMemberDeclaration n, Object arg) {\n return null;\n }", "default void putAttribute(ConceptName name, Attribute attribute) {}", "public abstract boolean mo30680a(Annotation annotation);", "public void changeAttrName() {\r\n }", "public InspectionAttributes() {\n }", "public Framework_annotation<T> build_annotation();", "@Override\r\n\tpublic String serialize(AnnotationTree tree) {\n\t\treturn null;\r\n\t}", "TypeConstraintMappingContext<C> ignoreAllAnnotations();", "@Override\r\n\tpublic String serialize(Annotation annotation) {\n\t\treturn null;\r\n\t}", "public void oneRuntimeRetention_OneClassRetention_ChangedAnnotationOrder(\n @ParamAnnoClass @ParamAnnoRuntime final int input) {\n }", "public void assertNotAttribute(final String attributeLocator, final String textPattern);", "public String getAnnotation();", "@Override\n\tpublic void removeAttribute(String arg0) {\n\t}", "@Override\n\tpublic void removeAttribute(String arg0) {\n\n\t}", "@Override\n\tpublic void annotate(JDefinedClass cls) {\n\n\t}", "@Override\n public String getAnnotation() {\n return annotation;\n }", "public boolean definesTargetAttribute(String name);", "@Override\n\tpublic void removeAttribute(String arg0) {\n\t\t\n\t}", "public void setAnnotation(String annotation) {\n this.annotation = annotation;\n }", "@Test\n public void testConfigurationDeclarationIsReservedAt()\n {\n checkOldReservedAttribute(\"at\");\n }", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"Disallow annotation of this PDF.\")\n @JsonProperty(JSON_PROPERTY_DISALLOW_ANNOTATE)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public Boolean getDisallowAnnotate() {\n return disallowAnnotate;\n }", "@Override\n\tpublic boolean shouldSkipField(FieldAttributes classe) {\n\t\t\n\t\tfinal Expose expose = classe.getAnnotation(Expose.class);\n return expose != null && !expose.serialize();\n\t\t\n/*\t\tString className = classe.getDeclaringClass().getName();\n\t\tString fieldName = classe.getName();\n\t\t\n\t\t\t\n\t\t\n\t\treturn \n\t className.equals(Produto.class.getName())\n\t && (fieldName.equals(\"versoes\") || fieldName.equals(\"clientes\"));*/\n\t}", "public CustomAnnotationParanamer() {\n super(new AdaptiveParanamer());\n }", "public void setAnnotation (String annotation) {\n this.annotation = annotation;\n }", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public A annotation() {\n\t\treturn proxy(annotation, loader, className, map);\n\t}", "public void annotationsCouldNotBeAdded(String errorMessage) {}", "@org.junit.Test(timeout = 10000)\n public void annotatedTwice_cf16419() {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" @java.lang.Override java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).annotated(com.squareup.javapoet.AnnotationSpec.builder(java.lang.Override.class).build()).toString();\n // StatementAdderOnAssert create random local variable\n java.lang.Object vc_7131 = new java.lang.Object();\n // AssertGenerator replace invocation\n boolean o_annotatedTwice_cf16419__12 = // StatementAdderMethod cloned existing statement\n type.equals(vc_7131);\n // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_annotatedTwice_cf16419__12);\n org.junit.Assert.assertEquals(expected, actual);\n }", "@org.junit.Test(timeout = 10000)\n public void annotatedTwice_cf16426() {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" @java.lang.Override java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).annotated(com.squareup.javapoet.AnnotationSpec.builder(java.lang.Override.class).build()).toString();\n // AssertGenerator replace invocation\n boolean o_annotatedTwice_cf16426__10 = // StatementAdderMethod cloned existing statement\n type.isBoxedPrimitive();\n // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_annotatedTwice_cf16426__10);\n org.junit.Assert.assertEquals(expected, actual);\n }", "protected abstract boolean skipAttributesInView(String code, boolean includeSecure);", "@Override\n public void onRPClassAddAttribute(RPClass rpclass,\n String name, Definition.Type type) {\n }", "public interface AttributeFun {\n}", "@Override\n\tpublic void setMissing(final int attIndex) {\n\n\t}", "public Attr() {\n\t\t\tsuper();\n\t\t}", "public abstract AnnotationMap mo30683d();", "public Annotation(String className) {\n\t//\tthis.id = newId();\n\t\tthis.annotatonClassName = className;\n\t\tattributes = new HashSetValuedHashMap<String, String>();\n\t}", "@Override\n public void setAttribute(boolean f)\n {\n checkState();\n attribute = f;\n }", "public void setAttr(String attr) {\n this.attr = attr == null ? null : attr.trim();\n }", "@Override\n\tpublic void imprimir() {\n\t\t\n\t}", "@org.junit.Test(timeout = 10000)\n public void annotatedTwice_cf16418() {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" @java.lang.Override java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).annotated(com.squareup.javapoet.AnnotationSpec.builder(java.lang.Override.class).build()).toString();\n // StatementAdderOnAssert create null value\n java.lang.Object vc_7130 = (java.lang.Object)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_7130);\n // AssertGenerator replace invocation\n boolean o_annotatedTwice_cf16418__12 = // StatementAdderMethod cloned existing statement\n type.equals(vc_7130);\n // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_annotatedTwice_cf16418__12);\n org.junit.Assert.assertEquals(expected, actual);\n }", "public void assertNotAttribute(final String elementLocator, final String attributeName, final String textPattern);", "@Override\n protected boolean ignoreAnnotatedElement(Element element, AnnotationMirror mirror) {\n return hasElement(mirror, \"implicitMember\");\n }", "@Override\n\tpublic void attributeReplaced(ServletContextAttributeEvent evento_atributo) {\n\t\t// CONTROL DEL NOMBRE DEL ATRIBUTO\n\t\tString nombre_atributo = evento_atributo.getName();\n\t\tif (this.seguir_Proceso(nombre_atributo)) {\n\t\t\tObject valor = evento_atributo.getValue();\n\t\t\tString valor_texto = this.coger_Valor(valor);\n\t\t\tString tipo = null;\n\t\t\ttipo = valor.getClass().getSimpleName();\n\t\t\tregistro(\"*** Modificado el atributo de aplicacion del tipo \" + tipo + \" nombre: \" + nombre_atributo + \" valor modificado: \" + valor_texto);\n\t\t}\n\t}", "private void addAttrAnnotation(List<Iattribute> attributes, String packageName, String className) {\n\n FileSavedAnnotAttr annotAttr;\n\n for (Iattribute itemAttr: attributes) {\n\n for (Iannotation itemAnnot: itemAttr.getAttrAnnotations()) {\n\n if (itemAnnot.isChangen()) {\n\n if (itemAnnot.isParam()) {\n\n annotAttr = new FileSavedAnnotAttr(packageName, className, itemAnnot.getName(), itemAnnot.getValue(), itemAttr.getName(), itemAttr.getType());\n }else {\n\n annotAttr = new FileSavedAnnotAttr(packageName, className, itemAnnot.getName(), null, itemAttr.getName(), itemAttr.getType());\n }\n\n saveAnnotaion.add(annotAttr);\n }\n }\n }\n }", "Annotation getAnnotation();", "@Override\n public int getAttributeCount() { return 0; }", "public boolean definesTargetAttribute(int idx);", "@Override\n\t\tpublic void removeAttribute(String name) {\n\t\t\t\n\t\t}" ]
[ "0.7028974", "0.62750983", "0.62466204", "0.62023896", "0.6197173", "0.61709976", "0.6161908", "0.6125199", "0.6125199", "0.6118577", "0.6076379", "0.60588425", "0.60286224", "0.60214645", "0.60051954", "0.58884", "0.5880545", "0.58628124", "0.5859931", "0.5804906", "0.57907045", "0.57753557", "0.57668555", "0.5747876", "0.57471114", "0.57471114", "0.5744289", "0.5721926", "0.5716646", "0.5714664", "0.5701653", "0.5699927", "0.56889755", "0.5685239", "0.56623614", "0.5661398", "0.56547385", "0.56543326", "0.5639788", "0.562711", "0.56245625", "0.5614433", "0.5614433", "0.5608177", "0.5607903", "0.56035227", "0.55796486", "0.5573346", "0.55589", "0.5541912", "0.5537436", "0.5537409", "0.55341613", "0.5506601", "0.55020356", "0.54977334", "0.5465554", "0.5463339", "0.54458314", "0.54435545", "0.54349357", "0.5405021", "0.5390268", "0.53779954", "0.53779227", "0.5376051", "0.53672993", "0.5366333", "0.53561026", "0.5332963", "0.53248566", "0.5322652", "0.5319422", "0.53179604", "0.5314943", "0.5313947", "0.5312188", "0.53113514", "0.53097683", "0.5299776", "0.5294046", "0.52921194", "0.52864915", "0.5285772", "0.5284921", "0.52825177", "0.52784544", "0.5275221", "0.5270665", "0.52683103", "0.52645487", "0.52584803", "0.52565366", "0.52435535", "0.52396935", "0.5235306", "0.5233691", "0.52309144", "0.5219818", "0.5218603" ]
0.6697426
1
Sets the message channel for service dispatching.
public void setChannel(SubscribableChannel messageChannel) { this.messageChannel = messageChannel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setChannel(Channel channel)\n {\n this.channel = channel;\n }", "public void setSocketChannel(SocketChannel socketChannel);", "public void SetChannel(int channel);", "private void setChannel(String channel){\n put(SlackParamsConstants.CHANNEL, channel);\n }", "public void setComponent(AppEngineComponent component) {\n\t\tthis.parent = component;\n\t\tthis.cmpCtx = parent.getComponentContext();\n\t\t// initiate the Message Factory\n\t\tif (cmpCtx instanceof ComponentContextImpl) {\n\t\t\tmessageFactory = new MessageFactory((ComponentContextImpl) cmpCtx);\n\t\t} else {\n\t\t\t// logger.warn(\"Can't initiate the Message Factory!\");\n\t\t}\n\t\ttry {\n\t\t\tthis.channel = this.cmpCtx.getDeliveryChannel();\n\t\t} catch (MessagingException e) {\n\t\t\t// logger.warn(\"Can't get the Delivery Channel\", e);\n\t\t}\n\t}", "public void setChannelFuture(ChannelFuture channelFuture) {\n this.channelFuture = channelFuture;\n }", "public void setChannel(Byte channel) {\n this.channel = channel;\n }", "void setChannel(EzyChannel channel);", "public void bindMessageChannelService(MessageChannelService newInstance) {\n messageChannelService = newInstance;\n }", "public void setChannelName(String channel)\n {\n mChannelName = channel;\n }", "private synchronized void setCurrentChannel(String currentChannel) {\n\n this.currentChannel = currentChannel;\n }", "public void setChannel(String channel) {\n\t\tthis.channel = channel;\n\t}", "public abstract void message(String channel, String message);", "public void setFacilityChannelProvider(ChannelProvider facilityChannelProvider) {\n this.facilityChannelProvider = facilityChannelProvider;\n }", "void start(Channel channel, Object msg);", "public Builder setChannel(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n channel_ = value;\n onChanged();\n return this;\n }", "public Builder setChannel(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000200;\n channel_ = value;\n onChanged();\n return this;\n }", "public void setChannel(String channel) {\n\t\tthis.channel = channel == null ? null : channel.trim();\n\t}", "public void setChannel(String channel) {\r\n this.channel = channel == null ? null : channel.trim();\r\n }", "void set_Msg(String buf, SocketChannel channel) {\n System.out.println(\"setMsg: \" + buf);\n msgBuffer = buf;\n mtype = parseMsg();\n this.channel = channel;\n }", "public void setDispatcher(int channel, IOscilloscopeDispatcher dispatcher) {\n\t\tchan[channel].dispatcher = dispatcher;\n\t}", "public void setChannel(org.apache.axis.types.UnsignedInt channel) {\n this.channel = channel;\n }", "public void setChannelName(String sChannelName)\r\n\t{\r\n\t\tthis.sChannelName = sChannelName;\r\n\t}", "void send(IMessage message, IChannel channel);", "public static void MessageChannel(String message, TextChannel channel) {\n\t\tchannel.sendMessage(message).queue();\n\t}", "@Override\n\tpublic void useChannel(ICommunicationChannel channelToUse) {\n\t\t\n\t}", "@Override\n\tpublic void useChannel(ICommunicationChannel channelToUse) {\n\t\t\n\t}", "@Override\n public int getChannel()\n {\n return channel;\n }", "public void MessageEvent(ChannelMessageEvent ev) {\n\t\t\n\t\tif (ev == null)\n\t\t\treturn;\n\t\tstdGroup.fireEventStatus(new StatusEvent(this,\"Channel \"+ ev.getChannelName() + \"is speaking to me\"));\n\t\tsetChanged();\n\t\tnotifyObservers(ev);\n\t\tstdGroup.fireEventStatus(new StatusEvent(this,\"Notifying for channel \"+ ev.getChannelName() + \" all views\"));\n\t\t\n\t}", "@Test\n\tpublic void testChannel() {\n\t\tString requestXml =\n\t\t\t\t\"<FahrenheitToCelsius xmlns=\\\"http://www.w3schools.com/webservices/\\\">\" +\n\t\t\t\t\" <Fahrenheit>55</Fahrenheit>\" +\n\t\t\t\t\"</FahrenheitToCelsius>\";\n\n\t\t// Create the Message object\n\t\tMessage<String> message = MessageBuilder.withPayload(requestXml).build();\n\n\t\t// Send the Message to the handler's input channel\n\t\t//MessageChannel channel = channelResolver.resolveChannelName(\"fahrenheitChannel\");\n\t\tchannel.send(message);\n\t}", "public String getChannel() {\r\n return channel;\r\n }", "public void setCommunicationHandler(){\n this.comHandler = new CommunicationHandler(this);\n }", "@Override\n protected void channelRead0(ChannelHandlerContext ctx, Message msg)\n {\n mDispatcher.dispatch(mPeer, msg);\n }", "public void setChannel(Channel channel)\n {\n if (this.channel != null)\n {\n this.channel.setGateway(null);\n }\n\n this.channel = channel;\n if (channel != null)\n {\n channel.setGateway(gatewayRouter.getGateway());\n }\n\n gatewayRouter.setGatewayCallback(channel);\n }", "public String getChannel() {\n return channel;\n }", "@Override\n\t\t\tpublic void callStarted(String channel) {\n\t\t\t}", "public void sendChannelMessage(String msg) throws RemoteException {\n if(mService.isConnected()) {\n try {\n IJumbleService binder = mService.getBinder();\n\n int channelId = mService.getBinder().getSessionChannel().getId();\n binder.sendChannelTextMessage(channelId, msg, false);\n }\n catch(NullPointerException e) {\n Log.d(TAG, \"Unable to send command '\" + msg + \"': \" + e);\n }\n }\n }", "public String getChannel() {\r\n\t\treturn this.channel;\r\n\t}", "public void setExchangeChannelProvider(ChannelProvider exchangeChannelProvider) {\n this.exchangeChannelProvider = exchangeChannelProvider;\n }", "public void setChannelId( int channelId ) {\r\n this.channelId = channelId;\r\n }", "public String getChannel() {\n\t\treturn channel;\n\t}", "public String getChannel() {\n\t\treturn channel;\n\t}", "@Override\n\tprotected void initChannel(SocketChannel ch) throws Exception {\n\t\tch.pipeline().addLast(\"tcpDecoder\", new MessageDecoder());\n\t\tch.pipeline().addLast(\"tcpHandler\", new TcpServerHandler(ac)); \n\t\t\n\t}", "protected void onMessage(String channel, String sender, String login, String realName, String message) {}", "public void setChannel(PowerChannel channel) {\n this.channel = channel;\n }", "public void setChannel(@EntityInstance int i, @IntRange(from = 0, to = 3) int channel) {\n nSetChannel(mNativeObject, i, channel);\n }", "Channel channel() {\n return channel;\n }", "public Builder setChannelId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n channelId_ = value;\n onChanged();\n return this;\n }", "@Override\r\n\tprotected void initChannel(SocketChannel ch) throws Exception {\n\t\tch.pipeline().addLast(\"tcpDecoder\", new MessageDecoder());\r\n\t\tch.pipeline().addLast(\"tcpHandler\", new TcpServerHandler(ac)); \r\n\t\t\r\n\t}", "public Builder setChannelToken(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n channelToken_ = value;\n onChanged();\n return this;\n }", "public Builder setChannelToken(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n channelToken_ = value;\n onChanged();\n return this;\n }", "public Channel getChannel() {\n return channel;\n }", "public void setMode(String channel, String mode);", "@Override\n public void onMessage(String channel, String message) {\n responseMessage = message;\n onPostExecute(responseMessage);\n }", "protected Channel getChannel()\n {\n return mChannel;\n }", "public Channel getChannel()\n {\n return channel;\n }", "public MessageSelectingQueueChannel(BlockingQueue<Message<?>> queue) {\n super(queue);\n \n this.queue = queue;\n }", "@Override\n\tpublic void channelParted(String channel) {\n\t}", "public IChannel getChannel() {\n\t\treturn message.getChannel();\n\t}", "public SocketChannel getChannel() {\n return channel;\n }", "public ChannelDesc(SocketChannel channel) {\n this.channel = channel;\n }", "public void setChannelId(String channelId)\n {\n this.channelId = channelId;\n }", "public int getChannel() {\r\n\t\treturn channel;\r\n\t}", "public Channel getChannel() {\r\n\t\treturn channel;\r\n\t}", "public interface MessagingService {\n\n /**\n * Checks whether message receivers are registered for this channel.\n * \n * @param ccid the channel id\n * @return <code>true</code> if there are message receivers on this channel,\n * <code>false</code> if not.\n */\n boolean hasMessageReceiver(String ccid);\n\n /**\n * Passes the message to the registered message receiver.\n * \n * @param ccid the channel to pass the message on\n * @param serializedMessage the message to send (serialized SMRF message)\n */\n void passMessageToReceiver(String ccid, byte[] serializedMessage);\n\n /**\n * Check whether the messaging component is responsible to send messages on\n * this channel.<br>\n * \n * In scenarios with only one messaging component, this will always return\n * <code>true</code>. In scenarios in which channels are assigned to several\n * messaging components, only the component that the channel was assigned\n * to, returns <code>true</code>.\n * \n * @param ccid\n * the channel ID or cluster controller ID, respectively.\n * @return <code>true</code> if the messaging component is responsible for\n * forwarding messages on this channel, <code>false</code>\n * otherwise.\n */\n boolean isAssignedForChannel(String ccid);\n\n /**\n * Check whether the messaging component was responsible before but the\n * channel has been assigned to a new messaging component in the mean time.\n * \n * @param ccid the channel id\n * @return <code>true</code> if the messaging component was responsible\n * before but isn't any more, <code>false</code> if it either never\n * was responsible or still is responsible.\n */\n boolean hasChannelAssignmentMoved(String ccid);\n}", "public Channel getChannel()\n\t{\n\t\treturn channel;\n\t}", "public void setChannelId(String sChannelId)\r\n\t{\r\n\t\tthis.sChannelId = sChannelId;\r\n\t}", "protected void setPersonlanguagecommunicationchannelService(PersonlanguagecommunicationchannelService service) {\n\t\tthis.personlanguagecommunicationchannelService = service;\n\t}", "public ControlChannel(String name)\n\t{\n\t\tthis.name = name;\n\t\tmyController = Controller.getController();\n\t}", "public void setMessage(Message msg){\n message = msg;\n setChanged();\n notifyObservers();\n }", "public void setMessage(Message message) {\n this.message = message;\n setChanged();\n notifyObservers(); // This calls the update() in Processor.java\n }", "synchronized void serviceChannel(SelectionKey key) {\n this.key = key;\n\n key.interestOps(key.interestOps() & (~SelectionKey.OP_READ));\n\n this.notify(); // Awaken the thread\n }", "public void setChannelid(Integer channelid) {\n this.channelid = channelid;\n }", "public int getChannel() {\n return channel;\n }", "public void setChannelCount(int value) {\n this.channelCount = value;\n }", "public void partChannel(String channel, String reason);", "public ChannelManager getChannelManager() {\n return channelMgr;\n }", "protected void postProcessChannel(Channel channel, Message response) {\n\t}", "public Builder setChannelFinder(ChannelFinder finder) {\n this.finder = finder;\n return this;\n }", "public ServerScheduledEventBuilder setChannel(ServerVoiceChannel channel) {\n delegate.setChannelId(channel.getId());\n return this;\n }", "public void m7906b(String channelId) {\n this.f6689b = channelId;\n }", "public void setChannelId(String channelId) {\n this.channelId = channelId;\n }", "public Builder setChannel(\n int index, io.grpc.channelz.v1.Channel value) {\n if (channelBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureChannelIsMutable();\n channel_.set(index, value);\n onChanged();\n } else {\n channelBuilder_.setMessage(index, value);\n }\n return this;\n }", "public Connection(Channel channel) {\r\n this.channel = channel;\r\n }", "public UTIL_SET_CHANNELS() {\n }", "@Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n\n messengerService = new Messenger(service);\n messengerServiceBound = true;\n }", "void onMessage(String pattern, String channel, String message);", "@Override\n protected void initChannel (SocketChannel ch) throws Exception {\n // can utilize channel to push message to different client since one channel correspond to one client\n System.out.println(\"client socket channel hashcode = \" + ch.hashCode());\n ch.pipeline().addLast(new NettyServerHandler());\n }", "public void setMessage(AbstractMessage msg) {\n\t\tthis.message = msg;\n\t}", "java.lang.String getChannel();", "public String getChannelId() {\n return channelId;\n }", "public void initChannel() {\n //or channelFactory\n bootstrap().channel(NioServerSocketChannel.class);\n }", "public void sendMessageToJavaServer(String message, SSLSocketChannel channel) {\n\t\t\tfor(Map.Entry<SSLSocketChannel, SSLSocketChannel> entry : corresponding_channels.entrySet()) {\n\t\t\t\ttry {\n\t\t\t\t\tSSLSocketChannel ssl_channel = entry.getKey();\n\t\t\t\t\tif(!ssl_channel.equals(channel)) {\n\t\t\t\t\t\tSSLClientSession sess = open_java_server_channels.get(ssl_channel);\n\t\t\t\t\t\tSelectionKey key = sess.getSelectionKey();\n\t\t\t\t\t\tsess.out_messages.add(message);\n\t\t\t\t\t\tkey.interestOps(key.interestOps() | SelectionKey.OP_WRITE);\n\t\t\t\t\t\tserver_selector.wakeup();\n\t\t\t\t\t}\n\t\t\t\t} catch (CancelledKeyException e) {\n\t\t\t\t\topen_client_channels.remove(entry.getKey());\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public String getChannelId()\n {\n return channelId;\n }", "@Override\n\tpublic void onMessage(String channel, String messageBody) {\n\t\tRedisService.getInstance().addValue(messageBody);\n\t}", "public String getChannelId() {\n\t\treturn channelId;\n\t}", "public Builder setChannelBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000200;\n channel_ = value;\n onChanged();\n return this;\n }", "public ClientWorker(ServerSocketChannel serverChannel){\n this.serverChannel = serverChannel;\n }", "void addChannel(IChannel channel);", "public String getChannelName()\r\n\t{\r\n\t\treturn this.sChannelName;\r\n\t}" ]
[ "0.6754158", "0.6443957", "0.63850856", "0.6265501", "0.6210511", "0.6197923", "0.61905015", "0.6181815", "0.6166394", "0.6072937", "0.60532105", "0.6030894", "0.601824", "0.59235585", "0.58543426", "0.58267546", "0.5807336", "0.5793455", "0.5782705", "0.5759635", "0.573761", "0.5698971", "0.568356", "0.56428593", "0.56393284", "0.56370467", "0.56370467", "0.5632348", "0.56164193", "0.5614119", "0.56030196", "0.5579607", "0.5552663", "0.55440104", "0.55399686", "0.55299324", "0.5519979", "0.5515445", "0.55087996", "0.5499626", "0.5482973", "0.5482973", "0.545345", "0.5450276", "0.54480684", "0.54285485", "0.5426315", "0.54070014", "0.54065806", "0.540538", "0.540538", "0.54010105", "0.53864306", "0.5379953", "0.5377239", "0.5375761", "0.536002", "0.5344321", "0.53373843", "0.53315383", "0.532951", "0.53171635", "0.53133154", "0.5311088", "0.5302177", "0.53001815", "0.52862835", "0.52601737", "0.52590394", "0.52582145", "0.5244389", "0.52435046", "0.52412033", "0.5217622", "0.5215277", "0.52068746", "0.5193128", "0.5191033", "0.5183212", "0.5177905", "0.5177035", "0.5171073", "0.516215", "0.515312", "0.5152692", "0.5140391", "0.5140097", "0.51298624", "0.5129385", "0.51212394", "0.5118489", "0.5113323", "0.5100316", "0.5099247", "0.50935394", "0.5079654", "0.5075241", "0.50589085", "0.5056773", "0.504947" ]
0.7118343
0
Sets the socket support to be used to get port info from a server socket.
public void setSocketSupport(PortExposingTcpSocketSupport socketSupport) { this.socketSupport = socketSupport; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSocket(SocketWrapper socket);", "public void setSocket(ServerSocket socket) {\n\t\tthis.socket = socket;\n\t}", "int getUdpServerPort();", "public final void setRemoteSocketPort(int port){\r\n remoteSocketPort = port;\r\n }", "protected final void setSocket(Socket socket) {\n this.socket = socket;\n }", "@Override\n\tpublic int getPort() {\n\t\treturn socket.getPort();\n\t}", "private void initServerSocket()\n\t{\n\t\tboundPort = new InetSocketAddress(port);\n\t\ttry\n\t\t{\n\t\t\tserverSocket = new ServerSocket(port);\n\n\t\t\tif (serverSocket.isBound())\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Server bound to data port \" + serverSocket.getLocalPort() + \" and is ready...\");\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Unable to initiate socket.\");\n\t\t}\n\n\t}", "boolean hasSocketProtocol();", "private static Socket m39192a(Socket socket) {\n if (socket instanceof SSLSocket) {\n SSLSocket sSLSocket = (SSLSocket) socket;\n ArrayList arrayList = new ArrayList(Arrays.asList(sSLSocket.getSupportedProtocols()));\n arrayList.retainAll(Arrays.asList(new String[]{\"TLSv1.2\", \"TLSv1.1\", \"TLSv1\"}));\n sSLSocket.setEnabledProtocols((String[]) arrayList.toArray(new String[arrayList.size()]));\n }\n return socket;\n }", "private ServerSocket setUpServer(){\n ServerSocket serverSocket = null;\n try{\n serverSocket = new ServerSocket(SERVER_PORT);\n\n }\n catch (IOException ioe){\n throw new RuntimeException(ioe.getMessage());\n }\n return serverSocket;\n }", "boolean hasSocketFamily();", "public void setSocketOptions(Socket socket) throws IOException\n {\n socket.setSoTimeout(config.getTimeout());\n socket.setTrafficClass(0x18);\n socket.setTcpNoDelay(true);\n }", "private void initServerSock(int port) throws IOException {\n\tserver = new ServerSocket(port);\n\tserver.setReuseAddress(true);\n }", "public void setPort(int port);", "public void setPort(int port);", "public void initialize() throws SocketException{\n defPortUsed = true;\n initializeReal(defPortNumber, defPacketSize);\n }", "@Option int getLocalPortForUdpLinkLayer();", "public synchronized boolean set_connection_socket(String add, int port) {\n //handle socket in UI thread\n StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();\n StrictMode.setThreadPolicy(policy);\n\n socketaddress = add;\n socketport = port;\n try {\n socket = new Socket(add,port);\n } catch (IOException e) {\n e.printStackTrace();\n return false;\n }\n return true;\n }", "public static void setServerSocket(ServerSocket serverSocket) {\n\t\tServer.serverSocket = serverSocket;\n\t}", "public final int getRemoteSocketPort(){\r\n return this.remoteSocketPort;\r\n }", "public void setSocket(String socket) {\n this.socket = socket == null ? null : socket.trim();\n }", "public int getPort();", "public int getPort();", "public int getPort();", "Integer listeningPort();", "private void startListen() {\n try {\n listeningSocket = new ServerSocket(listeningPort);\n } catch (IOException e) {\n throw new RuntimeException(\"Cannot open listeningPort \" + listeningPort, e);\n }\n }", "public void setSocketChannel(SocketChannel socketChannel);", "public interface SocketOpts { // SocketOptions already used in java.net\n\n // Options that apply to all kinds of sockets\n\n // SO_BROADCAST\n public abstract boolean broadcast() throws IOException;\n public abstract SocketOpts broadcast(boolean b) throws IOException;\n\n // SO_KEEPALIVE\n public abstract boolean keepAlive() throws IOException;\n public abstract SocketOpts keepAlive(boolean b) throws IOException;\n\n // SO_LINGER\n public abstract int linger() throws IOException;\n public abstract SocketOpts linger(int n) throws IOException;\n\n // SO_OOBINLINE\n public abstract boolean outOfBandInline() throws IOException;\n public abstract SocketOpts outOfBandInline(boolean b) throws IOException;\n\n // SO_RCVBUF\n public abstract int receiveBufferSize() throws IOException;\n public abstract SocketOpts receiveBufferSize(int n) throws IOException;\n\n // SO_SNDBUF\n public abstract int sendBufferSize() throws IOException;\n public abstract SocketOpts sendBufferSize(int n) throws IOException;\n\n // SO_REUSEADDR\n public abstract boolean reuseAddress() throws IOException;\n public abstract SocketOpts reuseAddress(boolean b) throws IOException;\n\n\n // IP-specific options\n\n public static interface IP\n extends SocketOpts\n {\n\n // IP_MULTICAST_IF2\n public abstract NetworkInterface multicastInterface()\n throws IOException;\n public abstract IP multicastInterface(NetworkInterface ni)\n throws IOException;\n\n // IP_MULTICAST_LOOP\n public abstract boolean multicastLoop() throws IOException;\n public abstract IP multicastLoop(boolean b) throws IOException;\n\n // IP_TOS\n public static final int TOS_LOWDELAY = 0x10;\n public static final int TOS_THROUGHPUT = 0x08;\n public static final int TOS_RELIABILITY = 0x04;\n public static final int TOS_MINCOST = 0x02;\n public abstract int typeOfService() throws IOException;\n public abstract IP typeOfService(int tos) throws IOException;\n\n\n // TCP-specific options\n\n public static interface TCP\n extends IP\n {\n // TCP_NODELAY\n public abstract boolean noDelay() throws IOException;\n public abstract TCP noDelay(boolean b) throws IOException;\n\n }\n\n }\n\n}", "private static void openServerSocket(int port) {\n\t\ttry {\n\t\t\tserverSocket = new ServerSocket(port);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Server Error\");\n\t\t}\n\t}", "public String getSocket() {\n return socket;\n }", "java.lang.String getPort();", "java.lang.String getPort();", "public int getStandardPort();", "public int getStandardPort();", "public int getPort(){\r\n return localPort;\r\n }", "public int getPort(){\r\n return localPort;\r\n }", "public ServerSocket createSocket (int port)\n throws IOException, KeyStoreException, NoSuchAlgorithmException,\n CertificateException, UnrecoverableKeyException,\n KeyManagementException;", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "int getPort();", "String getPort();", "default int getPort() {\n return getServer().getPort();\n }", "public UDPEchoServer() throws SocketException {\r\n super(DEFAULT_PORT);\r\n }", "public void openServer() {\n try {\n this.serverSocket = new ServerSocket(this.portNumber);\n } catch (IOException ex) {\n System.out.println(ex);\n }\n }", "public static int openSocket() throws IOException {\n serverSocket = new ServerSocket(0, 10, InetAddress.getLocalHost());\n return serverSocket.getLocalPort();\n }", "default String socket() {\n return WebServer.DEFAULT_SOCKET_NAME;\n }", "void setServicePort( int p );", "public int getUdpServerPort()\n \t{\n \t\treturn udpServerPort;\n \t}", "@Override\r\n\tpublic void start(Socket socket){}", "public int getPort() { return port; }", "public Socket setupSocket(final String serverIP, final String serverPort) {\n mServerIP = serverIP;\n mServerPort = serverPort;\n mServerUrl = \"http://\" + mServerIP + \":\" + mServerPort;\n try {\n mSocket = IO.socket(mServerUrl);\n return mSocket;\n } catch (URISyntaxException e) {\n throw new RuntimeException(e);\n }\n }", "public DefaultTCPServer(int port) throws Exception {\r\n\t\tserverSocket = new ServerSocket(port);\t}", "public int getTcpServerPort()\n \t{\n \t\treturn tcpServerPort;\n \t}", "default Object port() {\n return metadata().get(\"server-port\");\n }", "@Override\r\n\tpublic Socket createSocket(InetAddress host, int port) throws IOException {\n\t\treturn null;\r\n\t}", "static void toggleMode(String server, int port) {\n Socket socket;\n\n try {\n socket = new Socket(server, port);\n socket.close();\n }\n catch(IOException x) {\n System.out.println(\"Socket error.\");\n x.printStackTrace();\n }\n}", "int serverPort ();", "public void setSocketFactory(ISOServerSocketFactory socketFactory) {\n this.socketFactory = socketFactory;\n }", "protected int getDefaultPort() {\n/* 320 */ return -1;\n/* */ }", "public int getLocalPort() {\n return _listenSocket.getLocalPort();\n }", "public ChatRoomServer(int portNumber){\n this.ClientPort = portNumber;\n }", "int getSnPort();", "int getSnPort();", "public void activateOptions() {\n try {\n sh = new SocketHandler(port);\n sh.start();\n }\n catch(InterruptedIOException e) {\n Thread.currentThread().interrupt();\n e.printStackTrace();\n } catch(IOException e) {\n e.printStackTrace();\n } catch(RuntimeException e) {\n e.printStackTrace();\n }\n super.activateOptions();\n }", "@SuppressWarnings(\"resource\")\r\n\tprivate void tryToSetupServer() {\r\n\t\ttry {\r\n\t\t\tsetupStream.write(\"Trying to start on \" + Inet4Address.getLocalHost().toString() + \":\" + port);\r\n\t\t\tcientConn = new ServerSocket(port).accept();\r\n\t\t\tsetupStream.write(\"Client connectd, ready for data\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tif(e.getMessage().contains(\"Bind failed\")) {\r\n\t\t\t\tsetupStream.write(\"You can't use that port\");\r\n\t\t\t} else if(e.getMessage().contains(\"Address already in use\")) {\r\n\t\t\t\tsetupStream.write(\"That port is already in use\");\r\n\t\t\t}\r\n\t\t\tport = -1;\r\n\t\t}\r\n\t}", "public int getTCPListeningPortNumber() {\n return (incoming_socketchannel_manager.getTCPListeningPortNumber());\n }", "public int getServerPort(){\n\t\treturn serverPort; \n\t}", "private void setSockets()\n {\n String s = (String) JOptionPane.showInputDialog(null,\n \"Select Number of Sockets:\", \"Sockets\",\n JOptionPane.PLAIN_MESSAGE, null, socketSelect, \"1\");\n\n if ((s != null) && (s.length() > 0))\n {\n totalNumThreads = Integer.parseInt(s);\n }\n else\n {\n totalNumThreads = 1;\n }\n\n recoveryQueue.setMaxSize(totalNumThreads * 10);\n }", "private int determineFreePort() throws IOException\n {\n final Socket sock = new Socket();\n sock.bind(null);\n final int port = sock.getLocalPort();\n sock.close();\n return port;\n }", "@Override\n\t\tpublic int getServerPort() {\n\t\t\treturn 0;\n\t\t}", "public int createSocket()\n\t{\n\t\t\n\t}", "protected void bind() throws SocketException {\n super.bind();\n\n //start the secure socket\n dtlsSocket = options.getSecurePort() > 0 ? new DatagramSocket(options.getSecurePort()) : new DatagramSocket();\n dtslReceiverThread = createDatagramServer(\"mqttsn-dtls-receiver\", options.getReceiveBuffer(), dtlsSocket);\n }", "public interface TcpSocket extends Connector {\n\t/** A no-op, stateless, socket instance. */\n\tTcpSocket NULL = new Null() {};\n\n\t@Override\n\tdefault String name() {\n\t\treturn String.format(\"%d->%s\", localPort(), hostPort());\n\t}\n\n\t/**\n\t * Provides the socket remote host and port.\n\t */\n\tHostPort hostPort();\n\n\t/**\n\t * Provides the local port.\n\t */\n\tint localPort();\n\n\t/**\n\t * Set socket option.\n\t */\n\t<T> void option(TcpSocketOption<T> option, T value) throws IOException;\n\n\t/**\n\t * Get socket option.\n\t */\n\t<T> T option(TcpSocketOption<T> option) throws IOException;\n\n\t/**\n\t * Set socket options.\n\t */\n\tdefault void options(TcpSocketOptions options) throws IOException {\n\t\toptions.applyAll(this);\n\t}\n\n\t/**\n\t * Get socket options.\n\t */\n\tdefault TcpSocketOptions options() throws IOException {\n\t\treturn TcpSocketOptions.from(this);\n\t}\n\n\t/**\n\t * An extension of SocketConnector that is aware of state.\n\t */\n\tinterface Fixable extends TcpSocket, Connector.Fixable {}\n\n\t/**\n\t * Determines if the exception indicates a socket is fatally broken.\n\t */\n\tstatic boolean isBroken(Exception e) {\n\t\treturn e instanceof SocketException; // check broken pipe?\n\t}\n\n\t/**\n\t * Connect the socket and wrap as a TcpSocket.\n\t */\n\tstatic Wrapper connect(HostPort hostPort) throws IOException {\n\t\t@SuppressWarnings(\"resource\")\n\t\tSocket socket = new Socket(hostPort.host, hostPort.port);\n\t\ttry {\n\t\t\treturn wrap(socket);\n\t\t} catch (RuntimeException | IOException e) {\n\t\t\tsocket.close();\n\t\t\tthrow e;\n\t\t}\n\t}\n\n\t/**\n\t * Wrapper for a jdk socket. The socket must already be connected.\n\t */\n\tstatic Wrapper wrap(Socket socket) throws IOException {\n\t\treturn new Wrapper(socket);\n\t}\n\n\t/**\n\t * Wrapper for a jdk socket. The socket must already be connected.\n\t */\n\tclass Wrapper implements TcpSocket {\n\t\tprivate final Socket socket;\n\t\tprivate final HostPort hostPort;\n\t\tprivate final int localPort;\n\t\tprivate final InputStream in;\n\t\tprivate final OutputStream out;\n\n\t\tprivate Wrapper(Socket socket) throws IOException {\n\t\t\tif (!socket.isConnected()) throw new IOException(\"Socket is not connected\");\n\t\t\tthis.socket = socket;\n\t\t\thostPort = HostPort.from((InetSocketAddress) socket.getRemoteSocketAddress());\n\t\t\tlocalPort = socket.getLocalPort();\n\t\t\tin = socket.getInputStream();\n\t\t\tout = socket.getOutputStream();\n\t\t}\n\n\t\t@Override\n\t\tpublic HostPort hostPort() {\n\t\t\treturn hostPort;\n\t\t}\n\n\t\t@Override\n\t\tpublic int localPort() {\n\t\t\treturn localPort;\n\t\t}\n\n\t\t@Override\n\t\tpublic <T> void option(TcpSocketOption<T> option, T value) throws IOException {\n\t\t\toption.set(socket, value);\n\t\t}\n\n\t\t@Override\n\t\tpublic <T> T option(TcpSocketOption<T> option) throws IOException {\n\t\t\treturn option.get(socket);\n\t\t}\n\n\t\t@Override\n\t\tpublic InputStream in() {\n\t\t\treturn in;\n\t\t}\n\n\t\t@Override\n\t\tpublic OutputStream out() {\n\t\t\treturn out;\n\t\t}\n\n\t\t@Override\n\t\tpublic void close() throws IOException {\n\t\t\tsocket.close();\n\t\t}\n\t}\n\n\t/**\n\t * A no-op, stateless, socket implementation.\n\t */\n\tinterface Null extends Connector.Null, TcpSocket.Fixable {\n\t\t@Override\n\t\tdefault HostPort hostPort() {\n\t\t\treturn HostPort.NULL;\n\t\t}\n\n\t\t@Override\n\t\tdefault int localPort() {\n\t\t\treturn 0;\n\t\t}\n\n\t\t@Override\n\t\tdefault <T> void option(TcpSocketOption<T> option, T value) throws IOException {}\n\n\t\t@Override\n\t\tdefault <T> T option(TcpSocketOption<T> option) throws IOException {\n\t\t\treturn Objects.requireNonNullElse(option.disableValue, BasicUtil.uncheckedCast(0));\n\t\t}\n\t}\n}", "private void createServerSocket()\r\n {\r\n\t\tDebug.assert(port != 0, \"(Server/105)\");\r\n try {\r\n serverSocket = new ServerSocket(port);\r\n serverSocket.setSoTimeout(TIMEOUT);\r\n\t }\r\n\t catch (IOException e)\r\n\t \t{\r\n log(\"Could not create ServerSocket on port \" + port);\r\n\t \tDebug.printStackTrace(e);\r\n System.exit(-1);\r\n\t }\r\n }", "public interface CallServerSocketFactory {\n /**\n * @param pServerAddress Server identifier (DNS, IP, URL, etc.), can null\n */\n ServerSocket createSocket(\n String pServerAddress, \n int pPort)\n throws \n IOException;\n}", "public int getPort() {\n return serverSocket.getLocalPort();\n }", "public static int getServerPort(){\n return thisServer.getPort();\n }", "@Override\n public void socket() {\n }", "public int getPort() {\n/* 122 */ return ((TCPEndpoint)this.ep).getPort();\n/* */ }", "private native static int shout_set_port(long shoutInstancePtr, int port);", "public CameraPiSocket(int port_arg){\n\t\tport = port_arg;\n\t}", "public static int getServerPort() { return Integer.parseInt(tfJoinPort.getText()); }", "void setSocketFactory(SocketFactory socketFactory);", "public void socketConnect(String ip, int port) throws UnknownHostException, \n IOException{\n System.out.println(\"[Connecting to socket...]\"); \n SSocket.socket= new Socket(ip, port); \n \n System.out.println(\"CORRIENDO EN EL PUERTO:\"+SSocket.socket.getLocalAddress()+\":\"+SSocket.socket.getPort());\n }", "void connectToServer(String serverName, int serverPort){\n try{\n this.socket = new Socket(serverName, serverPort);\n } catch(IOException e){\n e.printStackTrace();\n }\n \n }", "public int getPort(){\n\treturn port;\n }", "private void initSocket(String host, String port) throws IOException {\n\t\t// check the validity of the host name\n\t\tif (host == null || host.isEmpty()) throw new IllegalArgumentException(\"host == null || host.isEmpty()\");\n\t\t// check the validity of the port number\n\t\tint p = 0;\n\t\ttry {\n\t\t\tp = Integer.parseInt(port);\n\t\t} catch (NumberFormatException e) {\n\t\t\tthrow new IllegalArgumentException(\"Illegal port argument\");\n\t\t}\n\t\tif (p <= 0) {\n\t\t\tthrow new IllegalArgumentException(\"Illegal port argument\");\n\t\t}\n\t\t// establish the network connection\n\t\ttry {\n\t\t\tthis.socket = new Socket(host, p);\n\t\t} catch (IOException e) {\n\t\t\tgetErrorManager().error(\"Failed to establish the network connection\", e,\n\t\t\t\tErrorManager.OPEN_FAILURE);\n\t\t\tthrow e;\n\t\t}\n\t\tsuper.internalSetOutputStream(new BufferedOutputStream(this.socket.getOutputStream()));\n\t}", "@Override\n\tpublic int getServerPort() {\n\t\treturn 0;\n\t}", "public int getServerPortNumber(){\n return this.serverPortNumber;\n }", "@Test\n public void portConfiguration() throws IOException {\n initJadlerListeningOn(SocketUtils.findAvailableTcpPort());\n \n try {\n onRequest().respond().withStatus(EXPECTED_STATUS);\n assertExpectedStatus();\n }\n finally {\n closeJadler();\n }\n }" ]
[ "0.67722696", "0.6387815", "0.61760706", "0.613439", "0.6061193", "0.60515535", "0.5958846", "0.59238535", "0.589433", "0.58791995", "0.5834792", "0.58256584", "0.58144975", "0.5801564", "0.5801564", "0.5794076", "0.5786633", "0.57819897", "0.5774802", "0.5771374", "0.57545763", "0.5721161", "0.5721161", "0.5721161", "0.5672906", "0.56717557", "0.5669704", "0.56388605", "0.56248355", "0.56158304", "0.5610419", "0.5610419", "0.5589656", "0.5589656", "0.55876815", "0.55876815", "0.55779654", "0.5529093", "0.5529093", "0.5529093", "0.5529093", "0.5529093", "0.5529093", "0.5529093", "0.5529093", "0.5529093", "0.5529093", "0.5529093", "0.5529093", "0.5529093", "0.5526174", "0.5522659", "0.5513007", "0.5504417", "0.5503785", "0.5500251", "0.5468868", "0.5468366", "0.5463026", "0.5462658", "0.54560417", "0.54403555", "0.54251814", "0.5418426", "0.5390255", "0.538953", "0.5385642", "0.53794765", "0.537892", "0.5366199", "0.5362209", "0.5360658", "0.5360658", "0.5356208", "0.5355853", "0.53506565", "0.5347819", "0.53398407", "0.5338897", "0.5334744", "0.53252774", "0.53189766", "0.53186226", "0.5315406", "0.53141207", "0.53044236", "0.53013486", "0.52997816", "0.5292125", "0.5289725", "0.5286667", "0.5281065", "0.5277107", "0.5274423", "0.5272549", "0.5267765", "0.5265647", "0.52653444", "0.5259165", "0.5249027" ]
0.7829168
0
Set the class implementing appmaster service.
public void setServiceImpl(Class<AppmasterService> serviceImpl) { this.serviceImpl = serviceImpl; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setClassOfService(ClassOfService serviceClass);", "public Class getServiceClass() { return serviceClass; }", "public Class getServiceClass()\n {\n return serviceClass;\n }", "public void setHomeClass(Class homeAPI)\n {\n _homeClass = homeAPI;\n }", "public void setServiceClass(java.lang.String serviceClass) {\n this.serviceClass = serviceClass;\n }", "void setMainClass(Class<?> mainClass);", "private void setImpl() {\n Object obj = getConfigManager().getObject(\"SERVER_IMPL\");\n if (null == obj) {\n LoggingServices.getCurrent().logMsg(getClass().getName(), \"setImpl()\"\n , \"Could not instantiate SERVER_IMPL.\", \"Make sure loyalty.cfg contains SERVER_IMPL\"\n , LoggingServices.MAJOR);\n }\n LoyaltyServices.setCurrent((LoyaltyServices)obj);\n }", "public abstract void setServiceType(String serviceType);", "public void setServiceRef(IntegrationAppmasterService<?> serviceRef) {\n\t\tthis.serviceRef = serviceRef;\n\t}", "public java.lang.String getServiceClass() {\n return serviceClass;\n }", "protected void setJavaClass(Class type) {\n this._class = type;\n }", "public void setObjectClass(Class objectAPI)\n {\n _objectClass = objectAPI;\n }", "public void setBusinessInterface(Class clazz) {\n this.businessInterface = clazz;\n }", "public Class getServiceInterface() {\n return null;\n }", "public void setBaseClass(Class<?> baseClass)\n {\n this.baseClass = baseClass;\n }", "@Override\r\n public Class<? extends SdlRouterService> defineLocalSdlRouterClass() {\n return com.lz.proxytestdemo.sdlapp.SdlRouterService.class;\r\n }", "public com.google.protobuf.Empty setApplication(org.thethingsnetwork.management.proto.HandlerOuterClass.Application request);", "@Required\n\tpublic void setCabinClassService(final CabinClassService cabinClassService)\n\t{\n\t\tthis.cabinClassService = cabinClassService;\n\t}", "void setClassType(String classType);", "public void setClazz(String clazz);", "protected Class getOnlineService () throws ClassNotFoundException {\n String className = config.getString(\"CLIENT_IMPL\");\n Class serviceClass = Class.forName(className);\n return serviceClass;\n }", "protected CabinClassService getCabinClassService()\n\t{\n\t\treturn cabinClassService;\n\t}", "public static void setApplication(ApplicationBase instance)\r\n {\r\n ApplicationBase.instance = instance;\r\n }", "public void setClass_(String newValue);", "public void setTypeOfService(String typeOfService){\n\tthis.typeOfService=typeOfService;\n}", "public interface ApplicationComponent extends CloudApplication {\n}", "public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> setApplication(\n org.thethingsnetwork.management.proto.HandlerOuterClass.Application request);", "ClassOfService getClassOfService();", "public void setBaseClass(String baseClass) {\n\t\tthis.baseQualifiedClassName = baseClass;\n\n\t\tint lastDotIdx = baseQualifiedClassName.lastIndexOf('.');\n\t\tbasePackage = baseQualifiedClassName.substring(0, lastDotIdx);\n\t\tbaseSimpleClassName = baseQualifiedClassName.substring(lastDotIdx + 1);\n\t}", "public AppService appService() {\n\t\treturn appService;\n\t}", "public abstract void setServiceName(String serviceName);", "public void setMainClass(IJavaClassFile value);", "private void setService(Service service) {\n this.service = service;\n }", "public interface SmartCultureFarmService extends Service<SmartCultureFarm> {\n\n}", "public void setComponentType(Class type)\n {\n if (! type.isAnnotationPresent(DeploymentType.class))\n throw new ConfigException(L.l(\"'{0}' is an invalid component annotation because deployment types must be annotated by @DeploymentType.\",\n \t\t\t\t type.getName()));\n \n _deploymentType = type;\n }", "public void setClazzName(String clazz);", "public void setClass (\r\n String strClass) throws java.io.IOException, com.linar.jintegra.AutomationException;", "public void SetAsClass () throws java.io.IOException, com.linar.jintegra.AutomationException;", "@Override\n\tpublic String getOSGiServiceIdentifier() {\n\t\treturn MonthlyTradingLocalService.class.getName();\n\t}", "@Override\n\tpublic String getOSGiServiceIdentifier() {\n\t\treturn CsclPollsChoiceLocalService.class.getName();\n\t}", "@Override\n\tpublic String getOSGiServiceIdentifier() {\n\t\treturn ItemPublicacaoLocalService.class.getName();\n\t}", "public void setService(String service) {\n this.service = service;\n }", "public void setContext(final Class<?> context) {\n\t\tthis.context = context;\n\t}", "public void setDefiningType(Class cls) {\n _class = cls;\n }", "public void setMainClass(String mainClass) {\n\t\tthis.mainClass = mainClass;\n\t}", "void setReceiversImpl(java.lang.Class clazz);", "public void setServiceName(java.lang.String param){\n localServiceNameTracker = true;\n \n this.localServiceName=param;\n \n\n }", "public abstract void setYjaService(AbsYJACommonService yjaService) throws Exception;", "@Override\n\tpublic String getOSGiServiceIdentifier() {\n\t\treturn LocalRichService.class.getName();\n\t}", "public Class getTestedClass() {\n\t\treturn Application.class;\n\t}", "public ExtraJaxbClassModel setClazz(Class<?> clazz);", "public void setInterface(Class aInterface) { theInterface = aInterface ; }", "public void setExtClass(Class clas){\n\t\t\n\t\tthis.clas = clas;\n\t}", "public void setApp(Main application) { this.application = application;}", "public abstract Class<? extends HateaosController<T, Identifier>> getClazz();", "public Class<? extends ClientService> getObjectType() {\n\t\treturn ClientService.class;\r\n\t}", "public void setService(Text newService) {\n service = newService;\n }", "public void setTypeOfService(String typeOfService){\n\t\tthis.typeOfService=typeOfService;\n\t}", "@Override\n public void setApplicationContext(ApplicationContext applicationContext) {\n super.setApplicationContext(applicationContext);\n this.applicationContext = applicationContext;\n }", "public void setService(String service) {\n this.service = service;\n }", "public void setService(String service) {\n this.service = service;\n }", "public void setService(String service) {\n this.service = service;\n }", "public interface SMSCALLManager\r\n extends GenericManager<SMSCALL, Long>\r\n{\r\n\r\n public final static String SERVICE_NAME = \"SMSCALLManager\";\r\n\r\n}", "public SlideOnWindow(Class<? extends StandOutWindow> serviceClass) {\n\t\tmServiceClass = serviceClass;\n\t}", "@Override\n\tpublic String getOSGiServiceIdentifier() {\n\t\treturn WFMS_Position_AuditLocalService.class.getName();\n\t}", "public void setService(CentralSystemServiceFactory service) {\n\t\tthis.service = service;\n\t}", "public void setApp(Main application){\n this.application = application;\n }", "public void setService (String service) {\n\t this.service = service;\n\t}", "public Builder setService(go.micro.runtime.RuntimeOuterClass.Service value) {\n if (serviceBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n service_ = value;\n onChanged();\n } else {\n serviceBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setService(go.micro.runtime.RuntimeOuterClass.Service value) {\n if (serviceBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n service_ = value;\n onChanged();\n } else {\n serviceBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setService(go.micro.runtime.RuntimeOuterClass.Service value) {\n if (serviceBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n service_ = value;\n onChanged();\n } else {\n serviceBuilder_.setMessage(value);\n }\n\n return this;\n }", "public void setClass(String godClass)\r\n {\r\n this.mGodClass = godClass;\r\n }", "public void setService(Service value) {\n\t\tthis._service = value;\n\t}", "public void setClass(UmlClass c) {\n\t\tlogicalClass = c;\n\t}", "@Override\r\n\tpublic Class getClase() {\n\t\treturn Cliente.class;\r\n\t}", "void setMeasurementControllerClassName(String className);", "public interface MineService {\n}", "@Override\n\t\tpublic Service getService() {\n\t\t\treturn new Implementation1();\n\t\t}", "@Override\n\tpublic void setInterface(Class<T> interfaceClass) {\n\t\t\n\t}", "public void setValueClass(Class<? extends Type> valueClass) {\n this.valueClass = valueClass;\n }", "public MyIntentService() {\n super(MyIntentService.class.getName());\n }", "public void setApplication(org.thethingsnetwork.management.proto.HandlerOuterClass.Application request,\n io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver);", "public void setAppName(String appName);", "MainService getService() {\n return MainService.this;\n }", "protected void setService(AbsYJACommonService yjaService) throws Exception {\n\t\tthis.yjaService = yjaService;\n\t\tthis.yjaService.setInitialInfo(actionModel);\n\t}", "public abstract void setService(OntologyGenerationComponentServiceInterface<T,R> service);", "public void setApplication(String application) {\r\n this.application = application;\r\n }", "public void setService(java.lang.CharSequence value) {\n this.service = value;\n }", "public export.serializers.avro.DeviceInfo.Builder setService(java.lang.CharSequence value) {\n validate(fields()[1], value);\n this.service = value;\n fieldSetFlags()[1] = true;\n return this;\n }", "public void setDataClass(Class<?> clazz) {\n\t\t\n\t}", "public SwitchYardServiceTaskHandler() {\n super(SWITCHYARD_SERVICE);\n }", "@Override\n protected void appStart() {\n }", "@Override\n public Set<Class<?>> getClasses() {\n HashSet h = new HashSet<Class<?>>();\n h.add(AffirmationService.class );\n return h;\n }", "public ApplicationHostService(HttpContext httpContext, NewRelicClient client)\n {\n super(httpContext, client);\n }", "@Override\r\n\tpublic Set<Class<?>> getClasses() {\r\n\t\treturn BazaarApplicationImpl.CLASSES;\r\n\t}", "@Override\n\tpublic MasterInterface getMaster() {\n\t\treturn master;\n\t}", "public String getMainClass() {\n return mainClass;\n }", "@Override\n\tpublic void registerPrimaryTypes() {\n\t\tobjectType = registerJavaType(getBuilder().getName(), ClassType.CLASS);\n\t}", "public MyIntentService() {\n super(\"MyIntentService\");\n }", "@Override\n\t\tpublic void setService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"set service invoke on \" + system_id);\n\t\t}" ]
[ "0.73280936", "0.6414157", "0.6326819", "0.6304372", "0.6264957", "0.6165014", "0.6063375", "0.60409063", "0.5971671", "0.58612907", "0.5845901", "0.5786202", "0.57698697", "0.5758784", "0.5703184", "0.56753045", "0.56196773", "0.56177354", "0.56032205", "0.5590208", "0.556121", "0.5555755", "0.5526679", "0.5525174", "0.5523924", "0.55184144", "0.5481797", "0.5470645", "0.54648125", "0.5460886", "0.5420752", "0.54201156", "0.5401735", "0.5398904", "0.5322558", "0.53193706", "0.5302001", "0.52806956", "0.5273748", "0.52691936", "0.52675116", "0.52661926", "0.52511895", "0.52422327", "0.5227002", "0.5225351", "0.5219958", "0.52150005", "0.5201739", "0.5181131", "0.5177644", "0.5148862", "0.514816", "0.51462495", "0.5144124", "0.5138609", "0.51347744", "0.5130279", "0.5128331", "0.51202774", "0.51202774", "0.51202774", "0.5118156", "0.5099938", "0.5098555", "0.5089027", "0.50879365", "0.50840366", "0.5076805", "0.5076805", "0.5076805", "0.5065465", "0.5053234", "0.50478953", "0.50369966", "0.5034632", "0.5033855", "0.50296086", "0.50245297", "0.50240386", "0.5019858", "0.5011825", "0.50082445", "0.49999768", "0.49979582", "0.49858257", "0.49823436", "0.49698842", "0.4969226", "0.4964937", "0.49598357", "0.49597374", "0.4956075", "0.49488875", "0.49475878", "0.4942419", "0.4941589", "0.49407667", "0.49381375", "0.49346817" ]
0.7164088
1
Sets the appmaster service as an instance. This is used if service is created externally and we just inject it into this factory.
public void setServiceRef(IntegrationAppmasterService<?> serviceRef) { this.serviceRef = serviceRef; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AppService appService() {\n\t\treturn appService;\n\t}", "private void setService(Service service) {\n this.service = service;\n }", "public static void setApplication(ApplicationBase instance)\r\n {\r\n ApplicationBase.instance = instance;\r\n }", "public void setServiceImpl(Class<AppmasterService> serviceImpl) {\n\t\tthis.serviceImpl = serviceImpl;\n\t}", "public App() {\n\t\tLog.d(\"App\", \"App created\");\n\t\tinstance = this;\n\t}", "MainService getService() {\n return MainService.this;\n }", "private void initService() {\n connection = new AppServiceConnection();\n Intent i = new Intent(this, AppService.class);\n boolean ret = bindService(i, connection, Context.BIND_AUTO_CREATE);\n Log.d(TAG, \"initService() bound with \" + ret);\n }", "public ApplicationHostService(HttpContext httpContext, NewRelicClient client)\n {\n super(httpContext, client);\n }", "@Autowired\n\tpublic void setRegistratorService (RegistratorService registratorService) {\n\t\tthis.registratorService = registratorService;\n\t}", "public void setApp(Main application){\n this.application = application;\n }", "protected void setService(AbsYJACommonService yjaService) throws Exception {\n\t\tthis.yjaService = yjaService;\n\t\tthis.yjaService.setInitialInfo(actionModel);\n\t}", "@Autowired\n @Qualifier(\"setterInjectedGreetingService\") // necessary to wire bean to a specific controller\n public void setGreetingService(GreetingService greetingService) {\n this.greetingService = greetingService;\n }", "public ApplicationService(DatabaseQueryExecutor dqe) {\r\n\t\tapplicationDao = new ApplicationDao(dqe);\r\n\t}", "public void initApiService() {\n apiService = ApiUtils.getAPIService();\n }", "default void setEventService(EventService service) {\n bind(service);\n }", "@Override\r\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\r\n\t\tinstance = this;\r\n\t\tAppConfigMrg.load(getApplicationContext());\r\n\t}", "@Autowired\n\tpublic void setConfigService(ConfigService configService) {\n\t\tthis.configService = configService;\n\t}", "public void setApp(Main application) { this.application = application;}", "@Override\r\n\tpublic void setApplicationContext(ApplicationContext applicationContext)\r\n\t\t\tthrows BeansException {\n\t\tSystem.out.println(\"进入方法。。。\"+applicationContext);\r\n\t\tApplicationContextHolder.app=applicationContext;\r\n\t}", "@Autowired\n\tpublic ApplicationController(ApplicationServicesImpl appServ, EmployeeServicesImpl es, PetServicesImpl ps,CustomerServicesImpl cs ) {\n\t\tthis.as = appServ;\n\t\tthis.es = es;\n\t\tthis.ps = ps;\n\t\tthis.cs = cs;\n\t}", "public static AppClient getInstance() {\n return instance;\n }", "protected void setConfigurationContextService(ConfigurationContextService service) {\n if (log.isDebugEnabled()) {\n log.debug(\"carbon-registry deployment synchronizer component bound to the configuration context service\");\n }\n RegistryServiceReferenceHolder.setConfigurationContextService(service);\n }", "public Builder setService(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n service_ = value;\n onChanged();\n return this;\n }", "public Builder setService(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n service_ = value;\n onChanged();\n return this;\n }", "public Builder setService(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n service_ = value;\n onChanged();\n return this;\n }", "void setClassOfService(ClassOfService serviceClass);", "public externalServiceController(externalServiceService externalServiceService) {\n this.externalServiceService = externalServiceService;\n }", "public Builder setService(go.micro.runtime.RuntimeOuterClass.Service value) {\n if (serviceBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n service_ = value;\n onChanged();\n } else {\n serviceBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setService(go.micro.runtime.RuntimeOuterClass.Service value) {\n if (serviceBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n service_ = value;\n onChanged();\n } else {\n serviceBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setService(go.micro.runtime.RuntimeOuterClass.Service value) {\n if (serviceBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n service_ = value;\n onChanged();\n } else {\n serviceBuilder_.setMessage(value);\n }\n\n return this;\n }", "public void setService(CentralSystemServiceFactory service) {\n\t\tthis.service = service;\n\t}", "public MPSApplicationContextFactory() {\n this.encodingManager = new EncodingManager();\n\n protocolBuilder = new NamedProtocolBuilder();\n // Register the known protocols with the builder.\n ProtocolRegistry registry = new ProtocolRegistry();\n registry.register(protocolBuilder);\n }", "private void setImpl() {\n Object obj = getConfigManager().getObject(\"SERVER_IMPL\");\n if (null == obj) {\n LoggingServices.getCurrent().logMsg(getClass().getName(), \"setImpl()\"\n , \"Could not instantiate SERVER_IMPL.\", \"Make sure loyalty.cfg contains SERVER_IMPL\"\n , LoggingServices.MAJOR);\n }\n LoyaltyServices.setCurrent((LoyaltyServices)obj);\n }", "public SSTBrexitDashboardService() {\n\t\tuserTeamDataService = new UserTeamDBDataService();\n\t\tindexDashboardService = new IndexDBDataService();\n\t}", "@Override\n\tpublic void setApplicationContext(ApplicationContext applicationContext) throws BeansException\n\t{\n\t\trootApplicationContext = applicationContext;\n\t}", "private PSStartServerFactory() {\n if(instance == null)\n instance = new PSStartServerFactory();\n }", "public ServerService(){\n\t\tlogger.info(\"Initilizing the ServerService\");\n\t\tservers.put(1001, new Server(1001, \"Test Server1\", 5, 30, 30, ServerStatus.RUNNING));\n\t\tservers.put(1002, new Server(1002, \"Test Server2\", 5, 30, 30, ServerStatus.RUNNING));\n\t\tservers.put(1003, new Server(1003, \"Test Server3\", 5, 30, 30, ServerStatus.RUNNING));\n\t\tservers.put(1004, new Server(1004, \"Test Server4\", 5, 30, 30, ServerStatus.RUNNING));\n\t\tlogger.info(\"Initilizing the ServerService Done\");\n\t}", "public void setServiceName(java.lang.String param){\n localServiceNameTracker = true;\n \n this.localServiceName=param;\n \n\n }", "@Override\r\n\tpublic void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n\t\tthis.applicationContext = applicationContext;\r\n\t}", "@Override\n public void setUpAudioService() {\n\n if (!serviceBound) {\n\n Log.d(LOG_TAG, \"setUpAudioService(): Setting up SSMusicService...\");\n\n // Sets up the service intent and begins the service.\n audioIntent = new Intent(this, SSMusicService.class); // Sets a Intent to the service.\n bindService(audioIntent, musicConnection, Context.BIND_AUTO_CREATE); // Binds the service.\n startService(audioIntent); // Starts the service.\n }\n }", "public void setService(String service) {\n this.service = service;\n }", "@Override\n public void setApplicationContext(ApplicationContext applicationContext) {\n super.setApplicationContext(applicationContext);\n this.applicationContext = applicationContext;\n }", "@Autowired\n public void setUserService(UserService userService) {\n this.userService = userService;\n }", "@Override\n\tpublic void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n\t\tcontext=applicationContext;\n\t}", "@Override\r\n\tpublic void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n\t\t\r\n\t}", "protected AppsConfigService getAppsConfigService() {\r\n return this.service;\r\n }", "private void initService() {\r\n\t}", "public AutowireService() {\n\t\tSystem.out.println(\"Default constructor used\");\n\t}", "@Override\n\tpublic void setApplicationContext(ApplicationContext ctx) throws BeansException {\n\t\tthis.ctx=ctx;\n\t}", "protected void setWorkflowService(WorkflowService service) {\n this.workflowService = service;\n }", "public Builder setService(\n go.micro.runtime.RuntimeOuterClass.Service.Builder builderForValue) {\n if (serviceBuilder_ == null) {\n service_ = builderForValue.build();\n onChanged();\n } else {\n serviceBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public Builder setService(\n go.micro.runtime.RuntimeOuterClass.Service.Builder builderForValue) {\n if (serviceBuilder_ == null) {\n service_ = builderForValue.build();\n onChanged();\n } else {\n serviceBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public Builder setService(\n go.micro.runtime.RuntimeOuterClass.Service.Builder builderForValue) {\n if (serviceBuilder_ == null) {\n service_ = builderForValue.build();\n onChanged();\n } else {\n serviceBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public static void setSharedInstance(EnduserApi sharedInstance) {\n EnduserApi.sharedInstance = sharedInstance;\n }", "@Override\n\tpublic void setApplicationContext(ApplicationContext applicationContext) {\n\t\tthis.applicationContext = applicationContext;\n\t}", "@Override\n public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n System.out.println(\"## setApplicationContext(appcontext) Application context has been set!\");\n }", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\n\t\tcontext = this;\n\t\tstartService();\n\t}", "@Inject\n public BasicApplication(CheckoutService checkoutService)\n {\n this.checkoutService = checkoutService;\n }", "public MyServiceDataSingleton(Context context) {\r\n myContext = context;\r\n }", "@Override\n\tprotected void initAsService() {\n\t\tif (log.isDebugEnabled()) {\n\t\t\tlog.debug(\"Initiating service...\");\n\t\t}\n\t\trunnerFuture = activityRunner.schedule(this::scanModulesHealth, 500, TimeUnit.MILLISECONDS);\n\t}", "public void InitService() {\n\t\ttry {\r\n\t\t\tgetCommManager().register(this); \r\n\t\t} catch (CommunicationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private SingletonApp( Context context ) {\n mMB = MessageBroker.getInstance( context );\n }", "public static IMarryService getInstance(ApplicationContext context) {\r\n\t\treturn (IMarryService) context.getBean(SERVICE_BEAN_ID);\r\n\t}", "public InitService() {\n super(\"InitService\");\n }", "public void setFooService(\n com.sohlman.liferay.foobar.service.FooService fooService) {\n this.fooService = fooService;\n }", "private void initService() {\n\t\tavCommentService = new AvCommentService(getApplicationContext());\n\t}", "public MyApp() {\n sContext = this;\n }", "public void setFooLocalService(\n com.sohlman.liferay.foobar.service.FooLocalService fooLocalService) {\n this.fooLocalService = fooLocalService;\n }", "public MarketDataManagerImpl()\n {\n instance = this;\n }", "public AutoSenderService() {\r\n\t\tsuper();\r\n\t}", "public void setService(String service) {\n this.service = service;\n }", "public void setService(String service) {\n this.service = service;\n }", "public void setService(String service) {\n this.service = service;\n }", "public ServiceManager getServiceManager( UUID applicationId ) {\n if ( emf == null ) {\n logger.error(\"EntityManagerFactory is null\");\n }\n if ( qmf == null ) {\n logger.error(\"QueueManagerFactory is null\");\n }\n\n EntityManager em = null;\n if ( emf != null ) {\n em = emf.getEntityManager( applicationId );\n }\n QueueManager qm = null;\n if ( qmf != null ) {\n qm = qmf.getQueueManager( applicationId );\n }\n ServiceManager sm = new ServiceManager();\n sm.init( this, em, properties, qm );\n return sm;\n }", "public static void init() {\n\n\t\tsnapshot = new SnapshotService();\n\t\tlog.info(\"App init...\");\n\t}", "public static Service newInstance() {\n return newInstance(DEFAULT_PROVIDER_NAME);\n }", "public abstract void setServiceName(String serviceName);", "public AppiumDriverLocalService StartServer()\n\t{\n\t\tservice = AppiumDriverLocalService.buildDefaultService();\n\t\tservice.start();\n\t\treturn service;\n\t}", "public void onStart(MainMVPApplication app) {\n\t\tthis.application = app;\n\n\t\t// set the applications main windows (the view)\n\t\t//this.application.setMainWindow((Window) this.view);\n\n\t\t// load the nav presenter\n\t\tIPresenterFactory pf = application.getPresenterFactory();\n\t\tthis.navPresenter = (WorkspaceNavigationPresenter) pf.createPresenter(WorkspaceNavigationPresenter.class);\n\t\tIWorkspaceNavigationView navView = this.navPresenter.getView();\n\t\tthis.view.setNavigation(navView);\n\t\t\n\t\tIPresenter<?, ? extends EventBus> dbpresenter = pf.createPresenter(DashboardPresenter.class);\n\t\t((DashboardEventBus)dbpresenter.getEventBus()).launch(application);\n\t\tComponent dbView = (Component)dbpresenter.getView();\n\t\t\n\t\tthis.view.setContent(dbView);\n\t}", "public void setService(Service value) {\n\t\tthis._service = value;\n\t}", "private SparkeyServiceSingleton(){}", "protected void setApplication (MauiApplication aApplication)\n\t{\n\t\tif (application != aApplication)\n\t\t{\n\t\t\tapplication = aApplication;\n\t\t\tString theApplicationAddress = aApplication.getApplicationAddress ();\n\t\t\tif (!applications.contains (theApplicationAddress))\n\t\t\t{\n\t\t\t\tapplications.put (theApplicationAddress, aApplication);\t// Cache it\n\t\t\t\tnotifySessionListeners (this, aApplication, true);\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void setApplicationContext(ApplicationContext context) throws BeansException {\n\t\tSystem.out.println(\"setting newly\");\n\t\tthis.context=context;\n\t\tsetContext();\n\t}", "public NcrackClient onTargetService(TargetService targetService) {\n this.targetService = targetService;\n return this;\n }", "@Override\n\tpublic void setApplicationContext(ApplicationContext applicationContext) throws BeansException {\n\t\t\n\t}", "public void setUseGlobalService(boolean flag);", "public void setApplicationContext(ApplicationContext context) throws BeansException {\n appContext = context;\n }", "public ReceivingMonitoringBean() {\n serviceVessel=new ServiceVessel();\n }", "@Override\n public void onCreate() {\n super.onCreate();\n singleton = this;\n try {\n /*TODO: Inicializar Server\n * */\n Server.getInstance(this).init();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void setGameService(GameService gameService) {\n this.gameService = gameService;\n }", "public void setGameService(GameService gameService) {\n this.gameService = gameService;\n }", "public void setStatusService(StatusService statusService) {\r\n this.statusService = statusService;\r\n }", "@Override\n\tpublic void initApplication(BBApplication app) {\n\t\tthis._application = app;\n\t}", "public void setApplicationContext(ApplicationContext applicationContext)\n/* */ throws BeansException\n/* */ {\n/* 106 */ applicationContext = applicationContext;\n/* */ }", "@Override\n\tpublic void setApplicationContext(ApplicationContext context) throws BeansException {\n\t\t\n\t\tthis.context = context;\n\t\t\n\t}", "public static SchedulerService get() {\n return SINGLETON;\n }", "public RNPushNotificationRegistrationService() {\n super();\n s_instance = this;\n }", "public static App get(Service srv){\n return (App) srv.getApplication();\n }", "public interface ApplicationService {\n\tOptional<App> getAppByName(String name);\n\n\tOptional<App> getAppByType(String type);\n\n\tApp create(AppCreateForm form);\n}", "private RecipleazBackendService() {\n }" ]
[ "0.60829824", "0.6043722", "0.60321575", "0.5984998", "0.5815305", "0.5713572", "0.5706225", "0.56873417", "0.5674806", "0.5613572", "0.5567523", "0.5560581", "0.5557465", "0.5554251", "0.5532921", "0.5525156", "0.55011034", "0.5499615", "0.5494275", "0.54682034", "0.5458795", "0.5436105", "0.54331726", "0.54331726", "0.54331726", "0.54300946", "0.54125756", "0.5407542", "0.5407542", "0.5407542", "0.5402107", "0.5393782", "0.5392895", "0.5365072", "0.53627115", "0.5333169", "0.5333131", "0.5330076", "0.53287655", "0.53206325", "0.5319757", "0.53108895", "0.5310225", "0.5292893", "0.52899486", "0.5287259", "0.52805114", "0.5275691", "0.5267524", "0.5264882", "0.5264555", "0.5264555", "0.5264555", "0.52637494", "0.5260191", "0.5257924", "0.52578676", "0.5255576", "0.52494687", "0.5234413", "0.52328265", "0.52272", "0.5225882", "0.5221214", "0.52187395", "0.52168196", "0.5202104", "0.5200416", "0.51910645", "0.5190926", "0.5188949", "0.5188949", "0.5188949", "0.5179076", "0.5177356", "0.5174457", "0.51727", "0.51724684", "0.51720244", "0.5171559", "0.5169739", "0.5153816", "0.515258", "0.51487774", "0.51474077", "0.51458126", "0.5139299", "0.513779", "0.5135249", "0.5132901", "0.5132901", "0.51303345", "0.51199347", "0.51195693", "0.51184404", "0.51158476", "0.5115301", "0.5108914", "0.51079226", "0.51010746" ]
0.63443226
0
Devuelve el nivel del nodo
public NivelNodo getNivelNodo() { return nivelNodo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void Nivel(Nodo nodo){\r\n\t\tif(cont<(int)Math.pow(2,base)){\r\n\t\t\tnodo.setNivel(nivel);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tnivel++;\r\n\t\t\tbase++;\r\n\t\t\tnodo.setNivel(nivel);\r\n\t\t}\r\n\t}", "@Override\n public int nivel() {\n return this.altura() - 1;\n }", "public void setNivelNodo(NivelNodo nivelNodo) {\n\t\tthis.nivelNodo = nivelNodo;\n\t}", "public int getNivel() {\n\t\treturn nivel;\n\t}", "public int getNivel() {\n\t\treturn nivel;\n\t}", "public int getNivel() {\n return this.nivel;\n }", "public void setNivel (int nivel)\r\n\t{\r\n\t\tthis.nivel = nivel;\r\n\t}", "@Override\n public void buildNivel(int nivel) {\n \n if(nivel < 6)\n this.personaje.setNivel(nivel);\n }", "public void setNivel(int nivel) {\n this.nivel = nivel;\n }", "protected void subirDeNivel(int n) //A cada 100 de xp, sobe de nivel\n {\n this.nivel = nivel + n;\n }", "public void imprimirNivelSuperior(){\n\t\tmodCons.imprimirNivelSuperior();\n\t}", "public void setNivel(int nivel) {\n\t\tthis.nivel = nivel;\n\t}", "public int getNivelDanio() {\n return this.nivelDanio;\n }", "public void verificarNivel (int nivel) {\n this.nivelUsuario = nivel;\n }", "public void setNivel(String nivel)\r\n/* 254: */ {\r\n/* 255:282 */ this.nivel = nivel;\r\n/* 256: */ }", "public static Nivel getNivel() {\n\t\treturn INSTANCE;\n\t}", "public String getNivel()\r\n/* 249: */ {\r\n/* 250:278 */ return this.nivel;\r\n/* 251: */ }", "public void cambioNivel(int nivel) {\n\t\tthis.reDimensionar(fondoJuego, new ImageIcon(Gui.class.getResource(\"/RecursosGraficosNiveles/FONDO-LVL0\"+nivel+\".png\")));\n\t\tpanelJuego.moveToBack(fondoJuego);\n\t\tpanelJuego.pantallaNivel(nivel - 1);\n\t\tjuego.pausa();\n\t\tpanelJuego.CambioDeLvl();\n\t\tpanelJuego.repaint();\n\t}", "public void subirNivelAtaque(){\n\tif(contadorNivel==5){\n\t nivelAtaque++;\n\t System.out.println(\"El ataque \"+obtenerNombreAtaque()+\" ha subido de nivel\");\n\t contadorNivel=0;\n\t dano+=5;\n\t} else {\n\t nivelAtaque=nivelAtaque;\n\t}\n }", "public void siguienteNivel(){ \n\t\tnivel++;\n\t\tcontador = 0;\n\t\tcontadorE = 0;\n\t\treiniciar = false;\n\t\t\n\t\tnumDisparos=0; \n\t\tpausa=false;\n\t\tdisparando=false;\n\t\t\n\t\tif(nivel<9){\n\t\t\tasteroides =new Asteroide [(2+(nivel*2)) *(int)Math.pow(astNumDivision,astNumDisparos-1)+1];\n\t\t\tnumAsteroides = 2+(nivel*2);\n\t\t}\n\t\telse{\n\t\t\tasteroides =new Asteroide [12 *(int)Math.pow(astNumDivision,astNumDisparos-1)+1];\n\t\t\tnumAsteroides = 12;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<numAsteroides;i++){\n\t\t\tasteroides[i]=new Asteroide(this, Math.random()*this.getWidth(), Math.random()*this.getHeight(), \n\t\t\t\t\tastRadio,minAstVel, maxAstVel, astNumDisparos, astNumDivision, 1);\n\t\t}\n\t}", "@Override\n public void subida(){\n // si es mayor a la eperiencia maxima sube de lo contrario no\n if (experiencia>(100*nivel)){\n System.out.println(\"Acabas de subir de nivel\");\n nivel++;\n System.out.println(\"Nievel: \"+nivel);\n }else {\n\n }\n }", "public static Nivel getNivel(Mapa m) {\n\t\tif(INSTANCE == null)\n\t\t\tINSTANCE = new Nivel(m);\n\t\t\n\t\treturn INSTANCE;\n\t}", "public int cargarCombustible(){ //creamos metodo cargarCombustible\r\n return this.getNivel();//retornara el nivel de ese mecanico\r\n }", "@Override\n public void cantidad_Defensa(){\n defensa=2+nivel+aumentoD;\n }", "@ManyToOne\r\n\t@JoinColumn(name=\"NVOC_ID\")\r\n\tpublic NivelOcupacional getNivelOcupacional() {\r\n\t\treturn this.nivelOcupacional;\r\n\t}", "public void setNodo(Long nodo);", "@Override\n\tpublic int canalMenos() {\n\t\treturn 0;\n\t}", "private void inicializarPartida(int nivel) {\r\n\t\tif(nivel == PRINCIPIANTE) {\r\n\t\t\tcasillas = new Casilla [FILAS_PRINCIPIANTE] [COLUMNAS_PRINCIPIANTE];\r\n\t\t\tcantidadMinas = CANTIDAD_MINAS_PRINCIPANTE;\r\n\t\t\t\r\n\t\t}\r\n\t\tif(nivel == INTERMEDIO) {\r\n\t\t\tcasillas = new Casilla [FILAS_INTERMEDIO] [COLUMNAS_INTERMEDIO];\r\n\t\t\tcantidadMinas = CANTIDAD_MINAS_INTERMEDIO;\r\n\t\t}\r\n\t\tif(nivel == EXPERTO) {\r\n\t\t\tcasillas = new Casilla [FILAS_EXPERTO] [COLUMNAS_EXPERTO] ;\r\n\t\t\tcantidadMinas = CANTIDAD_MINAS_EXPERTO;\r\n\t\t\t\r\n\t\t}\r\n\t}", "public void imprimirNivelMedio(){\n\t\tmodCons.imprimirNivelMedio();\n\t}", "public Integer minerar(int nivelAldeao) {\n\n\t\treturn Utils.calculaOuro(nivelAldeao);\n\t}", "public PrimerNivel() {\n initComponents();\n }", "abstract int getMaxLevel();", "public void inserisci(NodoAlbero dove, String contenuto, String tipo){\n if (n_nodi == 0){\n root = new NodoAlbero(contenuto, null, tipo);\n n_nodi++;\n return;\n }\n //se il nodo padre non ha un figlio, lo creiamo\n if (dove.getFiglio() == null)\n dove.setFiglio(new NodoAlbero(contenuto, dove, tipo));\n //se ce ne ha già almeno uno, lo accodiamo agli altri figli\n else {\n NodoAlbero temp = dove.getFiglio();\n while (temp.getFratello() != null)\n temp = temp.getFratello();\n temp.setFratello(new NodoAlbero(contenuto, temp.getPadre(), tipo));\n }\n n_nodi++;\n }", "public int donnePoidsMax() { return this.poidsMax; }", "public nivel1() {\n initComponents();\n \n }", "public int EliminarNodo() {\r\n int auxiliar = UltimoValorIngresado.informacion;\r\n UltimoValorIngresado = UltimoValorIngresado.siguiente;\r\n tamaño--;\r\n return auxiliar;\r\n }", "public int masVendido(int cantidad){\r\n \r\n return cantidad;\r\n }", "@Override\n public void cantidad_Ataque(){\n ataque=5+2*nivel+aumentoT;\n }", "public Nodo() {\n this.valor = 0;\n this.proximo=null;\n\n }", "public void insert(Nodo nodo) {\r\n\t\tif(cont<7){\r\n\t\t\tif(this.getRaiz() == null) {\r\n\t this.setRaiz(nodo);\r\n\t nodo.setClave(0);\r\n\t return;\r\n\t }\r\n\t \r\n\t Nodo t = this.getRaiz();\r\n\t boolean val = true;\r\n\t while((t != null)&&(val)) {\r\n\t if(t.getLeft() == null) {\r\n\t \tt.setLeft(nodo);\r\n\t \tcont++;\r\n\t \tNivel(nodo);\r\n\t \tval=false;\r\n\t }\r\n\t else if(t.getRight() == null) {\r\n\t t.setRight(nodo);\r\n\t cont++;\r\n\t \tNivel(nodo);\r\n\t val=false;\r\n\t }\r\n\t else {\r\n\t int lCount = countChildren(t.getLeft());\r\n\t int rCount = countChildren(t.getRight());\r\n\t if(lCount == rCount)\r\n\t t = t.getLeft(); \r\n\t \r\n\t else if(lCount == 0 || lCount == 1)\r\n\t t = t.getLeft(); \r\n\t \r\n\t else\r\n\t t = t.getRight();\r\n\t \r\n\t }\r\n\t\r\n\t }\r\n\t\t}\r\n\t}", "public void setLivello(String l){\n \n this.livello = l;\n \n }", "public void Nivel3(){\n \n int cont = 0; \n\n while(cont<6){\n lv[0][cont] = 4;//pared arriba\n lv[7][cont] = 4;//pared abajo \n cont++;\n }\n cont=0;\n while(cont<8){\n lv[cont][0] = 4;//pared arriba\n lv[cont][5] = 4;//pared abajo \n cont++;\n }\n \n //metas\n lv[1][2] = 3;\n lv[1][3] = 3;\n lv[6][4] = 3;\n \n //cajas\n lv[6][5] = 2;\n lv[2][2] = 2;\n lv[5][4] = 2;\n \n //obstaculos\n lv[5][3] = 4;\n lv[5][2] = 4;\n lv[1][4] = 4;\n \n lv[6][1] =1;//jugador \n \n \n }", "public Buscaminas(int nivel) {\r\n\t\tthis.nivel = nivel;\r\n\t\tperdio = false;\r\n\t\tinicializarPartida(nivel);\r\n\t\tgenerarMinas();\r\n\t\tinicializarCasillasLibres();\r\n\t}", "public void disparoDireccional(int tipo) {\n float x = super.getSprite().getPosicion().getX() + 48 - 58;\n float y = super.getSprite().getPosicion().getY() + 52 - 72;\n switch(tipo) {\n case 1: \n crearProyectilG(x, y, -1, -1);\n crearProyectilG(x, y, 0, -1); \n crearProyectilG(x, y, 1, -1);\n break;\n case 2:\n crearProyectilG(x, y, -1, -1);\n crearProyectilG(x, y, 0, -1); \n crearProyectilG(x, y, -1, 0);\n break;\n case 3: \n crearProyectilG(x, y, -1, -1);\n crearProyectilG(x, y, -1, 0);\n crearProyectilG(x, y, -1, 1); \n break;\n case 4:\n crearProyectilG(x, y, -1, 0); \n crearProyectilG(x, y, -1, 1);\n crearProyectilG(x, y, 0, 1);\n break;\n case 5:\n crearProyectilG(x, y, -1, 1); \n crearProyectilG(x, y, 0, 1);\n crearProyectilG(x, y, 1, 1);\n break;\n case 6:\n crearProyectilG(x, y, 0, 1); \n crearProyectilG(x, y, 1, 1);\n crearProyectilG(x, y, 1, 0);\n break;\n case 7:\n crearProyectilG(x, y, 1, -1); \n crearProyectilG(x, y, 1, 0);\n crearProyectilG(x, y, 1, 1);\n break;\n case 8:\n crearProyectilG(x, y, 0, -1); \n crearProyectilG(x, y, 1, -1);\n crearProyectilG(x, y, 1, 0);\n break;\n }\n }", "public int numNodi() {\n\t\treturn this.nodi.size();\n\t}", "int getMaxLevel();", "public void agregarAlinicio(int el){\n if(!estVacia()){\n inicio=new NodoDoble(el, inicio, null);\n inicio.siguiente.anterior=inicio;\n }else{\n inicio=fin=new NodoDoble(el);\n }\n }", "public abstract int levelRequired();", "@Override\n\tpublic int canalMais() {\n\t\treturn 0;\n\t}", "public principal() {\n initComponents();\n \n // Verificando si se completó el nivel\n verificar_niveles();\n \n \n }", "private Posicion posicionAlDesarmarMenasor(Posicion posicion) {\n\t\t\t\tPosicion posAux;\n\t\t\t\ttry{\n\t\t\t\t\tposAux=new Posicion(posicion.getFila(),posicion.getColumna()-2);\n\t\t\t\t}catch(ErrorPosicionInvalida e){\n\t\t\t\t\tposAux=new Posicion(posicion.getFila(),posicion.getColumna()+1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn posAux;\n\t\t\t}", "private Posicion posicionAlDesarmarSuperion(Posicion posicion) {\n\t\tPosicion posAux;\n\t\ttry{\n\t\t\tposAux=new Posicion(posicion.getFila(),posicion.getColumna()-2);\n\t\t}catch(ErrorPosicionInvalida e){\n\t\t\tposAux=new Posicion(posicion.getFila(),posicion.getColumna()+1);\n\t\t}\n\t\t\n\t\treturn posAux;\n\t}", "public int size(){\n return n_nodi;\n }", "private void caricaLivelloDiLegge() {\n\t\ttry {\n\t\t\t//TODO riutilizzo il piano dei conti caricato in precedenza ma associato al padre (per evitare un nuovo accesso a db)! verificare se va bene!\n\t\t\tlivelloDiLegge = conto.getContoPadre().getPianoDeiConti().getClassePiano().getLivelloDiLegge();\n\t\t} catch(NullPointerException npe) {\n\t\t\tthrow new BusinessException(\"Impossibile determinare il livello di legge associato al conto. Verificare sulla base dati il legame con il piano dei conti e la classe piano.\");\n\t\t}\n\t}", "public int liczbaelnastosie() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void aumentar(int cantidad) {\n\t\t\n\t}", "public Cursor getNivelId(String id){\n //Creamos el conector de bases de datos\n AdmiSQLiteOpenHelper admin = new AdmiSQLiteOpenHelper(this, \"administracion\", null, 1 );\n // Abre la base de datos en modo lectura y escritura\n SQLiteDatabase BasesDeDatos = admin.getWritableDatabase();\n Cursor consultaId = BasesDeDatos.rawQuery(\"SELECT id, nom_nivel, icono, activo FROM t_niveles WHERE activo = 1 AND id = \" + id, null);\n\n //consultaId.close();\n //BasesDeDatos.close();\n return consultaId;\n }", "public void InsertarNodo(int nodo) {\r\n Nodo nuevo_nodo = new Nodo(nodo);\r\n nuevo_nodo.siguiente = UltimoValorIngresado;\r\n UltimoValorIngresado = nuevo_nodo;\r\n tamaño++;\r\n }", "public static void testArbolHojaEnCadaNivel(ArbolBin arbol, int n) {\r\n\t\t\r\n\t\tint nodo = 1;\r\n\t\tint padre = -1;\r\n\t\tint lado = 1;\r\n\t\t\r\n\t\twhile(nodo <= n) {\r\n\t\t\tarbol.insertar(nodo, padre, lado == 1 ? 'd' : 'i');\r\n\t\t\tnodo++;\r\n\t\t\tif(nodo % 2 == 0) padre = padre + 2;\r\n\t\t\tlado = (lado + 1) % 2;\r\n\t\t}\r\n\t}", "@Override\n\tpublic long unidadesComida() {\n\t\treturn 3;\n\t}", "public void setNomNiveles (String IdNivel, String Contador, String IdCategoria){\n nivelesId = getNivelId( IdNivel );\n if ( nivelesId.moveToFirst() ){//Muestra los valores encontrados en la consulta\n labelNivel.setText( nivelesId.getString(1) + \" - Preguntas : \" + Contador + \" / \" + getPreguntasTotal(IdCategoria, IdNivel ) );\n }\n\n }", "public String getNivelAuditoria() {\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"getNivelAuditoria() - start\");\n\t\t}\n\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"getNivelAuditoria() - end\");\n\t\t}\n\t\treturn nivelAuditoria;\n\t}", "public void setNodoDerecho(Nodo nodo){\n der = nodo;\n }", "public NivelPerigo nivelPerigo(Calendar data, int[] tempoLimites) {\n\t\t// Toma em conta os ardiveis (terrenos e casas nao ardidos) e os\n\t\t// obstaculos (agua, estradas e ardidos) e a data do ultimo fogo.\n\t\t// Nivel de perigo depende do numero de anos que já passaram desde \n\t\t// ultimo fogo e do array tempoLimites.\n\t\t// Este nivel ainda pode ser agravado pelo racio \n\t\t// (ardiveis-obstaculos)/linhas*colunas\n\t\tint anosDesdeUltFogo = data.get(Calendar.YEAR) - \n\t\t\t\tthis.dataUltimoFogo.get(Calendar.YEAR);\n\n\t\tdouble racio = (double)(this.ardiveis() - this.obstaculos()) / \n\t\t\t\t(this.quadricula.length * this.quadricula[0].length);\n\n\t\tdouble nivel = gravidadeTempo(tempoLimites, anosDesdeUltFogo);\n\n\t\tnivel *= (1 + racio);\n\t\tif (nivel >= NivelPerigo.values().length) {\n\t\t\tnivel = NivelPerigo.values().length - 1;\n\t\t}\n\t\treturn NivelPerigo.values()[(int)Math.round(nivel)];\n\t}", "int getMax_depth();", "public abstract int getMaxChildren();", "public void Ordenamiento() {\n\n\t}", "public NodoDoble(Object valor) {\n this.valor = valor;\n }", "public int getModopelea(){return modopelea;}", "@Override\n public void cantidad_Punteria(){\n punteria=69.5+05*nivel+aumentoP;\n }", "public int lancia() {\r\n\t\tlancio = dado.tiraDado();\r\n\t\tthis.numLanci++;\r\n\t\treturn lancio;\r\n\t}", "public int getCantidadNodos() {\n\t\treturn cantNodos;\n\t}", "public void agregarAlFinal(int el){\n if(!estVacia()){\n fin=new NodoDoble(el,null,fin);\n fin.anterior.siguiente=fin;\n }else{\n inicio=fin=new NodoDoble(el);\n }\n }", "public void setTipo(int value) {\n this.tipo = value;\n }", "private String obtenerNid(int posicion) {\n if (propuestas != null) {\n return propuestas[posicion].getNid();\n }\n return null;\n }", "private NodoGrafo Vert2Nodo(int v) {\n\t\tNodoGrafo aux = origen;\n\t\twhile (aux != null && aux.nodo != v)\n\t\t\taux = aux.sigNodo;\t\t\n\t\treturn aux;\n\t}", "@Override\n\tpublic int volumeMenos() {\n\t\treturn 0;\n\t}", "public List<RpTipoNivel> getAllRpTipoNivel()throws Exception{\n\t\tList<RpTipoNivel> lista=new LinkedList<RpTipoNivel>();\n\t\ttry{\n\t\t\tStringBuffer SQL=new StringBuffer(\"SELECT tipo_nivel_id,descripcion,descripcion_corta FROM \").append(Constante.schemadb).append(\".rp_tipo_nivel order by descripcion asc\");\n\t\t\t\n\t\t\tPreparedStatement pst=connect().prepareStatement(SQL.toString());\n\t\t\tResultSet rs=pst.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tRpTipoNivel obj=new RpTipoNivel(); \n\t\t\t\tobj.setTipoNivelId(rs.getInt(\"tipo_nivel_id\"));\n\t\t\t\tobj.setDescripcion(rs.getString(\"descripcion\"));\n\t\t\t\tobj.setDescripcionCorta(rs.getString(\"descripcion_corta\"));\n\t\t\t\t\n\t\t\t\tlista.add(obj);\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\tthrow(e);\n\t\t}\n\t\treturn lista;\n\t}", "public Recurso(int nNivel, String nDescripcion, String nurl) {\n\t\ttipo = TEXTO;\n\t\tdescripcion = nDescripcion;\n\t\turl = nurl;\n\t\tnivel = nNivel;\n\t}", "public void inserisci(String dove, String contenuto){\n if (n_nodi == 0){\n root = new NodoAlbero(contenuto, null, \"directory\");\n n_nodi++;\n return;\n }\n //troviamo il nodo che sarà il padre del nodo che dobbiamo aggiungere\n NodoAlbero cercato = ricerca(dove);\n \n //se il nodo padre non esiste, non aggiungiamo il nuovo nodo\n if (cercato == null)\n return;\n //se il nodo padre non ha un figlio, lo creiamo\n if (cercato.getFiglio() == null)\n cercato.setFiglio(new NodoAlbero(contenuto, cercato, \"directory\"));\n //se ce ne ha già almeno uno, lo accodiamo agli altri figli\n else {\n NodoAlbero temp = cercato.getFiglio();\n while (temp.getFratello() != null)\n temp = temp.getFratello();\n temp.setFratello(new NodoAlbero(contenuto, temp.getPadre(), \"directory\"));\n }\n n_nodi++;\n }", "public Nivel1Palabras() {\n initComponents();\n }", "public void agregarNodo(Nodo nuevo){\n agregarNodoRec(root, nuevo);//la primera vez inicia en la raiz \n }", "public static int size_parentId() {\n return (16 / 8);\n }", "public Nodo() {\r\n this.dato = null;\r\n this.siguiente = null;\r\n }", "static void imprimirNodo( NodoBase raiz )\n{\n\tif(\traiz instanceof NodoRepeat\n\t\t||\traiz instanceof NodoLeer\n\t\t||\traiz instanceof NodoEscribir ){\n\t\tSystem.out.println(\"palabra reservada: \"+ raiz.getClass().getName());\n\t}\n\t\n\tif(\traiz instanceof NodoAsignacion )\n\t\tSystem.out.println(\":=\");\n\t\n\tif(\traiz instanceof NodoOperacion ){\n\t\ttipoOp sel=((NodoOperacion) raiz).getOperacion();\n\t\tif(sel==tipoOp.menor)\n\t\t\tSystem.out.println(\"<\"); \n\t\tif(sel==tipoOp.igual)\n\t\t\tSystem.out.println(\"=\");\n\t\tif(sel==tipoOp.mas)\n\t\t\tSystem.out.println(\"+\");\n\t\tif(sel==tipoOp.menos)\n\t\t\tSystem.out.println(\"-\");\n\t\tif(sel==tipoOp.por)\n\t\t\tSystem.out.println(\"*\");\n\t\tif(sel==tipoOp.entre)\n\t\t\tSystem.out.println(\"/\");\n if(sel==tipoOp.mayor)\n\t\t\tSystem.out.println(\">\");\n if(sel==tipoOp.mayorigual)\n\t\t\tSystem.out.println(\">=\");\n if(sel==tipoOp.menorigual)\n\t\t\tSystem.out.println(\"<=\");\n if(sel==tipoOp.diferente)\n\t\t\tSystem.out.println(\"!=\");\n if(sel==tipoOp.and)\n\t\t\tSystem.out.println(\"AND\");\n if(sel==tipoOp.or)\n\t\t\tSystem.out.println(\"OR\");\n \n\t}\n\n\tif(\traiz instanceof NodoValor ){\n if(((NodoValor)raiz).getVint() != null)\n System.out.println(\"NUM, val= \"+ ((NodoValor)raiz).getVint());\n if(((NodoValor)raiz).isVbol()!= null)\n System.out.println(\"BOL, val= \"+ ((NodoValor)raiz).isVbol());\n\t}\n\n\tif(\traiz instanceof NodoIdentificador ){\n\t\tSystem.out.println(\"ID, nombre= \"+ ((NodoIdentificador)raiz).getNombre());\n\t}\n\n}", "public Puntaje(String nom, int puntaje) {\n this.nombre = nom;\n this.puntos = puntaje;\n }", "public int getLevel(){\n return level;\n }", "public int getLevel(){\n return level;\n }", "private boolean isContoDiLivelloDiLegge() {\n\t\treturn conto.getLivello().equals(livelloDiLegge); \n\t\t\n\t}", "public int getLevel()\n {\n return level; \n }", "protected int getLevel(){\r\n return this.level;\r\n }", "public void iniciarNovaPartida(Integer posicao);", "public void setPuntos(int puntaje) {\n this.puntos = puntaje;\n }", "public void mezclarPorGrado() {\n\t\tint i = 0;\n\t\tint inicio = 0;\n\t\tint fin = 0;\n\t\tint grado = 0;\n\t\tNodo aux;\n\t\tRandom r = new Random();\n\t\tboolean[] mezclado = new boolean[cantNodos];\n\n\t\twhile (i < cantNodos) {\n\t\t\tinicio = i;\n\t\t\tgrado = nodos.get(i).getGrado();\n\t\t\twhile (i < cantNodos && nodos.get(i).getGrado() == grado)\n\t\t\t\ti++;\n\n\t\t\tfin = i;\n\n\t\t\tfor (int k = inicio; k < (fin - inicio); k++) {\n\t\t\t\tint res = r.nextInt(fin - inicio);\n\t\t\t\tif (mezclado[k])\n\t\t\t\t\tres = r.nextInt(fin - inicio);\n\t\t\t\taux = nodos.get(k);\n\t\t\t\tmezclado[k] = true;\n\t\t\t\tnodos.set(k, nodos.get(inicio + res));\n\t\t\t\tnodos.set(inicio + res, aux);\n\t\t\t}\n\t\t}\n\t\tvalidarMezcla();\n\t}", "private void ordenarGradoAscendente(ArrayList<Nodo> nodo, int izq, int der) {\n\t\tNodo pivote = nodos.get((izq + der) / 2), aux;\n\t\tint i = izq, d = der;\n\t\tdo {\n\t\t\twhile (nodos.get(i).getGrado() < pivote.getGrado())\n\t\t\t\ti++;\n\t\t\twhile (nodos.get(d).getGrado() > pivote.getGrado())\n\t\t\t\td--;\n\t\t\tif (i <= d) {\n\t\t\t\taux = nodo.get(i);\n\t\t\t\tnodo.set(i, nodo.get(d));\n\t\t\t\tnodo.set(d, aux);\n\t\t\t\ti++;\n\t\t\t\td--;\n\t\t\t}\n\t\t} while (i <= d);\n\n\t\tif (izq < d)\n\t\t\tordenarGradoAscendente(nodos, izq, d);\n\t\tif (i < der)\n\t\t\tordenarGradoAscendente(nodos, i, der);\n\t}", "public int getDificultad ()\n {\n //Pre:\n //Post: Devuelve el nivel de dificultad\n return dificultad;\n }", "private void configurarPalabra(int nivel, int identificador) {\n\t\tPalabra palabra = nivel1.get(identificador);\n\t\tthis.crearLogicaDelNivel(palabra);\n\t\tthis.crearInterfazDelNivel(palabra);\n\n\t}", "public int\ngetNodeIndexMax();", "public TipoNodo getTipo() {\n return this.tipoNodo;\n }", "public Nodo (int info)\n\t\t{\n\t\t\n\t\t\tthis.info = info;\n\t\t\tnext = null ;\n\t\t}" ]
[ "0.7556544", "0.74519235", "0.73052835", "0.724755", "0.724755", "0.7079939", "0.70459914", "0.696656", "0.68710834", "0.67581975", "0.67395616", "0.6691238", "0.6688271", "0.6677212", "0.6547154", "0.63776517", "0.63599074", "0.6359815", "0.629814", "0.6275339", "0.61900234", "0.61738", "0.61032873", "0.60682994", "0.5991708", "0.59801316", "0.5924388", "0.5791162", "0.5749776", "0.5733904", "0.56431574", "0.5544912", "0.54973245", "0.5465381", "0.5439156", "0.539333", "0.5392766", "0.53786784", "0.5378483", "0.5364847", "0.5353017", "0.53484446", "0.5343581", "0.5334841", "0.53304666", "0.53277874", "0.5312457", "0.5304802", "0.53006554", "0.52776253", "0.52671033", "0.52608114", "0.5257087", "0.5244929", "0.52433294", "0.52417755", "0.52244467", "0.52089703", "0.5205759", "0.5203278", "0.520305", "0.5187416", "0.5182618", "0.5180737", "0.51764226", "0.5168542", "0.51530004", "0.5150298", "0.5148337", "0.51390004", "0.5138854", "0.51363534", "0.5134067", "0.5123835", "0.51025724", "0.50965697", "0.50702745", "0.5069781", "0.5063635", "0.50618523", "0.50565124", "0.50526935", "0.504655", "0.50457054", "0.5042624", "0.50421846", "0.5037069", "0.5037069", "0.5036531", "0.5031774", "0.5020434", "0.50203013", "0.5018541", "0.5013833", "0.50129706", "0.5012786", "0.49988967", "0.49982557", "0.4997862", "0.49975398" ]
0.74619514
1
Guarda el nivel al que pertenece el nodo
public void setNivelNodo(NivelNodo nivelNodo) { this.nivelNodo = nivelNodo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void Nivel(Nodo nodo){\r\n\t\tif(cont<(int)Math.pow(2,base)){\r\n\t\t\tnodo.setNivel(nivel);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tnivel++;\r\n\t\t\tbase++;\r\n\t\t\tnodo.setNivel(nivel);\r\n\t\t}\r\n\t}", "public void imprimirNivelSuperior(){\n\t\tmodCons.imprimirNivelSuperior();\n\t}", "public void siguienteNivel(){ \n\t\tnivel++;\n\t\tcontador = 0;\n\t\tcontadorE = 0;\n\t\treiniciar = false;\n\t\t\n\t\tnumDisparos=0; \n\t\tpausa=false;\n\t\tdisparando=false;\n\t\t\n\t\tif(nivel<9){\n\t\t\tasteroides =new Asteroide [(2+(nivel*2)) *(int)Math.pow(astNumDivision,astNumDisparos-1)+1];\n\t\t\tnumAsteroides = 2+(nivel*2);\n\t\t}\n\t\telse{\n\t\t\tasteroides =new Asteroide [12 *(int)Math.pow(astNumDivision,astNumDisparos-1)+1];\n\t\t\tnumAsteroides = 12;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<numAsteroides;i++){\n\t\t\tasteroides[i]=new Asteroide(this, Math.random()*this.getWidth(), Math.random()*this.getHeight(), \n\t\t\t\t\tastRadio,minAstVel, maxAstVel, astNumDisparos, astNumDivision, 1);\n\t\t}\n\t}", "public void subirNivelAtaque(){\n\tif(contadorNivel==5){\n\t nivelAtaque++;\n\t System.out.println(\"El ataque \"+obtenerNombreAtaque()+\" ha subido de nivel\");\n\t contadorNivel=0;\n\t dano+=5;\n\t} else {\n\t nivelAtaque=nivelAtaque;\n\t}\n }", "public void verificarNivel (int nivel) {\n this.nivelUsuario = nivel;\n }", "protected void subirDeNivel(int n) //A cada 100 de xp, sobe de nivel\n {\n this.nivel = nivel + n;\n }", "public void cambioNivel(int nivel) {\n\t\tthis.reDimensionar(fondoJuego, new ImageIcon(Gui.class.getResource(\"/RecursosGraficosNiveles/FONDO-LVL0\"+nivel+\".png\")));\n\t\tpanelJuego.moveToBack(fondoJuego);\n\t\tpanelJuego.pantallaNivel(nivel - 1);\n\t\tjuego.pausa();\n\t\tpanelJuego.CambioDeLvl();\n\t\tpanelJuego.repaint();\n\t}", "@Override\n public void buildNivel(int nivel) {\n \n if(nivel < 6)\n this.personaje.setNivel(nivel);\n }", "public void AgregarDeMayorAMenor(int el) throws Exception{\n if(repetido(el)){\n throw new Exception(\"El dato ya existe en la lista!!!\");\n }else{\n /*\n Crear un nodo para el nuevo dato.\n Si la lista esta vacía, o el valor del primer elemento de la lista \n es mayor que el nuevo, insertar el nuevo nodo en la primera posición \n de la lista y modificar la cabecera respectivamente.\n \n */\n NodoDoble newNode = new NodoDoble(el);\n if (estVacia() || inicio.GetDato() == el) {\n newNode.SetSiguiente(inicio);\n inicio = newNode;\n } else {\n /* \n Si no se cumple el caso anterior, buscar el lugar adecuado \n para la inserción: recorrer la lista conservando el nodo actual. \n Inicializar nodo actual con el valor de primera posición, \n y avanzar mientras el siguiente nodo no sea nulo y el dato \n que contiene la siguiente posición sea mayor o igual que \n el dato a insertar.\n */\n NodoDoble current = inicio;//\n while (current.GetSiguiente() != null\n && current.siguiente.GetDato() >= el) {\n current = current.GetSiguiente();\n }\n /*\n Con esto se señala al nodo adecuado, \n a continuación insertar el nuevo nodo a continuación de él.\n */\n newNode.SetSiguiente(current.GetSiguiente());\n current.SetSiguiente(newNode);\n }\n } \n }", "public void setNivel (int nivel)\r\n\t{\r\n\t\tthis.nivel = nivel;\r\n\t}", "public void imprimirNivelMedio(){\n\t\tmodCons.imprimirNivelMedio();\n\t}", "public void setNivel(int nivel) {\n this.nivel = nivel;\n }", "@Override\n public void subida(){\n // si es mayor a la eperiencia maxima sube de lo contrario no\n if (experiencia>(100*nivel)){\n System.out.println(\"Acabas de subir de nivel\");\n nivel++;\n System.out.println(\"Nievel: \"+nivel);\n }else {\n\n }\n }", "public int cargarCombustible(){ //creamos metodo cargarCombustible\r\n return this.getNivel();//retornara el nivel de ese mecanico\r\n }", "public void insert(Nodo nodo) {\r\n\t\tif(cont<7){\r\n\t\t\tif(this.getRaiz() == null) {\r\n\t this.setRaiz(nodo);\r\n\t nodo.setClave(0);\r\n\t return;\r\n\t }\r\n\t \r\n\t Nodo t = this.getRaiz();\r\n\t boolean val = true;\r\n\t while((t != null)&&(val)) {\r\n\t if(t.getLeft() == null) {\r\n\t \tt.setLeft(nodo);\r\n\t \tcont++;\r\n\t \tNivel(nodo);\r\n\t \tval=false;\r\n\t }\r\n\t else if(t.getRight() == null) {\r\n\t t.setRight(nodo);\r\n\t cont++;\r\n\t \tNivel(nodo);\r\n\t val=false;\r\n\t }\r\n\t else {\r\n\t int lCount = countChildren(t.getLeft());\r\n\t int rCount = countChildren(t.getRight());\r\n\t if(lCount == rCount)\r\n\t t = t.getLeft(); \r\n\t \r\n\t else if(lCount == 0 || lCount == 1)\r\n\t t = t.getLeft(); \r\n\t \r\n\t else\r\n\t t = t.getRight();\r\n\t \r\n\t }\r\n\t\r\n\t }\r\n\t\t}\r\n\t}", "@Override\n public int nivel() {\n return this.altura() - 1;\n }", "public void setNivel(String nivel)\r\n/* 254: */ {\r\n/* 255:282 */ this.nivel = nivel;\r\n/* 256: */ }", "public void setNivel(int nivel) {\n\t\tthis.nivel = nivel;\n\t}", "public void ordenarXPuntajeSeleccion() {\r\n\t\tfor (int i = 0; i < datos.size()-1; i++) {\r\n\t\t\tJugador menor = datos.get(i);\r\n\t\t\tint cual = i;\r\n\t\t\tfor (int j = i + 1; j < datos.size(); j++ ) {\r\n\t\t\t\tif(datos.get(j).compareTo(menor) < 0) {\r\n\t\t\t\t\tmenor = datos.get(j);\r\n\t\t\t\t\tcual = j;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tJugador temp = datos.get(i);\r\n\t\t\tdatos.set(i, menor);\r\n\t\t\tdatos.set(cual, temp);\r\n\t\t}\r\n\t}", "public void agregarAlFinal(int el){\n if(!estVacia()){\n fin=new NodoDoble(el,null,fin);\n fin.anterior.siguiente=fin;\n }else{\n inicio=fin=new NodoDoble(el);\n }\n }", "boolean insertar(Nodo_B nuevo){\n if(this.primero == null){\n this.primero = nuevo;\n this.ultimo = nuevo;\n size ++;\n return true;\n }else{\n if(this.primero == this.ultimo){ // -------------------------solo hay un nodo \n if(nuevo.valor < this.primero.valor){\n nuevo.siguiente = this.primero;\n this.primero.anterior = nuevo;\n this.primero.izq = nuevo.der; // -----cambia los punteros a las paginas\n this.primero = nuevo;\n size++; \n return true;\n }else if(nuevo.valor > this.ultimo.valor){\n this.ultimo.siguiente = nuevo;\n nuevo.anterior = this.ultimo;\n this.ultimo.der = nuevo.izq; //------ cambia los punteros a las paginas \n this.ultimo = nuevo;\n size++; \n return true;\n }else{\n System.out.println (\"ya hay un destino con ese codigo registrado\");\n return false;\n }\n }else{ // ---------------------------------------------------hay mas de un nodo\n if(nuevo.valor < this.primero.valor){\n nuevo.siguiente = this.primero;\n this.primero.anterior = nuevo;\n this.primero.izq = nuevo.der; // -----cambia los punteros a las paginas\n this.primero = nuevo;\n size++; \n return true;\n }else if(nuevo.valor > this.ultimo.valor){\n this.ultimo.siguiente = nuevo;\n nuevo.anterior = this.ultimo;\n this.ultimo.der = nuevo.izq; //------ cambia los punteros a las paginas \n this.ultimo = nuevo;\n size++; \n return true;\n }else{\n Nodo_B pivote = this.primero;\n while(pivote != null){\n if(nuevo.valor < pivote.valor){\n nuevo.siguiente = pivote;\n nuevo.anterior = pivote.anterior;\n //--------------------------- cambia los punteros a las paginas\n pivote.izq = nuevo.der;\n pivote.anterior.der = nuevo.izq;\n //-----------------------------------------------------------\n pivote.anterior.siguiente = nuevo;\n pivote.anterior = nuevo;\n size++;\n return true;\n }else if(nuevo.valor == pivote.valor){\n System.out.println (\"ya hay un destino con ese codigo registrado\");\n return false;\n }else{\n pivote = pivote.siguiente;\n }\n }\n }\n }\n }\n return false;\n }", "private void inicializarPartida(int nivel) {\r\n\t\tif(nivel == PRINCIPIANTE) {\r\n\t\t\tcasillas = new Casilla [FILAS_PRINCIPIANTE] [COLUMNAS_PRINCIPIANTE];\r\n\t\t\tcantidadMinas = CANTIDAD_MINAS_PRINCIPANTE;\r\n\t\t\t\r\n\t\t}\r\n\t\tif(nivel == INTERMEDIO) {\r\n\t\t\tcasillas = new Casilla [FILAS_INTERMEDIO] [COLUMNAS_INTERMEDIO];\r\n\t\t\tcantidadMinas = CANTIDAD_MINAS_INTERMEDIO;\r\n\t\t}\r\n\t\tif(nivel == EXPERTO) {\r\n\t\t\tcasillas = new Casilla [FILAS_EXPERTO] [COLUMNAS_EXPERTO] ;\r\n\t\t\tcantidadMinas = CANTIDAD_MINAS_EXPERTO;\r\n\t\t\t\r\n\t\t}\r\n\t}", "public void restarPunto ( ) {\n\t\tif ( vida > 0 )\n\t\t\tvida--;\n\t}", "public void checarColision()\n\t{\n\t\tListIterator <Entidad> iterator = handler.listaEntidades.listIterator();\n\t\twhile (iterator.hasNext())\n\t\t{\n\t\t\tEntidad aux = iterator.next();\n\t\t\t\n\n\t\t\t//Colision con un Enemigo\n\t\t\tif (aux instanceof Bala)\n\t\t\t{\n\t\t\t\tif (chocandoEn(x, y, aux))\n\t\t\t\t{\t\n\n\n\t\t\t\t\t\n\t\t\t\t\t//Si choca con bala eliminar bala y cambiar posicion de enemigo\n\t\t\t\t\tvelX = aux.getVelX();\n\t\t\t\t\tvelY = aux.getVelY();\n\t\t\t\t\thandler.quitarObjeto(aux);\n\t\t\t\t\tthis.vida -= 5;\n\t\t\t\t\t\n\t\t\t\t\tif(this.vida == 0)\n\t\t\t\t\t\thandler.quitarObjeto(this);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t\t\n\t}", "public void disparoDireccional(int tipo) {\n float x = super.getSprite().getPosicion().getX() + 48 - 58;\n float y = super.getSprite().getPosicion().getY() + 52 - 72;\n switch(tipo) {\n case 1: \n crearProyectilG(x, y, -1, -1);\n crearProyectilG(x, y, 0, -1); \n crearProyectilG(x, y, 1, -1);\n break;\n case 2:\n crearProyectilG(x, y, -1, -1);\n crearProyectilG(x, y, 0, -1); \n crearProyectilG(x, y, -1, 0);\n break;\n case 3: \n crearProyectilG(x, y, -1, -1);\n crearProyectilG(x, y, -1, 0);\n crearProyectilG(x, y, -1, 1); \n break;\n case 4:\n crearProyectilG(x, y, -1, 0); \n crearProyectilG(x, y, -1, 1);\n crearProyectilG(x, y, 0, 1);\n break;\n case 5:\n crearProyectilG(x, y, -1, 1); \n crearProyectilG(x, y, 0, 1);\n crearProyectilG(x, y, 1, 1);\n break;\n case 6:\n crearProyectilG(x, y, 0, 1); \n crearProyectilG(x, y, 1, 1);\n crearProyectilG(x, y, 1, 0);\n break;\n case 7:\n crearProyectilG(x, y, 1, -1); \n crearProyectilG(x, y, 1, 0);\n crearProyectilG(x, y, 1, 1);\n break;\n case 8:\n crearProyectilG(x, y, 0, -1); \n crearProyectilG(x, y, 1, -1);\n crearProyectilG(x, y, 1, 0);\n break;\n }\n }", "public void inserisci(NodoAlbero dove, String contenuto, String tipo){\n if (n_nodi == 0){\n root = new NodoAlbero(contenuto, null, tipo);\n n_nodi++;\n return;\n }\n //se il nodo padre non ha un figlio, lo creiamo\n if (dove.getFiglio() == null)\n dove.setFiglio(new NodoAlbero(contenuto, dove, tipo));\n //se ce ne ha già almeno uno, lo accodiamo agli altri figli\n else {\n NodoAlbero temp = dove.getFiglio();\n while (temp.getFratello() != null)\n temp = temp.getFratello();\n temp.setFratello(new NodoAlbero(contenuto, temp.getPadre(), tipo));\n }\n n_nodi++;\n }", "public void limitarCantidad(int cantidad) {\n int cantidadAnterior = nodos.size();\n \n nodos = nodos.subList(0, cantidad);\n \n fireIntervalRemoved(this, cantidad, cantidadAnterior);\n }", "private void EliminarAristaNodo (NodoGrafo nodo ,int v){\n\t\tNodoArista aux = nodo.arista;\n\t\tif (aux != null) {\n\t\t\t// Si la arista a eliminar es la primera en\n\t\t\t// la lista de nodos adyacentes\n\t\t\tif (aux.nodoDestino.nodo == v){\n\t\t\t\tnodo.arista = aux.sigArista;\n\t\t\t}\n\t\t\telse {\n\t\t\t\twhile (aux.sigArista!= null && aux.sigArista.nodoDestino.nodo != v){\n\t\t\t\t\taux = aux.sigArista;\n\t\t\t\t}\n\t\t\t\tif (aux.sigArista!= null) {\n\t\t\t\t\t// Quita la referencia a la arista hacia v\n\t\t\t\t\taux.sigArista = aux.sigArista.sigArista;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "void insertar_cabeceraMatriz(Nodo_B nuevo){\n \n if(this.primero == null){\n this.primero = nuevo;\n this.ultimo = nuevo;\n \n this.size++;\n }else{\n \n if(nuevo.getValor() < this.primero.getValor()){\n nuevo.siguiente = this.primero;\n this.primero.anterior = nuevo;\n this.primero = nuevo;\n this.size++;\n }else if(nuevo.getValor() > this.ultimo.getValor()){\n this.ultimo.siguiente = nuevo;\n nuevo.anterior = this.ultimo;\n this.ultimo = nuevo;\n this.size++;\n }else{\n Nodo_B pivote = this.primero;\n \n while(pivote != null){\n if(nuevo.getValor() < pivote.getValor()){\n nuevo.siguiente = pivote;\n nuevo.anterior = pivote.anterior;\n pivote.anterior.siguiente = nuevo;\n pivote.anterior = nuevo;\n this.size++;\n break;\n }else if(nuevo.getValor() == pivote.getValor()){\n System.out.print(\"ya hay un valor con este codigo registrado\");\n break;\n }else{\n pivote = pivote.siguiente;\n }\n }\n }\n }\n // JOptionPane.showMessageDialog(null, \"salio del metodo insertar cabecera con el pais :\"+nuevo.nombreDestino);\n }", "@Override\n public void vaciar() {\n this.raiz = NodoBinario.nodoVacio();\n }", "public void agregaralfinal(int el){\n if(!estavacia()){\n fin=new nododoble(el, null, fin);\n fin.anterior.siguiente=fin;\n }else{\n inicio=fin=new nododoble(el);\n }}", "public void supprimerInaccessibles(){\n grammaireCleaner.nettoyNonAccGramm();\n setChanged();\n notifyObservers(\"3\");\n }", "@Override\n public void cantidad_Defensa(){\n defensa=2+nivel+aumentoD;\n }", "private void disparaGuardian()\n {\n // Solo dispara si no hay disparo activo\n if (!disparoGuardian.getVisible()) {\n disparoGuardian.setPosicion(guardian.getPosicionX() + ((guardian.getAncho() - disparoGuardian.getAncho()) / 2), guardian.getPosicionY() - guardian.getAlto());\n disparoGuardian.setVisible(true);\n }\n }", "public void InsertarNodo(int nodo) {\r\n Nodo nuevo_nodo = new Nodo(nodo);\r\n nuevo_nodo.siguiente = UltimoValorIngresado;\r\n UltimoValorIngresado = nuevo_nodo;\r\n tamaño++;\r\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 mezclarPorGrado() {\n\t\tint i = 0;\n\t\tint inicio = 0;\n\t\tint fin = 0;\n\t\tint grado = 0;\n\t\tNodo aux;\n\t\tRandom r = new Random();\n\t\tboolean[] mezclado = new boolean[cantNodos];\n\n\t\twhile (i < cantNodos) {\n\t\t\tinicio = i;\n\t\t\tgrado = nodos.get(i).getGrado();\n\t\t\twhile (i < cantNodos && nodos.get(i).getGrado() == grado)\n\t\t\t\ti++;\n\n\t\t\tfin = i;\n\n\t\t\tfor (int k = inicio; k < (fin - inicio); k++) {\n\t\t\t\tint res = r.nextInt(fin - inicio);\n\t\t\t\tif (mezclado[k])\n\t\t\t\t\tres = r.nextInt(fin - inicio);\n\t\t\t\taux = nodos.get(k);\n\t\t\t\tmezclado[k] = true;\n\t\t\t\tnodos.set(k, nodos.get(inicio + res));\n\t\t\t\tnodos.set(inicio + res, aux);\n\t\t\t}\n\t\t}\n\t\tvalidarMezcla();\n\t}", "public NivelNodo getNivelNodo() {\n\t\treturn nivelNodo;\n\t}", "public void pierdeUnaVida() {\n numeroDeVidas--;\n }", "public void fjernAlle() {\n listehode.neste = null;\n antall = 0;\n }", "private void BajarPiezaAlInstante() {\n int newY = posicionY;\r\n while (newY > 0) {\r\n if (!Mover(piezaActual, posicionX, newY - 1)) {\r\n break;\r\n }\r\n --newY;\r\n }\r\n BajarPieza1posicion();\r\n }", "public void restarAlInventario(int cantidad) {\n\t\tint aux=this.cantidad - cantidad;\n\t\tif(aux>=0) {\n\t\t\tthis.cantidad = aux;\n\t\t}else {\n\t\t\tthis.cantidad = 0;\n\t\t}\n\t}", "private void guardar() {\r\n\t\tif(Gestion.isModificado() && Gestion.getFichero()!=null){\r\n\t\t\ttry {\r\n\t\t\t\tGestion.escribir(Gestion.getFichero());\r\n\t\t\t\tGestion.setModificado(false);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, e.getMessage(), \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(Gestion.isModificado() && Gestion.getFichero()==null){\r\n\t\t\tguardarComo();\r\n\t\t}\r\n\t\telse if(frmLigaDeFtbol.getTitle()==\"Liga de Fútbol\" && !Gestion.isModificado())\r\n\t\t\tguardarComo();\r\n\t}", "private Nodo cambiar (Nodo aux) {\n\t\tNodo n = aux;\r\n\t\tNodo m = aux.getHijoIzq(); \r\n\t\twhile (m.getHijoDer() != null) {//el while sirve para recorrer el lado derecho para encotrar el dato mayor. \r\n\t\t\tn = m; // se guarda el nodo.\r\n\t\t\tm = m.getHijoDer();\r\n\t\t}\r\n\t\taux.setDato(m.getDato()); // se establece el dato del nodo mayor para que de ese nodo se hagan los cambios. \r\n\t\tif(n == aux) { // Si el nodo igual a aux entonces el dato y nodo que se van a eliminar por lo tanto se hacen los comabios. \r\n\t\t\tn.setHijoIzq(m.getHijoIzq());\r\n\t\t}else {\r\n\t\t\tn.setHijoDer(m.getHijoIzq());\r\n\t\t}\r\n\t\treturn n;\r\n\t}", "private Posicion posicionAlDesarmarMenasor(Posicion posicion) {\n\t\t\t\tPosicion posAux;\n\t\t\t\ttry{\n\t\t\t\t\tposAux=new Posicion(posicion.getFila(),posicion.getColumna()-2);\n\t\t\t\t}catch(ErrorPosicionInvalida e){\n\t\t\t\t\tposAux=new Posicion(posicion.getFila(),posicion.getColumna()+1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn posAux;\n\t\t\t}", "public void insertarOrden(Object dato) {\n Nodo nuevo = new Nodo(dato);\n int res = 0;\n // System.out.println(\"esxa\"+res);\n if (primero == null) {\n nuevo.setReferencia(primero);\n primero = nuevo;\n // System.out.println(\"Es nulo\");\n// System.out.println(\"sss\"+primero.getDato());\n } else {\n res = comp.evaluar(dato, primero.getDato());\n // System.out.println(\"\"+res);\n if (res == -1) {\n nuevo.setReferencia(primero);\n primero = nuevo;\n } else {\n int auxres = 0;\n Nodo anterior, actual;\n anterior = actual = primero;\n auxres = comp.evaluar(dato, actual.getDato());\n while ((actual.getReferencia() != null) && (auxres == 1)) {\n anterior = actual;\n actual = actual.getReferencia();\n auxres = comp.evaluar(dato, actual.getDato());\n }\n if (auxres == 1) {\n anterior = actual;\n }\n nuevo.setReferencia(anterior.getReferencia());\n anterior.setReferencia(nuevo);\n\n }\n }\n\n }", "void deleteLevel(int level) throws IllegalArgumentException;", "public int getNivel() {\n\t\treturn nivel;\n\t}", "public int getNivel() {\n\t\treturn nivel;\n\t}", "public void ganarDineroPorAutomoviles() {\n for (Persona p : super.getMundo().getListaDoctores()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaAlbaniles()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaHerreros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n }", "public void ponerFichaOrdenador(){\n\t\tif (verificaGana() == -1){\n\t\t\t\n\t\t\tint nx = (int) Math.floor(Math.random()*3);\n\t\t\tint ny = (int) Math.floor(Math.random()*3);\n\t\t\tint res=0;\n\t\t\tfor (int i=nx;i<3;i++){\n\t\t\t\tfor (int j=ny;j<3;j++){\n\t\t\t\t\tif (m[i][j]==0){\n\t\t\t\t\t\tm[i][j]=2;\n\t\t\t\t\t\tres = 1;\n\t\t\t\t\t\ti=3;j=3;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (res==0) {\n\t\t\t\tfor (int i=0;i<3;i++){\n\t\t\t\t\tfor (int j=0;j<3;j++){\n\t\t\t\t\t\tif (m[i][j]==0){\n\t\t\t\t\t\t\tm[i][j]=2;\n\t\t\t\t\t\t\tres = 1;\n\t\t\t\t\t\t\ti=3;j=3;\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\n\t}", "private boolean isLegalMove(int i, int j, Integer[][] level){\n if ((i < 0 || i >= level.length) || (j < 0 || j >= level[i].length) || level[i][j] == 1){\n return false;\n }\n return true;\n }", "public void insertSubArbol(Nodo nodo) {\r\n\t\tif(cont<5){\r\n\t\t\tif(this.getRaiz() == null) {\r\n\t\t\t\tthis.setRaiz(nodo);\r\n\t\t\t\tnodo.setClave(0);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tNodo t = this.getRaiz();\r\n\t\t\tboolean val = true;\r\n\t\t\twhile((t != null)&&(val)) {\r\n\t\t\t\tif(t.getLeft() == null) {\r\n\t\t\t\t\tt.setLeft(nodo);\r\n\t\t\t\t\tcont++;\r\n\t\t\t\t\tval=false;\r\n\t\t\t\t}\r\n\t\t\t\telse if(t.getRight() == null) {\r\n\t\t\t\t\tt.setRight(nodo);\r\n\t\t\t\t\tcont++;\r\n\t\t\t\t\tval=false;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tint lCount = countChildren(t.getLeft());\r\n\t\t\t\t\tint rCount = countChildren(t.getRight());\r\n\t\t\t\t\tif(lCount == rCount)\r\n\t\t\t\t\t\tt = t.getLeft(); \r\n\t\t\t\t\t\r\n\t\t\t\t\telse if(lCount == 0 || lCount == 1)\r\n\t\t\t\t\t\tt = t.getLeft(); \r\n\t\t\t\t\t\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tt = t.getRight();\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}", "int insertSelective(EpermissionDO record);", "private void compruebaColisiones()\n {\n // Comprobamos las colisiones con los Ufo\n for (Ufo ufo : ufos) {\n // Las naves Ufo chocan con la nave Guardian\n if (ufo.colisionaCon(guardian) && ufo.getVisible()) {\n mensajeDialogo(0);\n juego = false;\n }\n // Las naves Ufo llegan abajo de la pantalla\n if ((ufo.getPosicionY() - ufo.getAlto() > altoVentana)) {\n mensajeDialogo(0);\n juego = false;\n }\n // El disparo de la nave Guardian mata a una nave Ufo\n if (ufo.colisionaCon(disparoGuardian) && ufo.getVisible()) {\n ufo.setVisible(false);\n disparoGuardian.setVisible(false);\n disparoGuardian.setPosicion(0, 0);\n ufosMuertos++;\n }\n }\n\n // El disparo de las naves Ufo mata a la nave Guardian\n if (guardian.colisionaCon(disparoUfo)) {\n disparoUfo.setVisible(false);\n mensajeDialogo(0);\n juego = false;\n }\n\n // Si el disparo Guardian colisiona con el disparo de los Ufo, se\n // eliminan ambos\n if (disparoGuardian.colisionaCon(disparoUfo)) {\n disparoGuardian.setVisible(false);\n disparoGuardian.setPosicion(0, 0);\n disparoUfo.setVisible(false);\n }\n }", "public Buscaminas(int nivel) {\r\n\t\tthis.nivel = nivel;\r\n\t\tperdio = false;\r\n\t\tinicializarPartida(nivel);\r\n\t\tgenerarMinas();\r\n\t\tinicializarCasillasLibres();\r\n\t}", "public void VaciarPila() {\r\n while (!PilaVacia()) {\r\n EliminarNodo();\r\n }\r\n }", "private void añadirEnemigo() {\n\t\t\n\t\tif(enemigo.isVivo()==false){\n\t\t\tint k;\n\t\t\tk = (int)(Math.random()*1000)+1;\n\t\t\tif(k<=200){\n\t\t\t\tif(this.puntuacion<10000){\n\t\t\t\t\tenemigo.setTipo(0);\n\t\t\t\t\tenemigo.setVivo(true);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tenemigo.setTipo(1);\n\t\t\t\t\tenemigo.setVivo(true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public int getNivel() {\n return this.nivel;\n }", "@Override\n\tpublic boolean eliminarPorId(Integer llave) {\n\t\treturn false;\n\t}", "public void ajoutVitesse(Perso p, ArrayList<Perso> groupie){\r\n\t\tif(groupie.isEmpty()){//array vide => ajout simple\r\n\t\t\tgroupie.add(p);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tint cpt =0;\r\n\t\t\twhile(groupie.get(cpt).getSpeed()>p.getSpeed() && cpt<groupie.size()){\r\n\t\t\t\tcpt++;//trouver la position de de l'element\r\n\t\t\t}\r\n\t\t\tif (cpt<groupie.size()){//si ce n'est pas le dernier\r\n\t\t\t\tgroupie.add(cpt,p);\r\n\t\t\t}\r\n\t\t\telse{//si c'est le dernier on l'ajoute a la fin (exception si cpt=size())\r\n\t\t\t\tgroupie.add(p);\r\n\t\t\t}\r\n\t\t}\t\r\n\t}", "private void mueveObjetos()\n {\n // Mueve las naves Ufo\n for (Ufo ufo : ufos) {\n ufo.moverUfo();\n }\n \n // Cambia el movimiento de los Ufos\n if (cambiaUfos) {\n for (Ufo ufo : ufos) {\n ufo.cambiaMoverUfo();\n }\n cambiaUfos = false;\n }\n\n // Mueve los disparos y los elimina los disparos de la nave Guardian\n if (disparoGuardian.getVisible()) {\n disparoGuardian.moverArriba();\n if (disparoGuardian.getPosicionY() <= 0) {\n disparoGuardian.setVisible(false);\n }\n }\n\n // Dispara, mueve y elimina los disparos de las naves Ufo\n disparaUfo();\n if (disparoUfo.getVisible()) {\n disparoUfo.moverAbajo();\n if (disparoUfo.getPosicionY() >= altoVentana) {\n disparoUfo.setVisible(false);\n }\n }\n\n // Mueve la nave Guardian hacia la izquierda\n if (moverIzquierda) {\n guardian.moverIzquierda();\n }\n // Mueve la nave Guardian hacia la derecha\n if (moverDerecha) {\n guardian.moverDerecha();\n }\n // Hace que la nave Guardian dispare\n if (disparar) {\n disparaGuardian();\n }\n }", "public void limpiar()\n {\n nombre = null;\n descripcion = null;\n estado = null;\n primerNivel = true;\n }", "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 }", "public void agregarAlinicio(int el){\n if(!estVacia()){\n inicio=new NodoDoble(el, inicio, null);\n inicio.siguiente.anterior=inicio;\n }else{\n inicio=fin=new NodoDoble(el);\n }\n }", "public void setNodo(Long nodo);", "public void ordenarXPuntajeInsercion() {\r\n\t\tfor (int i = 1; i < datos.size(); i++) {\r\n\t\t\tfor (int j = i; j>0 && ( datos.get(j-1).getPuntaje() > datos.get(j).getPuntaje()); j--) {\r\n\t\t\t\tJugador temp = datos.get(j);\r\n\t\t\t\tdatos.set(j, datos.get(j-1));\r\n\t\t\t\tdatos.set(j-1, temp);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void CrearListaDeOleadasPorNivel(LinkedList<LinkedList<Enemigo>> Enemigos, int NumeroDeNivel, LinkedList<LinkedList<Posicion>> ListaDeEstelas, double Velocidad) {\n\t\tRandom aleatorio = new Random();\n\t\tint oleada = 1;\n\n\t\t// Genera un numero Random de enemigos para cada nivel de 12 a 17\n\t\tInteger numeroDeEnemigosPorNivel = (12 + aleatorio.nextInt(6));\n\n\t\t// Adentro de este loop se agregan todos los enemigos a la lista Enemigos\n\t\twhile (numeroDeEnemigosPorNivel > 0) {\n\t\t\toleada++;\n\t\t\t// oleadaEnemigos es una oleada\n\t\t\tLinkedList<Enemigo> oleadaEnemigos = new LinkedList<Enemigo>();\n\n\t\t\t// Genera Un numero Random de enemigos para cada oleada de 0 a 4\n\t\t\tint numeroDeEnemigosPorOleada = (aleatorio.nextInt(5));\n\t\t\tfor (int i = numeroDeEnemigosPorOleada; i != 0; i--) {\n\n\t\t\t\t/* Genera Un numero Random de enemigos para cada oleada de 0 a 4 */\n\t\t\t\tMisilBalistico MB = new MisilBalistico(Velocidad);\n\t\t\t\tMB.determinarDesplazamiento(Velocidad);\n\t\t\t\tListaDeEstelas.add(MB.getEstela().getListaDeEstelas());\n\t\t\t\toleadaEnemigos.add(MB);\n\t\t\t\tnumeroDeEnemigosPorNivel--;\n\t\t\t}\n\n\t\t\t// En todos los niveles se van a agregar los Misil Cruceros Inteligentes y los\n\t\t\t// Misil cruceros apartir de la oleada 4\n\t\t\tif ((oleada == 4)){\n\t\t\t\tif (VectorDeMisilesCrucerosPorNivel[NumeroDeNivel]) {\n\t\t\t\t\tMisilCruceroInteligente MCI = new MisilCruceroInteligente(Velocidad);\n\t\t\t\t\toleadaEnemigos.add(MCI);\n\t\t\t\t} else {\n\t\t\t\t\tMisilCrucero MC = new MisilCrucero(Velocidad);\n\t\t\t\t\toleadaEnemigos.add(MC);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * Se agregan a la oleada de enemigos 2 bombarderos por nivel, siendo\n\t\t\t * aleatoriamente seleccionado si es un Satelite o un Avion utilizando un random\n\t\t\t * que devuelva 0 o 1 para determinar que bombardero sera el que se agregue a la\n\t\t\t * oleada\n\t\t\t */\n\n\t\t\tif ((oleada == 3) || (oleada == 7)) {\n\t\t\t\tint numeroDeBombarderosPorOleada = (aleatorio.nextInt(2));\n\t\t\t\tif (numeroDeBombarderosPorOleada == 1) {\n\t\t\t\t\tAvion A = new Avion();\n\t\t\t\t\toleadaEnemigos.add(A);\n\t\t\t\t} else {\n\t\t\t\t\tSatelite S = new Satelite();\n\t\t\t\t\toleadaEnemigos.add(S);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Agrego la oleada a la lista de oleadas\n\t\t\tEnemigos.add(oleadaEnemigos);\n\t\t}\n\n\t}", "public boolean delete (int val) throws DifferentOrderTrees {\r\n \tboolean supprime = false;\r\n \tMonceau monceauTemp = new Monceau();\r\n \t\r\n \t//recherche de la valeur a supprimer\r\n \tfor (int i = 0; i < arbres.size(); i++) {\r\n \t\tif (arbres.get(i).findValue(val) == null)\r\n \t\t\tcontinue;\r\n \t\telse {\r\n \t\t\tmonceauTemp.arbres = arbres.get(i).findValue(val).delete();\r\n \t\t\tarbres.remove(arbres.get(i)); //supprime noeud\r\n \t\t\tthis.fusion(monceauTemp); //fusionne les 2 monceaux\r\n \t\t\ti = (0-1); //on recommence (-1 car on fait i++ apres (boucle for))\r\n \t\t\tsupprime = true;\r\n \t\t}\r\n \t}\r\n \t\r\n return supprime;\r\n }", "public void reversarComprobanteContabilidad() {\r\n String ide_cnccc = ser_comprobante.reversarComprobante(tab_tabla1.getValorSeleccionado(), null);\r\n if (guardarPantalla().isEmpty()) {\r\n utilitario.agregarMensaje(\"Se genero el Comprobante Num: \", ide_cnccc);\r\n }\r\n }", "public void carroNoEncontrado(){\n System.out.println(\"Su carro no fue removido porque no fue encontrado en el registro\");\n }", "public void addPrimero(Object obj) {\n if (cabeza == null) { //Si la cabeza es nula, entoces se creará un nuevo nodo donde le pasaremos el valor de obj\n cabeza = new Nodo(obj);\n } else { //Si no es nula, signifa que el valor que se ingrese, pasara a ser la nueva cabeza\n Nodo temp = cabeza; //Metemos la cabeza en un nodo temporal\n Nodo nuevo = new Nodo(obj); //Creamos un nuevo nodo, que no está enlazado\n nuevo.enlazarSiguiente(temp); //Y el nuevo nodo lo enlazamos a el nodo Temp, que contenia el valor anterior de la otra cabeza\n cabeza = nuevo; //Y ahora le decimos que la cabeza sera nuevo\n }\n size++; //Cada vez que agreguemos un nuevo nodo el tamaño de nuestra lista tendra que aumentar\n }", "public void inserisci(String dove, String contenuto){\n if (n_nodi == 0){\n root = new NodoAlbero(contenuto, null, \"directory\");\n n_nodi++;\n return;\n }\n //troviamo il nodo che sarà il padre del nodo che dobbiamo aggiungere\n NodoAlbero cercato = ricerca(dove);\n \n //se il nodo padre non esiste, non aggiungiamo il nuovo nodo\n if (cercato == null)\n return;\n //se il nodo padre non ha un figlio, lo creiamo\n if (cercato.getFiglio() == null)\n cercato.setFiglio(new NodoAlbero(contenuto, cercato, \"directory\"));\n //se ce ne ha già almeno uno, lo accodiamo agli altri figli\n else {\n NodoAlbero temp = cercato.getFiglio();\n while (temp.getFratello() != null)\n temp = temp.getFratello();\n temp.setFratello(new NodoAlbero(contenuto, temp.getPadre(), \"directory\"));\n }\n n_nodi++;\n }", "@Override\r\n\tpublic void guardar() {\n\t\ttab_nivel_funcion_programa.guardar();\r\n\t\tguardarPantalla();\r\n\t\t\r\n\t}", "public void eliminarNodo(Nodo nodoElim,int number){\n \n panelPadre.getChildren().removeAll(nodoElim.getRectangle(),nodoElim.getLabel(),nodoElim.getLine());\n \n if(nodoElim.getParent()!=null){\n nodoElim.getParent().getChildren().remove(nodoElim);\n if(nodoElim.getParent().getParent()==null && nodoElim.getLeftSibling()==null)\n posXAnterior=10;\n else \n posXAnterior=nodos.get(number-1).getPosX();\n }\n \n nodos.remove(number);\n }", "private void guardarEstadoObjetosUsados() {\n }", "public void enleverlaDerniereObs() {\n\n\t\tobstaclesList.remove(obstaclesList.size()-1);\n\t}", "public void inserirFinal(int elemento) {\n No novo = new No(elemento, null);\n No temp = ini;\n\n if (eVazia()) {\n ini = novo;\n } else {\n //Percorrer até chegar no ultimo Nó\n while (temp.getProximo() != null) {\n temp = temp.getProximo();\n }\n temp.setProximo(novo);\n }\n\n }", "private static boolean nivelPasado() {\r\n\t\tint[] contPelotas = new int[ COLORES_POSIBLES.length ]; // Contadores por color\r\n\t\tfor (int i=0; i<tablero.size(); i++) {\r\n\t\t\tPelota pelota = tablero.getPelota(i);\r\n\t\t\tint contColor = Arrays.asList(COLORES_POSIBLES).indexOf( pelota.getColor() ); // Posición del color de la pelota en el array de contadores\r\n\t\t\tcontPelotas[contColor]++;\r\n\t\t}\r\n\t\tfor (int contador : contPelotas) if (contador>=tamanyoTablero-2) return false;\r\n\t\treturn true;\r\n\t}", "public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}", "public synchronized void mudarEstadoPistaDisponivel() {\n temPistaDisponivel = !temPistaDisponivel;\n System.out.println(nomeAeroporto + \" tem pista disponível: \" + \n (temPistaDisponivel == true ? \"Sim\" : \"Não\"));\n // Notifica a mudanca de estado para quem estiver esperando.\n if(temPistaDisponivel) this.notify();\n }", "public void eliminar(){\n inicio = null;\r\n // Reinicia el contador de tamaño de la lista a 0.\r\n tamanio = 0;\r\n }", "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 }", "@Override\n\tpublic boolean semelhante(Assemelhavel obj, int profundidade) {\n\t\treturn false;\n\t}", "public void moverIzquierda() {\n estado = EstadosPersonaje.IZQUIERDA;\n mover(new Vector2(-1, 0));\n }", "public void Nouvelleligne() {\n int maxEleve = retourneMaxNumber() + 1;\n try {\n Connector1.statement.executeUpdate(\"Insert INTO eleve(id_el) VALUES (\" + maxEleve + \")\");\n Object[] val = {maxEleve, \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\"};\n effaceTable(jTable2, mode);\n mode.addRow(val);\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"ERROR \\n\" + e.getMessage());\n\n }\n\n }", "@Override\n\tpublic void checkBotonEliminar() {\n\n\t}", "public NodoA desconectar(NodoA t){\n if(t != cabeza){\n t.getLigaDer().setLigaIzq(t.getLigaIzq());\n System.out.println(\"Direccion:\"+t+\" izquierdo:\"+t.getLigaIzq()+\" derecho:\"+t.getLigaDer());\n t.getLigaIzq().setLigaDer(t.getLigaDer());\n return t;\n }\n return null;\n }", "@Override\n\tpublic int canalMenos() {\n\t\treturn 0;\n\t}", "Lancamento persistir(Lancamento lancamento);", "boolean vecinoDisponible2 (int x, int y, int dir){\n\t //Cuidamos los límites.\n\t switch (dir){\n\t case 0: if (y-1 < 0) return false;\n\t\treturn !mundo[x][y-1].visitoAgente;\n\t case 1: if (y+1 >= alto) return false;\n\t\treturn !mundo[x][y+1].visitoAgente;\n\t case 2: if (x-1 < 0) return false;\n\t\treturn !mundo[x-1][y].visitoAgente;\n\t case 3: if (x+1 >= ancho) return false;\n\t\treturn !mundo[x+1][y].visitoAgente;\n\t }\n\n\t return false;\n }", "private Posicion posicionAlDesarmarSuperion(Posicion posicion) {\n\t\tPosicion posAux;\n\t\ttry{\n\t\t\tposAux=new Posicion(posicion.getFila(),posicion.getColumna()-2);\n\t\t}catch(ErrorPosicionInvalida e){\n\t\t\tposAux=new Posicion(posicion.getFila(),posicion.getColumna()+1);\n\t\t}\n\t\t\n\t\treturn posAux;\n\t}", "public void insertar(int x, String nombre) {\n \tNodo nuevo;\n nuevo = new Nodo();\n nuevo.edad = x;\n nuevo.nombre = nombre;\n //Validar si la lista esta vacia\n if (raiz==null)\n {\n nuevo.sig = null;\n raiz = nuevo;\n }\n else\n {\n nuevo.sig = raiz;\n raiz = nuevo;\n }\n }", "public int EliminarNodo() {\r\n int auxiliar = UltimoValorIngresado.informacion;\r\n UltimoValorIngresado = UltimoValorIngresado.siguiente;\r\n tamaño--;\r\n return auxiliar;\r\n }", "@Override\n public void paso0() {\n n = graph.getNodeIndices().indexOf(actual);\n nodo = graph.getNodes().get(n);\n nodo.setEstado(Node.State.CURRENT);\n nodo.pintarNodo(g);\n // comprueba si es objetivo\n if (nodo.getEsObjetivo()) {\n // establece el objetivo encontrado\n miObjetivo = nodo.toString();\n // termina con exito\n Step = 4;\n } else {\n // se prepara para explorar los sucesores\n m = nodo.maxSucesores();\n j = 0;\n // siguiente paso\n Step = 1;\n }\n }", "private void atualizarBotoes() {\r\n\t\tbtIncluir.setDisable(cliente.getId() != null);\r\n\t\tbtAlterar.setDisable(cliente.getId() == null);\r\n\t\tbtExcluir.setDisable(cliente.getId() == null);\r\n\t}", "public void salvarNoBanco() {\n\n try {\n ofertaDisciplinaFacade.save(oferta);\n// JsfUtil.addSuccessMessage(\"Pessoa \" + pessoa.getNome() + \" criado com sucesso!\");\n oferta= null;\n// recriarModelo();\n } catch (Exception e) {\n JsfUtil.addErrorMessage(e, \"Ocorreu um erro de persistência\");\n }\n }", "public void actualiza() {\n //Si el indice de bloque a mover no es -1(no hay que mover bloque)...\n if(bAvanzaBloque) {\n for (Object objeBloque : lnkBloques) {\n Objeto objBloque = (Objeto) objeBloque;\n //Mueves los bloques que hay que mover\n if(objBloque.getVelocidad()!=0) {\n objBloque.abajo();\n }\n }\n }\n //Si la direccion X es true(el proyectil va a la derecha)\n if (bDireccionX) {\n objProyectil.derecha();\n } //Si es false (va ala izquierda)\n else {\n objProyectil.izquierda();\n }\n\n //Si la direccion Y es true(el proyectil va hacia arriba)\n if (!bDireccionY) {\n objProyectil.arriba();\n } //Si es false (va hacia abajo)\n else {\n objProyectil.abajo();\n }\n\n if (iNumBloques == 0) { // Si se acaban los bloques\n iNumBloques = 54; // Se reinicia la variable de los bloques\n iNivel++; // Aumenta el nivel\n // Se reposiciona el proyectil\n objProyectil.reposiciona((objBarra.getX() + objBarra.getAncho() / 2\n - (objProyectil.getAncho() / 2)), (objBarra.getY()\n - objProyectil.getAlto()));\n // Se aumenta la velocidad del proyectil\n objProyectil.setVelocidad(objProyectil.getVelocidad() + 3);\n // Se reposiciona la barra\n objBarra.reposiciona(((getWidth() / 2)\n - (objProyectil.getAncho() / 2)), (getHeight()\n - objBarra.getAlto()));\n // se limpia la lista de bloques\n lnkBloques.clear();\n // se vuelve a llenar y se acomoda\n try {\n acomodaBloques();\n } catch (IOException ioeError) {\n System.out.println(\"Hubo un error al cargar el juego: \"\n + ioeError.toString());\n }\n // se mueve hacia arriba el proyectil\n bDireccionY = false;\n bDireccionX = true;\n }\n\n if (iVidas == 0) {\n bPerdio = true;\n }\n /*if (iVidas == 0) {\n bPerdio = true;\n bPausado = true;\n iNumBloques = 54; // se reinicia la cantidad de bloques\n iNivel = 1; // vuelve al nivel 1\n // La direccion del proyectil sera para arrib\n bDireccionY = false;\n // La direccion que nos interesa es: false: Izq. true: Dererecha\n bDireccionX = true;\n // Se reposiciona el proyectil\n objProyectil.reposiciona((objBarra.getX() + objBarra.getAncho() / 2\n - (objProyectil.getAncho() / 2)), (objBarra.getY()\n - objProyectil.getAlto()));\n // Se reincia la velocidad del proyectil\n objProyectil.setVelocidad(5);\n // Se reposiciona la barra\n objBarra.reposiciona(((getWidth() / 2) \n - (objProyectil.getAncho() / 2)), (getHeight() \n - objBarra.getAlto()));\n // se limpia la lista de bloques\n lnkBloques.clear();\n // se vuelve a llenar y se acomoda\n try {\n acomodaBloques();\n } catch (IOException ioeError) {\n System.out.println(\"Hubo un error al cargar el juego: \"\n + ioeError.toString());\n }\n }\n \n if (!bPerdio) {\n iVidas = 3; // se reinicia la cantidad de vidas\n iScore = 0; // se reincia el score\n }*/\n }", "@Override\n public void setExperiencia(){\n experiencia1=Math.random()*50*nivel;\n experiencia=experiencia+experiencia1;\n subida();\n }", "public void agregarAlFinal(String valor){\r\n // Define un nuevo nodo.\r\n Nodo nuevo = new Nodo();\r\n // Agrega al valor al nodo.\r\n nuevo.setValor(valor);\r\n // Consulta si la lista esta vacia.\r\n if (esVacia()) {\r\n // Inicializa la lista agregando como inicio al nuevo nodo.\r\n inicio = nuevo;\r\n // Caso contrario recorre la lista hasta llegar al ultimo nodo\r\n //y agrega el nuevo.\r\n } else{\r\n // Crea ua copia de la lista.\r\n Nodo aux = inicio;\r\n // Recorre la lista hasta llegar al ultimo nodo.\r\n while(aux.getSiguiente() != null){\r\n aux = aux.getSiguiente();\r\n }\r\n // Agrega el nuevo nodo al final de la lista.\r\n aux.setSiguiente(nuevo);\r\n }\r\n // Incrementa el contador de tamaño de la lista\r\n tamanio++;\r\n }" ]
[ "0.6677193", "0.66073436", "0.64385957", "0.6264459", "0.62625176", "0.6187873", "0.60663694", "0.6031656", "0.59878916", "0.59794897", "0.5917181", "0.58622575", "0.58303934", "0.5752023", "0.5745242", "0.57207817", "0.5681974", "0.56581503", "0.5617675", "0.55634993", "0.5506862", "0.5385504", "0.53508675", "0.5337391", "0.53354484", "0.5316135", "0.5313474", "0.5274978", "0.52747643", "0.5267335", "0.52626854", "0.52604526", "0.5258324", "0.5257469", "0.52418065", "0.52132523", "0.52038574", "0.5196449", "0.5193978", "0.5191773", "0.5185301", "0.51839906", "0.5183383", "0.51786846", "0.51657265", "0.51612484", "0.5146606", "0.5137761", "0.5137761", "0.5136847", "0.51242924", "0.51152444", "0.5115065", "0.5113362", "0.5096793", "0.5089143", "0.50849515", "0.50818837", "0.50813055", "0.5078775", "0.50771946", "0.50510174", "0.5047365", "0.5045059", "0.503589", "0.5034771", "0.5034155", "0.50305146", "0.50286764", "0.5012598", "0.5010283", "0.4996834", "0.4987252", "0.49856332", "0.49757472", "0.49706474", "0.49697876", "0.4964435", "0.4961395", "0.49598312", "0.49581265", "0.49559134", "0.4955699", "0.4953807", "0.49523804", "0.49447623", "0.49360254", "0.49350965", "0.49348727", "0.49335164", "0.49195376", "0.49189082", "0.49172282", "0.49134746", "0.49077168", "0.49046767", "0.48990238", "0.48989418", "0.48946673", "0.48945737" ]
0.6002584
8
tuve muchos problemas con los metodos y el polimorfismo con respecto a las clasespadres
public ArbolGeneralDNS(NodoGeneral raiz) { super(raiz); // TODO Auto-generated constructor stub }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void adicionarLetrasErradas() {\n }", "private void mueveObjetos()\n {\n // Mueve las naves Ufo\n for (Ufo ufo : ufos) {\n ufo.moverUfo();\n }\n \n // Cambia el movimiento de los Ufos\n if (cambiaUfos) {\n for (Ufo ufo : ufos) {\n ufo.cambiaMoverUfo();\n }\n cambiaUfos = false;\n }\n\n // Mueve los disparos y los elimina los disparos de la nave Guardian\n if (disparoGuardian.getVisible()) {\n disparoGuardian.moverArriba();\n if (disparoGuardian.getPosicionY() <= 0) {\n disparoGuardian.setVisible(false);\n }\n }\n\n // Dispara, mueve y elimina los disparos de las naves Ufo\n disparaUfo();\n if (disparoUfo.getVisible()) {\n disparoUfo.moverAbajo();\n if (disparoUfo.getPosicionY() >= altoVentana) {\n disparoUfo.setVisible(false);\n }\n }\n\n // Mueve la nave Guardian hacia la izquierda\n if (moverIzquierda) {\n guardian.moverIzquierda();\n }\n // Mueve la nave Guardian hacia la derecha\n if (moverDerecha) {\n guardian.moverDerecha();\n }\n // Hace que la nave Guardian dispare\n if (disparar) {\n disparaGuardian();\n }\n }", "public static void main(String[] args) {\n\n\t\tMulta_Trafico mt1 = new Multa_Trafico(20, \"B\");\n\t\tmt1.setResponsable(\"Paco\");\n\t\tmt1.setDescripcion(\"Exceso de velocidad\");\n\t\tmt1.setMatricula(\"MK\");\n\t\tmt1.setFecha(\"Viernes\");\n\t\tmt1.verdatos();\n\n\t\tMulta_Covid mc2 = new Multa_Covid(10, \"C\");\n\t\tmc2.setResponsable(\"Pepa\");\n\t\tmc2.setDescripcion(\"No llevaba mascarilla\");\n\t\tmc2.setMascarilla(false);\n\t\tmc2.setFecha(\"Jueves\");\n\t\tmc2.verdatos();\n\n\t\t// Para saber de qué tipo es una clase, objeto, etc... con instanceof\n\t\t// Método saberTipo\n\n\t\tExpediente expe1 = new Expediente(10, \"A\");\n\t\tSystem.out.println(saberTipo(expe1));\n\t\tSystem.out.println(saberTipo(mt1));\n\t\tSystem.out.println(saberTipo(mc2));\n\n\t\tMulta m3 = new Multa(10, \"A\"); // variables del metodo ImporteMayor\n\t\tMulta m4 = new Multa(10, \"B\");\n\t\tm3.setDescripcion(\"Multa\");\n\t\tm3.setResponsable(\"Alberto\");\n\t\tm3.setImporte(200);\n\t\tm4.setImporte(2000);\n\n\t\tSystem.out.println(ImporteMayor(m3, m4));\n\t\tSystem.out.println(conocerTipo(m3));\n\t\tSystem.out.println(m3);\n\n\t\t// array de 50 posiciones para el método MultaMayor\n\n\t\tMulta multas[] = new Multa[50];\n\n\t\tfor (int i = 0; i < multas.length; i++) { // Relleno con descripción e importe\n\t\t\tmultas[i] = new Multa(i, \"A\");\n\t\t\tmultas[i].setDescripcion(\"Descripción\" + i);\n\t\t\tmultas[i].setImporte(Math.random() * 1000 + 25);\n\t\t}\n\t\tSystem.out.println(CalcularMayor(multas));\n\n\t}", "public void ingresaVehiculo (){\r\n \r\n Vehicle skate = new Skateboard(\"vanz\", \"2009\", \"1 metro\");\r\n Vehicle carro = new Car(\"renault\", \"2009\", \"disel\",\"corriente\" );\r\n Vehicle jet = new Jet(\"jet\", \"2019\", \"premiun\", \"ocho motores\");\r\n Vehicle cicla = new Bicycle(\"shimano\", \"2010\",\"4 tiempos\" ) ; \r\n Vehuculo.add(skate);\r\n Vehuculo.add(carro);\r\n Vehuculo.add(jet);\r\n Vehuculo.add(cicla); \r\n \r\n /*\r\n for en el cual se hace el parceo y se instancia la clase Skateboard\r\n \r\n */\r\n for (Vehicle Vehuculo1 : Vehuculo) {\r\n if(Vehuculo1 instanceof Skateboard){\r\n Skateboard skatevehiculo = (Skateboard)Vehuculo1;\r\n skatevehiculo.imprimirPadre();\r\n skatevehiculo.imprimirSkate();\r\n skatevehiculo.imprimirInterfaz();\r\n }\r\n /*\r\n se intancia y se hace el parceo de la clase car\r\n \r\n */\r\n else if(Vehuculo1 instanceof Car){\r\n \r\n Car carvhiculo = (Car)Vehuculo1;\r\n carvhiculo.imprimirPadre();\r\n carvhiculo.imprimirCarro();\r\n carvhiculo.imprimirVehiculopotenciado();\r\n \r\n \r\n \r\n }\r\n /*se intancia y se hace el parceo de la clase\r\n \r\n */\r\n else if(Vehuculo1 instanceof Jet){\r\n \r\n Jet jethiculo = (Jet)Vehuculo1;\r\n jethiculo.imprimirPadre();\r\n jethiculo.imprimirJet();\r\n jethiculo.imprimirVehiculopotenciado();\r\n jethiculo.imprimirInterfaz();\r\n }\r\n else if(Vehuculo1 instanceof Bicycle){\r\n \r\n Bicycle ciclavehiculo = (Bicycle)Vehuculo1;\r\n ciclavehiculo.imprimirPadre();\r\n ciclavehiculo.imprimirBici();\r\n }\r\n }\r\n \r\n \r\n }", "public PresuTipoProyectoLogic()throws SQLException,Exception {\r\n\t\tsuper();\r\n\t\t\r\n\t\ttry\t{\t\t\t\t\t\t\r\n\t\t\tthis.presutipoproyectoDataAccess = new PresuTipoProyectoDataAccess();\r\n\t\t\t\r\n\t\t\tthis.presutipoproyectos= new ArrayList<PresuTipoProyecto>();\r\n\t\t\tthis.presutipoproyecto= new PresuTipoProyecto();\r\n\t\t\t\r\n\t\t\tthis.presutipoproyectoObject=new Object();\r\n\t\t\tthis.presutipoproyectosObject=new ArrayList<Object>();\r\n\t\t\t\t\r\n\t\t\t/*\r\n\t\t\tthis.connexion=new Connexion();\r\n\t\t\tthis.datosCliente=new DatosCliente();\r\n\t\t\tthis.arrDatoGeneral= new ArrayList<DatoGeneral>();\r\n\t\t\t\r\n\t\t\t//INICIALIZA PARAMETROS CONEXION\r\n\t\t\tthis.connexionType=Constantes.CONNEXIONTYPE;\r\n\t\t\tthis.parameterDbType=Constantes.PARAMETERDBTYPE;\r\n\t\t\t\r\n\t\t\tif(Constantes.CONNEXIONTYPE.equals(ConnexionType.HIBERNATE)) {\r\n\t\t\t\tthis.entityManagerFactory=ConstantesCommon.JPAENTITYMANAGERFACTORY;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.datosDeep=new DatosDeep();\r\n\t\t\tthis.isConDeep=false;\r\n\t\t\t*/\r\n\t\t\t\r\n\t\t\tthis.presutipoproyectoDataAccess.setConnexionType(this.connexionType);\r\n\t\t\tthis.presutipoproyectoDataAccess.setParameterDbType(this.parameterDbType);\r\n\t\t\t\r\n\t\t\t\r\n\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tthis.invalidValues=new InvalidValue[0];\r\n\t\t\tthis.stringBuilder=new StringBuilder();\r\n\t\t\tthis.conMostrarMensajesStringBuilder=true;\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t \r\n }", "public static void main(String[] args) {\n Perro perro = new Perro(1, \"Juanito\", \"Frespuder\", 'M');\n Gato gato = new Gato(2, \"Catya\", \"Egipcio\", 'F', true);\n Tortuga paquita = new Tortuga(3, \"Pquita\", \"Terracota\", 'F', 12345857);\n\n SetJuego equipo = new SetJuego(4, \"Gato equipo\", 199900, \"Variado\", \"16*16*60\", 15, \"Gatos\");\n PelotaMorder pelotita = new PelotaMorder(1, \"bola loca\", 15000, \"Azul\", \"60 diam\");\n\n System.out.println(perro.toString());//ToString original de \"mascotas\"\n System.out.println(gato.toString());//ToString sobrescrito\n System.out.println(paquita.toString());\n\n System.out.println(equipo);//ToString sobrescrito (tambien se ejecuta sin especificarlo)\n System.out.println(pelotita.toString());//Original de \"Juguetes\"\n\n //metodos clase mascota\n perro.darCredito();//aplicado de la interface darcredito\n paquita.darDeAlta(\"Terracota\",\"Paquita\");\n equipo.devolucion(4,\"Gato Equipo\");\n\n //vamos a crear un arraylist\n ArrayList<String> servicios = new ArrayList<String>();\n servicios.add(\"Inyectologia\");\n servicios.add(\"Peluqueria\");\n servicios.add(\"Baño\");\n servicios.add(\"Desparacitacion\");\n servicios.add(\"Castracion\");\n\n System.out.println(\"Lista de servicios: \" + servicios + \", con un total de \" + servicios.size());\n\n servicios.remove(3);//removemos el indice 3 \"Desparacitacion\"\n\n System.out.println(\"Se ha removido un servicio..................\");\n System.out.println(\"Lista de servicios: \" + servicios + \", con un total de \" + servicios.size());\n\n\n //creamos un vector\n Vector<String> promociones = new Vector<String>();\n\n promociones.addElement(\"Dia perruno\");\n promociones.addElement(\"Gatutodo\");\n promociones.addElement(\"10% Descuento disfraz de perro\");\n promociones.addElement(\"Jornada de vacunacion\");\n promociones.addElement(\"Serpiente-Promo\");\n\n System.out.println(\"Lista de promos: \" + promociones);\n System.out.println(\"Total de promos: \" + promociones.size());\n\n promociones.remove(4);//removemos 4 \"Serpiente-Promo\"\n System.out.println(\"Se ha removido una promocion..................\");\n\n System.out.println(\"Lista de promos: \" + promociones);\n System.out.println(\"Total de promos: \" + promociones.size());\n\n String[] dias_Semana = {\"Lunes\",\"Martes\",\"Miercoles\",\"Jueves\",\"Viernes\", \"Sabado\",\"Domingo\"};\n\n try{\n System.out.println(\"Elemento 6 de servicios: \" + dias_Semana[8]);\n } catch (ArrayIndexOutOfBoundsException e){\n System.out.println(\"Ey te pasaste del indice, solo hay 5 elementos\");\n } catch (Exception e){\n System.out.println(\"Algo paso, el problema es que no se que...\");\n System.out.println(\"La siguiente linea ayudara a ver el error\");\n e.printStackTrace();//solo para desarrolladores\n }finally {\n System.out.println(\"------------------------El curso termino! Pero sigue el de Intro a Android!!!!--------------------------\");\n }\n\n }", "public Controlador() {\n\t\t// m\n\t\tdatosPrueba1 = new ListaEnlazada();\n\t\t// m\n\t\tdatosPrueba2 = new ListaEnlazada();\n\t\t// add\n\t\tdatosPrueba3 = new ListaEnlazada();\n\t\tdatosPrueba4 = new ListaEnlazada();\n\t\tprueba1 = new Estadisticas(datosPrueba1);\n\t\tprueba2 = new Estadisticas(datosPrueba2);\n\t\tprueba3 = new Estadisticas(datosPrueba3);\n\t\tprueba4 = new Estadisticas(datosPrueba4);\n\t\t// finAdd\n\t}", "@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 ganarDineroPorAutomoviles() {\n for (Persona p : super.getMundo().getListaDoctores()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaAlbaniles()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaHerreros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n }", "private void creaModuloMem() {\n /* variabili e costanti locali di lavoro */\n ArrayList<Campo> campi = new ArrayList<Campo>();\n ModuloRisultati modulo;\n Campo campo;\n\n try { // prova ad eseguire il codice\n\n campo = CampoFactory.intero(Campi.Ris.codicePiatto.getNome());\n campi.add(campo);\n\n campo = CampoFactory.testo(Campi.Ris.nomePiatto.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"piatto\");\n campo.setToolTipLista(\"nome del piatto\");\n campo.decora()\n .etichetta(\"nome del piatto\"); // le etichette servono per il dialogo ricerca\n campo.setLarghezza(250);\n campi.add(campo);\n\n campo = CampoFactory.testo(Campi.Ris.categoria.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"categoria\");\n campo.setToolTipLista(\"categoria del piatto\");\n campo.setLarghezza(80);\n campi.add(campo);\n\n campo = CampoFactory.intero(Campi.Ris.quanteVolte.getNome());\n campo.setVisibileVistaDefault();\n campo.setLarghezza(80);\n campo.setTitoloColonna(\"quante volte\");\n campo.setToolTipLista(\n \"quante volte questo piatto è stato offerto nel periodo analizzato\");\n campo.decora().etichetta(\"quante volte\");\n campi.add(campo);\n\n campo = CampoFactory.intero(Campi.Ris.quantiCoperti.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"coperti\");\n campo.setToolTipLista(\"numero di coperti che avrebbero potuto ordinare\");\n campo.decora().etichetta(\"n. coperti\");\n campo.setLarghezza(80);\n campi.add(campo);\n\n campo = CampoFactory.intero(Campi.Ris.quanteComande.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"comande\");\n campo.setToolTipLista(\"numero di comande effettive\");\n campo.decora().etichetta(\"n. comande\");\n campo.setLarghezza(80);\n campo.setTotalizzabile(true);\n campi.add(campo);\n\n campo = CampoFactory.percentuale(Campi.Ris.gradimento.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"gradimento\");\n campo.setToolTipLista(\n \"percentuale di gradimento (è il 100% se tutti i coperti potenziali lo hanno ordinato)\");\n campo.decora().etichetta(\"% gradimento\");\n campo.setLarghezza(80);\n campi.add(campo);\n\n modulo = new ModuloRisultati(campi);\n setModuloRisultati(modulo);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n }", "private void muestraViolaciones(\n final Set<ConstraintViolation<?>> violaciones) {\n getModeloForm().ifPresent(new Consumer<MF>() {\n @Override\n public void accept(final MF mf) {\n mf.setError(\"Hay errores en los datos capturados.\");\n StreamSupport.stream(violaciones).forEach(\n new Consumer<ConstraintViolation<?>>() {\n @Override\n public void accept(ConstraintViolation<?> violacion) {\n final String propiedad = violacion.getPropertyPath().toString();\n final String mensaje = violacion.getMessage();\n if (isNullOrEmpty(propiedad)) {\n mf.setError(mensaje);\n } else {\n muestraError(propiedad, mensaje);\n }\n }\n });\n }\n });\n }", "public static void main(String[] args) {\n\t\t\r\n\tString nombre = leerTexto(\"Ingrese un nombre:\");\r\n\tint edad = leerNumero(\"Ingrese su edad:\");\r\n\tString rut = leerTexto(\"Ingresa el RUT:\");\r\n\tchar genero = leerTexto(\"Ingresa el genero: (M/F/O)\").charAt(0);\r\n\tfloat peso = leerNumero(\"Ingrese peso:\");\r\n\tfloat altura = leerNumero(\"Ingrese la altura:\");\r\n\tPersona claudia = new Persona(nombre, rut, edad, genero, peso, altura);\r\n\t\r\n\tnombre = leerTexto(\"Ingrese un nombre:\");\r\n\tedad = leerNumero(\"Ingrese su edad:\");\r\n\trut = leerTexto(\"Ingresa el RUT:\");\r\n\tgenero = leerTexto(\"Ingresa el genero: (M/F/O)\").charAt(0);\r\n\tPersona juliano = new Persona(nombre, rut, edad, genero);\r\n\t\r\n\tPersona noelia = new Persona();\r\n\tnoelia.setNombre(leerTexto(\"Ingresa un nombre\"));\r\n\tnoelia.setEdad(leerNumero(\"Ingresa la edad\"));\r\n\tnoelia.setRut(leerTexto(\"Ingresa el RUT\"));\r\n\tnoelia.setGenero(leerTexto(\"Ingresa el genero\").charAt(0));\r\n\tnoelia.setAltura(leerNumero(\"Ingresa la altura\"));\r\n\tnoelia.setPeso(leerNumero(\"Ingresa el peso\"));\r\n\t\r\n\tPersona[] perso = new Persona[3];\r\n\tperso[0] = claudia;\r\n\tperso[1] = juliano;\r\n\tperso[2] = noelia;\r\n\t\r\n\tfor (Persona persona : perso) {\r\n\t\tif (persona.calcularIMC()==Persona.PESO_BAJO) {\r\n\t\t\tescribir(\"Pongale sus buenas cazuelas\");\r\n\t\t}else {\r\n\t\t\tif (persona.calcularIMC()==Persona.PESO_IDEAL) {\r\n\t\t\t\tescribir(\"Estamos tiki taka\");\r\n\t\t\t}else {\r\n\t\t\t\tescribir(\"Menos coffe break!\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Mayor de edad\r\n\t\tescribir(\"La persona \" + persona.getNombre() + \" es mayor de edad? \" + persona.esMayorDeEdad());\r\n\t\t//Mostrar el toString()\r\n\t\tescribir(persona.toString());\r\n\t }\r\n\t}", "private void obtainProblem(){\n followers = frame.getFollowers();\n followers = Math.min(followers, CreatureFactory.getStrongestMonster().getFollowers() * Formation.MAX_MEMBERS);\n maxCreatures = frame.getMaxCreatures();\n heroes = frame.getHeroes();//is this field needed?\n prioritizedHeroes = frame.getHeroes(Priority.ALWAYS);\n //create boss formation\n LinkedList<Creature> list = new LinkedList<>();\n list.add(frame.getBoss());\n bossFormation = new Formation(list);\n containsRandomBoss = bossFormation.containsRandomHeroes();\n yourRunes = frame.getYourRunes();\n for (int i = 0; i < Formation.MAX_MEMBERS; i++){\n //System.out.println(yourRunes[i]);\n if (!(yourRunes[i] instanceof Nothing)){\n hasRunes = true;\n //System.out.println(\"hasRunes\");\n break;\n }\n }\n \n NHWBEasy = heroes.length == 0 && prioritizedHeroes.length == 0 && frame.getBoss().getMainSkill().WBNHEasy() && !hasRunes && !containsRandomBoss;\n \n }", "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 }", "private void Mueve() {\n\t\tpaleta1.Mueve_paletas();\n\t\tpaleta2.Mueve_paletas();\n\t\tpelota.Mueve_pelota();\n\t}", "public static void main(String[] args) {\n\n aluno exemplo1 = new aluno();//objeto do tipo aluno\n aluno exemplo2 = new aluno();\n exemplo1.nome = \"EPAMINONDAS\";\n exemplo1.matricula = \"MAT-1\";\n exemplo1.nota = 5;\n exemplo1.anoNacimento = 2005;\n\n\n exemplo2.nome = \"MARIA\";\n exemplo2.matricula = \"MAT-2\";\n exemplo2.nota = 10;\n exemplo2.anoNacimento = 2000;\n\n\n System.out.println(\"Nome: \"+exemplo1.nome + \" matricula: \" + exemplo1.matricula + \" nota: \" + exemplo1.nota);\n System.out.println(\"Nome: \"+exemplo2.nome + \" matricula: \" + exemplo2.matricula + \" nota: \" + exemplo2.nota);\n\n exemplo1.mostraIdade(2030);//metodos\n exemplo2.mostraIdade(2021);\n exemplo2.mostraIdade(2003, 2021);\n }", "public static void main(String[] args) {\n\n\n\t\tString nombre[]={\"juan\",\"Rafa\",\"Raul\",\"Jesus\",\"Diegotriste\",\"Lucholose\",\"lolo\"};\n\t\tString estudio[]={\"mates\",\"fisica\",\"deportes\",\"lenguaje\",\"biologia\",\"filosofia\"};\n\t\tint numeroMaq=0;\n\t\tint numEmp=0;\n\t\tint numAdmin=0;\n\t\tint numMaq=0;\n\t\tRandom aleatorio = new Random();\n\t\tEmpleado[] empleados =null;\n\t\tMaquinista[] maquinistas =null;\n\t\tAdministrativo[] administrativos = null;\n\n\t\tnumEmp=Metodos.pedirentero(\"cuantos empleados queres introducir\");\n\n\t\templeados = new Empleado[numEmp];\n\t\tfor (int i = 0; i < empleados.length; i++) {\n\t\t\templeados[i]=new Empleado(nombre[aleatorio.nextInt(nombre.length)],aleatorio.nextInt(31)+20);\n\n\t\t}\n\n\t\tfor (int i = 0; i < empleados.length; i++) {\n\t\t\tSystem.out.println( \"Empleado numero \" + (i+1) +empleados[i]);\n\n\n\t\t}\n\n\t\tnumMaq=Metodos.pedirentero(\"cuantos maquinistas queres introducir\");\n\t\tmaquinistas= new Maquinista[numMaq];\n\t\tfor (int i = 0; i < maquinistas.length; i++) {\n\t\t\tmaquinistas[i]=new Maquinista( nombre[aleatorio.nextInt(nombre.length)], aleatorio.nextInt(31)+20,aleatorio.nextInt(31)+20,aleatorio.nextInt(31)+20);\n\n\n\t\t}\n\t\tfor (int i = 0; i < maquinistas.length; i++) {\n\t\t\tSystem.out.println(\"maquinista numero \" + (i+1) + maquinistas[i]);\n\n\t\t}\n\t\tnumAdmin=Metodos.pedirentero(\"cuantos administrativos hay en la empresa\");\n\t\tadministrativos=new Administrativo[numAdmin];\n\n\t\tfor (int i = 0; i < administrativos.length; i++) {\n\t\t\tadministrativos[i]=new Administrativo(nombre[aleatorio.nextInt(nombre.length)], aleatorio.nextInt(31)+20,estudio[aleatorio.nextInt(nombre.length)],aleatorio.nextInt(31)+20);\n\n\t\t}\n\n\t\tfor (int i = 0; i < administrativos.length; i++) {\n\t\t\tSystem.out.println(\"administrativo numero \" +(i+1)+administrativos[i] );\n\n\t\t}\n\t\tSystem.out.println(\"\\n\\n\");\n\n\t\tvisualizar(empleados, maquinistas, administrativos);\n\n\t\tvisualizarMediaEdad(empleados, maquinistas, administrativos);\n\t\n\t\t\n\t\t\n\t\t\n\n\t}", "public static void main(String[] args) {\n\t\tScanner lectorInt = new Scanner(System.in);\n\t\tScanner lectorString = new Scanner(System.in);\n\t\tSystem.out.println(\"Ingrese información de pasajero\");\n\t\tSystem.out.println(\"Ingrese nombre: \");\n\t\tString nombre = lectorString.nextLine();\n\t\tSystem.out.println(\"Ingrese apellido: \");\n\t\tString apellido = lectorString.nextLine();\n\t\tSystem.out.println(\"Ingrese edad: \");\n\t\tint edad = lectorInt.nextInt();\n\t\tSystem.out.println(\"Que tipo de pasajero es: 1:Pasajero Vip 2:Pasajero Económico \");\n\t\tint opcion = lectorInt.nextInt();\n\t\tString membresia = \"\";\n\t\tString descuento = \"\";\n\t\tif (opcion == 1) {\n\t\t\tSystem.out.println(\"Ingrese Código de Membresía\");\n\t\t\tmembresia = lectorString.nextLine();\n\n\t\t} else {\n\t\t\tSystem.out.println(\"Ingrese Código de Descuento\");\n\t\t\tdescuento = lectorString.nextLine();\n\t\t}\n\n\t\tPasajeroVip pasajero1 = new PasajeroVip();\n\t\tpasajero1.setNombre(nombre);\n\t\tpasajero1.setApellido(apellido);\n\t\tpasajero1.setCodigoMembresia(membresia);\n\t\tpasajero1.setEdad(edad);\n\n\t\tPasajeroVip pasajero2 = new PasajeroVip(\"Juan\", \"Tandre\", \"as2345\", 23);\n\n\t\tPasajeroEconomico pasajeroEconomico1 = new PasajeroEconomico();\n\t\tpasajeroEconomico1.setNombre(\"Helena\");\n\t\tpasajeroEconomico1.setApellido(\"Frias\");\n\t\tpasajeroEconomico1.setCodigoDescuento(\"1234df\");\n\t\tpasajeroEconomico1.setEdad(25);\n\n\t\tPasajero[][] asientos = new Pasajero[4][5];\n\t\tasientos[0][0] = pasajero1;\n\t\tasientos[0][1] = pasajero2;\n\t\tasientos[0][2] = pasajero1;\n\t\tasientos[0][3] = pasajeroEconomico1;\n\t\tasientos[1][0] = pasajero1;\n\t\tasientos[1][1] = pasajeroEconomico1;\n\n\t\tint opcionSalir = 0;\n\t\tdo {\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"Ingrese datos del asiento, 0:continuar, -1:SALIR\");\n\t\t\topcionSalir = lectorInt.nextInt();\n\t\t\tif (opcionSalir == 0) {\n\t\t\t\tSystem.out.print(\"Ingrese fila del asiento: \");\n\t\t\t\tint fila = lectorInt.nextInt();\n\t\t\t\tSystem.out.print(\"Ingrese columna del asiento: \");\n\t\t\t\tint columna = lectorInt.nextInt();\n\t\t\t\tSystem.out.println(\"Los datos del pasajero son: \");\n\t\t\t\tSystem.out.println(asientos[fila][columna]);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Va ha salir del sistema\");\n\t\t\t}\n\t\t} while (opcionSalir != -1);\n\n\t}", "public void hallarPerimetroIsosceles() {\r\n this.perimetro = 2*(this.ladoA+this.ladoB);\r\n }", "private void compruebaColisiones()\n {\n // Comprobamos las colisiones con los Ufo\n for (Ufo ufo : ufos) {\n // Las naves Ufo chocan con la nave Guardian\n if (ufo.colisionaCon(guardian) && ufo.getVisible()) {\n mensajeDialogo(0);\n juego = false;\n }\n // Las naves Ufo llegan abajo de la pantalla\n if ((ufo.getPosicionY() - ufo.getAlto() > altoVentana)) {\n mensajeDialogo(0);\n juego = false;\n }\n // El disparo de la nave Guardian mata a una nave Ufo\n if (ufo.colisionaCon(disparoGuardian) && ufo.getVisible()) {\n ufo.setVisible(false);\n disparoGuardian.setVisible(false);\n disparoGuardian.setPosicion(0, 0);\n ufosMuertos++;\n }\n }\n\n // El disparo de las naves Ufo mata a la nave Guardian\n if (guardian.colisionaCon(disparoUfo)) {\n disparoUfo.setVisible(false);\n mensajeDialogo(0);\n juego = false;\n }\n\n // Si el disparo Guardian colisiona con el disparo de los Ufo, se\n // eliminan ambos\n if (disparoGuardian.colisionaCon(disparoUfo)) {\n disparoGuardian.setVisible(false);\n disparoGuardian.setPosicion(0, 0);\n disparoUfo.setVisible(false);\n }\n }", "public void RealizarDiagnostico() {\n\t\tSystem.out.println(\"realizar dicho diagnostico con los sintomas presentados por el paciente\");\r\n\t}", "public void chequearDeclaraciones() throws Exception{\n\t\tfor (EntradaVarInst v: entradaVar.values()) {\r\n\t\t\t\t//si es de tipo idClase,\r\n\t\t\t\tif (noTipoPrimitivo(v.getTipo().getTipo())) {\r\n\t\t\t\t\t\t//ahora si veo si esa clase esta declarada\r\n\t\t\t\t\t\t// si no es asi -> error\r\n\t\t\t\t\t\tif (Analizador_Sintactico.TS.esClaseDeclarada(v.getTipo().getTipo())==null)\r\n\t\t\t\t\t\t\tthrow new claseNoDeclarada(v.getTipo().getTipo(), v.getToken().getNroLinea(), v.getToken().getNroColumna());\r\n\t\t\t\t}\t\r\n\t\t}//fin for\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//Chequeo cada Ctor de mi clase\r\n\t\tfor (EntradaCtor c: entradaCtor.values()) {\t\r\n\t\t\t//chequeo parametros del Ctor...\r\n\t\t\t//para cada parametro de mi metodo\r\n\t\t\tfor (EntradaPar p: c.getEntradaParametros()) {\r\n\t\t\t\t//si es de tipo idClase, chequeo que ese idClase exista\r\n\t\t\t\tif (noTipoPrimitivo(p.getTipo().getTipo())) {\r\n\t\t\t\t\t\t// si no es asi -> error\r\n\t\t\t\t\t\tif (Analizador_Sintactico.TS.esClaseDeclarada(p.getTipo().getTipo())==null)\r\n\t\t\t\t\t\t\tthrow new claseNoDeclarada(p.getTipo().getTipo(), p.getToken().getNroLinea(), p.getToken().getNroColumna());\r\n\t\t\t\t}\r\n\t\t\t}//fin for\r\n\t\t}//fin for\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//Chequeo metodos de mi clase:\r\n\t\t//para cada metodo de mi clase\r\n\t\tfor (EntradaMetodo m: entradaMetodo.values()) {\r\n\t\t\t\r\n\t\t\t// si no es un tipo de dato primitivo, chequeo que esa clase/tipo de dato exista\r\n\t\t\tif (noTipoPrimitivo(m.getTipoRetorno().getTipo())) {\r\n\t\t\t\t\t//si no es clase declarada -> error\r\n\t\t\t\t\tif (Analizador_Sintactico.TS.esClaseDeclarada(m.getTipoRetorno().getTipo())==null)\r\n\t\t\t\t\t\tthrow new claseNoDeclarada(m.getTipoRetorno().getTipo(), m.getToken().getNroLinea(), m.getToken().getNroColumna());\t\t\r\n\t\t\t}//fin if\r\n\t\t\t\r\n\t\t\t//para cada parametro de mi metodo\r\n\t\t\tfor (EntradaPar p: m.getEntradaParametros()) {\r\n\t\t\t\t\t//si es de tipo idClase, chequeo que ese idClase exista\r\n\t\t\t\t\tif (noTipoPrimitivo(p.getTipo().getTipo())) {\r\n\t\t\t\t\t\tif (Analizador_Sintactico.TS.esClaseDeclarada(p.getTipo().getTipo())==null)\r\n\t\t\t\t\t\t\tthrow new claseNoDeclarada(p.getTipo().getTipo(), p.getToken().getNroLinea(), p.getToken().getNroColumna());\t\r\n\t\t\t\t\t}\r\n\t\t\t}//fin for p\r\n\t\t\t\r\n\t\t\tif (m.getModificador().equals(\"dynamic\"))\r\n\t\t\t\tmetodosDyn.add(m);\r\n\t\t\r\n\t\t}//fin for m\r\n\t\t\r\n\t\t\r\n\t}", "public void mostrarFatura() {\n\n int i;\n System.err.println(\"Fatura do contrato:\\n\");\n\n if (hospedesCadastrados.isEmpty()) {//caso nao existam hospedes\n System.err.println(\"Nao existe hospedes cadastrados\\n\");\n\n } else {\n System.err.println(\"Digite o cpf do hospede:\\n\");\n\n listarHospedes();\n int cpf = verifica();\n for (i = 0; i < hospedesCadastrados.size(); i++) {//roda os hospedes cadastrados\n if (hospedesCadastrados.get(i).getCpf() == cpf) {//pega o hospede pelo cpf\n if (hospedesCadastrados.get(i).getContrato().isSituacao()) {//caso a situacao do contrato ainda estaja ativa\n\n System.err.println(\"Nome do hospede:\" + hospedesCadastrados.get(i).getNome());\n System.err.println(\"CPF:\" + hospedesCadastrados.get(i).getCpf() + \"\\n\");\n System.err.println(\"Servicos pedidos:\\nCarros:\");\n if (!(hospedesCadastrados.get(i).getContrato().getCarrosCadastrados() == null)) {\n System.err.println(hospedesCadastrados.get(i).getContrato().getCarrosCadastrados().toString());\n System.err.println(\"Total do serviço de aluguel de carros R$:\" + hospedesCadastrados.get(i).getContrato().getContaFinalCarros() + \"\\n\");//;\n } else {\n System.err.println(\"\\nO hospede nao possui carros cadastrados!\\n\");\n }\n System.err.println(\"Quartos:\");\n if (!(hospedesCadastrados.get(i).getContrato().getQuartosCadastrados() == null)) {\n System.err.println(hospedesCadastrados.get(i).getContrato().getQuartosCadastrados().toString());\n System.err.println(\"Total do servico de quartos R$:\" + hospedesCadastrados.get(i).getContrato().getContaFinalQuartos() + \"\\n\");//;\n } else {\n System.err.println(\"\\nO hospede nao possui Quartos cadastrados!\\n\");\n }\n System.err.println(\"Restaurante:\");\n System.err.println(\"Total do servico de restaurante R$: \" + hospedesCadastrados.get(i).getContrato().getValorRestaurante() + \"\\n\");\n System.err.println(\"Total de horas de BabySitter contratatas:\" + hospedesCadastrados.get(i).getContrato().getHorasBaby() / 45 + \"\\n\"\n + \"Total do servico de BabySitter R$:\" + hospedesCadastrados.get(i).getContrato().getHorasBaby() + \"\\n\");\n System.err.println(\"Total Fatura final: R$\" + hospedesCadastrados.get(i).getContrato().getContaFinal());\n //para limpar as disponibilidades dos servicos\n //carros, quarto, contrato e hospede\n //é necessario remover o hospede?\n// \n\n } else {//caso o contrato esteja fechado\n System.err.println(\"O hospede encontra-se com o contrato fechado!\");\n }\n }\n\n }\n }\n }", "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 }", "@Test \r\n\t\r\n\tpublic void ataqueDeMagoSinMagia(){\r\n\t\tPersonaje perso=new Humano();\r\n\t\tEspecialidad mago=new Hechicero();\r\n\t\tperso.setCasta(mago);\r\n\t\tperso.bonificacionDeCasta();\r\n\t\t\r\n\t\tPersonaje enemigo=new Orco();\r\n\t\tEspecialidad guerrero=new Guerrero();\r\n\t\tenemigo.setCasta(guerrero);\r\n\t\tenemigo.bonificacionDeCasta();\r\n\t\t\r\n\t\tAssert.assertEquals(50,perso.getCasta().getMagia());\r\n\t\tAssert.assertEquals(7,perso.getFuerza());\r\n\t\tAssert.assertEquals(44,perso.getEnergia());\r\n\t\tAssert.assertEquals(17,perso.calcularPuntosDeAtaque());\r\n\t\t\r\n\t\t//ataque normal\r\n\t\tperso.atacar(enemigo);\r\n\t\t\r\n\t\tAssert.assertEquals(50,perso.getCasta().getMagia());\r\n\t\tAssert.assertEquals(7,perso.getFuerza());\r\n\t\tAssert.assertEquals(32,perso.getEnergia());\r\n\t\tAssert.assertEquals(17,perso.calcularPuntosDeAtaque());\r\n\t\t\r\n\t\t// utilizar hechizo\r\n\t\tperso.getCasta().getHechicero().agregarHechizo(\"Engorgio\", new Engorgio());\r\n\t\tperso.getCasta().getHechicero().hechizar(\"Engorgio\",enemigo);\r\n\t\t\r\n\t\tAssert.assertEquals(20,perso.getCasta().getMagia());\r\n\t\tAssert.assertEquals(7,perso.getFuerza());\r\n\t\tAssert.assertEquals(32,perso.getEnergia());\r\n\t\tAssert.assertEquals(17,perso.calcularPuntosDeAtaque());\r\n\t}", "private void setupEscenario3( )\n {\n String todasMarcadas, casillasSinMarca;\n String[] marcadas, noMarcadas;\n int casilla;\n // Prepara el tablero\n triqui = new Triqui( );\n\n // Primer jugador\n\n marcaJugador1 = \"X\";\n todasMarcadas = \"1,3,7,9\";\n marcadas = todasMarcadas.split( \",\" );\n casillasJugador1 = new ArrayList( );\n\n for( int i = 0; i < marcadas.length; i++ )\n {\n casilla = Integer.parseInt( marcadas[ i ] );\n triqui.marcarCasilla( casilla, marcaJugador1 );\n casillasJugador1.add( new Integer( casilla ) );\n }\n\n // Segundo jugador\n\n marcaJugador2 = \"O\";\n todasMarcadas = \"2,4,6,8\";\n marcadas = todasMarcadas.split( \",\" );\n casillasJugador2 = new ArrayList( );\n\n for( int i = 0; i < marcadas.length; i++ )\n {\n casilla = Integer.parseInt( marcadas[ i ] );\n triqui.marcarCasilla( casilla, marcaJugador2 );\n casillasJugador2.add( new Integer( casilla ) );\n }\n\n // Casillas sin marcar\n\n casillasSinMarca = \"5\";\n noMarcadas = casillasSinMarca.split( \",\" );\n casillasSinMarcar = new ArrayList( );\n\n for( int i = 0; i < noMarcadas.length; i++ )\n {\n casilla = Integer.parseInt( noMarcadas[ i ] );\n casillasSinMarcar.add( new Integer( casilla ) );\n }\n }", "private void setupEscenario2( )\n {\n String todasMarcadas, casillasSinMarca;\n String[] marcadas, noMarcadas;\n int casilla;\n // Prepara el tablero\n triqui = new Triqui( );\n\n // Primer jugador\n\n marcaJugador1 = \"X\";\n todasMarcadas = \"1,2,3,4\";\n marcadas = todasMarcadas.split( \",\" );\n casillasJugador1 = new ArrayList( );\n\n for( int i = 0; i < marcadas.length; i++ )\n {\n casilla = Integer.parseInt( marcadas[ i ] );\n triqui.marcarCasilla( casilla, marcaJugador1 );\n casillasJugador1.add( new Integer( casilla ) );\n }\n\n // Segundo jugador\n\n marcaJugador2 = \"O\";\n todasMarcadas = \"5,6,7,8\";\n marcadas = todasMarcadas.split( \",\" );\n casillasJugador2 = new ArrayList( );\n\n for( int i = 0; i < marcadas.length; i++ )\n {\n casilla = Integer.parseInt( marcadas[ i ] );\n triqui.marcarCasilla( casilla, marcaJugador2 );\n casillasJugador2.add( new Integer( casilla ) );\n }\n\n // Casillas sin marcar\n\n casillasSinMarca = \"9\";\n noMarcadas = casillasSinMarca.split( \",\" );\n casillasSinMarcar = new ArrayList( );\n\n for( int i = 0; i < noMarcadas.length; i++ )\n {\n casilla = Integer.parseInt( noMarcadas[ i ] );\n casillasSinMarcar.add( new Integer( casilla ) );\n }\n }", "private void addQuestion() {\n Question q = new Question(\n \"¿Quien propuso la prueba del camino básico ?\", \"Tom McCabe\", \"Tom Robert\", \"Tom Charlie\", \"Tom McCabe\");\n this.addQuestion(q);\n\n\n Question q1 = new Question(\"¿Qué es una prueba de Caja negra y que errores desean encontrar en las categorías?\", \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\", \"esta basada en la funcionalidad de los módulos del programa\", \" determina la funcionalidad del sistema\", \" determina la funcionalidad del sistema\");\n this.addQuestion(q1);\n Question q2 = new Question(\"¿Qué es la complejidad ciclomática es una métrica de calidad software?\", \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\", \"esta basada en la funcionalidad de los módulos del programa\", \"basada en el cálculo del número\", \"basada en el cálculo del número\");\n this.addQuestion(q2);\n //preguntas del quiz II\n Question q3=new Question(\"Las pruebas de caja blanca buscan revisar los caminos, condiciones, \" +\n \"particiones de control y datos, de las funciones o módulos del sistema; \" +\n \"para lo cual el grupo de diseño de pruebas debe:\",\n \"Conformar un grupo de personas para que use el sistema nuevo\",\n \"Ejecutar sistema nuevo con los datos usados en el sistema actual\",\n \"Generar registro de datos que ejecute al menos una vez cada instrucción\",\n \"Generar registro de datos que ejecute al menos una vez cada instrucción\");\n this.addQuestion(q3);\n Question q4=new Question(\"¿Las pruebas unitarias son llamadas?\",\n \"Pruebas del camino\", \"Pruebas modulares\",\n \"Pruebas de complejidad\", \"Pruebas modulares\");\n this.addQuestion(q4);\n Question q5=new Question(\"¿Qué es una prueba de camino básico?\",\n \"Hace una cobertura de declaraciones del código\",\n \"Permite determinar si un modulo esta listo\",\n \"Técnica de pueba de caja blanca\",\n \"Técnica de pueba de caja blanca\" );\n this.addQuestion(q5);\n Question q6=new Question(\"Prueba de camino es propuesta:\", \"Tom McCabe\", \"McCall \", \"Pressman\",\n \"Tom McCabe\");\n this.addQuestion(q6);\n Question q7=new Question(\"¿Qué es complejidad ciclomatica?\",\"Grafo de flujo\",\"Programming\",\n \"Metrica\",\"Metrica\");\n this.addQuestion(q7);\n //preguntas del quiz III\n Question q8 = new Question(\n \"¿Se le llama prueba de regresión?\", \"Se tienen que hacer nuevas pruebas donde se han probado antes\",\n \"Manten informes detallados de las pruebas\", \"Selección de los usuarios que van a realizar las pruebas\",\n \"Se tienen que hacer nuevas pruebas donde se han probado antes\");\n this.addQuestion(q8);\n Question q9 = new Question(\"¿Cómo se realizan las pruebas de regresión?\",\n \"Selección de los usuarios que van a realizar las pruebas\",\n \"Se tienen que hacer nuevas pruebas donde se han probado antes\", \"A través de herramientas de automatización de pruebas\", \"A través de herramientas de automatización de pruebas\");\n this.addQuestion(q9);\n Question q10 = new Question(\"¿Cuándo ya hay falta de tiempo para ejecutar casos de prueba ya ejecutadas se dejan?\",\n \"En primer plano\", \"En segundo plano\", \"En tercer plano\", \"En segundo plano\");\n this.addQuestion(q10);\n //preguntas del quiz IV\n Question q11 = new Question(\n \"¿En qué se enfocan las pruebas funcionales?\",\n \"Enfocarse en los requisitos funcionales\", \"Enfocarse en los requisitos no funcionales\",\n \"Verificar la apropiada aceptación de datos\", \"Enfocarse en los requisitos funcionales\");\n this.addQuestion(q11);\n Question q12 = new Question(\"Las metas de estas pruebas son:\", \"Verificar la apropiada aceptación de datos\",\n \"Verificar el procesamiento\", \"Verificar la apropiada aceptación de datos, procedimiento y recuperación\",\n \"Verificar la apropiada aceptación de datos, procedimiento y recuperación\");\n this.addQuestion(q12);\n Question q13 = new Question(\"¿En qué estan basadas este tipo de pruebas?\",\n \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\",\n \"Esta basada en la funcionalidad de los módulos del programa\",\n \"Técnicas de cajas negra\", \"Técnicas de cajas negra\");\n this.addQuestion(q13);\n //preguntas del quiz V\n Question q14 = new Question(\n \"¿Cúal es el objetivo de esta técnica?\", \"Identificar errores introducidos por la combinación de programas probados unitariamente\",\n \"Decide qué acciones tomar cuando se descubren problemas\",\n \"Verificar que las interfaces entre las componentes de software funcionan correctamente\",\n \"Identificar errores introducidos por la combinación de programas probados unitariamente\");\n this.addQuestion(q14);\n Question q15 = new Question(\"¿Cúal es la descripción de la Prueba?\",\n \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\",\n \"Esta basada en la funcionalidad de los módulos del programa\",\n \"Describe cómo verificar que las interfaces entre las componentes de software funcionan correctamente\",\n \"Describe cómo verificar que las interfaces entre las componentes de software funcionan correctamente\");\n this.addQuestion(q15);\n Question q16 = new Question(\"Por cada caso de prueba ejecutado:\",\n \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\",\n \"Esta basada en la funcionalidad de los módulos del programa\",\n \"Comparar el resultado esperado con el resultado obtenido\", \"Comparar el resultado esperado con el resultado obtenido\");\n this.addQuestion(q16);\n //preguntas del quiz VI\n Question q17 = new Question(\n \"Este tipo de pruebas sirven para garantizar que la calidad del código es realmente óptima:\",\n \"Pruebas Unitarias\", \"Pruebas de Calidad de Código\",\n \"Pruebas de Regresión\", \"Pruebas de Calidad de Código\");\n this.addQuestion(q17);\n Question q18 = new Question(\"Pruebas de Calidad de código sirven para: \",\n \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\",\n \"Verificar que las especificaciones de diseño sean alcanzadas\",\n \"Garantizar la probabilidad de tener errores o bugs en la codificación\", \"Garantizar la probabilidad de tener errores o bugs en la codificación\");\n this.addQuestion(q18);\n Question q19 = new Question(\"Este análisis nos indica el porcentaje que nuestro código desarrollado ha sido probado por las pruebas unitarias\",\n \"Cobertura\", \"Focalización\", \"Regresión\", \"Cobertura\");\n this.addQuestion(q19);\n\n Question q20 = new Question( \"¿Qué significa V(G)?\",\n \"Número de Regiones\", \"Número de Aristas\", \"Número de Nodos\", \"Número de Regiones\");\n this.addQuestion(q20);\n\n Question q21 = new Question( \"¿Qué significa A?\",\n \"Número de Regiones\", \"Número de Aristas\", \"Número de Nodos\", \"Número de Aristas\");\n this.addQuestion(q21);\n\n Question q22 = new Question( \"¿Qué significa N?\",\n \"Número de Regiones\", \"Número de Aristas\", \"Número de Nodos\", \"Número de Nodos\");\n this.addQuestion(q22);\n\n Question q23 = new Question( \"¿Qué significa P?\",\n \"Número de Regiones\", \"Número de Aristas\", \"Número de Nodos Predicado\", \"Número de Nodos Predicado\");\n this.addQuestion(q23);\n Question q24 = new Question( \"De cuantás formas se puede calcular la complejidad ciclomatica V(G):\",\n \"3\", \"1\", \"2\", \"3\");\n this.addQuestion(q24);\n\n // END\n }", "public void moverPlataformas(){\n\t\tfor ( int x=0 ; x < 2; x++){\n\t\t\tquitarPoder(x);\n\t\t\tgame.moverPersonaje(x);\n\t\t}\n\t}", "private static void pruebas() {\n\t\tResultadosDaoImpl resultadosDao = new ResultadosDaoImpl();\r\n\t\tPartidosDaoImpl partidosDao = new PartidosDaoImpl();\r\n\t\tEquiposDaoImpl equiposDao = new EquiposDaoImpl();\r\n\t\tJornadasDaoImpl jornadasDao = new JornadasDaoImpl();\r\n\t\tEstadisticasDaoImpl estadisticasDao = new EstadisticasDaoImpl();\r\n\t\t\r\n//\t\tLong goles = resultadosDao.getGolesTotalesCasa();\r\n\t\t\r\n\t\tEquipos equipoC = equiposDao.getEquipoById(7);\r\n\t\tEquipos equipoF = equiposDao.getEquipoById(6);\r\n\t\tJornadas jornada = jornadasDao.nextJornada();\r\n//\t\t\r\n//\t\tpartidosDao.getPartidosCasa(equipo,jornada);\r\n\t\t\r\n//\t\tLong goles = resultadosDao.getGolesFavorCasa(equipo);\r\n\t\t\r\n//\t\tLong goles = resultadosDao.getGolesContraFuera(equipo);\r\n//\t\tdouble phiVM = staticsC.getValorMercado() / (estadisticasDao.getValorMercadoMedio());\r\n\t\t\r\n\t\tEstadisticas staticsC = estadisticasDao.getStatics(equipoC);\r\n\t\tEstadisticas staticsF = estadisticasDao.getStatics(equipoF);\r\n\t\t\r\n\t\tDouble phiF = PlayMethods.analizeStaticsFuera(staticsF,staticsC,jornada);\r\n\t\tDouble phiC = PlayMethods.analizeStaticsCasa(staticsC,staticsF,jornada);\r\n\t\t\r\n\t\t\r\n\t}", "@Test (expected = MasDeDosLibros.class)\n\tpublic void testQueNoSePuedanPrestarMasDeDosLibrosALaMismaPersona() throws LibroInexistente, MasDeDosLibros, TipoEquivocado {\n\t\tLibro quimica = new Quimica (1, TipoDeLibro.MANUAL, \"Quimica I\", \"Marta D\", 200.0);\n\t\tLibro historia = new Historia (3, TipoDeLibro.REVISTA, \"Historia Argentina\", \"Damian P\", 350.0);\n\t\tLibro programacion = new Programacion (4, TipoDeLibro.MANUAL, \"Programacion Basica I\", \"Leonardo M\", 300.0);\n\t\tBiblioteca unlam = new Biblioteca(\"UNLAM\");\n\t\tPersona nahuel = new Persona(\"Nahuel\", \"Mazzeo\", 500.0);\n\t\t\n\t\tunlam.agregarLibro(quimica);\n\t\tunlam.agregarLibro(historia);\n\t\tunlam.agregarLibro(programacion);\n\t\tunlam.prestarLibro(nahuel, quimica);\n\t\tunlam.prestarLibro(nahuel, historia);\n\t\tunlam.prestarLibro(nahuel, programacion);\n\t\t\n\t\tassertEquals(3, nahuel.getLibrosEnPosesion().size());\n\t\tassertNull(unlam.getLibrosDisponibles().get(1));\n\t\tassertNull(unlam.getLibrosDisponibles().get(3));\n\t\tassertNull(unlam.getLibrosDisponibles().get(4));\n\t}", "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 static void main(String args[]){\n int x = 10;\r\n List<Perro> perros = new ArrayList();\r\n \r\n Perro perro=new Perro();\r\n \r\n Persona persona = new Persona();\r\n persona.setAltura(5.5);\r\n persona.setColorPiel(\"Blanca\");\r\n persona.setEdad(16);\r\n persona.setGenero('f');\r\n persona.setNacionalidad(\"Japonesa\");\r\n persona.setPeso(130);\r\n persona.setTipoDePelo(\"Lacio\"); \r\n persona.setOcupacion(\"Dinero\");\r\n \r\n //Se dan todas las características\r\n perro.setNombre(\"Manuel\");\r\n perro.setColor(\"Negro\");\r\n perro.setTamano(10.2);\r\n perro.setRaza(\"Golden\");\r\n perro.setTipoDePelo(\"Crespo\");\r\n perro.setAdoptado(false);\r\n perro.setGenero('H');\r\n \r\n perros.add(perro);//Se añade a la instancia\r\n \r\n perro = new Perro();//Se limpia y se vuelve a llamar la instancia\r\n perro.setNombre(\"Igor\");\r\n perro.setColor(\"Negro\");\r\n perro.setTamano(10.2);\r\n perro.setRaza(\"Golden\");\r\n perro.setTipoDePelo(\"Lacio\");\r\n perro.setAdoptado(false);\r\n perro.setGenero('H');\r\n \r\n perros.add(perro);\r\n \r\n perro = new Perro();\r\n perro.setNombre(\"Luli\");\r\n perro.setColor(\"Negro\");\r\n perro.setTamano(10.2);\r\n perro.setRaza(\"Siberiano\");\r\n perro.setTipoDePelo(\"Crespo\");\r\n perro.setAdoptado(false);\r\n perro.setGenero('H');\r\n \r\n perros.add(perro);\r\n //****************CUANDO EJECUTES ESTO VE COMENTADO LOS BLOQUES QUE NO QUIERES QUE SE USEN*************\r\n //foreach y for hace la misma funcion\r\n //Uso de for\r\n for (Perro perro1:perros){\r\n System.out.println(perro1.getNombre());\r\n System.out.println(perro1.getColor());\r\n System.out.println(perro1.getTamano());\r\n System.out.println(perro1.getRaza());\r\n System.out.println(perro1.getTipoDePelo());\r\n }\r\n \r\n //Formas de uso del for each\r\n perros.forEach(perro1->\r\n System.out.println(perro1.getNombre()));\r\n \r\n perros.forEach(perro1 ->{//Se define una variable que es perro1 y esta recorrera toda la lista\r\n System.out.println(perro1.getNombre());\r\n System.out.println(perro1.getColor());\r\n System.out.println(perro1.getTamano());\r\n System.out.println(perro1.getRaza());\r\n System.out.println(perro1.getTipoDePelo()); \r\n System.out.println();\r\n \r\n });\r\n \r\n \r\n System.out.println(\"Blanco\".equals(perro.color)? \"Si es blanco\":\"No es blanco\");\r\n \r\n //Uso del if\r\n if (((4/2==0)&&(10/5 !=0))||(100/20==0)){\r\n System.out.println(\"Es bisiesto\");\r\n }else{\r\n System.out.println(\"No es bisiesto\");\r\n }\r\n \r\n //Uso del switcH\r\n switch(x){\r\n case 6:\r\n System.out.println(\"Es verdadero\");\r\n break;\r\n case 2:\r\n System.out.println(\"Es falso\");\r\n break;\r\n default:\r\n System.out.println(\"No es ninguna\");\r\n \r\n //Uso de la lista de un item en especifico \r\n System.out.println(\"Nombre: \" + perros.get(2).getNombre());//El número del get\r\n System.out.println(\"Color: \"+perros.get(2).getColor());//define que item es que tomará\r\n System.out.println(\"Raza: \"+perros.get(2).getRaza());\r\n \r\n \r\n //Demostración del uso de getters\r\n System.out.println(\"Nombre: \");\r\n System.out.println(\"Altura: \" + persona.getAltura());\r\n System.out.println(\"Color: \" + persona.getColorPiel());\r\n System.out.println(\"Edad: \"+persona.getEdad());\r\n System.out.println(\"Genero: \"+persona.getGenero());\r\n System.out.println(\"Nacionalidad: \"+persona.getNacionalidad());\r\n System.out.println(\"Peso: \"+persona.getPeso());\r\n System.out.println(\"Tipo de Pelo: \"+persona.getTipoDePelo());\r\n \r\n }\r\n \r\n}", "public static void llenarSoriana(){\r\n Producto naranja1 = new Producto (\"naranja\", \"el huertito\", 25, 0);\r\n Nodo<Producto> nTemp1 = new Nodo(naranja1);\r\n listaSoriana.agregarNodo(nTemp1);\r\n \r\n Producto naranja2 = new Producto (\"naranja\", \"el ranchito\", 34, 0);\r\n Nodo<Producto> nTemp2 = new Nodo (naranja2);\r\n listaSoriana.agregarNodo(nTemp2);\r\n \r\n Producto manzana3 = new Producto (\"manzana\", \"el rancho de don chuy\", 24, 0);\r\n Nodo<Producto> nTemp3 = new Nodo (manzana3);\r\n listaSoriana.agregarNodo(nTemp3);\r\n \r\n Producto manzana4 = new Producto (\"manzana\", \"la costeña\", 15, 0);\r\n Nodo<Producto> nTemp4 = new Nodo(manzana4);\r\n listaSoriana.agregarNodo(nTemp4);\r\n \r\n Producto platano5 = new Producto (\"platano\", \"el Huertito\", 26, 0);\r\n Nodo<Producto> nTemp5 = new Nodo (platano5);\r\n listaSoriana.agregarNodo(nTemp5);\r\n \r\n Producto platano6 = new Producto (\"platano\", \"granjita dorada\", 36, 0);\r\n Nodo<Producto> nTemp6 = new Nodo (platano6);\r\n listaSoriana.agregarNodo (nTemp6);\r\n \r\n Producto pera7 = new Producto (\"pera\", \"el rancho de don chuy\", 38, 0);\r\n Nodo<Producto> nTemp7 = new Nodo (pera7);\r\n listaSoriana.agregarNodo(nTemp7);\r\n \r\n Producto pera8 = new Producto (\"pera\", \"la costeña\", 8,0);\r\n Nodo<Producto> nTemp8 = new Nodo (pera8);\r\n listaSoriana.agregarNodo(nTemp8);\r\n \r\n Producto durazno9 = new Producto (\"durazno\", \"el huertito\", 12.50, 0);\r\n Nodo<Producto> nTemp9 = new Nodo (durazno9);\r\n listaSoriana.agregarNodo(nTemp9);\r\n \r\n Producto fresa10 = new Producto (\"fresa\", \"el rancho de don chuy\", 35.99,0);\r\n Nodo<Producto> nTemp10 = new Nodo (fresa10);\r\n listaSoriana.agregarNodo(nTemp10);\r\n \r\n Producto fresa11 = new Producto (\"fresa\", \"grajita dorada\", 29.99,0);\r\n Nodo<Producto> nTemp11 = new Nodo (fresa11);\r\n listaSoriana.agregarNodo(nTemp11);\r\n \r\n Producto melon12 = new Producto (\"melon\", \"la costeña\", 18.50, 0);\r\n Nodo<Producto> nTemp12 = new Nodo (melon12);\r\n listaSoriana.agregarNodo(nTemp12);\r\n \r\n Producto melon13 = new Producto (\"melon\", \"el huertito\", 8.50, 0);\r\n Nodo<Producto> nTemp13 = new Nodo (melon13);\r\n listaSoriana.agregarNodo(nTemp13);\r\n \r\n Producto elote14 = new Producto (\"elote\", \"el ranchito\", 6, 0);\r\n Nodo<Producto> nTemp14 = new Nodo (elote14);\r\n listaSoriana.agregarNodo(nTemp14);\r\n \r\n Producto elote15 = new Producto (\"elote\", \"moctezuma\", 12, 0);\r\n Nodo<Producto> nTemp15 = new Nodo (elote15);\r\n listaSoriana.agregarNodo(nTemp15);\r\n \r\n Producto aguacate16 = new Producto (\"aguacate\", \"la costeña\", 35, 0);\r\n Nodo<Producto> nTemp16 = new Nodo (aguacate16);\r\n listaSoriana.agregarNodo(nTemp16);\r\n \r\n Producto cebolla17 = new Producto (\"cebolla\", \"granjita dorada\", 8.99, 0);\r\n Nodo<Producto> nTemp17 = new Nodo (cebolla17);\r\n listaSoriana.agregarNodo(nTemp17);\r\n \r\n Producto tomate18 = new Producto (\"tomate\", \"el costeñito feliz\", 10.50, 0);\r\n Nodo<Producto> nTemp18 = new Nodo (tomate18);\r\n listaSoriana.agregarNodo(nTemp18);\r\n \r\n Producto tomate19 = new Producto (\"tomate\", \"el ranchito\", 8.99, 0);\r\n Nodo<Producto> nTemp19 = new Nodo (tomate19);\r\n listaSoriana.agregarNodo(nTemp19);\r\n \r\n Producto limon20 = new Producto (\"limon\", \"la costeña\", 3.50, 0);\r\n Nodo<Producto> nTemp20 = new Nodo (limon20);\r\n listaSoriana.agregarNodo(nTemp20);\r\n \r\n Producto limon21 = new Producto (\"limon\", \"el ranchito\", 10.99, 0);\r\n Nodo<Producto> nTemp21 = new Nodo (limon21);\r\n listaSoriana.agregarNodo(nTemp21);\r\n \r\n Producto papas22 = new Producto (\"papas\", \"la costeña\", 11, 0);\r\n Nodo<Producto> nTemp22 = new Nodo(papas22);\r\n listaSoriana.agregarNodo(nTemp22);\r\n \r\n Producto papas23 = new Producto (\"papas\", \"granjita dorada\", 4.99, 0);\r\n Nodo<Producto> nTemp23 = new Nodo(papas23);\r\n listaSoriana.agregarNodo(nTemp23);\r\n \r\n Producto chile24 = new Producto (\"chile\", \"el rancho de don chuy\", 2.99, 0);\r\n Nodo<Producto> nTemp24 = new Nodo (chile24);\r\n listaSoriana.agregarNodo(nTemp24);\r\n \r\n Producto chile25 = new Producto (\"chile\",\"la costeña\", 12, 0);\r\n Nodo<Producto> nTemp25 = new Nodo (chile25);\r\n listaSoriana.agregarNodo(nTemp25);\r\n \r\n Producto jamon26 = new Producto (\"jamon\",\"fud\", 25, 1);\r\n Nodo<Producto> nTemp26 = new Nodo(jamon26);\r\n listaSoriana.agregarNodo(nTemp26);\r\n \r\n Producto jamon27 = new Producto(\"jamon\", \"kir\", 13.99, 1);\r\n Nodo<Producto> nTemp27 = new Nodo(jamon27);\r\n listaSoriana.agregarNodo(nTemp27);\r\n \r\n Producto peperoni28 = new Producto (\"peperoni28\", \"fud\", 32, 1);\r\n Nodo<Producto> nTemp28 = new Nodo (peperoni28);\r\n listaSoriana.agregarNodo(nTemp28);\r\n \r\n Producto salchicha29 = new Producto (\"salchicha\", \" san rafael\", 23.99, 1);\r\n Nodo<Producto> nTemp29 = new Nodo (salchicha29);\r\n listaSoriana.agregarNodo(nTemp29); \r\n \r\n Producto huevos30 = new Producto (\"huevos\", \"san rafael\", 30.99, 1);\r\n Nodo<Producto> nTemp30 = new Nodo (huevos30);\r\n listaSoriana.agregarNodo(nTemp30);\r\n \r\n Producto chuletas31 = new Producto (\"chuletas\", \"la res dorada\", 55, 1);\r\n Nodo<Producto> nTemp31 = new Nodo (chuletas31);\r\n listaSoriana.agregarNodo(nTemp31);\r\n \r\n Producto carnemolida32 = new Producto (\"carne molida\", \"san rafael\", 34, 1);\r\n Nodo<Producto> nTemp32 = new Nodo (carnemolida32);\r\n listaSoriana.agregarNodo(nTemp32);\r\n \r\n Producto carnemolida33 = new Producto (\"carne molida\", \"la res dorada\", 32.99, 1);\r\n Nodo<Producto> nTemp33 = new Nodo (carnemolida33);\r\n listaSoriana.agregarNodo(nTemp33);\r\n \r\n Producto pollo34 = new Producto (\"pollo\", \"pollito feliz\", 38, 1);\r\n Nodo<Producto> nTemp34 = new Nodo (pollo34);\r\n listaSoriana.agregarNodo(nTemp34);\r\n \r\n Producto pescado35 = new Producto (\"pescado\", \"pescadito\", 32.99, 1);\r\n Nodo<Producto> nTemp35 = new Nodo (pescado35);\r\n listaSoriana.agregarNodo(nTemp35);\r\n \r\n Producto quesolaurel36 = new Producto (\"queso\", \"laurel\", 23.50, 1);\r\n Nodo<Producto> nTemp36 = new Nodo (quesolaurel36);\r\n listaSoriana.agregarNodo(nTemp36);\r\n \r\n Producto leche37 = new Producto (\"leche\", \"nutrileche\", 12.99, 1);\r\n Nodo<Producto> nTemp37 = new Nodo (leche37);\r\n listaSoriana.agregarNodo(nTemp37);\r\n \r\n Producto lechedeslactosada38 = new Producto (\"leche deslactosada\", \"lala\", 17.50, 1);\r\n Nodo<Producto> nTemp38 = new Nodo (lechedeslactosada38);\r\n listaSoriana.agregarNodo(nTemp38);\r\n \r\n Producto panblanco39 = new Producto (\"pan blanco\", \"bombo\", 23.99, 2);\r\n Nodo<Producto> nTemp39 = new Nodo (panblanco39);\r\n listaSoriana.agregarNodo(nTemp39);\r\n \r\n Producto atun40 = new Producto (\"atun\", \"la aleta feliz\", 12, 2);\r\n Nodo<Producto> nTemp40 = new Nodo (atun40);\r\n listaSoriana.agregarNodo(nTemp40);\r\n \r\n Producto atun41 = new Producto (\"atun\", \"el barco\", 10.99, 2);\r\n Nodo<Producto> nTemp41 = new Nodo (atun41);\r\n listaSoriana.agregarNodo(nTemp41);\r\n \r\n Producto arroz42 = new Producto (\"arroz\", \"mi marca\", 12.50, 2);\r\n Nodo<Producto> nTemp42 = new Nodo (arroz42);\r\n listaSoriana.agregarNodo(nTemp42);\r\n \r\n Producto arroz43 = new Producto (\"arroz\", \"soriana\", 9.99, 2);\r\n Nodo<Producto> nTemp43 = new Nodo (arroz43);\r\n listaSoriana.agregarNodo(nTemp43);\r\n \r\n Producto frijol44 = new Producto (\"frijol\", \"mi marca\", 10.99, 2);\r\n Nodo<Producto> nTemp44 = new Nodo (frijol44);\r\n listaSoriana.agregarNodo(nTemp44);\r\n \r\n Producto frijol45 = new Producto (\"frijol\", \"soriana\", 15.99, 2);\r\n Nodo<Producto> nTemp45 = new Nodo (frijol45);\r\n listaSoriana.agregarNodo(nTemp45);\r\n \r\n Producto azucar46 = new Producto (\"azucar\", \"mi marca\", 12.50, 2);\r\n Nodo<Producto> nTemp46 = new Nodo (azucar46);\r\n listaSoriana.agregarNodo(nTemp46);\r\n \r\n Producto azucar47 = new Producto (\"azucar\", \"zulka\", 15.99, 2);\r\n Nodo<Producto> nTemp47 = new Nodo (azucar47);\r\n listaSoriana.agregarNodo(nTemp47);\r\n \r\n Producto servilletas48 = new Producto (\"servilletas\", \"esponjosas\",10.50, 2);\r\n Nodo<Producto> nTemp48 = new Nodo (servilletas48);\r\n listaSoriana.agregarNodo(nTemp48);\r\n \r\n Producto sal49 = new Producto (\"sal\", \"mar azul\", 3.99, 2);\r\n Nodo<Producto> nTemp49 = new Nodo (sal49);\r\n listaSoriana.agregarNodo(nTemp49);\r\n \r\n Producto aceitedecocina50 = new Producto (\"aceite de cocina\", \"123\", 15.99, 2);\r\n Nodo<Producto> nTemp50 = new Nodo (aceitedecocina50);\r\n listaSoriana.agregarNodo(nTemp50);\r\n \r\n Producto caffe51 = new Producto (\"caffe\", \"nescafe\", 23, 2);\r\n Nodo<Producto> nTemp51 = new Nodo (caffe51);\r\n listaSoriana.agregarNodo(nTemp51);\r\n \r\n Producto puredetomate52 = new Producto (\"pure de tomate\", \" la costeña\", 12.99, 2);\r\n Nodo<Producto> nTemp52 = new Nodo (puredetomate52);\r\n listaSoriana.agregarNodo(nTemp52);\r\n \r\n Producto lentejas53 = new Producto (\"lentejas\", \"la granjita\", 8.99, 2);\r\n Nodo<Producto> nTemp53 = new Nodo (lentejas53);\r\n listaSoriana.agregarNodo(nTemp53);\r\n \r\n Producto zuko54 = new Producto (\"zuko\", \"zuko\", 2.99, 2);\r\n Nodo<Producto> nTemp54 = new Nodo (zuko54);\r\n listaSoriana.agregarNodo(nTemp54);\r\n \r\n Producto champu55 = new Producto (\"champu\", \"loreal\", 32, 3);\r\n Nodo<Producto> nTemp55 = new Nodo (champu55);\r\n listaSoriana.agregarNodo(nTemp55);\r\n \r\n Producto champu56 = new Producto (\"champu\", \"el risueño\", 29.99, 3);\r\n Nodo<Producto> nTemp56 = new Nodo (champu56);\r\n listaSoriana.agregarNodo(nTemp56);\r\n \r\n Producto desodorante57 = new Producto (\"desodorante\", \"nivea\", 23.50, 3);\r\n Nodo<Producto> nTemp57 = new Nodo (desodorante57);\r\n listaSoriana.agregarNodo(nTemp57);\r\n \r\n Producto pastadedientes58 = new Producto(\"pasta de dientes\", \"colgate\", 17.50, 3);\r\n Nodo<Producto> nTemp58 = new Nodo (pastadedientes58);\r\n listaSoriana.agregarNodo(nTemp58);\r\n \r\n Producto pastadedientes59 = new Producto (\"pasta de dientes\", \"el diente blanco\", 29, 3);\r\n Nodo<Producto> nTemp59 = new Nodo (pastadedientes59);\r\n listaSoriana.agregarNodo(nTemp59);\r\n \r\n Producto rastrillos60 = new Producto (\"rastrillos\", \"el filosito\", 33.99, 3);\r\n Nodo<Producto> nTemp60 = new Nodo (rastrillos60);\r\n listaSoriana.agregarNodo(nTemp60);\r\n \r\n Producto rastrillos61 = new Producto (\"rastrillos\", \"barba de oro\", 23.99, 3);\r\n Nodo<Producto> nTemp61 = new Nodo (rastrillos61);\r\n listaSoriana.agregarNodo(nTemp61);\r\n \r\n Producto hilodental62 = new Producto (\"hilo dental\", \"el diente blanco\", 32.99, 3);\r\n Nodo<Producto> nTemp62 = new Nodo (hilodental62);\r\n listaSoriana.agregarNodo(nTemp62);\r\n \r\n Producto cepillodedientes63 = new Producto (\"cepillo de dientes\", \"OBBM\", 17.99, 3);\r\n Nodo<Producto> nTemp63 = new Nodo (cepillodedientes63);\r\n listaSoriana.agregarNodo(nTemp63);\r\n \r\n Producto cloro64 = new Producto (\"cloro\", \"cloralex\", 23.50, 3);\r\n Nodo<Producto> nTemp64 = new Nodo (cloro64);\r\n listaSoriana.agregarNodo(nTemp64);\r\n \r\n Producto acondicionador65 = new Producto (\"acondicionador\", \"sedal\", 28.99, 3);\r\n Nodo<Producto> nTemp65 = new Nodo (acondicionador65);\r\n listaSoriana.agregarNodo(nTemp65);\r\n \r\n Producto acondicionador66 = new Producto (\"acondicionador\", \"pantene\", 23.99, 3);\r\n Nodo<Producto> nTemp66 = new Nodo (acondicionador66);\r\n listaSoriana.agregarNodo(nTemp66);\r\n \r\n Producto pinol67 = new Producto(\"pinol\", \"mi piso limpio\", 15, 3);\r\n Nodo<Producto> nTemp67 = new Nodo (pinol67);\r\n listaSoriana.agregarNodo(nTemp67);\r\n \r\n Producto pinol68 = new Producto (\"pinol\", \"eficaz\", 18.99, 3);\r\n Nodo<Producto> nTemp68 = new Nodo (pinol68);\r\n listaSoriana.agregarNodo(nTemp68);\r\n \r\n Producto tortillas69 = new Producto (\"tortillas\", \"maizena\", 8.99, 2);\r\n Nodo<Producto> nTemp69 = new Nodo (tortillas69);\r\n listaSoriana.agregarNodo(nTemp69);\r\n \r\n Producto cremaparacuerpo70 = new Producto (\"crema para cuerpo\", \"dove\", 13.50, 3);\r\n Nodo<Producto> nTemp70 = new Nodo (cremaparacuerpo70);\r\n listaSoriana.agregarNodo(nTemp70);\r\n \r\n Producto maizoro71 = new Producto (\"maizoro\", \"special k\", 35.99, 2);\r\n Nodo<Producto> nTemp71 = new Nodo (maizoro71);\r\n listaSoriana.agregarNodo(nTemp71);\r\n \r\n Producto maizoro72 = new Producto (\"maizoro\",\"azucaradas\", 43, 2);\r\n Nodo<Producto> nTemp72 = new Nodo (maizoro72);\r\n listaSoriana.agregarNodo(nTemp72);\r\n \r\n Producto zanahoria73 = new Producto (\"zanahoria\", \"el huertito\", 12.99, 0);\r\n Nodo<Producto> nTemp73 = new Nodo (zanahoria73);\r\n listaSoriana.agregarNodo(nTemp73);\r\n \r\n Producto maizoro74 = new Producto (\"maizoro\", \"cherrios\", 45, 2);\r\n Nodo<Producto> nTemp74 = new Nodo (maizoro74);\r\n listaSoriana.agregarNodo(nTemp74);\r\n \r\n Producto mayonesa75 = new Producto (\"mayonesa\", \"helmans\", 23, 2);\r\n Nodo<Producto> nTemp75 = new Nodo (mayonesa75);\r\n listaSoriana.agregarNodo(nTemp75);\r\n }", "public int cargarCombustible(){ //creamos metodo cargarCombustible\r\n return this.getNivel();//retornara el nivel de ese mecanico\r\n }", "public static void main(String[] args) {\r\n\t\t\t\r\n\t\t\tModel model = new Model();\r\n\t\t\tSeason s=new Season(2016);\r\n\t\t\tTeam team=new Team(\"Genoa\");\r\n\t\t\tTeam team2=new Team(\"Sampdoria\");\r\n\t\t\t\r\n\t\t\tmodel.creaGrafo(s) ;\r\n//\t\t\tmodel.creaGrafo2(s) ;\r\n\t\t\tList<Team> vc= model.trovaViciniConnessi(team,s);\t\t\r\n\t\t\tSystem.out.println(vc);\r\n\t\t\tSystem.out.println(\"\\n\");\r\n\t\t\tList<TeamPunteggio> classifica= model.getClassifica(s);\t\t\r\n\t\t\tSystem.out.println(classifica);\r\n\t\t\tSystem.out.println(\" \\n ---CHI RETROCEDE?--- \\n\");\r\n\t\t\tSystem.out.println(classifica.subList(17, 20));\r\n\t\t\tSystem.out.println(\" \\n ---CHI Va in Champions?--- \\n\");\r\n\t\t\tSystem.out.println(classifica.subList(0, 3));\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n//\t\t\tSystem.out.println(\"---------------GRAFO TEAM----------------------\");\r\n\r\n//\t\t\tmodel.creaGrafoTEAM() ;\r\n//\t\t\tList<Team> te= model.getRaggiungibiliInAmpiezza(team);\r\n//\t\t\tSystem.out.println(te);\r\n//\t\t\tList<TeamPunteggio> t= model.getDestinations(team);\t\t\r\n//\t\t\tSystem.out.println(t);\r\n\t\t\t\r\n//\t\t\tSystem.out.println(\"---------------GRAFO Season----------------------\");\r\n//\t\t\tmodel.creaGrafoSEASON() ;\r\n//\t\t\tList<Integer> ss= model.getRaggiungibiliInAmpiezza(2016);\r\n//\t\t\tSystem.out.println(ss);\r\n//\t\t\tList<IntegerPair> ips= model.getDestinations(2016);\t\t\r\n//\t\t\tSystem.out.println(ips);\r\n\t\t\t\r\n//\t\t\tSystem.out.println(\"-----------------GRAFO GOAL----------------------\");\r\n//\t\t\tmodel.creaGrafoGOAL() ;\r\n//\t\t\tList<Integer> te= model.getRaggiungibiliInAmpiezza(3);\r\n//\t\t\tSystem.out.println(te);\r\n//\t\t\tList<IntegerPair> t= model.getDestinations(3);\t\t\r\n//\t\t\tSystem.out.println(t);\r\n\r\n//\t\t\tSystem.out.println(\"---------------------VISITE----------------------\");\t\t\t\r\n//\t\t\t\r\n//\t\t\tSystem.out.println(\"\\n\");\r\n//\t\t\tList<TeamPunteggio> t= model.getDestinations(s, team);\t\t\r\n//\t\t\tSystem.out.println(t);\r\n\t\t\t\t\r\n//\t\t\tSystem.out.println(\" \\n----- successori------ \\n\");\r\n//\t\t\tList<Team> ss= model.trovaSucessori(team);\r\n//\t\t\tSystem.out.println(ss);\r\n//\t\t\t\r\n//\t\t\tSystem.out.println(\" \\n-------predeccessori------ \\n \");\r\n//\t\t\tList<Team> pp= model.trovaPredecessori(team);\r\n//\t\t\tSystem.out.println(pp);\r\n//\r\n//\t\t\tSystem.out.println(\" \\n------ calcolo percorso e il suo tempo------- \\n\");\r\n//\t\t\tSystem.out.println(model.calcolaPercorso(team, team2));\r\n//\t\t\t\r\n//\t\t\tSystem.out.println(\"\\n -------Squadre che il eam ha affrontato in quella stagione------- \\n\");\r\n//\t\t\tList<Team> te= model.getRaggiungibiliInAmpiezza(team);\r\n//\t\t\tSystem.out.println(te);\r\n//\t\t\t\r\n//\t\t\tSystem.out.println(\"\\n------- n raggiungibili------ \\n\");\r\n//\t\t\tint i= model.raggiungibili();\r\n//\t\t\tSystem.out.println(i);\r\n//\t\t\t\r\n//\t\t\tSystem.out.println(\"\\n-------- percorso BELLMAN---> UGUALE A disktra ma tiene conto peso negativo------ \\n\");\r\n//\t\t\tSystem.out.println(model.BELLMANcalcolaPercorso(team));\r\n\r\n\t\t\t\r\n//\t\t\tSystem.out.println(\"-------------CONNECTIVITY INSPECTOR----------------------\");\t\t\t\t\t\r\n//\t\t\tSystem.out.println(\"\\n\");\r\n//\t\t\r\n//\t\t\tSystem.out.println(\"\\n------ è fortemente connesso?------ \\n\");\t\t\t\r\n//\t\t\tSystem.out.println(model.isConnesso());\t\r\n//\t\t\t\r\n//\t\t\tSystem.out.println(\"\\n-------- connessioni grafo--------- \\n\");\r\n//\t\t\tint n=model.getNumberConn();\r\n//\t\t\tSystem.out.println(n);\r\n//\t\t\t\r\n//\t\t\tSystem.out.println(\"\\n------ lista componenti connesse------ \\n\");\t\t\r\n//\t\t\tList<Set<Team>> l =model.getConn(); \r\n//\t\t\tSystem.out.println(l);\t\r\n//\t\t\t\r\n//\t\t\tSystem.out.println(\"\\n------- Arco max connesso------ \\n\");\t\t\t\r\n//\t\t\tSet<Team> t=model.MAXconnesso(); \r\n//\t\t\tSystem.out.println(t);\r\n//\t\t\t\r\n//\t\t\tSystem.out.println(\" \\n ------n archi Arco max connesso------ \"\\n\");\t\t\t\r\n//\t\t\tint nc=model.MAXconnessioni(); \r\n//\t\t\tSystem.out.println(nc);\r\n//\t\t\t\r\n//\t\t\tSystem.out.println(\"\\n--------- 5 Archi di max connesso------- \\n\");\r\n//\t\t\tList<EdgePeso>e= model.get5ArchiMinWeight(); \r\n//\t\t\tSystem.out.println(e);\r\n//\t\t\t\r\n//\t\t\t\t\t\r\n//\t\t\tSystem.out.println(\"--------------------- BEST & WORST-----------------------\");\r\n//\t\t\tSystem.out.println(\"\\n\");\r\n//\t\t\tSystem.out.println(\"\\n------ Best------ \\n\");\t\t\r\n//\t\t\tTeam winner=model.getBestTeam() ;\r\n//\t\t\tSystem.out.println(winner);\r\n//\t\t\tSystem.out.println(\"\\n------ Worst------ \\n\");\t\r\n//\t\t\tTeam loser=model.getWorstTeam() ;\r\n//\t\t\tSystem.out.println(loser);\r\n//\t\t\t\r\n//\t\t\tSystem.out.println(\"\\n\");\r\n//\t\t\tSystem.out.println(\"---------------PIU VICINO & PIU LONTANO Al PUNTEGGIO DEL TEAM DI PARTENZA -----------------------\");\t\t\t\r\n//\t\t\tSystem.out.println(\"\\n\");\r\n//\t\t\tSystem.out.println(\"\\n--------- Team Più Lontano come punti ---------\\n\");\r\n//\t\t\tTeam l =model.getPiLontano(\"Genoa\");\r\n//\t\t\tSystem.out.println(l);\r\n//\t\t\t\r\n//\t\t\tSystem.out.println(\"\\n\");\r\n//\t\t\tSystem.out.println(\"-------- Team Più Vicino come punti ---------\");\r\n//\t\t\tSystem.out.println(\"\\n\");\r\n//\t\t\t\r\n//\t\t\tTeam v =model.getPiuVicino(\"Genoa\");\r\n//\t\t\tSystem.out.println(v);\r\n//\t\t\t\r\n//\t\t\tSystem.out.println(\"\\n\");\r\n//\t\t\tSystem.out.println(\"------- Team Più Lontano come punti per scontri diretti ----------\");\r\n//\t\t\tSystem.out.println(\"\\n\");\r\n//\t\t\t\r\n//\t\t\tTeam ld =model.getPiLontanoByVoloDiretto(\"Genoa\");\r\n//\t\t\tSystem.out.println(ld);\t\r\n\r\n\t}", "private void verificarColisiones() {\n if(inmunidadRamiro){\n tiempoInmunidadRamiro += Gdx.graphics.getDeltaTime();\n }\n if(tiempoInmunidadRamiro>=6f){//despues de 0.6 seg, vuelve a ser vulnerable\n inmunidadRamiro=false;\n tiempoInmunidadRamiro=0f;\n ramiro.setEstadoItem(Ramiro.EstadoItem.NORMAL);\n musicaRayo.stop();\n if(music){\n musicaFondo.play();\n }\n\n }\n\n if (inmunidad){//Para evitar bugs, Ramiro puede tomar damage cada cierto tiempo...\n //Se activa cada vez que toma damage\n tiempoInmunidad+=Gdx.graphics.getDeltaTime();\n }\n if(tiempoInmunidad>=0.6f){//despues de 0.6 seg, vuelve a ser vulnerable\n inmunidad=false;\n tiempoInmunidad=0f;\n }\n if (inmunidadItem){\n tiempoInmunidadItem+=Gdx.graphics.getDeltaTime();\n }\n if(tiempoInmunidadItem>=0.6f){\n inmunidadItem=false;\n tiempoInmunidadItem=0f;\n\n }\n //Verificar colisiones de Item Corazon.\n for (int i=arrCorazonesItem.size-1; i>=0; i--) {\n Corazon cora = arrCorazonesItem.get(i);\n\n if(ramiro.sprite.getBoundingRectangle().overlaps(cora.sprite.getBoundingRectangle())){//Colision de Item\n if(inmunidadItem!=true){// asi se evita bugs.\n\n arrCorazonesItem.removeIndex(i);\n agregarCorazon();\n inmunidadItem=true;\n }\n\n }\n\n }\n //Verifica colisiones Rayo emprendedor\n for (int i=arrRayoEmprendedor.size-1; i>=0; i--) {\n RayoEmprendedor rayo= arrRayoEmprendedor.get(i);\n\n if(ramiro.sprite.getBoundingRectangle().overlaps(rayo.sprite.getBoundingRectangle())){//Colision de Item\n if(inmunidadItem!=true){// asi se evita bugs.\n\n arrRayoEmprendedor.removeIndex(i);\n inmunidadRamiro();\n\n }\n\n }\n\n }\n //coalisiones de las tareas\n for (int i=arrTarea.size-1; i>=0; i--) {\n Tarea tarea = arrTarea.get(i);\n\n if(ramiro.sprite.getBoundingRectangle().overlaps(tarea.sprite.getBoundingRectangle())){//Colision de Item\n if(inmunidadItem!=true){// asi se evita bugs.\n agregarPuntos();\n arrTarea.removeIndex(i);\n inmunidadItem=true;\n }\n\n }\n\n }\n\n\n //Verifica colisiones de camioneta\n if(estadoMapa==EstadoMapa.RURAL || estadoMapa==EstadoMapa.RURALURBANO){\n for (int i=arrEnemigosCamioneta.size-1; i>=0; i--) {\n Camioneta camioneta = arrEnemigosCamioneta.get(i);\n\n // Gdx.app.log(\"Width\",\"width\"+vehiculo.sprite.getBoundingRectangle().width);\n if(ramiro.sprite.getBoundingRectangle().overlaps(camioneta.sprite.getBoundingRectangle())){//Colision de camioneta\n //Ramiro se vuelve inmune 0.6 seg\n\n if(inmunidad!=true){//Si no ha tomado damage, entoces se vuelve inmune, asi se evita bugs.\n if(vidas>0){//Mientras te queden vidas en el arreglo\n quitarCorazones();//Se resta una vida\n }\n inmunidad=true;\n }\n\n }\n\n }\n\n for (int i=arrEnemigoAve.size-1; i>=0; i--) {\n Ave ave = arrEnemigoAve.get(i);\n\n // Gdx.app.log(\"Width\",\"width\"+vehiculo.sprite.getBoundingRectangle().width);\n if(ramiro.sprite.getBoundingRectangle().overlaps(ave.sprite.getBoundingRectangle())){//Colision de camioneta\n //Ramiro se vuelve inmune 0.6 seg\n\n if(inmunidad!=true){//Si no ha tomado damage, entoces se vuelve inmune, asi se evita bugs.\n if(vidas>0){//Mientras te queden vidas en el arreglo\n quitarCorazones();//Se resta una vida\n }\n inmunidad=true;\n }\n\n }\n\n }\n }\n\n //Verifica colisiones de carro de Lujo\n if(estadoMapa==EstadoMapa.URBANO || estadoMapa == EstadoMapa.URBANOUNIVERSIDAD){\n for (int i=arrEnemigosAuto.size-1; i>=0; i--) {\n Auto cocheLujo = arrEnemigosAuto.get(i);\n\n // Gdx.app.log(\"Width\",\"width\"+vehiculo.sprite.getBoundingRectangle().width);\n if(ramiro.sprite.getBoundingRectangle().overlaps(cocheLujo.sprite.getBoundingRectangle())){//Colision de camioneta\n //Ramiro se vuelve inmune 0.6 seg\n\n if(inmunidad!=true){//Si no ha tomado damage, entoces se vuelve inmune, asi se evita bugs.\n if(vidas>0){//Mientras te queden vidas en el arreglo\n quitarCorazones();//Se resta una vida\n }\n inmunidad=true;\n }\n\n }\n\n }\n\n for (int i=arrEnemigoAve.size-1; i>=0; i--) {\n Ave ave = arrEnemigoAve.get(i);\n\n // Gdx.app.log(\"Width\",\"width\"+vehiculo.sprite.getBoundingRectangle().width);\n if(ramiro.sprite.getBoundingRectangle().overlaps(ave.sprite.getBoundingRectangle())){//Colision de camioneta\n //Ramiro se vuelve inmune 0.6 seg\n\n if(inmunidad!=true){//Si no ha tomado damage, entoces se vuelve inmune, asi se evita bugs.\n if(vidas>0){//Mientras te queden vidas en el arreglo\n quitarCorazones();//Se resta una vida\n }\n inmunidad=true;\n }\n\n }\n\n }\n }\n\n //Verifica colisiones de carrito de golf\n if(estadoMapa==EstadoMapa.UNIVERSIDAD){\n for (int i=arrEnemigosCarritoGolf.size-1; i>=0; i--) {\n AutoGolf carritoGolf = arrEnemigosCarritoGolf.get(i);\n\n // Gdx.app.log(\"Width\",\"width\"+vehiculo.sprite.getBoundingRectangle().width);\n if(ramiro.sprite.getBoundingRectangle().overlaps(carritoGolf.sprite.getBoundingRectangle())){//Colision de camioneta\n //Ramiro se vuelve inmune 0.6 seg\n\n if(inmunidad!=true){//Si no ha tomado damage, entoces se vuelve inmune, asi se evita bugs.\n if(vidas>0){//Mientras te queden vidas en el arreglo\n quitarCorazones();//Se resta una vida\n }\n inmunidad=true;\n }\n\n }\n\n }\n }\n\n //Verifica colisiones de las lamparas\n if(estadoMapa==EstadoMapa.SALONES){\n for (int i=arrEnemigoLampara.size-1; i>=0; i--) {\n Lampara lampara = arrEnemigoLampara.get(i);\n\n // Gdx.app.log(\"Width\",\"width\"+vehiculo.sprite.getBoundingRectangle().width);\n if(ramiro.sprite.getBoundingRectangle().overlaps(lampara.sprite.getBoundingRectangle())){//Colision de camioneta\n //Ramiro se vuelve inmune 0.6 seg\n\n if(inmunidad!=true){//Si no ha tomado damage, entoces se vuelve inmune, asi se evita bugs.\n if(vidas>0){//Mientras te queden vidas en el arreglo\n quitarCorazones();//Se resta una vida\n }\n inmunidad=true;\n }\n\n }\n\n }\n //Verifica colisiones de las sillas\n for (int i=arrEnemigoSilla.size-1; i>=0; i--) {\n Silla silla = arrEnemigoSilla.get(i);\n\n // Gdx.app.log(\"Width\",\"width\"+vehiculo.sprite.getBoundingRectangle().width);\n if(ramiro.sprite.getBoundingRectangle().overlaps(silla.sprite.getBoundingRectangle())){//Colision de camioneta\n //Ramiro se vuelve inmune 0.6 seg\n\n if(inmunidad!=true){//Si no ha tomado damage, entoces se vuelve inmune, asi se evita bugs.\n if(vidas>0){//Mientras te queden vidas en el arreglo\n quitarCorazones();//Se resta una vida\n }\n inmunidad=true;\n }\n\n }\n\n }\n }\n\n\n\n\n }", "public void limpiarCamposCita() {\r\n try {\r\n visitaRealizada = false;\r\n fechaNueva = null;\r\n observacionReasignaCita = \"\";\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".limpiarCamposCita()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }", "public static void main(String[] args) {\n \n PersonaIMC persona1 = new PersonaIMC();\n \n \n /* PersonaIMC persona2 = new PersonaIMC(nombre, edad, sexo);\n PersonaIMC persona3 = new PersonaIMC(nombre, edad, sexo, peso, altura);\n \n persona1.setNombre(\"Luisa\");\n persona1.setEdad(28);\n persona1.setSexo('F');\n persona1.setPeso(60);\n persona1.setAltura(1.8);\n \n persona2.setPeso(80.5);\n persona2.setAltura(1.75);\n \n System.out.println(\"Persona 1\");\n muestraMensajePeso(persona1);\n muestraMayorDeEdad(persona1);\n System.out.println(persona1.toString());\n \n System.out.println(\"Persona 2\");\n muestraMensajePeso(persona2);\n muestraMayorDeEdad(persona2);\n System.out.println(persona2.toString());\n \n System.out.println(\"Persona 3\");\n muestraMensajePeso(persona3);\n muestraMayorDeEdad(persona3);\n System.out.println(persona3.toString());*/\n }", "public void teclas() {\r\n\t\tif (app.key == '1') {\r\n\t\t\ttipoCom = 1;\r\n\t\t\tcaso1.clear();\r\n\t\t\tcaso2.clear();\r\n\t\t\tcaso3.clear();\r\n\t\t\tcaso4.clear();\r\n\t\t\tcaso1.addAll(persona);\r\n\t\t}\r\n\t\tif (app.key == '2') {\r\n\t\t\ttipoCom = 2;\r\n\t\t\tcaso1.clear();\r\n\t\t\tcaso2.clear();\r\n\t\t\tcaso3.clear();\r\n\t\t\tcaso4.clear();\r\n\t\t\tcaso2.addAll(persona);\r\n\t\t}\r\n\t\tif (app.key == '3') {\r\n\t\t\ttipoCom = 3;\r\n\t\t\tcaso1.clear();\r\n\t\t\tcaso2.clear();\r\n\t\t\tcaso3.clear();\r\n\t\t\tcaso4.clear();\r\n\t\t\tcaso3.addAll(persona);\r\n\t\t}\r\n\t\tif (app.key == '4') {\r\n\t\t\ttipoCom = 4;\r\n\t\t\tcaso1.clear();\r\n\t\t\tcaso2.clear();\r\n\t\t\tcaso3.clear();\r\n\t\t\tcaso4.clear();\r\n\t\t\tcaso4.addAll(persona);\r\n\t\t}\r\n\t}", "public void PedirSintomas() {\n\t\t\r\n\t\tSystem.out.println(\"pedir sintomas del paciente para relizar el diagnosticoa\");\r\n\t}", "public static void main(String[] args) {\n Empleado arquitecto1 = new Arquitecto(\"Arq 1\", \"1\", 1, 1 ,\"1\" , 1 );\n Empleado arquitecto2 = new Arquitecto(\"Arq 2\", \"2\", 2, 2 ,\"2\" , 2 );\n Empleado arquitecto3 = new Arquitecto(\"Arq 3\", \"3\", 3, 3 ,\"3\" , 3 );\n Empleado maestro1 = new Maestro(\"Mae 1\", \"1\", 1, 1, \"1\", 1);\n Empleado maestro2 = new Maestro(\"Mae 2\", \"2\", 2, 2, \"2\", 2);\n Empleado maestro3 = new Maestro(\"Mae 3\", \"3\", 3, 3, \"3\", 3);\n Empleado obrero1 = new Obrero(\"Obr 1\", \"1\", 1, 1, \"1\", 1);\n Empleado obrero2 = new Obrero(\"Obr 2\", \"2\", 2, 2, \"2\", 2);\n Empleado obrero3 = new Obrero(\"Obr 3\", \"3\", 3, 3, \"3\", 3);\n//Empresa\n //Lista de Empelado en donde van a estar los empleados de toda la empresa\n ArrayList<Empleado> totalEmployeesOnSite = new ArrayList<>();\n totalEmployeesOnSite.add(arquitecto1);\n totalEmployeesOnSite.add(maestro1);\n totalEmployeesOnSite.add(obrero1);\n //Lista de obreros en la obra\n ArrayList<Obra> activeWorks = new ArrayList<>();\n\n //Lista ed Obras realizadas\n ArrayList<Obra> doneWorks = new ArrayList<>();\n Obra obra1 = new Obra();\n doneWorks.add(obra1);\n Empresa empresa1 = new Empresa(\"Empresa 1\", totalEmployeesOnSite, doneWorks);\n\n System.out.println(empresa1.toString());\n\n//Arquitecto\n\t /* Empleado arquitecto1 = new Arquitecto(\"Jazmin\", \"1234456788\", 1552364898, 2800 ,\"Creando mi proximo plano\" , 223 );\n Empleado arquitecto2 = new Arquitecto(\"Jazmin\", \"1234456788\", 1552364898, 2800 ,\"Creando mi proximo plano\" , 223 );\n//Maestro\n\t Empleado maestro1 = new Maestro(\"Nicolas\", \"98745632\", 155236478, 3000, \"Soy maestro y superviso las construcciones\", 29);\n Empleado maestro2 = new Maestro(\"Nicolas\", \"98745632\", 155236478, 3000, \"Soy maestro y superviso las construcciones\", 29);\n//Obrero\n\t Empleado obrero1 = new Obrero(\"Matilda\", \"12549632\", 155235647, 1200, \"Soy obrro y construyo\", 25);\n Empleado obrero2 = new Obrero(\"Matilda2\", \"125496322\", 155235647, 1200, \"Soy obrro y construyo\", 25);\n//Array Empleado que va a ir a\n ArrayList<Empleado> totalEmployeesOnSite = new ArrayList<>();\n totalEmployeesOnSite.add(empleado4);\n\n System.out.println(empleado1.getWork());\n System.out.println(empleado2.getWork());\n System.out.println(empleado3.getWork());\n\n ArrayList<Empleado> totalEmployees = new ArrayList<>();\n ArrayList<Obra> activeWorks = new ArrayList<>();\n\n Obra obra1 = new Obra(\"Lo De Jaz\", 2, 54, 7, totalEmployeesOnSite );\n\n activeWorks.add(obra1);\n\n totalEmployees.add(empleado1);\n totalEmployees.add(empleado2);\n\n Empresa empresa = new Empresa(\"Lo de Jaz\", totalEmployees, activeWorks);\n\n System.out.println(empresa.toString());\n */\n\n }", "private void usuario(){\r\n int x=0,y=0,car=0;\r\n boolean aceptar=false, exc=false;\r\n System.out.println(\"Jugador:\"+pj+\" Puntos\");\r\n try{\r\n do{\r\n try{\r\n Scanner leer = new Scanner(System.in);\r\n if(this.ind==true){\r\n System.out.println(\"Dame numero de renglon:\");\r\n try{\r\n x=leer.nextInt();\r\n }catch(InputMismatchException e){\r\n throw new ExcepcionGame(\"Debes Ingresar Numeros no Letras\",\"Modo Contrareloj\");\r\n }\r\n }\r\n else{\r\n exc=true;\r\n throw new ExcepcionGame();\r\n }\r\n if(this.ind==true){\r\n System.out.println(\"Dame numero de columna:\");\r\n try{\r\n y=leer.nextInt();\r\n }catch(InputMismatchException e){\r\n throw new ExcepcionGame(\"Debes Ingresar Numeros no Letras\",\"Modo Contrareloj\");\r\n }\r\n }\r\n else{\r\n exc=true;\r\n throw new ExcepcionGame();\r\n }\r\n try{\r\n if(compmov(x,y)==true){\r\n aceptar=true;\r\n }\r\n else{\r\n aceptar=false;\r\n System.out.println(\"Movimiento no Valido, Escoga Otra Vez\");\r\n }\r\n }catch(ArrayIndexOutOfBoundsException a){\r\n aceptar=false;\r\n System.out.println(\"Posicion No Valida\");\r\n }\r\n \r\n }catch(ExcepcionGame a){\r\n if(exc==false){\r\n aceptar=false;\r\n a.mensaje();\r\n }else{\r\n exc=false;\r\n throw new TimeOut(\"Has Rebasado tu Tiempo Limite\",\"Modo Contrareloj\");\r\n }\r\n }\r\n \r\n }while(aceptar==false); \r\n\r\n car=1;\r\n car=jugada(x,y,car,\"Jugador\");\r\n aceptar=false;\r\n do{\r\n try{\r\n Scanner leer = new Scanner(System.in);\r\n if(this.ind==true){\r\n System.out.println(\"Dame numero de renglon:\");\r\n try{\r\n x=leer.nextInt();\r\n }catch(InputMismatchException e){\r\n throw new ExcepcionGame(\"Debes Ingresar Numeros no Letras\",\"Modo Contrareloj\");\r\n }\r\n }\r\n else{\r\n exc=true;\r\n throw new ExcepcionGame();\r\n }\r\n if(this.ind==true){\r\n System.out.println(\"Dame numero de columna:\");\r\n try{\r\n y=leer.nextInt();\r\n }catch(InputMismatchException e){\r\n throw new ExcepcionGame(\"Debes Ingresar Numeros no Letras\",\"Modo Contrareloj\");\r\n }\r\n }\r\n else{\r\n exc=true;\r\n throw new ExcepcionGame();\r\n }\r\n try{\r\n if(compmov(x,y)==true){\r\n aceptar=true;\r\n }\r\n else{\r\n aceptar=false;\r\n System.out.println(\"Movimiento no Valido, Escoga Otra Vez\");\r\n }\r\n }catch(ArrayIndexOutOfBoundsException ss){\r\n aceptar=false;\r\n System.out.println(\"Posicion no Valida\");\r\n }\r\n \r\n }catch(ExcepcionGame b){\r\n if(exc==false){\r\n aceptar=false;\r\n b.mensaje();\r\n }\r\n else{\r\n exc=false;\r\n throw new TimeOut(\"Has Rebasado tu Tiempo Limite\",\"Modo Contrareloj\");\r\n }\r\n \r\n }\r\n }while(aceptar==false);\r\n jugada(x,y,car,\"Jugador\");\r\n }catch(TimeOut c){\r\n c.mensaje();\r\n }\r\n }", "public void cargaDeDatos(List<List<Object>> Musuarios,List<List<Object>> Mtareas, List<List<Object>> Mrequisitos) {\r\n\tfor (List<Object> l: Musuarios) {\r\n\t\tam.addMiembro(new MiembroDeEquipo((int)l.get(0),(String)l.get(1)));\r\n\t}\r\n\t/**\r\n\t * Cargamos a la lista de administrador de tareas todas las tareas que se encuentran en la base de datos, \r\n\t * si no tiene miembro se le pone a null sino se le añade un miembro.\r\n\t */\r\n\tfor (List<Object> l: Mtareas) {\r\n\t\tat.addTarea(new Tarea((String)l.get(0),(int)l.get(1),(int)l.get(2),(int)l.get(3),(int)l.get(6)));\r\n\t\t//Si tiene un miembro asignado (cualquier id mayor que cero) le añade el miembro de equipo, sino null\r\n\t\tif(0 < (int)l.get(5)) {\r\n\t\t\tat.BuscarTarea((int)l.get(1)).setAsignadoA(am.BuscarMiembro((int) l.get(5)));\r\n\t\t}else {\r\n\t\t\tat.BuscarTarea((int)l.get(1)).setAsignadoA(null);\r\n\t\t}\r\n\t\t//Si tiene un requisito (cualquier id maor que cero) le añade el requisito, sino null\r\n\t\tif(0 < (int)l.get(4)) {\r\n\t\t\tat.BuscarTarea((int)l.get(1)).setRequisito(ar.BuscarRequisito((int) l.get(4)));\r\n\t\t}else {\r\n\t\t\tat.BuscarTarea((int)l.get(1)).setRequisito(null);\r\n\t\t}\r\n\t\tat.BuscarTarea((int)l.get(1)).setDescripcion((String)l.get(7));\r\n\t}\r\n\t/**\r\n\t * Cargamos la lista del administrador de requisitos con todos los requisitos que tenemos,\r\n\t * si el requisito tiene 5 atributos, será un defecto, sino será una historia de usuario\r\n\t */\r\n\tfor (List<Object> l: Mrequisitos) {\r\n\t\tHashSet<Tarea> lista = new HashSet<Tarea>();\r\n\t\t//Buscamos todas las tareas que tengan este requisito, para tener una lista de las tareas que este tiene\r\n\t\tfor(List<Object> t: Mtareas) {\r\n\t\t\t\r\n\t\t\tif((int)l.get(2)==(int)t.get(4)) {\r\n\t\t\t\tlista.add(at.BuscarTarea((int)t.get(1)));\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Creamos defecto o historiaDeUsuario, según sea el caso y lo añadimos a la lista generica de Requisitos.\r\n\t\tif(l.size()==5) {\r\n\t\t\tDefecto req = new Defecto((String)l.get(4),(String) l.get(0), (String)l.get(1),(int)l.get(2),lista);\r\n\t\t\tif((int)l.get(3)==1) {\r\n\t\t\treq.finalizar();\r\n\t\t\t}\r\n\t\t\tar.addRequisito(req);\r\n\t\t}else {\r\n\t\t\tRequisito req = new HistoriaDeUsuario((String) l.get(0), (String)l.get(1),(int)l.get(2));\r\n\t\t\tif(!lista.isEmpty()) {\r\n\t\t\t\treq.setRequisitos(lista);\r\n\t\t\t}\r\n\t\t\tif((int)l.get(3)==1) {\r\n\t\t\treq.finalizar();\r\n\t\t\t}\r\n\t\t\tar.addRequisito(req);\t\t\r\n\t\t}\r\n\t}\r\n\tfor (List<Object> l: Mtareas) {\r\n\t\t//Si tiene un requisito (cualquier id maor que cero) le añade el requisito, sino null\r\n\t\tif(0 < (int)l.get(4)) {\r\n\t\t\tat.BuscarTarea((int)l.get(1)).setRequisito(ar.BuscarRequisito((int) l.get(4)));\r\n\t\t}else {\r\n\t\t\tat.BuscarTarea((int)l.get(1)).setRequisito(null);\r\n\t\t}\r\n\t}\r\n}", "public static void main(String[] args) {\n int op;\r\n int opM;\r\n int opP;\r\n int opA;\r\n int opR;\r\n\r\n //Instanciando clases controladores para acceder a sus constrcutores (CRUD)\r\n ControladorMamifero mamiferoCon = new ControladorMamifero();\r\n ControladorPez pezCon = new ControladorPez();\r\n ControladorAve aveCon = new ControladorAve();\r\n\r\n do {\r\n\r\n System.out.println(\" ►► Menu ◄◄\");\r\n System.out.println(\"1. CRUD> Mamifero\");\r\n System.out.println(\"2. CRUD> Pez\");\r\n System.out.println(\"3. CRUD> Ave\");\r\n System.out.println(\"4. CRUD> Reptil\");\r\n System.out.println(\"5. SALIR \");\r\n\r\n Scanner leer = new Scanner(System.in);\r\n op = leer.nextInt();\r\n\r\n switch (op) {\r\n\r\n case 1: //crud de mamifero\r\n do {\r\n System.out.println(\" ►► Mamifero ◄◄\");\r\n System.out.println(\"1. CREATE \");\r\n System.out.println(\"2. READ \");\r\n System.out.println(\"3. UPDATE \");\r\n System.out.println(\"4. DELETE \");\r\n System.out.println(\"5. LIST \");\r\n System.out.println(\"6. REGRESAR \");\r\n\r\n opM = leer.nextInt();\r\n\r\n switch (opM) {\r\n //Creamos un objeto \"mamifero\".\r\n case 1:\r\n //Creo objeto de la clase ControladorMamifero para \r\n Mamifero mamifero = new Mamifero();\r\n //Asignamos valores\r\n System.out.println(\" CREATE \");\r\n System.out.println(\" Ingresar nombre\");\r\n mamifero.setNombre(leer.nextLine());\r\n mamifero.setNombre(leer.nextLine());\r\n System.out.println(\" Ingresar el tipo de animal\");\r\n mamifero.setTipoAnimal(leer.nextLine());\r\n System.out.println(\" Ingresar el sexo\");\r\n mamifero.setSexo(leer.nextLine());\r\n\r\n System.out.println(\" Ingresar cantidad de patas\");\r\n mamifero.setCantPatas(leer.nextInt());\r\n System.out.println(\" Ingresar cantidad de mamas\");\r\n mamifero.setCantMamas(leer.nextInt());\r\n System.out.println(\" Ingresar el tiempo de gestacion\");\r\n mamifero.setTiempoGest(leer.nextLine());\r\n mamifero.setTiempoGest(leer.nextLine());\r\n System.out.println(\" Ingresar el peso en kilos\");\r\n mamifero.setPeso(leer.nextDouble());\r\n\r\n //llamamos al metodo create en la clase Controlador.\r\n mamiferoCon.create(mamifero);\r\n System.out.println(\" Se ha creado un mamifero \"\r\n + mamifero.getNombre() + \" con el codigo: \" + mamifero.getCodigo());\r\n break;\r\n\r\n //Leemos el objeto creado anteriormente \"mamifero\" mediante el nombre.\r\n case 2:\r\n //Read mamifero\r\n System.out.println(\" \");\r\n System.out.println(\" READ \");\r\n System.out.println(\"Ingresar codigo del mamifero\");\r\n int cod2 = leer.nextInt();\r\n\r\n System.out.println(\" \");\r\n System.out.println(mamiferoCon.read(cod2));\r\n\r\n break;\r\n\r\n //Actualizamos el objeto pidiendo el nombre; el codigo se mantiene. \r\n case 3:\r\n //update mamifero\r\n System.out.println(\" UPDATE \");\r\n Mamifero mamiferoU = new Mamifero();\r\n System.out.println(\"Ingresar codigo del mamifero a modificar \");\r\n mamiferoU.setCodigo(leer.nextInt());\r\n mamiferoCon.update(mamiferoU);\r\n\r\n System.out.println(\"Ingresar nombre:\");\r\n mamiferoU.setNombre(leer.nextLine());\r\n mamiferoU.setNombre(leer.nextLine());\r\n System.out.println(\" Ingresar el tipo de animal\");\r\n mamiferoU.setTipoAnimal(leer.nextLine());\r\n System.out.println(\" Ingresar el sexo\");\r\n mamiferoU.setSexo(leer.nextLine());\r\n\r\n System.out.println(\" Ingresar cantidad de patas\");\r\n mamiferoU.setCantPatas(leer.nextInt());\r\n System.out.println(\" Ingresar cantidad de mamas\");\r\n mamiferoU.setCantMamas(leer.nextInt());\r\n System.out.println(\" Ingresar el tiempo en meses de gestacion\");\r\n mamiferoU.setTiempoGest(leer.nextLine());\r\n mamiferoU.setTiempoGest(leer.nextLine());\r\n System.out.println(\" Ingresar el peso en kilos\");\r\n mamiferoU.setPeso(leer.nextDouble());\r\n\r\n //llama al metodo update de la clase ControladorAuto.\r\n mamiferoCon.update(mamiferoU);\r\n System.out.println(\"Se han actualizado los datos del mamifero de codigo \"\r\n + mamiferoU.getCodigo());\r\n\r\n break;\r\n\r\n //Elimina un objeto y lo buscamos mediante el codigo;\r\n case 4:\r\n //delete mamifero\r\n //Mamifero mamiferoD = new Mamifero();\r\n System.out.println(\" DELETE \");\r\n System.out.println(\" Ingrese el nombre del mamifero a eliminar \");\r\n int cod = leer.nextInt();\r\n //lllama al metodo elimnar de la clase ControladorAuto\r\n mamiferoCon.delete(cod);\r\n System.out.println(\"Se a eliminado el mamifero \" + \" del codigo \" + cod);\r\n\r\n break;\r\n\r\n //Lista todos los objetos en el mismo orden que fueron creados anteriormente. \r\n case 5:\r\n //listar mamiferos creados\r\n System.out.println(\" LISTAR \");\r\n System.out.println(\" Desea listar 1.Si 2.No\");\r\n int lis = leer.nextInt();\r\n //mamifero.listar(leer.nextInt());\r\n mamiferoCon.listar(lis);\r\n\r\n break;\r\n\r\n }\r\n System.out.println(\" \");\r\n System.out.println(\"Continuar en la clase Mamifero = 1.SI / 2.NO\");\r\n opM = leer.nextInt();\r\n\r\n } while (opM != 2);\r\n break;\r\n\r\n //Clase HIJA 2 interface HASHSET y CRUD.\r\n case 2:\r\n do {\r\n System.out.println(\" ►► Pez ◄◄\");\r\n System.out.println(\"1. CREATE \");\r\n System.out.println(\"2. READ \");\r\n System.out.println(\"3. UPDATE \");\r\n System.out.println(\"4. DELETE \");\r\n System.out.println(\"5. LIST \");\r\n System.out.println(\"6. REGRESAR \");\r\n\r\n opP = leer.nextInt();\r\n switch (opP) {\r\n case 1: //create pez\r\n Pez pez = new Pez();\r\n System.out.println(\" CREANDO...\");\r\n System.out.println(\" Ingrese nombre\");\r\n pez.setNombre(leer.nextLine());\r\n pez.setNombre(leer.nextLine());\r\n System.out.println(\"Ingrese tipo de animal\");\r\n pez.setTipoAnimal(leer.nextLine());\r\n System.out.println(\" Ingrese el sexo\");\r\n pez.setSexo(leer.nextLine());\r\n\r\n System.out.println(\"Ingrese el tipo de pez\");\r\n pez.setTipoPez(leer.nextLine());\r\n System.out.println(\"Ingrese el tipo de esqueleto \");\r\n pez.setTipoEsqueleto(leer.nextLine());\r\n System.out.println(\"Ingrese el tamaño\");\r\n pez.setTamaño(leer.nextDouble());\r\n System.out.println(\"Ingrese el peso\");\r\n pez.setPeso(leer.nextDouble());\r\n\r\n pezCon.create(pez);\r\n System.out.println(\" Se ha creado el pez \" + pez.getNombre()\r\n + \" con codigo \" + pez.getCodigo());\r\n\r\n break;\r\n case 2: //read pez\r\n System.out.println(\" \");\r\n System.out.println(\" LEYENDO... \");\r\n System.out.println(\"Ingrese el codigo del pez\");\r\n int cod = leer.nextInt();\r\n\r\n System.out.println(\" \");\r\n //Imprimiendo el objeto \r\n System.out.println(pezCon.read(cod));\r\n\r\n break;\r\n case 3://update pez\r\n Pez pezU = new Pez();\r\n System.out.println(\" \");\r\n System.out.println(\" Ingrese el codigo del pez a modificar\");\r\n pezU.setCodigo(leer.nextInt());\r\n\r\n pezCon.update(pezU);\r\n\r\n System.out.println(\" ACTUALIZANDO...\");\r\n System.out.println(\" Ingrese nombre\");\r\n pezU.setNombre(leer.nextLine());\r\n pezU.setNombre(leer.nextLine());\r\n System.out.println(\"Ingrese tipo de animal\");\r\n pezU.setTipoAnimal(leer.nextLine());\r\n System.out.println(\" Ingrese el sexo\");\r\n pezU.setSexo(leer.nextLine());\r\n\r\n System.out.println(\"Ingrese el tipo de pez\");\r\n pezU.setTipoPez(leer.nextLine());\r\n System.out.println(\"Ingrese el tipo de esqueleto \");\r\n pezU.setTipoEsqueleto(leer.nextLine());\r\n System.out.println(\"Ingrese el tamaño\");\r\n pezU.setTamaño(leer.nextDouble());\r\n System.out.println(\"Ingrese el peso\");\r\n pezU.setPeso(leer.nextDouble());\r\n\r\n System.out.println(\" Los datos se han actualizado correctamente\");\r\n\r\n break;\r\n case 4://delete pez\r\n\r\n Pez pezD = new Pez();\r\n System.out.println(\" ELIMINANDO...\");\r\n System.out.println(\" Ingrese el codigo\");\r\n pezD.setCodigo(leer.nextInt());\r\n\r\n pezCon.delete(pezD);\r\n System.out.println(\" Se ha eliminado el pez de codigo \" + pezD.getCodigo());\r\n\r\n break;\r\n case 5://list pez\r\n System.out.println(\" LISTANDO...\");\r\n pezCon.imprimir();\r\n\r\n break;\r\n\r\n }\r\n System.out.println(\" \");\r\n System.out.println(\" Continuar en la clase PEZ= 1.Si 2.No\");\r\n opP = leer.nextInt();\r\n } while (opP != 2);\r\n break;\r\n\r\n case 3: //CRUD de la clase hija 3 y ademas el CRUD\r\n do {\r\n System.out.println(\" ►► Ave ◄◄\");\r\n System.out.println(\"1. CREATE \");\r\n System.out.println(\"2. READ \");\r\n System.out.println(\"3. UPDATE \");\r\n System.out.println(\"4. DELETE \");\r\n System.out.println(\"5. LIST \");\r\n System.out.println(\"6. REGRESAR \");\r\n\r\n opA = leer.nextInt();\r\n\r\n switch (opA) {\r\n case 1://create ave\r\n Ave ave = new Ave();\r\n System.out.println(\" CREANDO...\");\r\n System.out.println(\" Ingrese el nombre\");\r\n ave.setNombre(leer.nextLine());\r\n ave.setNombre(leer.nextLine());\r\n System.out.println(\"Ingrese tipo de animal\");\r\n ave.setTipoAnimal(leer.nextLine());\r\n System.out.println(\"Ingrese el sexo\");\r\n ave.setSexo(leer.nextLine());\r\n\r\n System.out.println(\"Ingrese color de plumaje\");\r\n ave.setColorPlumaje(leer.nextLine());\r\n System.out.println(\"Ingrese el tipo de ave\");\r\n ave.setTipoAve(leer.nextLine());\r\n System.out.println(\"Ingrese el tamaño\");\r\n ave.setTamaño(leer.nextInt());\r\n System.out.println(\"Ingrese el tiempo de gestacion\");\r\n ave.setTiempoGest(leer.nextLine());\r\n ave.setTiempoGest(leer.nextLine());\r\n\r\n aveCon.create(ave);\r\n System.out.println(\"Se ha creado el ave \" + ave.getNombre()\r\n + \" con el codigo\" + ave.getCodigo());\r\n\r\n break;\r\n\r\n case 2://read ave\r\n System.out.println(\" \");\r\n System.out.println(\"LEYENDO...\");\r\n System.out.println(\" Ingrese el codigo del ave\");\r\n int codA = leer.nextInt();\r\n\r\n System.out.println(aveCon.read(codA));\r\n break;\r\n\r\n case 3://update ave\r\n Ave aveU = new Ave();\r\n System.out.println(\" \");\r\n System.out.println(\" Ingrese el nombre del ave a modificar\");\r\n aveU.setNombre(leer.nextLine());\r\n aveU.setNombre(leer.nextLine());\r\n \r\n aveCon.update(aveU);\r\n\r\n System.out.println(\" ACTUALIZANDO...\");\r\n System.out.println(\" Ingrese el nombre\");\r\n aveU.setNombre(leer.nextLine());\r\n System.out.println(\"Ingrese tipo de animal\");\r\n aveU.setTipoAnimal(leer.nextLine());\r\n System.out.println(\"Ingrese el sexo\");\r\n aveU.setSexo(leer.nextLine());\r\n\r\n System.out.println(\"Ingrese color de plumaje\");\r\n aveU.setColorPlumaje(leer.nextLine());\r\n System.out.println(\"Ingrese el tipo de ave\");\r\n aveU.setTipoAve(leer.nextLine());\r\n System.out.println(\"Ingrese el tamaño\");\r\n aveU.setTamaño(leer.nextInt());\r\n System.out.println(\"Ingrese el tiempo de gestacion\");\r\n aveU.setTiempoGest(leer.nextLine());\r\n aveU.setTiempoGest(leer.nextLine());\r\n \r\n aveCon.update(aveU);\r\n\r\n System.out.println(\"Se han actualizado los datos correctamente\");\r\n break;\r\n\r\n case 4://delete ave\r\n Ave aveD = new Ave();\r\n System.out.println(\" \");\r\n System.out.println(\"ELIMINANDO...\");\r\n System.out.println(\"Ingrese el codigo del ave\");\r\n aveD.setCodigo(leer.nextInt());\r\n\r\n aveCon.delete(aveD);\r\n System.out.println(\" Se ha eliminado el ave de codigo \" + aveD.getCodigo());\r\n break;\r\n\r\n case 5://list todos los objetos creados.\r\n System.out.println(\" LISTANDO...\");\r\n aveCon.imprimir();\r\n break;\r\n }\r\n System.out.println(\" \");\r\n System.out.println(\" Continuar en la clase Ave= 1.Si 2.No\");\r\n opA = leer.nextInt();\r\n } while (opA != 2);\r\n\r\n //case 4:\r\n }\r\n\r\n } while (op != 5);\r\n\r\n }", "@SuppressWarnings(\"PMD.ExcessiveMethodLength\")\r\n\tprivate void gerarLaudosUTI(MpmPrescricaoMedica prescricao,\r\n\t\t\tList<MpmLaudo> laudoList, FatConvenioSaudePlano convenioSaudePlano,\r\n\t\t\tAghParametros seqLaudoUTI) {\r\n\r\n\t\tIAghuFacade aghuFacade = getAghuFacade();\r\n\t\tif (prescricao.getAtendimento().getUnidadeFuncional() != null) {\r\n\t\t\t// TODO: RETIRAR ESTE MERGE QUANDO AS EXCEPTIONS COM ROLLBACK DOS\r\n\t\t\t// CRUDS DA PRESCRIÇÃO JÁ TIVEREM\r\n\t\t\t// SIDO REMOVIDAS.\r\n\t\t\taghuFacade.atualizarAghUnidadesFuncionaisSemException(prescricao.getAtendimento().getUnidadeFuncional());\r\n\t\t}\r\n\r\n\t\tboolean possuiCaracteristica = aghuFacade.possuiCaracteristicaPorUnidadeEConstante(prescricao.getAtendimento().getUnidadeFuncional().getSeq(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tConstanteAghCaractUnidFuncionais.LAUDO_CTI);\r\n\t\tif (possuiCaracteristica) {\r\n\r\n\t\t\tShort tempoValidade = this.getMpmTipoLaudoConvenioDAO()\r\n\t\t\t\t\t.obterTempoValidadeTipoLaudo(\r\n\t\t\t\t\t\t\tseqLaudoUTI.getVlrNumerico().shortValue(),\r\n\t\t\t\t\t\t\tconvenioSaudePlano);\r\n\r\n\t\t\tif (tempoValidade != null) {\r\n\r\n\t\t\t\tboolean acheiLaudoValido = false;\r\n\r\n\t\t\t\tMpmTipoLaudo tipoLaudoUTI = this.getMpmTipoLaudoDAO()\r\n\t\t\t\t\t\t.obterPorChavePrimaria(\r\n\t\t\t\t\t\t\t\tseqLaudoUTI.getVlrNumerico().shortValue());\r\n\r\n\t\t\t\tList<MpmLaudo> laudos = this.getMpmLaudoDAO()\r\n\t\t\t\t\t\t.listarLaudosPorAtendimentoETipo(\r\n\t\t\t\t\t\t\t\tprescricao.getAtendimento(), tipoLaudoUTI,\r\n\t\t\t\t\t\t\t\tprescricao.getDthrInicio());\r\n\r\n\t\t\t\tString justificativa = null;\r\n\t\t\t\tShort duracaoTratamentoSolicitado = null;\r\n\r\n\t\t\t\tfor (MpmLaudo laudo : laudos) {\r\n\t\t\t\t\tDate dataTeste = DateUtil.adicionaDias(laudo\r\n\t\t\t\t\t\t\t.getDthrInicioValidade(), tempoValidade - 1);\r\n\r\n\t\t\t\t\tif (DateUtil.validaDataTruncadaMaiorIgual(dataTeste,\r\n\t\t\t\t\t\t\tprescricao.getDthrInicio())\r\n\t\t\t\t\t\t\t&& laudo.getDthrFimValidade() == null) {\r\n\r\n\t\t\t\t\t\tacheiLaudoValido = true;\r\n\r\n\t\t\t\t\t} else if (laudo.getDthrFimValidade() != null\r\n\t\t\t\t\t\t\t&& DateUtil.entreTruncado(prescricao\r\n\t\t\t\t\t\t\t\t\t.getDthrInicio(), laudo\r\n\t\t\t\t\t\t\t\t\t.getDthrInicioValidade(), laudo\r\n\t\t\t\t\t\t\t\t\t.getDthrFimValidade())) {\r\n\r\n\t\t\t\t\t\tacheiLaudoValido = true;\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (laudo.getDthrFimValidade() == null) {\r\n\t\t\t\t\t\t\tlaudo.setDthrFimValidade(DateUtil.adicionaDias(\r\n\t\t\t\t\t\t\t\t\tlaudo.getDthrInicioValidade(),\r\n\t\t\t\t\t\t\t\t\ttempoValidade - 1));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tjustificativa = laudo.getJustificativa();\r\n\t\t\t\t\tduracaoTratamentoSolicitado = laudo\r\n\t\t\t\t\t\t\t.getDuracaoTratSolicitado();\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (!acheiLaudoValido) {\r\n\r\n\t\t\t\t\tShort maximaDiariaUTI = null;\r\n\r\n\t\t\t\t\tif (prescricao.getAtendimento().getInternacao() != null) {\r\n\t\t\t\t\t\tmaximaDiariaUTI = prescricao.getAtendimento()\r\n\t\t\t\t\t\t\t\t.getInternacao()\r\n\t\t\t\t\t\t\t\t.getItemProcedimentoHospitalar()\r\n\t\t\t\t\t\t\t\t.getMaxDiariaUti();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (maximaDiariaUTI == null || maximaDiariaUTI > 0) {\r\n\t\t\t\t\t\tMpmLaudo laudo = new MpmLaudo();\r\n\t\t\t\t\t\tlaudo.setDthrInicioValidade(prescricao.getDthrInicio());\r\n\t\t\t\t\t\tlaudo.setDthrFimValidade(DateUtil.adicionaDias(laudo\r\n\t\t\t\t\t\t\t\t.getDthrInicioValidade(), tempoValidade - 1));\r\n\t\t\t\t\t\tlaudo.setDthrFimPrevisao(DateUtil.adicionaDias(laudo\r\n\t\t\t\t\t\t\t\t.getDthrInicioValidade(), tempoValidade - 1));\r\n\t\t\t\t\t\tlaudo.setJustificativa(justificativa);\r\n\t\t\t\t\t\tlaudo.setContaDesdobrada(false);\r\n\t\t\t\t\t\tlaudo.setImpresso(false);\r\n\t\t\t\t\t\tlaudo\r\n\t\t\t\t\t\t\t\t.setDuracaoTratSolicitado(duracaoTratamentoSolicitado);\r\n\t\t\t\t\t\tlaudo.setLaudoManual(false);\r\n\t\t\t\t\t\tlaudo.setAtendimento(prescricao.getAtendimento());\r\n\t\t\t\t\t\tlaudo.setTipoLaudo(tipoLaudoUTI);\r\n\t\t\t\t\t\tlaudoList.add(laudo);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void contabilizarConMesYProfesor(ProfesorBean profesor, int mes){\r\n GestionDetallesInformesBD.deleteDetallesInforme(profesor, mes); \r\n\r\n //Preparamos todos los datos. Lista de fichas de horario.\r\n ArrayList<FichajeBean> listaFichajes = GestionFichajeBD.getListaFichajesProfesor(profesor,mes);\r\n ArrayList<FichajeRecuentoBean> listaFichajesRecuento= UtilsContabilizar.convertirFichajes(listaFichajes);\r\n\r\n /**\r\n * Contabilizar horas en eventos de día completo\r\n */\r\n \r\n int segundosEventosCompletos=contabilizarEventosCompletos(listaFichajesRecuento, profesor,mes);\r\n \r\n /**\r\n * Contabilizar horas en eventos de tiempo parcial\r\n */\r\n \r\n ArrayList<EventoBean> listaEventos=GestionEventosBD.getListaEventosProfesor(false, profesor, mes);\r\n int segundosEventosParciales=contabilizarEventosParciales(listaFichajesRecuento,listaEventos, profesor, mes, \"C\");\r\n \r\n /**\r\n * Contabilizamos las horas lectivas\r\n */\r\n ArrayList<FichaBean> listaFichasLectivas=UtilsContabilizar.getHorarioCompacto(profesor, \"L\");\r\n int segundosLectivos=contabilizaHorasLectivasOCmplementarias(listaFichajesRecuento, listaFichasLectivas, profesor,\"L\", mes);\r\n \r\n /**\r\n * Contabilizar horas complementarias\r\n */\r\n ArrayList<FichaBean> listaFichasComplementarias=UtilsContabilizar.getHorarioCompacto(profesor, \"C\");\r\n int segundosComplementarios=contabilizaHorasLectivasOCmplementarias(listaFichajesRecuento, listaFichasComplementarias, profesor,\"C\", mes);\r\n \r\n /**\r\n * Contabilizamos la horas no lectivas (el resto de lo que quede en los fichajes.\r\n */\r\n int segundosNLectivos=contabilizaHorasNoLectivas(listaFichajesRecuento, profesor, true, mes);\r\n \r\n /**\r\n * Contabilizamos las horas extra añadidas al profesor\r\n */\r\n ArrayList<HoraExtraBean> listaHorasExtra=GestionHorasExtrasBD.getHorasExtraProfesor(profesor, mes);\r\n HashMap<String, Integer> tablaHorasExtra = contabilizaHorasExtra(listaHorasExtra, profesor, mes);\r\n \r\n System.out.println(\"Segundos de horas lectivas: \"+Utils.convierteSegundos(segundosLectivos));\r\n System.out.println(\"Segundos de horas complementarias: \"+Utils.convierteSegundos(segundosComplementarios));\r\n System.out.println(\"Segundos de horas no lectivas: \"+Utils.convierteSegundos(segundosNLectivos));\r\n System.out.println(\"Segundos eventos completos: \"+Utils.convierteSegundos(segundosEventosCompletos));\r\n System.out.println(\"Segundos eventos parciales: \"+Utils.convierteSegundos(segundosEventosParciales));\r\n System.out.println(\"Total: \"+Utils.convierteSegundos((segundosComplementarios+segundosLectivos+segundosNLectivos+segundosEventosCompletos+segundosEventosParciales)));\r\n \r\n /**\r\n * Comprobacion\r\n */\r\n listaFichajes = GestionFichajeBD.getListaFichajesProfesor(profesor,mes);\r\n listaFichajesRecuento= UtilsContabilizar.convertirFichajes(listaFichajes);\r\n int segundosValidacion=contabilizaHorasNoLectivas(listaFichajesRecuento, profesor, false, mes);\r\n int segundosValidacion2=segundosComplementarios+segundosLectivos+segundosNLectivos+segundosEventosCompletos+segundosEventosParciales;\r\n System.out.println(\"Comprobacion: \"+Utils.convierteSegundos(segundosValidacion));\r\n String obser=segundosValidacion==segundosValidacion2?\"Correcto\":\"No coinciden las horas en el colegio, con las horas calculadas de cada tipo.\";\r\n \r\n segundosComplementarios+=segundosEventosCompletos;\r\n segundosComplementarios+=segundosEventosParciales;\r\n\r\n //Guardamos en la base de datos\r\n GestionInformesBD.guardaInforme(profesor, obser, segundosLectivos, segundosNLectivos, segundosComplementarios,mes);\r\n \r\n }", "public DatoGeneralEmpleadoLogic()throws SQLException,Exception {\r\n\t\tsuper();\r\n\t\t\r\n\t\ttry\t{\t\t\t\t\t\t\r\n\t\t\tthis.datogeneralempleadoDataAccess = new DatoGeneralEmpleadoDataAccess();\r\n\t\t\t\r\n\t\t\tthis.datogeneralempleados= new ArrayList<DatoGeneralEmpleado>();\r\n\t\t\tthis.datogeneralempleado= new DatoGeneralEmpleado();\r\n\t\t\t\r\n\t\t\tthis.datogeneralempleadoObject=new Object();\r\n\t\t\tthis.datogeneralempleadosObject=new ArrayList<Object>();\r\n\t\t\t\t\r\n\t\t\t/*\r\n\t\t\tthis.connexion=new Connexion();\r\n\t\t\tthis.datosCliente=new DatosCliente();\r\n\t\t\tthis.arrDatoGeneral= new ArrayList<DatoGeneral>();\r\n\t\t\t\r\n\t\t\t//INICIALIZA PARAMETROS CONEXION\r\n\t\t\tthis.connexionType=Constantes.CONNEXIONTYPE;\r\n\t\t\tthis.parameterDbType=Constantes.PARAMETERDBTYPE;\r\n\t\t\t\r\n\t\t\tif(Constantes.CONNEXIONTYPE.equals(ConnexionType.HIBERNATE)) {\r\n\t\t\t\tthis.entityManagerFactory=ConstantesCommon.JPAENTITYMANAGERFACTORY;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.datosDeep=new DatosDeep();\r\n\t\t\tthis.isConDeep=false;\r\n\t\t\t*/\r\n\t\t\t\r\n\t\t\tthis.datogeneralempleadoDataAccess.setConnexionType(this.connexionType);\r\n\t\t\tthis.datogeneralempleadoDataAccess.setParameterDbType(this.parameterDbType);\r\n\t\t\t\r\n\t\t\t\r\n\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tthis.invalidValues=new InvalidValue[0];\r\n\t\t\tthis.stringBuilder=new StringBuilder();\r\n\t\t\tthis.conMostrarMensajesStringBuilder=true;\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t \r\n }", "public void preencherDisponibilidadesOferta() {\n\n //List<Disponibilidade> disponibilidades;\n List<Disp> disponibilidades;\n \n if (oferta != null) {\n //disponibilidades = new ArrayList<>(oferta.getDisponibilidades());\n disponibilidades = new ArrayList<>(oferta.getDispo());\n } else {\n disponibilidades = new ArrayList<>();\n }\n //dispDataModel = new DisponibilidadeDataModel(disponibilidades);\n dispDataModel = new DispDataModel(disponibilidades);\n }", "private void gerarLaudoPermanenciaMaior(MpmPrescricaoMedica prescricao,\r\n\t\t\tList<MpmLaudo> laudoList, FatConvenioSaudePlano convenioSaudePlano,\r\n\t\t\tAghParametros seqLaudoMaiorPermanencia) {\r\n\t\tMpmTipoLaudoConvenio tipoLaudoConvenio = this\r\n\t\t\t\t.getMpmTipoLaudoConvenioDAO()\r\n\t\t\t\t.obterTempoValidadeTipoLaudoPermanenciaMaior(\r\n\t\t\t\t\t\tseqLaudoMaiorPermanencia.getVlrNumerico().shortValue(),\r\n\t\t\t\t\t\tconvenioSaudePlano);\r\n\r\n\t\tif (tipoLaudoConvenio != null) {\r\n\r\n\t\t\tShort quantidadeDiasFaturamento = 0;\r\n\t\t\tShort diasPermanenciaMaior = 0;\r\n\r\n\t\t\tMpmTipoLaudo tipoLaudoMaiorPermanencia = this.getMpmTipoLaudoDAO()\r\n\t\t\t\t\t.obterPorChavePrimaria(\r\n\t\t\t\t\t\t\tseqLaudoMaiorPermanencia.getVlrNumerico()\r\n\t\t\t\t\t\t\t\t\t.shortValue());\r\n\r\n\t\t\tif (prescricao.getAtendimento().getInternacao() != null) {\r\n\t\t\t\tif (prescricao.getAtendimento()\r\n\t\t\t\t\t\t.getInternacao().getItemProcedimentoHospitalar() != null){\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (prescricao.getAtendimento()\r\n\t\t\t\t\t.getInternacao().getItemProcedimentoHospitalar()\r\n\t\t\t\t\t.getQuantDiasFaturamento() != null){\r\n\t\t\t\t\t\tquantidadeDiasFaturamento = prescricao.getAtendimento()\r\n\t\t\t\t\t\t.getInternacao().getItemProcedimentoHospitalar()\r\n\t\t\t\t\t\t.getQuantDiasFaturamento();\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tdiasPermanenciaMaior = prescricao.getAtendimento()\r\n\t\t\t\t\t.getInternacao().getItemProcedimentoHospitalar()\r\n\t\t\t\t\t.getDiasPermanenciaMaior();\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\tif (diasPermanenciaMaior == null || diasPermanenciaMaior > 0){\r\n\t\t\t\t\r\n\t\t\t\tInteger adicionalDias = 0;\r\n\t\t\t\tif (quantidadeDiasFaturamento != null) {\r\n\t\t\t\t\tadicionalDias = (quantidadeDiasFaturamento * 2) + 1;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (DateUtil.validaDataTruncadaMaiorIgual(new Date(), DateUtil\r\n\t\t\t\t\t\t.adicionaDias(prescricao.getAtendimento().getInternacao()\r\n\t\t\t\t\t\t\t\t.getDthrInternacao(), adicionalDias))) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (this.getMpmLaudoDAO()\r\n\t\t\t\t\t\t\t.obterCountLaudosPorTipoEAtendimento(\r\n\t\t\t\t\t\t\t\t\tprescricao.getAtendimento(),\r\n\t\t\t\t\t\t\t\t\ttipoLaudoMaiorPermanencia) <= 0) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tMpmLaudo laudo = new MpmLaudo();\r\n\t\t\t\t\t\tlaudo.setDthrInicioValidade(prescricao.getAtendimento()\r\n\t\t\t\t\t\t\t\t.getInternacao().getDthrInternacao());\r\n\t\t\t\t\t\tlaudo.setContaDesdobrada(false);\r\n\t\t\t\t\t\tlaudo.setImpresso(false);\r\n\t\t\t\t\t\tlaudo.setLaudoManual(false);\r\n\t\t\t\t\t\tlaudo.setAtendimento(prescricao.getAtendimento());\r\n\t\t\t\t\t\tlaudo.setTipoLaudo(tipoLaudoMaiorPermanencia);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tlaudoList.add(laudo);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void reposicionarPersonajes() {\n // TODO implement here\n }", "private void limpiarDatos() {\n\t\t\n\t}", "@Override\n\tpublic void trabajar() {\n\n\t}", "public void analizarRespuestasPrueba(ArrayList respuestas, Candidato candidatoactual, Prueba tipopruebaactual, Convocatoria convocatoriaactual, ArrayList rolesactuales, Resultado resultadoactual)\r\n\t{\r\n\t\t//se elimina el permiso asignado al candidato al terminar de presentar la prueba.\r\n\t\tPermiso permisocandidato = null;\r\n\t\ttry \r\n\t\t{\r\n\t\t\tConector conector = new Conector();\r\n\t\t\tconector.iniciarConexionBaseDatos();\r\n\t\t\tpermisocandidato = PermisoBD.buscarCandidato(candidatoactual.getIdcandidato(), conector);\r\n\t\t\tconector.terminarConexionBaseDatos();\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tJOptionPane.showMessageDialog(this,\"Error al conectar con la Base de Datos.\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t}\r\n\t\tif(permisocandidato != null)\r\n\t\t{\r\n\t\t\ttry \r\n\t\t\t{\r\n\t\t\t\tConector conector = new Conector();\r\n\t\t\t\tconector.iniciarConexionBaseDatos();\r\n\t\t\t\tPermisoBD.eliminar(permisocandidato.getIdpermiso(), conector);\r\n\t\t\t\tconector.terminarConexionBaseDatos();\r\n\t\t\t}\r\n\t\t\tcatch (Exception e)\r\n\t\t\t{\r\n\t\t\t\tJOptionPane.showMessageDialog(this,\"Error al conectar con la Base de Datos.\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t\t}\r\n\t\t}\r\n\t\t//se calcula los puntajes, luego se analizan estos puntajes para determinar las observaciones, para finalmente almacenar los resultados de la prueba candidato\r\n\t\tmotorinferencia.calcularPuntajesTodasLasEscalas(respuestas);\r\n\t\tmotorinferencia.calcularPuntajeRoles(rolesactuales);\r\n\t\tmotorinferencia.calcularPuntajeResultadoPrueba(resultadoactual, rolesactuales);\r\n\t\tmotorinferencia.determinarObservacionesResultadoPrueba();\r\n\t\tmotorinferencia.almacenarResultadoPruebaCandidato(candidatoactual, tipopruebaactual, convocatoriaactual);\r\n\t}", "public Mach buscarEmpleado(Vacante vacante) {\r\n\t\tSystem.out.println(\"buscando empleo\");\r\n\t\tMach ELpapa = null;\r\n\t\tMach nuevo = null;\r\n\t\tArrayList<Mach> maches = new ArrayList<>();\r\n\t\tfor (Persona persona : personas) {\r\n\t\t\tSystem.out.println(\"aqui\");\r\n\t\t\tif (persona instanceof Obrero) {\r\n\t\t\t\tif (vacante instanceof vacanteObrero) {\r\n\t\t\t\t\tSystem.out.println(\"estoy aqui obrero\");\r\n\t\t\t\t\tif (persona.INTERIOR().equalsIgnoreCase(((vacanteObrero) vacante).getHabilidades())) {\r\n\t\t\t\t\t\tnuevo = persona.buscarCurriculums(vacante);\r\n\t\t\t\t\t\tif (nuevo.getIdice() > 0) {\r\n\t\t\t\t\t\t\tmaches.add(nuevo);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (persona instanceof Tecnico) {\r\n\t\t\t\tif (vacante instanceof vacanteTecnico) {\r\n\t\t\t\t\tif (persona.INTERIOR().equalsIgnoreCase(((vacanteTecnico) vacante).getArea_desarrollo())) {\r\n\t\t\t\t\t\tSystem.out.println(\"esoty aqui tecnico\");\r\n\t\t\t\t\t\tnuevo = persona.buscarCurriculums(vacante);\r\n\t\t\t\t\t\tif (nuevo.getIdice() > 0) {\r\n\t\t\t\t\t\t\tmaches.add(nuevo);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (persona instanceof Universitario) {\r\n\t\t\t\tif (vacante instanceof vancanteUniversitario) {\r\n\t\t\t\t\tSystem.out.println(\"estoy aqui univeristario\");\r\n\t\t\t\t\tif (persona.INTERIOR().equalsIgnoreCase(((vancanteUniversitario) vacante).getCarreraUniv())) {\r\n\t\t\t\t\t\tnuevo = persona.buscarCurriculums(vacante);\r\n\t\t\t\t\t\tif (nuevo.getIdice() > 0) {\r\n\t\t\t\t\t\t\tmaches.add(nuevo);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tELpapa = buscarmayorIndiceDeMACHES(maches);\r\n\t\tif (ELpapa != null) {\r\n\t\t\tSystem.out.println(\"no es null\");\r\n\t\t}\r\n\t\treturn ELpapa;\r\n\t}", "@Test\n\tpublic void testAdmitirJugadores() {\n\t\tSalaDeJuego sala = new SalaDeJuego(\"sala1\");\n\t\tassertEquals(0, sala.getCantJugadores());\n\t\t//Crea un jugador y lo admite. Consulta por cantidad de jugadores = 1\n\t\tJugador jugador1 = new Jugador(\"Maikcrosoft\", 1);\n\t\tassertTrue(sala.admitirJugador(jugador1));\n\t\tassertEquals(1, sala.getCantJugadores());\n\t\t//Crea un jugador y lo admite. Consulta por cantidad de jugadores = 2\n\t\tJugador jugador2 = new Jugador(\"crosoft\", 2);\n\t\tassertTrue(sala.admitirJugador(jugador2));\n\t\tassertEquals(2, sala.getCantJugadores());\n\t\t//Crea un tercer jugador y lo admite. Consulta por cantidad de jugadores = 3\n\t\tJugador jugador3 = new Jugador(\"soft\", 3);\n\t\tassertTrue(sala.admitirJugador(jugador3));\n\t\tassertEquals(3, sala.getCantJugadores());\n\t\t//Crea un cuarto jugador y lo admite. Consulta por cantidad de jugadores = 4\n\t\tJugador jugador4 = new Jugador(\"croso\", 4);\n\t\tassertTrue(sala.admitirJugador(jugador4));\n\t\tassertEquals(4, sala.getCantJugadores());\n\t\t//Crea un quinto jugador y verifica que lo rechace. \n\t\tJugador jugador5 = new Jugador(\"ikcro\", 5);\n\t\tassertFalse(sala.admitirJugador(jugador5));\n\t}", "private static void estadisticaClase() {\n int numeroAlumnos;\n int aprobados = 0, suspensos = 0; // definición e instanciación de varias a la vez\n int suficentes = 0, bienes = 0, notables = 0, sobresalientes = 0;\n float totalNotas = 0;\n float media;\n Scanner in = new Scanner(System.in);\n\n // Salismos del bucle sólo si nos introduce un número positivo\n do {\n System.out.println(\"Introduzca el número de alumnos/as: \");\n numeroAlumnos = in.nextInt();\n } while (numeroAlumnos <= 0);\n\n // Como sabemos el número de alumnos es un bucle definido\n for (int i = 1; i <= numeroAlumnos; i++) {\n float nota = 0;\n\n // nota solo existe dentro de este for, por eso la definimos aquí.\n do {\n System.out.println(\"Nota del alumno \" + i + \" [0-10]: \");\n nota = in.nextFloat();\n } while (nota < 0 || nota > 10);\n\n // Sumamos el total de notas\n totalNotas += nota;\n\n if (nota < 5) {\n suspensos++;\n } else if (nota >= 5 && nota < 6) {\n aprobados++;\n suficentes++;\n } else if (nota >= 6 && nota < 7) {\n aprobados++;\n bienes++;\n } else if (nota >= 7 && nota < 9) {\n aprobados++;\n notables++;\n } else if (nota >= 9) {\n aprobados++;\n sobresalientes++;\n }\n }\n // De esta manera redondeo a dos decimales. Tengo que hacer un casting porque de Double quiero float\n // Si no debería trabajar con double siempre.\n media = (float) (Math.round((totalNotas / numeroAlumnos) * 100.0) / 100.0);\n\n // Sacamos las estadísticas\n System.out.println(\"Número de alumnos/as: \" + numeroAlumnos);\n System.out.println(\"Número de aprobados/as: \" + aprobados);\n System.out.println(\"Número de suspensos: \" + suspensos);\n System.out.println(\"Nota media: \" + media);\n System.out.println(\"Nº Suficientes: \" + suficentes);\n System.out.println(\"Nº Bienes: \" + bienes);\n System.out.println(\"Nº Notables: \" + notables);\n System.out.println(\"Nº Sobresalientes: \" + sobresalientes);\n\n\n }", "public void run() throws IloException {\n\t\t\n\t\t//Instancie la classe Cplex avec le programme lineaire et la nature\n\t\tCplex cplex = new Cplex(prog, nature);\n\t\tboolean st = false;\n\t\tString info;\n\t\tint i = 0;\n\t\t\n\t\t/*Tant que l'on a des sous tours dans le modèle*/\n\t\tdo {\n\t\t\t//Lancement du solve du model de cplex\n\t\t\tcplex.solve();\n\t\t\t\n\t\t\t//Récupère un booléen en fonction de la présence de sous tours après le solve\n\t\t\tst = contrainteSousTour(cplex);\n\t\t\tinfo = \"Contrainte de sous-tours ajouté au modèle\";\n\t\t\tInterface.majAffichage(info);\n\t\t\ti++;\n\t\t} while (st && i!= 5);\n\n\t}", "public static void main(String[] args) {\n Alumnos a = new Alumnos(\"3457794\",\"IDS\",\"A\",3,\"Juan\",\"Masculino\",158);\n //recibe: String folio,String nombre, String sexo, int edad\n Profesores p = new Profesores(\"SDW7984\",\"Dr. Pimentel\",\"Masculino\",25);\n \n //recibe: String puesto,String nombre, String sexo, int edad\n Administrativos ad = new Administrativos(\"Rectoria\",\"Jesica\",\"Femenino\",25);\n \n //datos de alumnos//\n System.out.println(\"\\nEl alumno tiene los siguientes datos:\");\n System.out.println(a.GetName());\n System.out.println(a.GetEdad());\n System.out.println(a.getCarrera());\n \n //datos de maestro//\n System.out.println(\"\\nLos datos de x maestro es:\");\n System.out.println(p.GetName());\n System.out.println(p.getFolio());\n System.out.println(p.GetEdad());\n \n //daros de Administrativo//\n System.out.println(\"\\nLos datos de x Administrativo\");\n System.out.println(ad.GetName());\n System.out.println(ad.getPuesto());\n System.out.println(ad.GetEdad());\n \n \n System.out.println(\"\\n\\nIntegranres de Equipo\");\n System.out.println(\"Kevin Serrano - 133369\");\n System.out.println(\"Luis Angel Farelo Toledo - 143404\");\n System.out.println(\"Ericel Nucamendi Jose - 133407\");\n System.out.println(\"Javier de Jesus Flores Herrera - 143372\");\n System.out.println(\"Carlos Alejandro Zenteno Robles - 143382\");\n }", "public void hallarPerimetroEscaleno() {\r\n this.perimetro = this.ladoA+this.ladoB+this.ladoC;\r\n }", "public void MoverPieza(CuadroPieza cuadroActual, CuadroPieza cuadroDestino) {\n try {\n if (suspenderJuego) {//Si el juego no esta suspendido\n return;\n }\n if (cuadroActual.getPieza().MoverPieza(cuadroDestino, this)) {//Si el movimiento es valido\n for (int x = 0; x < 8; x++) {\n for (int y = 0; y < 8; y++) {\n tablero[x][y].opacarPieza();//Regreso todos los cuadros a su estado inicial, para que no esten resaltados.\n }\n }\n setTurno(getTurno() * -1);//Cambio de turno.\n if (getRey(getTurno()).isInJacke(this)) {//Pregunto si el rey del turno actual, o sea al que le toca mover despues de este metodo, esta en jacke\n if (Pieza.isJugadorAhogado(getTurno(), this)) {//Si esta en jacke, pregunto si esta ahogado(Quiere decir que no tiene opcion.)\n //Si esta en jacke y esta ahogado a la vez, quiere decir que esta en jacke mate.\n JOptionPane.showMessageDialog(null, \"Hacke Mate!!!\\nComputadora: Parece que me ganaste=(\");\n if (JOptionPane.showConfirmDialog(null, \"Computadora: Te reto a que lo vuelvas a hacer, Otra¿?\", \"Nueva Partida\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {\n ordenarTablero();\n } else {\n JOptionPane.showMessageDialog(null, \"Computadora: Cobarde ¬¬\");\n suspenderJuego = true;\n }\n return;\n } else {\n //Si no esta ahogado, simplemente es un jacke.\n JOptionPane.showMessageDialog(null, \"Rey en Hacke \\nComputadora: Y ahora que hago¿? =(\");\n }\n } else {\n if (Pieza.isJugadorAhogado(getTurno(), this)) {\n //Si solo esta ahogado, es un empate.\n JOptionPane.showMessageDialog(null, \"Empate!!!\\nComputadora: Vamos que andamos parchis, me has ahogado!!!\");\n\n if (JOptionPane.showConfirmDialog(null, \"Deseas Empezar una nueva Partida¿?\", \"Nueva Partida\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {\n ordenarTablero();\n } else {\n suspenderJuego = true;\n }\n return;\n }\n if (Pieza.getCantMovimientosSinCambios() >= 50) {\n //Si han pasado 50 movimientos sin ningun cambio, tambien se considera empate.\n JOptionPane.showMessageDialog(null, \"Empate!!! \\nComputadora: Vaya, han pasado 50 turnos sin comernos jeje!!!\");\n if (JOptionPane.showConfirmDialog(null, \"Otra Partida Amistosa¿?\", \"Nueva Partida\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {\n ordenarTablero();\n } else {\n suspenderJuego = true;\n }\n }\n }\n\n if (getTurno() == turnoComputadora) {//Si le toca a la computadora, le toca jugar a ella.\n jugarMaquinaSola(getTurno());\n }\n } else {\n if (getRey(getTurno()).isInJacke(this)) {//Si el movimiento es invalido, y encima el rey esta en jacke, pues es un movimiento invalido, el rey tiene que librarse del jacke\n JOptionPane.showMessageDialog(null, \"Movimiento invalido\");\n }\n }\n } catch (Exception e) {\n System.out.print(\"Error: \" + e.getMessage());\n }\n }", "public List<Listas_de_las_Solicitudes> Mostrar_las_peticiones_que_han_llegado_al_Usuario_Administrador(int cedula) {\n\t\t//paso3: Obtener el listado de peticiones realizadas por el usuario\n\t\tEntityManagerFactory entitymanagerfactory = Persistence.createEntityManagerFactory(\"LeyTransparencia\");\n\t\tEntityManager entitymanager = entitymanagerfactory.createEntityManager();\n\t\tentitymanager.getEntityManagerFactory().getCache().evictAll();\n\t\tQuery consulta4=entitymanager.createQuery(\"SELECT g FROM Gestionador g WHERE g.cedulaGestionador =\"+cedula);\n\t\tGestionador Gestionador=(Gestionador) consulta4.getSingleResult();\n\t\t//paso4: Obtener por peticion la id, fecha y el estado\n\t\tList<Peticion> peticion=Gestionador.getEmpresa().getPeticions();\n\t\tList<Listas_de_las_Solicitudes> peticion2 = new ArrayList();\n\t\t//paso5: buscar el area de cada peticion\n\t\tfor(int i=0;i<peticion.size();i++){\n\t\t\tString almcena=\"\";\n\t\t\tString sarea=\"no posee\";\n\t\t\tBufferedReader in;\n\t\t\ttry{\n\t\t\t\tin = new BufferedReader(new InputStreamReader(new FileInputStream(\"C:/area/area\"+String.valueOf(peticion.get(i).getIdPeticion())+\".txt\"), \"utf-8\"));\n\t\t\t\ttry {\n\t\t\t\t\twhile((sarea=in.readLine())!=null){\n\t\t\t\t\t\tint s=0;\n\t\t\t\t\t\talmcena=sarea;\n\t\t\t\t\t}\n\t\t\t\t\tin.close();\n\t\t\t\t\tSystem.out.println(almcena);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\t//paso6: Mostrar un listado de peticiones observando el id, la fecha de realizacion de la peticion, hora de realizacion de la peticion, y el estado actual de la peticion\n\t\t\tListas_de_las_Solicitudes agregar=new Listas_de_las_Solicitudes();\n\t\t\tagregar.setId(String.valueOf(peticion.get(i).getIdPeticion()));\n\t\t\tagregar.setFechaPeticion(peticion.get(i).getFechaPeticion());\n\t\t\tagregar.setNombreestado(peticion.get(i).getEstado().getTipoEstado());\n\t\t\tagregar.setArea(almcena);\n\t\t\tpeticion2.add(agregar);\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"el usuario existe\");\n\t\treturn peticion2;\n\t\t//aun no se\n\t}", "private int cantFantasmasRestantes() {\n // TODO implement here\n return 0;\n }", "public void cartgarTareasConRepeticionDespuesDe(TareaModel model,int unid_medi,String cant_tiempo,String tomas)\n {\n Date fecha = convertirStringEnFecha(model.getFecha_aviso(),model.getHora_aviso());\n Calendar calendar = Calendar.getInstance();\n\n if(fecha != null)\n {\n calendar.setTime(fecha);\n calcularCantidadDeRepeticionesHorasMin(unid_medi,calendar,cant_tiempo,tomas,model);\n }\n }", "private void prepare()\n {\n addObject(new TempoLimite(), 432, 207);\n addObject(new NumeroVidas(), 395, 278);\n\n Cliqueparajogar clique = new Cliqueparajogar();\n addObject(clique, getWidth()/2, getHeight()/2);\n\n Som som = new Som();\n addObject(som, getWidth() - 37, getHeight()-57);\n \n umMin ummin = new umMin();\n addObject(ummin,630,206);\n\n doisMin doismin = new doisMin();\n addObject(doismin,670,206);\n \n tresMin tresmin = new tresMin();\n addObject(tresmin,710,206);\n \n quatroMin quatromin = new quatroMin();\n addObject(quatromin,750,206);\n \n cincoMin cincomin = new cincoMin();\n addObject(cincomin,790,206);\n \n umaVida umavida = new umaVida();\n addObject(umavida,630,280);\n \n duasVidas duasvidas = new duasVidas();\n addObject(duasvidas,670,280);\n \n tresVidas tresvidas = new tresVidas();\n addObject(tresvidas,710,280);\n \n quatroVidas quatrovidas = new quatroVidas();\n addObject(quatrovidas,750,280);\n \n cincoVidas cincovidas = new cincoVidas();\n addObject(cincovidas,790,280);\n \n voltaratras voltar = new voltaratras();\n addObject(voltar, getWidth() -37, 428);\n }", "@Override\n public void paso0() {\n n = graph.getNodeIndices().indexOf(actual);\n nodo = graph.getNodes().get(n);\n nodo.setEstado(Node.State.CURRENT);\n nodo.pintarNodo(g);\n // comprueba si es objetivo\n if (nodo.getEsObjetivo()) {\n // establece el objetivo encontrado\n miObjetivo = nodo.toString();\n // termina con exito\n Step = 4;\n } else {\n // se prepara para explorar los sucesores\n m = nodo.maxSucesores();\n j = 0;\n // siguiente paso\n Step = 1;\n }\n }", "public static void main(String[] args) {\n Animal a1 = new Animal();\n \n //objeto animal parametrizado\n Animal a2 = new Animal(LocalDate.of(2020, 6, 4), \"Saphi\", Animal.Tipo.GATO, 400, Animal.Estado.DURMIENDO);\n \n //imprimir a1 y a2\n System.out.println(\"Animal a1:\\n \" + a1.toString());\n System.out.println(\"Animal a2:\\n \" + a2.toString());\n \n \n //clonar a2 en a3\n Animal a3 = Animal.clonar(a2);\n System.out.println(\"Animal a3:\\n\" + a3.toString());\n \n //contador de instancias\n System.out.println(\"N de instancias: \" + Animal.getContadorInstancias());\n \n //creacion de dos personas\n Persona p1 = new Persona(\"Juan\", 33);\n Persona p2 = new Persona(\"Alba\", 21);\n \n //p1 despierta a los animales\n p1.llamar(a1);\n p1.llamar(a2);\n p1.llamar(a3);\n\n //p2 juega con a2 12m min\n p2.jugar(a2, 120);\n System.out.println(\"Peso de a2 despues de jugar con p2: \" + a2.getGramos());\n \n \n //p1 alimenta a a1 1000 gramos, nuevo peso\n p1.alimentar(a1, 1000);\n System.out.println(\"Peso de a1 despues de comer: \" + a1.getGramos());\n \n //FALTA CONTROLAR EXCEPCION\n \n //p1 juega con a1 200 min, nuevo peso\n// p1.jugar(a1, 200);\n// System.out.println(\"El animal a1 pesa \" + a1.getGramos() + \" después de jugar\");\n \n \n }", "public TipoCaracteresException() {\n\t\tsuper(\"Los campos 'nombre' y ' apellido' solo pueden contener letras\");\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tEmpleado[] misEmpleados = new Empleado[3];\n\t\t\n\t\tmisEmpleados[0] = new Empleado(\"Laura Diaz\", 85000, 2020,2,30);\n\t\tmisEmpleados[2] = new Empleado(\"Jon Snow\", 43000, 2018,10,3);\n\t\tmisEmpleados[1] = new Empleado(\"Ana Lopez\", 68000, 2010,12,3);\n\t\t\n\t\t//PRINCIPIO DE SUSTITUCIÓN\n\t\tEmpleado director_comercial = new Jefatura(\"Lau\", 40000, 2018,6,14);\n\t\t\n\t\t//Una vez hecho esto se puede utilizar la instrucción INSTANCEOF (comprobar si una instancia pertenece\n\t\t//a una clase o no).\n\t\tif (director_comercial instanceof Empleado) {\n\t\t\t\n\t\t\tSystem.out.println(\"Es de tipo Jefatura\");\n\t\t}\n\t\t\n\t\t////Ahora vamos a llamar al método de la interfaz estableceBonus\n\t\tSystem.out.println(\"El empleado \" + misEmpleados[1].dameNombre() + \" tiene un bonus de \" +\n\t\tmisEmpleados[1].estableceBonus(250.60));\n\t\t\n\t\t\n\t\t\t\t\n\t\t//ORDENAR LA MATRIZ:\n\t\t\n\t\tint control = 0;\n\t\tdo {\n\t\t\tfor (int i = 1; i < misEmpleados.length; i++) {\n\t\t\t\tcontrol = 0;\n\t\t\t\tif (misEmpleados[i-1].dameSueldo() > misEmpleados[i].dameSueldo()) {\n\t\t\t\t\tEmpleado x = misEmpleados[i-1];\n\t\t\t\t\tmisEmpleados[i-1] = misEmpleados[i];\n\t\t\t\t\tmisEmpleados[i] = x;\n\t\t\t\t\tcontrol++;\n\t\t\t\t}\n\t\t\t}\n\t\t} while (control != 0);\n\t\n\t\t //Ahora vamos a subirles el suelo a todos un 5%. FOR para recorrer el Array\n\n\t\tfor (int i = 0; i < misEmpleados.length; i++) {\n\n\t\t\tmisEmpleados[i].subeSueldo(5);\n\t\t}\n\n\t\t// Vamos a usar otro bucle FOR para que nos imprima el pantalla a cada uno de\n\t\t// los empleados\n\n\t\tfor (int i = 0; i < misEmpleados.length; i++) {\n\n\t\t\tSystem.out.println(\"Nombre: \" + misEmpleados[i].dameNombre() + \" Sueldo: \" + \n\t\t\tmisEmpleados[i].dameSueldo() + \" Fecha de alta : \" + misEmpleados[i].dameFechaContrato());\n\t\t}\n\t\t\n\t\t\n\t\tJefatura jefe_RRHH = new Jefatura(\"Laura\", 25000, 1992, 10, 04);\n\t\t\n\t\tjefe_RRHH.estableceIncentivo(200.50);\n\t\t\n\t\tSystem.out.println(jefe_RRHH.toString());\n\t\t\n\t\t//Ahora vamos a llamar al método de la interfaz jefes (tomar decisiones)\n\t\tSystem.out.println(jefe_RRHH.tomarDecisiones(\"Contratar personal\"));\n\t\t//Ahora vamos a llamar al método de la interfaz estableceBonus\n\t\tSystem.out.println(\"El jefe de RRHH: \" + jefe_RRHH.dameNombre() + \" tiene un bonus de \" \n\t\t+ jefe_RRHH.estableceBonus(432));\n\t\t\n\n\t}", "public void publicarPropuestas() {\n try {\n //SISTEMA VERIFICA QUE LOS COMPROMISOS PARA EL PERIODO HAYAN SIDO INGRESADO\n if (this.listaCompromiso == null || this.listaCompromiso.isEmpty()) {\n //MUESTRA MENSAJE: 'DEBE INGRESAR LOS COMPROMISOS PARA PODER PUBLICAR ', NO ES POSIBLE PUBLICAR LOS RESULTADOS \n addErrorMessage(keyPropertiesFactory.value(\"cu_ne_6_lbl_mensaje_add_comprimiso_faltantes\"));\n return;\n }\n String mensajeValidacion = validarCompromisosPeriodoByPropuestaNacesidad(this.propuestaSeleccionada);\n if (mensajeValidacion != null) {\n addErrorMessage(keyPropertiesFactory.value(mensajeValidacion));\n return;\n }\n if (IConstantes.CONSTANTES_ESTADO_PROPUESTA_NECESIDAD_PRE_APROBADA.compareTo(this.propuestaSeleccionada.getConstantes().getIdConstantes()) != 0) {\n addErrorMessage(\"La propuesta debe estar en estado Pre-Aprobado\");\n return;\n }\n /*byte[] bitesPdf;\n //GENERAMOS EL REPORTE - CREADOR DE REPORTES\n try {\n HashMap mapa = new HashMap();\n mapa.put(\"p_id_periodo\", periodoSeleccionado.getIdPeriodo().intValue());\n bitesPdf = GeneradorReportesServicio.getInstancia().generarReporte(mapa, \"reporte15.jasper\");\n } catch (Exception e) {\n adicionaMensajeError(\"ERROR, Se presentaron errores al general el reporte JASPER\");\n Logger.getLogger(this.getClass().getName()).log(Level.SEVERE, \"CU-NE-06(publicarPropuestas)\", e);\n return;\n }*/\n String iniciaCodigoVic = keyPropertiesFactory.value(\"cu_ne_6_codigo_proyecto_inicia_generacion\");\n if (iniciaCodigoVic.contains(\"-----NOT FOUND-----\")) {\n addErrorMessage(keyPropertiesFactory.value(\"cu_ne_6_error_no_existe_codigo_proyecto_inicia_generacion\"));\n return;\n }\n //EL SISTEMA CAMBIA EL ESTADO DE TODAS LAS PROPUESTAS DEL LISTADO DE ''PRE-APROBADA ' A 'APROBADA' \n //Y LOS DE ESTADO 'REVISADA' A 'NO APROBADA' \n List<SieduPropuestaAsignada> lstPropuestaasignada = this.servicePropuestaAsignada.findByVigencia(this.propuestaSeleccionada);\n List<Long> lstLong = new ArrayList<>();\n for (SieduPropuestaAsignada s : lstPropuestaasignada) {\n lstLong.add(s.getPropuestaNecesidad().getIdPropuestaNecesidad());\n }\n Proyecto proyecto = new Proyecto();\n int contarProyecto = iProyectoLocal.contarProyectoByVigencia(lstLong);\n Constantes constantes = iConstantesLocal.getConstantesPorIdConstante(IConstantes.DURACION_PROYECTOS_INSTITUCIONALES);\n int numeroMesesEstimacionProyecto = Integer.parseInt(constantes.getValor());\n UsuarioRol usuarioRol = new UsuarioRol(loginFaces.getPerfilUsuarioDTO().getRolUsuarioPorIdRolDTO(IConstantesRole.EVALUADOR_DE_PROPUESTAS_DE_NECESIDADES_EN_LA_VICIN).getIdUsuarioRol());\n if (this.propuestaSeleccionada.getConstantes().getIdConstantes().equals(IConstantes.CONSTANTES_ESTADO_PROPUESTA_NECESIDAD_PRE_APROBADA)) {\n EjecutorNecesidad ejecutorNecesidadResponsable = iEjecutorNecesidadLocal.getEjecutorNecesidadPorPropuestaNecesidadYRolResponsable(this.propuestaSeleccionada.getIdPropuestaNecesidad());\n if (ejecutorNecesidadResponsable == null || ejecutorNecesidadResponsable.getUnidadPolicial() == null || ejecutorNecesidadResponsable.getUnidadPolicial().getSiglaFisica() == null) {\n addErrorMessage(\"Error, Verifique la sigla física de la Unidad Policial asociada a la propuesta: \" + this.propuestaSeleccionada.getTema());\n return;\n }\n\n this.propuestaSeleccionada.setConstantes(new Constantes(IConstantes.CONSTANTES_ESTADO_PROPUESTA_NECESIDAD_APROBADA));\n //POR CADA PROPROPUESTA APROBADA SE CREA UN PROYECTO\n //CREA UN PROYECTO DE INVESTIGACIÓN POR CADA PROPUESTA CON EL ESTADO 'APROBADA', \n //ASIGNÁNDOLE EL CÓDIGO DE INVESTIGACIÓN DE ACUERDO AL MÉTODO ESTABLECIDO(VER REQUERIMIENTOS ESPECIALES), \n //ASIGNÁNDOLE EL ÁREA Y LA LÍNEA DE INVESTIGACIÓN Y EL TEMA PROPUESTO COMO TITULO PROPUESTO\n //VIC - [Consecutivo de proyectos en el periodo][Año]- [Código interno de la Unidad Policial o Escuela]\n String codigoInternoUnidad = ejecutorNecesidadResponsable.getUnidadPolicial().getSiglaFisica();\n String codigoProyecto = iniciaCodigoVic.concat(\"-\");//VIC \n contarProyecto += 1;\n codigoProyecto = codigoProyecto.concat(String.valueOf(contarProyecto));//[Consecutivo de proyectos en el periodo]\n codigoProyecto = codigoProyecto.concat(String.valueOf(lstPropuestaasignada.get(0).getSieduPropuestaAsignadaPK().getVigencia()));//[Año]\n codigoProyecto = codigoProyecto.concat(\"-\");\n codigoProyecto = codigoProyecto.concat(codigoInternoUnidad);//[Código interno de la Unidad Policial o Escuela]\n Date fechaHoy = new Date();\n proyecto.setCodigoProyecto(codigoProyecto);\n proyecto.setLinea(this.propuestaSeleccionada.getLinea());\n proyecto.setTituloPropuesto(this.propuestaSeleccionada.getTema());\n proyecto.setTema(this.propuestaSeleccionada.getTema());\n proyecto.setPeriodo(this.propuestaSeleccionada.getPeriodo());\n proyecto.setUsuarioRol(usuarioRol);\n proyecto.setEstado(new Constantes(IConstantes.TIPO_ESTADO_PROYECTO_EN_EJECUCION));\n proyecto.setUnidadPolicial(ejecutorNecesidadResponsable.getUnidadPolicial());\n proyecto.setPropuestaNecesidad(this.propuestaSeleccionada);\n proyecto.setFechaEstimadaInicio(fechaHoy);\n Calendar fechaFinalEstimadaProyecto = Calendar.getInstance();\n fechaFinalEstimadaProyecto.setTime(fechaHoy);\n fechaFinalEstimadaProyecto.add(Calendar.MONTH, numeroMesesEstimacionProyecto);\n proyecto.setFechaEstimadaFinalizacion(fechaFinalEstimadaProyecto.getTime());\n proyecto.setFechaActualizacion(fechaHoy);\n //CREAMOS LOS COMPROMISOS PROYECTOS\n List<CompromisoProyecto> listaCompromisosProyecto = new ArrayList<CompromisoProyecto>();\n //CONSULTAMOS LOS COMPROMISOS DE ESTE PERIODO\n List<CompromisoPeriodo> listaComprimiso = iCompromisoPeriodoLocal.buscarCompromisoPeriodoByIdPropuestaNecesidad(this.propuestaSeleccionada);\n for (CompromisoPeriodo unCompromisoPeriodo : listaComprimiso) {\n CompromisoProyecto compromisoProyecto = new CompromisoProyecto();\n compromisoProyecto.setCompromisoPeriodo(unCompromisoPeriodo);\n compromisoProyecto.setProyecto(proyecto);\n compromisoProyecto.setEstado(new Constantes(IConstantes.ESTADO_COMPROMISO_PROYECTO_PENDIENTE));\n compromisoProyecto.setFechaCreacion(new Date());\n compromisoProyecto.setMaquina(loginFaces.getPerfilUsuarioDTO().getMaquinaDTO().getIpLoginRemotoUsuario());\n compromisoProyecto.setUsuarioRegistro(loginFaces.getPerfilUsuarioDTO().getIdentificacion());\n compromisoProyecto.setUsuarioRolRegistra(usuarioRol);\n listaCompromisosProyecto.add(compromisoProyecto);\n }\n //CREAMOS LAS UNIDADES EJECUTORAS PARA EL PROYECTO\n List<EjecutorNecesidadDTO> listadoEjecutorNecesidadDTOPropuesta = iEjecutorNecesidadLocal.getEjecutorNecesidadDTOPorPropuestaNecesidad(this.propuestaSeleccionada.getIdPropuestaNecesidad());\n List<EjecutorNecesidad> listaEjecutorNecesidadProyecto = new ArrayList<EjecutorNecesidad>();\n for (EjecutorNecesidadDTO unaEjecutorNecesidadDTO : listadoEjecutorNecesidadDTOPropuesta) {\n EjecutorNecesidad ejecutorNecesidadLocal = new EjecutorNecesidad();\n ejecutorNecesidadLocal.setPropuestaNecesidad(new PropuestaNecesidad(this.propuestaSeleccionada.getIdPropuestaNecesidad()));\n ejecutorNecesidadLocal.setProyecto(proyecto);\n ejecutorNecesidadLocal.setRol(new Constantes(unaEjecutorNecesidadDTO.getIdRol()));\n ejecutorNecesidadLocal.setUnidadPolicial(this.iUnidadPolicialLocal.obtenerUnidadPolicialPorId(unaEjecutorNecesidadDTO.getIdUnidadPolicial()));\n listaEjecutorNecesidadProyecto.add(ejecutorNecesidadLocal);\n }\n proyecto.setEjecutorNecesidadList(listaEjecutorNecesidadProyecto);\n proyecto.setCompromisoProyectoList(listaCompromisosProyecto);\n\n } else if (this.propuestaSeleccionada.getConstantes().getIdConstantes().equals(\n IConstantes.CONSTANTES_ESTADO_PROPUESTA_NECESIDAD_REVISADA)) {\n this.propuestaSeleccionada.setConstantes(new Constantes(IConstantes.CONSTANTES_ESTADO_PROPUESTA_NECESIDAD_NO_APROBADA));\n }\n\n //ACTUALIZAMOS EL CAMPO ROL_ACTUAL\n //CON EL OBJETIVO SE SABER EN DONDE SE ENCUENTRA LA PROPUESTA\n //ESTO SE REALIZA PARA CORREGIR \n //LA INCIDENCIA #0002754: Mientras no se publiquen los resultados de las necesidades, el estado debe ser 'Enviada a VICIN'.\n this.propuestaSeleccionada.setRolActual(IConstantes.PROPUESTA_NECESIDAD_PUBLICADA_JEFE_UNIDAD);\n /* \n\n //GENERAMOS EL NOMBRE DEL ARCHIVO DEL REPORTE\n String nombreReporteUnico = \"PROP_NECES_PERIODO\".concat(\"_\").concat(String.valueOf(System.currentTimeMillis())).concat(\".pdf\");\n String nombreReporte = \"PROP_NECES_PERIODO_\" + (periodoSeleccionado.getAnio() == null ? periodoSeleccionado.getIdPeriodo().toString() : periodoSeleccionado.getAnio().toString()) + \".pdf\";\n */\n //SE ACTUALIZAN LAS PROPUESTAS DE NECESIDAD\n servicePropuestaNecesidad.guardarPropuestaYgenerarProyecto(\n this.propuestaSeleccionada,\n proyecto);\n\n addInfoMessage(keyPropertiesFactory.value(\"cu_ne_6_lbl_mensaje_propuestas_actualizadas_ok_publicar\"));\n\n navigationFaces.redirectFacesCuNe01();\n\n } catch (Exception e) {\n\n addErrorMessage(keyPropertiesFactory.value(\"general_mensaje_error_exception\"));\n Logger.getLogger(this.getClass().getName()).log(Level.SEVERE,\n \"CU-NE-06 Evaluar propuestas de necesidades de investigación - (publicarPropuestas)\", e);\n\n }\n\n }", "public void generar() throws Exception {\n\t\tAnalizador_Sintactico.salida.generar(\".DATA\", \"genero los datos estaticos para la clase \"+this.nombre);\r\n\t\tAnalizador_Sintactico.salida.generar(\"VT_\"+nombre+\":\",\" \");\r\n\t\t\r\n\t\tboolean esDinamico=false;\r\n\t\t\r\n\t\t//para cada metodo, genero la etiqueta dw al codigo\r\n\t\tfor (EntradaMetodo m: entradaMetodo.values()) {\r\n\t\t\tif (m.getModificador().equals(\"dynamic\")) {\r\n\t\t\t\tAnalizador_Sintactico.salida.gen_DW(\"DW \"+m.getEtiqueta(),\"offset: \"+m.getOffsetMetodo(),m.getOffsetMetodo());\r\n\t\t\t\tesDinamico=true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tAnalizador_Sintactico.salida.agregar_DW();\r\n\t\t\r\n\t\t//si NO hay ningun metodo dinamico -> VT con NOP\r\n\t\tif (! esDinamico)\r\n\t\t\tAnalizador_Sintactico.salida.generar(\"NOP\",\"no hago nada\");\r\n\t\t\r\n\t\t//genero codigo para todos los metodos\r\n\t\tAnalizador_Sintactico.salida.generar(\".CODE\",\"seccion codigo de la clase \"+this.nombre);\r\n\t\t\r\n\t\tList<EntradaPar> listaParams;\r\n\t\tfor(EntradaMetodo m: entradaMetodo.values()) {\r\n\t\t\t//metodo actual es m\r\n\t\t\tAnalizador_Sintactico.TS.setMetodoActual(m);\r\n\t\t\t\r\n\t\t\t//SETEO el offset de sus parametros\r\n\t\t\tlistaParams= m.getEntradaParametros();\r\n\t\t\t\r\n\t\t\tfor(EntradaPar p: listaParams) {\r\n\t\t\t\t//seteo offset de p\r\n\t\t\t\t\r\n\t\t\t\t//si es dinamico m -> offset desde 3\r\n\t\t\t\tif (m.getModificador().equals(\"dynamic\")) {\r\n\t\t\t\t\tp.setOffset((listaParams.size() +4) - p.getUbicacion());\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t//si es estatico m -> offset desde 2\r\n\t\t\t\t\tp.setOffset((listaParams.size() +3) - p.getUbicacion());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//genero el codigo del cuerpo de ese metodo\r\n\t\t\tm.generar();\r\n\t\t}\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//genero codigo para todos los constructores\r\n\t\tfor(EntradaCtor c: entradaCtor.values()) {\r\n\t\t\t//metodo actual es m\r\n\t\t\tAnalizador_Sintactico.TS.setMetodoActual(c);\r\n\t\t\t\r\n\t\t\t//SETEO el offset de sus parametros\r\n\t\t\tlistaParams= c.getEntradaParametros();\r\n\t\t\t\r\n\t\t\tfor(EntradaPar p: listaParams) {\r\n\t\t\t\t//seteo offset de p\r\n\t\t\t\tp.setOffset(listaParams.size() +4 - p.getUbicacion());\t// +4 porque el ctor tiene this\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\t//genero el codigo de ese metodo\r\n\t\t\tc.generar();\r\n\t\t}\t\r\n\t}", "public static void horoscopo() {\n\n ArrayList<String> frases = new ArrayList<>();\n\n frases.add(\"Todo lo que seas capaz de creer, eres capaz de conseguir.\");\n frases.add(\"Serás más poderoso cuando tengas control total sobre ti mismo.\");\n frases.add(\"La sabiduría y la casualidad no van unidas de la mano.\");\n frases.add(\"Lo que hay en el ayer o en el mañana no es nada comparado con lo que hay en nuestro interior.\");\n frases.add(\"Cáete siete veces y levántate ocho.\");\n frases.add(\"Nunca es tarde para comenzar un nuevo proyecto, para ser quien siempre has deseado ser.\");\n frases.add(\"Con pensamientos positivos y perseverancia, solo es cuestión de tiempo que superes las adversidades y te propongas nuevos retos.\");\n frases.add(\"La vida es un 10% lo que nos ocurre, y un 90% cómo reaccionamos a ello.\");\n frases.add(\"No es más rico quien más tiene, sino quien menos necesita.\");\n frases.add(\"Intenta y falla, pero nunca falles en intentarlo.\");\n frases.add(\"Solo los hombres más sabios son capaces de saborear los momentos más simples.\");\n frases.add(\"cada segundo que goces, será segundo aprovechado.\");\n\n double numero = Math.round(Math.random() * 11);\n int numeroAleatorio = (int) numero;\n\n //Random r = new Random(); \n // int randomNumber = r.nextInt(frases.size());\n System.out.println(\"Frase horóscopo: \" + frases.get(numeroAleatorio));\n\n }", "public void comprarCasasEHoteis(int idPropriedade) throws Exception {\n\n this.terminarAVez();\n\n if (this.build == true) {\n\n if (this.hipotecaAtiva && this.tabuleiro.getLugarById(idPropriedade).estaHipotecada()) {\n if(verificaSeTodosOsGruposTemHipoteca(listaJogadores.get(jogadorAtual())))\n throw new Exception(\"Unavailable command\");\n throw new Exception(\"Can't build on mortgaged properties\");\n }\n \n if (idPropriedade <= 0 || idPropriedade > 40) {\n throw new Exception(\"Place doesn't exist\");\n\n }\n if (!this.tabuleiro.getLugarById(idPropriedade).isPropriedade()) {\n throw new Exception(\"Can only build on properties\");\n\n }\n \n\n if (!this.tabuleiro.verificaSeGrupoAindaPodeTerConstrucoes(idPropriedade)) {\n this.listaJogadores.get(jogadorAtual()).getComandos().remove(\"build\");\n }\n\n \n if (this.listaJogadores.get(jogadorAtual()).getComandos().contains(\"build\")) {\n\n if (!this.listaJogadores.get(jogadorAtual()).getPropriedades().contains(this.tabuleiro.getLugarById(idPropriedade).getNome())) {\n throw new Exception(\"Player is not the owner of this property\");\n\n } else if (this.listaJogadores.get(jogadorAtual()).getPropriedades().contains(this.tabuleiro.getLugarById(idPropriedade).getNome()) && !this.listaJogadores.get(jogadorAtual()).verificaSeTemGrupo(idPropriedade)) {\n throw new Exception(\"Doesn't hold monopoly for this group\");\n }\n //Procedimento para compra de casas e hoteis\n if (this.tabuleiro.verificaSePodeConstruirNoTerreno(idPropriedade) == true) {\n if (hipotecaAtiva) {\n verificaSeGrupoTemHipoteca(idPropriedade);\n \n }\n RealizarProtocoloDeCompraDeCasasEHoteis(idPropriedade);\n if(hipotecaAtiva && !verificaSeTemLugarSemConstrucao(listaJogadores.get(jogadorAtual())))\n listaJogadores.get(jogadorAtual()).removerComandoMortgage();\n\n\n } else {\n throw new Exception(\"Uneven distribution of houses\");\n }\n\n\n } else {\n\n throw new Exception(\"Unavailable command\");\n\n\n }\n } else {\n throw new Exception(\"Build nao esta ativo\");\n }\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 }", "private void validarhorarioconotroshorariosactivos(HorarioAsignado horarioasignado, List<HorarioAsignado> horarios) throws LogicaException, ParseException, DatoException {\nGregorianCalendar startasignado=new GregorianCalendar();\nDate startdateasignado= new Date(horarioasignado.getValidezinicio().getTime());\nstartasignado.setTime(startdateasignado);\nGregorianCalendar endasignado=new GregorianCalendar();\nDate enddateasignado= new Date(horarioasignado.getValidezfin().getTime());\nendasignado.setTime(enddateasignado);\n\nint tempfrecasignado = horarioasignado.getHorario().getIdfrecuenciaasignacion().intValue();\nList<Integer> diadelasemanaasignado = diadelasemana(tempfrecasignado);\nList<HashMap<String, Object>> dataasignado = Util.diferenciaEnDiasconFrecuencia(startasignado, endasignado,diadelasemanaasignado,tempfrecasignado);\n\n\n\n\nfor(HorarioAsignado ho:horarios){\n\t\t\tif(ho.getIdhorarioasignado().equals(horarioasignado.getIdhorarioasignado())){\n\t\t\t\n\t\t\t}else{\n\t\t\tif(ho.getIdhorario()==horarioasignado.getIdhorario()){\n\t\t\t\n\t\t\t/*//cedulasconhorarios.add(em);\n\t\t\tif (horarioasignado.getValidezinicio().after(ho.getValidezinicio()) && horarioasignado.getValidezinicio().before(ho.getValidezfin())){\n\t\t\tthrow new LogicaException(\"este contrato ya tiene asociado ese horario\"\n\t\t\t+ \" entre las fechas \"+ho.getValidezinicio()+\" y \"+ ho.getValidezfin());\n\t\t\t\n\t\t\t}*/\n\t\t\t\n\t\t\t}else{\n\t\t\t\n\t\t\t}\n\n\t\tContrato contrato = contratoEJB.getContratosporId(ho.getIdcontrato());\n\t\tEmpleadoBean empleado = empleadoEJB.buscarEmpleadosporId(contrato.getIdempleado());\t\n\tGregorianCalendar start=new GregorianCalendar();\n\tDate startdate= new Date(ho.getValidezinicio().getTime());\n\tstart.setTime(startdate);\n\tGregorianCalendar end=new GregorianCalendar();\n\tDate enddate= new Date(ho.getValidezfin().getTime());\n\tend.setTime(enddate);\n\t\n\tint tempfrec = ho.getHorario().getIdfrecuenciaasignacion().intValue();\n\tList<Integer> diadelasemana = diadelasemana(tempfrec);\n\tList<HashMap<String, Object>> data = Util.diferenciaEnDiasconFrecuencia(start, end,diadelasemana,tempfrec);\n\t\n\t\t\t\t\tfor(HashMap<String, Object> diadehorario:data){\n\t\t\t\tHashMap<String, Object> horariofechas=new HashMap<String, Object>();\n\t\t\t\tGregorianCalendar fecha = (GregorianCalendar)diadehorario.get(\"fecha\");\n\t\t\t\tDate fechadat =fecha.getTime();\n\t\t\t\tGregorianCalendar fechafin = (GregorianCalendar)diadehorario.get(\"fechafin\");\n\t\t\t\tDate fechafindat = fechafin.getTime();\n\t\t\t\tfor(HashMap<String, Object> diaasignado:dataasignado){\n\t\t\t\t\t\tHashMap<String, Object> horariofechasasignadas=new HashMap<String, Object>();\n\t\t\t\t\t\tGregorianCalendar fechaasignada = (GregorianCalendar)diaasignado.get(\"fecha\");\n\t\t\t\t\t\tDate fechaasignadadat =fechaasignada.getTime();\n\t\t\t\t\t\tGregorianCalendar fechafinasignada = (GregorianCalendar)diaasignado.get(\"fechafin\");\n\t\t\t\t\t\tDate fechafinasignadadat = fechafinasignada.getTime();\n\t\t\t\t\t\t\t\t\tif(fechaasignada.after(fechafin)){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tif((fechaasignada.getTime().after(fecha.getTime())||fechaasignada.getTime().equals(fecha.getTime())) && fechaasignada.getTime().before(fechafin.getTime()) ){\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//\tif((fechaasignada.getTime().after(fecha.getTime()) && fechaasignada.getTime().before(fechafin.getTime())) ){\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\") +\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tif((fechafinasignada.getTime().after(fecha.getTime())||fechafinasignada.getTime().equals(fecha.getTime())) && fechafinasignada.getTime().before(fechafin.getTime()) ){\n\t\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\")+\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tif((fecha.getTime().after(fechaasignada.getTime() ) && fecha.getTime().before(fechafinasignada.getTime())) ){\n\t\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\")+\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tif((fechafin.getTime().after(fechaasignada.getTime() ) && fechafin.getTime().before(fechafinasignada.getTime())) ){\n\t\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\")+\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t}\n\n}\n\n\n}\n\n\n/////////////////////////fin validacion/\n}", "public static void main(String[] args) {\n\n\t\tDepartamento dep40= new Departamento ( 40, \"Formacion\", null );\n\t\t\n\t\t\n\t\tEmpleado emp1 =new Empleado(1,\"paco\",\"perez\",\"h\", 5000, 28, 5, dep40) ;\n\t\t\n\t\t// para introducir el departaementp \n\t\t\n\t\t//primer metodo\n\t\t\n\t\t\n\t\t\t\t\n\t\tEmpleado emp2 =new Empleado(2,\"luis\",\"sanchez\",\"h\", 4000, 45, 2, dep40) ;\t\n\t\tEmpleado emp3 =new Empleado(4, \"javi\", \"perez\", \"h\", 8000, 54, 0.2, dep40);\n\t\t\t\t\n\t\t\n\t\t\t\t\n\t\t\n\t\tSystem.out.println(emp1);\n\t\tSystem.out.println(emp2);\t\n\t\tSystem.out.println(emp3);\n\t\t\n\t\tdep40.setJefe(emp1); // adjudico el Jefe al departamento 40\n\t\t\n\t\t\n\t\t// creo un departaemnto nuevo adjudicado a un empleado ade un departamento inicial ( no tienen por que ser el departamento del que ahora le reclama) usando el constructoe directamente ne vez de la variable que alude a la clase\n\t\t//departamento= new Departamento(120, \"formacion\", jefe)\n\t\tDepartamento dep120 = new Departamento (120, \"formacion\", new Empleado(5, \"luisa\", \"sanchez\", \"M\", 14000, 35, 2, dep40)); //he creado un empleado del depto 30 y luego le hago jefe del 120\n\t\t dep120.getJefe().setDepartamento(dep120); /* actuando con dos variables. como ese new empleado no tiene variable adjudicada \n\t\t *y tengo que hacer alusion a Úl para cambiaer en el empleado su departaemento , me valgo del un metodo dep120.getJefe()que averigua qcual es la direccion de ese empleado en la tabla departamento y con un set le ingerso el departaento nuievo\n\t\t \n\t\t \n\t\t */\n\t\t System.out.println (\"departaqmento 120\" + dep120.getJefe().getNombre());\n\t\t\n\t/* SALIDA POR CONSOLA :\n\t * el niombre del emp2, su salario y el nombre del departamento al que pertenence.\t// \n\t\t* como el nombre departamento no es un atributo normal sino que es NDE una clase relacionada .SE INVOCA AL GET DE LL ATRIBUTO INCLUIDO CONN LA CLASE Y TRAS EL LOS METODOS GET DE LA CLASE DEPARTAMENTO EN ESTE CLASO EL DEL CAMPO NOMBRE DEL DEPARTAMENTO\n\t*/\t\n\t\tSystem.out.println(\" nombre emp2:\"+emp2.getNombre()+ \" su salalrio es\"+ emp2.getSalario()+\" , su departamento es: \"+emp2.getDepartamento().getNombre().toUpperCase());\n\t\t/*\n\t\t * el empleado \n\t\t * \n\t\t * */\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(\" nombre emp2:\"+emp2.getNombre()+ \" su salalrio es\"+ emp2.getSalario()+\" , su departamento es: \"+emp2.getDepartamento().getNombre());\n\tSystem.out.println(dep120);\n\t// OJO SE BUCLA POR QUE LOS TO STRING DE DEPARTAEMNTO Y CLIENTE SE CRIUZARIAN DEBORDANDO LA MEMORIA. PUEDO HACER VARIAS COSAS\n\t/* PUEDO QUITAR DEUNO DE LOS TO STRING DE UNA CLASE O DE LA OTRA SEGUN ME INTERESE EL CAMPO QUE LAS LIGA ( PEJ DEPARTAMENTO EN EMPLEADO)\n\t * PUEDO CREAR UN METODO QUE SALVE LA CONDICION DE NULL SI ALGUNA VARIABLE ESTA VACICA.\n\t * \n\t * \n\t */\n\t//SALIDA DEL NOMBRE DEL JEFE DEL DEAPARTAEMENTO QUE SEA POR EJEMPLO DE UN EMPLEADO ()\n\t\n\tSystem.out.println ( dep120.getJefe().getNombre()); //get jefe me dedevuelve el monbre de jefe dela tabala departaemnto. get Nombre me devuelve de la tabla empleados el nombre que estaba como jefe en departamento.\n\tSystem.out.println (\"el jefe de emp2 luis: \"+ emp2.getDepartamento().getJefe().getNombre());\n\tSystem.out.println(dep120);\n\t\n\t\n\t\n\t\n\t}", "@Override\n public TipoBase check(TipoBase tipo) throws Exception {\n Clase c = analizadorsintactico.AnalizadorSintactico.getTs().getClase(tipo.getNombre());\n String nombreVar = id.getLexema();\n VarInstancia v;\n\n if (tipo.getNombre().equals(\"int\") || tipo.getNombre().equals(\"boolean\") || tipo.getNombre().equals(\"char\") || tipo.getNombre().equals(\"String\")) {\n throw new Exception(\"La variable \" + id.getLexema() + \" en la linea \" + id.getLineNumber() + \" no puede llamar metodos ya que es de tipo primitivo\");\n }\n if (c == null) {\n throw new Exception(\"Se trata de acceder a un metodo void en la linea \" + id.getLineNumber());\n }\n\n if (cadena == null) {\n\n if (c.getVariables().containsKey(nombreVar)) {\n v = c.getVariables().get(nombreVar);\n if (v.getVisibilidad().equals(\"private\")) {\n throw new Exception(\"No se puede acceder a la variable \" + v.getNombre() + \" de la linea \" + v.getLinea() + \" debido a que su visibilidad es privada\");\n }\n if (this.ladoIzq) {\n GenCode.gen().write(\"SWAP\");\n GenCode.gen().write(\"STOREREF \" + v.getOffset() + \" # Guardo el valor en la variable \" + v.getNombre());\n\n } else {\n GenCode.gen().write(\"LOADREF \" + v.getOffset() + \" # Cargo variable de instancia \" + v.getNombre() + \" de la clase \" + c.getNombre());\n\n }\n\n } else {\n throw new Exception(\"No se encontro la variable \" + nombreVar + \" de la linea \" + id.getLineNumber() + \" en la clase \" + c.getNombre());\n }\n\n return v.getTipoVar();\n } else { //con encadenado\n if (c.getVariables().containsKey(nombreVar)) {\n v = c.getVariables().get(nombreVar);\n if (v.getVisibilidad().equals(\"private\")) {\n throw new Exception(\"No se puede acceder a la variable \" + v.getNombre() + \" de la linea \" + v.getLinea() + \" debido a que su visibilidad es privada\");\n }\n\n GenCode.gen().write(\"LOADREF \" + v.getOffset() + \" # Cargo variable de instancia \" + v.getNombre() + \" de la clase \" + c.getNombre());\n\n Tipo aux = v.getTipoVar();\n\n return cadena.check(aux);\n } else {\n throw new Exception(\"No se encontro la variable \" + nombreVar + \" de la linea \" + id.getLineNumber() + \" en la clase \" + c.getNombre());\n }\n }\n }", "public void addDicas(){\n\t\tMetaDica metaDicaOac = new MetaDica(oac, \"user1\", \"Não falte as aulas, toda aula tem ponto extra!\");\n\t\tmetaDicaOac.setConcordancias(5);\n\t\tdao.persist(metaDicaOac);\n\n\t\tdicaExerciciosOac = new DicaConselho(\"Os exercicios extras valem muitos pontos, nao deixe de fazer\");\n\t\tdicaExerciciosOac.setTema(temaOacExercicios);\n\t\ttemaOacExercicios.setDisciplina(oac);\n\t\tdicaExerciciosOac.setUser(\"user5\");\n\t\tdicaExerciciosOac.addUsuarioQueVotou(\"user1\");\n\t\tdicaExerciciosOac.addUsuarioQueVotou(\"user2\");\n\n\t\t//adiciona pontos a dica\n\t\tfor (int i = 0; i < 20;i++){\n\t\t\tdicaExerciciosOac.incrementaConcordancias();\n\t\t}\n\t\tfor (int i = 0; i < 5;i++){\n\t\t\tdicaExerciciosOac.incrementaDiscordancias();\n\t\t}\n\n\t\t//adiciona pontos a dica\n\t\tfor (int i = 0; i < 5;i++){\n\t\t\tdicaExerciciosOac.incrementaConcordancias();\n\t\t}\n\t\tfor (int i = 0; i < 25;i++){\n\t\t\tdicaExerciciosOac.incrementaDiscordancias();\n\t\t}\n\t\tdao.persist(dicaExerciciosOac);\n\n\t\tdicaRevisaoIcOac = new DicaAssunto(\"Antes das aulas faça uma boa revisao de IC\");\n\t\ttemaOacRevisaoIC.setDisciplina(oac);\n\t\tdicaRevisaoIcOac.setTema(temaOacRevisaoIC);\n\t\tdicaRevisaoIcOac.setUser(\"user4\");\n\t\tdicaRevisaoIcOac.addUsuarioQueVotou(\"user5\");\n\t\tdicaRevisaoIcOac.addUsuarioQueVotou(\"user1\");\n\t\tdicaRevisaoIcOac.incrementaConcordancias();\n\t\tdicaRevisaoIcOac.incrementaConcordancias();\n\n\t\t//cria meta dica em si\n\t\tMetaDica metaDicaSi1 = new MetaDica(si1, \"user2\", \"Seja autodidata! Procure por cursos online\");\n\t\tdao.persist(metaDicaSi1);\n\n\t\tdicaLabSi = new DicaConselho(\"Faça todo os labs, não deixe acumular\");\n\t\ttemaMinitestesSi.setDisciplina(si1);\n\t\tdicaLabSi.setTema(temaMinitestesSi);\n\t\tdicaLabSi.setUser(\"user1\");\n\t\tdicaLabSi.addUsuarioQueVotou(\"user2\");\n\t\tdicaLabSi.addUsuarioQueVotou(\"user3\");\n\t\tdicaLabSi.incrementaConcordancias();\n\t\tdicaLabSi.incrementaConcordancias();\n\t\tdao.persist(dicaLabSi);\n\n\t\tdicaPlaySi = new DicaConselho(\"Comece a configurar o Play no primeiro dia de aula, pois dá muuuito trabalho\");\n\t\ttemaPlaySi.setDisciplina(si1);\n\t\tdicaPlaySi.setTema(temaPlaySi);\n\t\tdicaPlaySi.setUser(\"user2\");\n\t\tdicaPlaySi.addUsuarioQueVotou(\"user5\");\n\t\tdicaPlaySi.addUsuarioQueVotou(\"user4\");\n\t\tdicaPlaySi.incrementaConcordancias();\n\t\tdicaPlaySi.incrementaConcordancias();\n\t\tdao.persist(dicaPlaySi);\n\n\t\tdicaMaterialSi = new DicaMaterial(\"http://www.wthreex.com/rup/process/workflow/ana_desi/co_swarch.htm\");\n\t\ttemaMaterialSi.setDisciplina(si1);\n\t\tdicaMaterialSi.setTema(temaMaterialSi);\n\t\tdicaMaterialSi.setUser(\"user2\");\n\t\tdicaMaterialSi.addUsuarioQueVotou(\"user5\");\n\t\tdicaMaterialSi.addUsuarioQueVotou(\"user4\");\n\t\tdicaMaterialSi.incrementaConcordancias();\n\t\tdicaMaterialSi.incrementaConcordancias();\n\t\tdao.persist(dicaMaterialSi);\n\n\n\t\t//cria meta dica logica\n\t\tMetaDica metaDicaLogica = new MetaDica(logica, \"user3\", \"Copie para o seu caderno tudo que o professor copiar no quadro, TUDO!\");\n\t\tdao.persist(metaDicaLogica);\n\n\t\tdicaListasLogica = new DicaConselho(\"Faça todas as listas possíveis\");\n\t\ttemaListasLogica.setDisciplina(logica);\n\t\tdicaListasLogica.setTema(temaListasLogica);\n\t\tdicaListasLogica.setTema(temaListasLogica);\n\t\tdicaListasLogica.setUser(\"user6\");\n\t\tdicaListasLogica.addUsuarioQueVotou(\"user3\");\n\t\tdicaListasLogica.addUsuarioQueVotou(\"user5\");\n\t\tdicaListasLogica.incrementaConcordancias();\n\t\tdicaListasLogica.incrementaConcordancias();\n\t\tdao.persist(dicaListasLogica);\n\n\t\tdicaProjetoLogica = new DicaAssunto(\"Peça ajuda ao monitor responsável por seu grupo, começe o projeto assim que for lançado!\");\n\t\ttemaProjetoLogica.setDisciplina(logica);\n\t\tdicaProjetoLogica.setTema(temaProjetoLogica);\n\t\tdicaProjetoLogica.setTema(temaProjetoLogica);\n\t\tdicaProjetoLogica.setUser(\"user4\");\n\t\tdicaProjetoLogica.addUsuarioQueVotou(\"user1\");\n\t\tdicaProjetoLogica.addUsuarioQueVotou(\"user2\");\n\t\tdicaProjetoLogica.incrementaConcordancias();\n\t\tdicaProjetoLogica.incrementaConcordancias();\n\t\tdao.persist(dicaProjetoLogica);\n\n\t\tdao.flush();\n\n\t}", "@Test\n public void testCheckPlaceHorizontaleMembreDehors() {\n Player p = new Player();\n List<Player> pL = new ArrayList<>();\n pL.add(p);\n Jeux j = new Jeux(ModeDeJeux.MONO_JOUEUR, pL);\n Grille g = new Grille(10, 10, j, p);\n\n try {\n j.checkPlace(\"G6\", g, 5, true);\n fail(\"Une exception devrai etre lancée\");\n }\n catch (Exception e) {\n assertTrue(\"L'exception n'est pas bonne\", e instanceof BateauxMembreInvalide);\n }\n }", "public interface PersistenciaSoausentismosInterface {\n /**\n * Método encargado de insertar un Soausentismo en la base de datos.\n * @param soausentismos Soausentismo que se quiere crear.\n */\n public void crear(EntityManager em, Soausentismos soausentismos);\n /**\n * Método encargado de modificar un Soausentismo de la base de datos.\n * Este método recibe la información del parámetro para hacer un 'merge' con la \n * información de la base de datos.\n * @param soausentismos Soausentismo con los cambios que se van a realizar.\n */\n public void editar(EntityManager em, Soausentismos soausentismos);\n /**\n * Método encargado de eliminar de la base de datos el Soausentismo que entra por parámetro.\n * @param soausentismos Soausentismo que se quiere eliminar.\n */\n public void borrar(EntityManager em, Soausentismos soausentismos);\n /**\n * Método encargado de buscar los Soausentismos (EntityManager em, ausentismos) asociados a un empleado específico.\n * @param secuenciaEmpleado Secuencia del empleado para el cual se quieren saber los Soausentismos.\n * @return Retorna una lista de Soausentismos.\n */\n public List<Soausentismos> ausentismosEmpleado (EntityManager em, BigInteger secuenciaEmpleado);\n /**\n * Método encargado de generar un String en formato NUMERO_CERTIFICADO: FECHA_INICIO_AUSENTISMO -> FECHA_FIN_AUSENTISMO\n * con la información del ausentismo cuya secuencia coincide con la del parámetro.\n * @param secuenciaProrroga Secuencia del Ausentismo.\n * @return Retorna un String con el formato descrito y la información del Ausentismo especificado.\n */\n public String prorrogaMostrar(EntityManager em, BigInteger secuenciaProrroga);\n /**\n * Método encargado de buscar los Soausentismos para una lista de valores en la columna prorroga\n * de la tabla Soausentismos. Los Soausentismos que conforman esta lista de valores dependen del\n * empleado, de la causa del ausentismo y del ausentismo asociado a la prorroga.\n * (EntityManager em, Prorroga: ausentismo asociado a un ausentismo específico).\n * @param secuenciaEmpleado Secuencia del empleado\n * @param secuenciaCausa Secuencia de la causa del ausentismo.\n * @param secuenciaAusentismo Secuencia del ausentismo asociado a la prorroga.\n * @return Retorna una lista de los Soausentismos que cumplen con las condiciones anteriores.\n */\n public List<Soausentismos> prorrogas(EntityManager em, BigInteger secuenciaEmpleado, BigInteger secuenciaCausa, BigInteger secuenciaAusentismo);\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 }", "@Test\n public void testMueve()\n throws MenorQueUnoException {\n Tablero tablero4 = new Tablero(2);\n\n boolean obtenido = false;\n\n assertEquals(tablero4.mueve(3), false);\n assertEquals(tablero4.mueve(4), false);\n assertEquals(tablero4.mueve(1), true);\n\n assertEquals(tablero4.mueve(1), false);\n assertEquals(tablero4.mueve(4), false);\n assertEquals(tablero4.mueve(2), true);\n\n assertEquals(tablero4.mueve(1), false);\n assertEquals(tablero4.mueve(2), false);\n assertEquals(tablero4.mueve(3), true);\n\n assertEquals(tablero4.mueve(2), false);\n assertEquals(tablero4.mueve(3), false);\n assertEquals(tablero4.mueve(4), true);\n\n assertEquals(tablero4.mueve(2), true);\n\n }", "public static void main(String[] args) {\n Ator a = new Ator(\"Alberto\");\r\n Ator b = new Ator(\"Vagner moura\");\r\n Ator c = new Ator(\"Ator 1\");\r\n\r\n Filme f= new Filme(\"Tropa de elite\", 2011);\r\n\r\n f.addPapel(a,\"papel 1\", false);\r\n f.addPapel(b,\"papel 2\", true);\r\n f.addPapel(c,\"papel 3\", true);\r\n\r\n\r\n System.out.println(a.getFilmes());\r\n /*System.out.println(f.getProtagonista());\r\n System.out.println(f);\r\n System.out.println(a);\r\n System.out.println(b);\r\n System.out.println(c);*/\r\n\r\n\r\n }", "public static void establecerMano(Monton todas,Mano[] jugadores){\n int pos;\n Pieza pieza;\n for (int i = 0; i < jugadores.length; i++) {\n for (int j = 0; j < Ajustes.PIEZAS_MANO; j++) {\n if(todas.getNPiezasMonton()>0){\n pos=(int) (Math.random()*todas.getNPiezasMonton());\n pieza=todas.getUnaPieza(pos);\n jugadores[i].setUnaPieza(pieza);\n todas.eliminarPiezaMonton(pieza); \n }\n \n }\n }\n System.out.println(\"\\nCada jugador tiene \"+jugadores[0].getNPiezas()+\" piezas.\");\n if(todas.getNPiezasMonton()!=0)\n System.out.println(\"Y en el monton quedan \"+todas.getNPiezasMonton());\n else\n System.out.println(\"No quedan piezas en el monton\");\n }", "@Override\n\tpublic void procesar() throws WrongValuesException, ExcEntradaInconsistente {\n\n\t}", "public static void main (String[] args){\n objetos = new City(\"Field.txt\");\n\t objetos.showThingCounts(true);\n \n \n // Thing a1 = new Thing( objetos, 1, 6);\n// Thing a2 = new Thing( objetos, 1, 7);\n int yRelativa = 0;\n int xRelativa = 0;\n \n for (int i = 0; i < 10; i++) {\n new Wall(objetos, -i, xRelativa, Direction.WEST);\n }\n for (int i = 1; i < 10; i++) {\n new Wall(objetos, -i, xRelativa+9, Direction.EAST);\n }\n \n for (int i = 0; i < 10; i++) {\n new Wall(objetos, yRelativa, i, Direction.SOUTH);\n }\n \n for (int i = 0; i < 10; i++) {\n new Wall(objetos, yRelativa-9, i, Direction.NORTH);\n }\n \n //Direction.NORTH, EAST, SOUTH, WEST\n //Definicion de la ubicacion del robot, Ciudad, posicion, Direccion, Numero things en el bolso.\n //ascensor3 = new Robot(City aCity, int aStreet, int anAvenue, Direction aDirection) \n ascensor1 = new Ascensor(objetos, yRelativa,xRelativa, Direction.EAST,0);\n ascensor2 = new Ascensor(objetos, yRelativa,xRelativa+1, Direction.EAST,0);\n //portero = new Ascensor(objetos, yRelativa,xRelativa+2, Direction.EAST,0);\n \n createUsuarioPrimerPiso(objetos, yRelativa, xRelativa+2,6);\n createUsuarioPrimerPiso(objetos, yRelativa, xRelativa+3,6);\n \n createUsuarioPrimerPiso(objetos, yRelativa, xRelativa+6,6);\n \n// Usuario u1 = new Usuario (objetos, yRelativa, xRelativa+2,6);\n// Usuario u2 = new Usuario (objetos, yRelativa, xRelativa+3,6);\n// Usuario u3 = new Usuario (objetos, yRelativa, xRelativa+4,6);\n// Usuario u4 = new Usuario (objetos, yRelativa, xRelativa+5,6);\n// Usuario u5 = new Usuario (objetos, yRelativa, xRelativa+6,6);\n// Usuario u6 = new Usuario (objetos, yRelativa, xRelativa+7,6);\n// Usuario u7 = new Usuario (objetos, yRelativa, xRelativa+8,6);\n// Usuario u8 = new Usuario (objetos, yRelativa, xRelativa+9,6);\n// Usuario u9 = new Usuario (objetos, yRelativa, xRelativa+10,6);\n// Usuario u10 = new Usuario (objetos, yRelativa, xRelativa+11,6);\n\n cargarPasajeros(ascensor1);\n\n// while(ascensor1.getAvenue()!=xRelativa){\n// ascensor1.move();\n// }\n// //turnRight(ascensor1);\n\n \n\n while (ascensor1.getDirection()!=Direction.NORTH){\n ascensor1.turnLeft();\n }\n //******DESDE ESTE PUNTO (LINEA 160) HASTA LA LINEA 204 SE HACE EL MOVIMIENTO DE UN USUARIO DE MANERA EXPLICITA\n // Los usuarios que usa están contenidos en las líneas (134-143)\n \n// while((ascensor1.getStreet()*-1)!= u1.getPisoDeseado()){\n// ascensor1.move(); \n// }\n// turnRight(ascensor1);\n// ascensor1.move();\n// ascensor1.move();\n// while(ascensor1.canPickThing()==true){\n// ascensor1.move();\n// }\n// if(ascensor1.canPickThing()==false){\n// ascensor1.putThing();\n// }\n// regresarAlOrigen(ascensor1);\n// \n// while (ascensor1.getDirection()!=Direction.NORTH){\n// ascensor1.turnLeft();\n// }\n// \n// while((ascensor1.getStreet()*-1)!= u2.getPisoDeseado()){\n// ascensor1.move(); \n// }\n// turnRight(ascensor1);\n// ascensor1.move();\n// ascensor1.move();\n// while(ascensor1.canPickThing()==true){\n// ascensor1.move();\n// }\n// if(ascensor1.canPickThing()==false){\n// ascensor1.putThing();\n// }\n// regresarAlOrigen(ascensor1);\n// \n// while((ascensor1.getStreet()*-1)!= u3.getPisoDeseado()){\n// ascensor1.move(); \n// }\n// turnRight(ascensor1);\n// ascensor1.move();\n// ascensor1.move();\n// while(ascensor1.canPickThing()==true){\n// ascensor1.move();\n// }\n// if(ascensor1.canPickThing()==false){\n// ascensor1.putThing();\n// }\n// regresarAlOrigen(ascensor1);\n \n //************************\n \n //public synchronized void\n\t //Mover una interseccion en el sentido al cual este apuntando el objeto.\n// for (int i = 0; i < 8; i++) {\n// if(portero.canPickThing()==false){\n// \n// new Thing (objetos, portero.getStreet() , portero.getAvenue());\n// }\n// \n// \n// portero.move();\n// }\n// portero.move();\n// portero.move();\n \n \n \n\n \n \n \n// //Tomando decisiones, Si puedo tomar un Thing\n// boolean puedeTomar = estudiante.canPickThing();\n// \n// //Tomar un Thing\n// if(puedeTomar == true)\n// estudiante.pickThing();\n// \n// //Especifica el numero de Thing que tiene en robot en el bolso\n// int numeroThings = estudiante.countThingsInBackpack();\n// \n// //Poner Thing, se debe validar que tenga things en el bolso\n// estudiante.putThing();\n// \n// //Si el frente esta libre de Wall\n// estudiante.frontIsClear();\n// \n// //Invocando una funcion\n// creacionFuncion(4);\n// \n// //Toman un Thing\n// estudiante.pickThing();\n// \n// \n\t}", "public static void main(String[] args){\n //uso correcto de git aaaaa por fin lo comprendi, bueno, por ahora :/...\n\n Perro dog = new Perro(\"Teddy\", \"Callejero\", \"Croquetas\", 2, \"Fuerte\");\n Gato cat = new Gato(\"Miau\", \"Hogareño\", \"Atún\", 1, 7);\n //Perico\n Perico parrot = new Perico(\"Pericles\", \"Loro gris\", \"Galletas\", 1, \"Saludos humanos\");\n //Hamster\n Hamster ham = new Hamster(\"Hamilton\", \"Hamster chino\", \"Apio\", 4, \"Morado\");\n //No recuerdo lol...\n\n //los metodos\n dog.mostrarPerro();\n System.out.println(\"-------\");\n cat.mostrarGato();\n System.out.println(\"-------\");\n parrot.mostrarPerico();\n System.out.println(\"-------\");\n ham.mostrarHamster();\n System.out.println(\"_______\");\n \n }", "public void gerarparcelascontrato(int id, int idcliente, int idgrupofinanceiro) {\n\t\tContrato contrato = repo.findById(id).get();\n\t\t// contrato.setCliente(clientes);\n\t\t// contrato.setFinanceiroContrato(financeiroContrato);\n\t\trepo.save(contrato);\n\t\tMovimentoContrato movement = movimentoContratoRepository.findByContratoIdAndStatus(id,\n\t\t\t\tStatusActiv.ABERTO.getDescricao());\n\t\tif (movement == null) {\n\t\t\tmovement = new MovimentoContrato();\n\t\t\tmovement.setDataMovimento(new Date());\n\t\t\tmovement.setStatus(StatusActiv.ABERTO.getDescricao());\n\t\t\tmovement.setTipomovimento(TipoMovimentoEnum.entradaContrato.getDescricao());\n\t\t}\n\t\tmovement.setValor(contrato.getTotal());\n\t\tmovement.setContrato(contrato);\n\t\tmovement.setHistorico(contrato.getFinanceiroContrato());\n\t\tmovement.setParcela(contrato.getPeriodo());\n\n\t\tmovement.setName(\"Contrato Nº \" + String.valueOf(id) + \" Cliente: \" + contrato.getClientename());\n\t\tmovement = movimentoContratoRepository.save(movement);\n\n\t\tfichaLeituraRepository\n\t\t\t\t.deleteAll(fichaLeituraRepository.findByContratoIdAndStatus(id, StatusActiv.ABERTO.getDescricao()));\n\t\texcluirParcelas(movement);\n\t\tmovement.setValor(contrato.getTotal());\n\t\tDateTime dt;\n\t\tDateTime dt12;\n\n\t\t//if (movement.getFaturasQuit().size() > 0) {\n\n\t\t\t//dt = new DateTime(movement.getFaturasQuit().get(0).getDataVencimento());\n\t\t\tdt = new DateTime();\n\t\t\tint ano = dt.getYear();\n\t\t\tint mes = dt.getMonthOfYear();\n\t\t\tdt = new DateTime(ano, mes, contrato.getDiaVencimento(), 8, 0); \n\t\t\tdt12 = new DateTime(ano, mes, contrato.getDiaLeitura(), 8, 0); \n\n\t\t/*} \n\t\telse {\n\t\t\tdt = new DateTime();\n\t\t\tint ano = dt.getYear();\n\t\t\tint mes = dt.getMonthOfYear();\n\t\t\tdt12 = new DateTime(ano, mes, contrato.getDiaLeitura(), 8, 0);\n\t\t}*/\n\t\t/*DateTime dt1 = new DateTime(new Date());\n\t\tfor (Fatura itemmovimento : movement.getFaturasQuit()) {\n\t\t\tdt1 = new DateTime(itemmovimento.getDataVencimento());\n\t\t\tif (dt1.isAfter(dt)) {\n\t\t\t\tdt = dt1;\n\t\t\t}\n\t\t\tif (dt1.isAfter(dt12)) {\n\t\t\t\tdt12 = dt1;\n\t\t\t}\n\n\t\t}\n\t\tdt1 = dt12;*/\n\t\tDateTime plusPeriod = new DateTime();\n\t\tDateTime plusPeriodleitura = new DateTime();\n\t\tFatura itemmovimento;\n\t\tint j = movement.getParcela() - movement.getFaturasQuit().size();\n\t\tList<Integer> indiceparcalas = new LinkedList<Integer>();\n\t\tindiceparcalas = maxparcela(movement, j);\n\t\tdouble valr1 = contrato.getTotal();// getValorAberto() / j;\n\n\t\tList<FichaLeitura> fichas = new ArrayList<>();\n\t\tfor (int i = 0; i < j; i++) {\n\t\t\titemmovimento = new Fatura(movement, (movement.getValor() - movement.getValorAberto()));\n\t\t\tplusPeriod = dt.plus(org.joda.time.Period.months(i));\n\t\t\tplusPeriodleitura = dt12.plus(org.joda.time.Period.months(i));\n\t\t\tint dayOfWeekEndDateNumber = Integer.valueOf(plusPeriod.dayOfWeek().getAsString());\n\t\t\tint DaysToAdd;\n\t\t\t// se final de semana\n\t\t\tif (dayOfWeekEndDateNumber == 6 || dayOfWeekEndDateNumber == 7) {\n\t\t\t\tDaysToAdd = 8 - dayOfWeekEndDateNumber;\n\t\t\t\tplusPeriod = plusPeriod.plusDays(DaysToAdd);\n\t\t\t\tdayOfWeekEndDateNumber = Integer.valueOf(plusPeriod.dayOfWeek().getAsString());\n\t\t\t}\n\n\t\t\tdayOfWeekEndDateNumber = Integer.valueOf(plusPeriodleitura.dayOfWeek().getAsString());\n\n\t\t\t// se final de semana\n\t\t\tif (dayOfWeekEndDateNumber == 6 || dayOfWeekEndDateNumber == 7) {\n\t\t\t\tDaysToAdd = 8 - dayOfWeekEndDateNumber;\n\t\t\t\tplusPeriodleitura = plusPeriodleitura.plusDays(DaysToAdd);\n\t\t\t\tdayOfWeekEndDateNumber = Integer.valueOf(plusPeriod.dayOfWeek().getAsString());\n\t\t\t}\n\n\t\t\titemmovimento.setParcela(indiceparcalas.get(i));\n\t\t\titemmovimento.setValor(contrato.getTotal());\n\t\t\titemmovimento.setDataVencimento(plusPeriod.toDate());\n\t\t\titemmovimento.setDataleitura(plusPeriodleitura.toDate());\n\t\t\titemmovimento.setInstantCreation(new Date());\n\t\t\titemmovimento.setStatus(StatusActiv.ABERTO.getDescricao());\n\t\t\titemmovimento.setMovimentoFinanceiro(movement);\n\t\t\titemmovimento.setContrato(contrato);\n\t\t\titemmovimento.setDataMovimento(movement.getDataMovimento());\n\t\t\titemmovimento.setTipomovimento(TipoMovimentoEnum.entradaContrato.getDescricao());\n\n\t\t\t/*\n\t\t\t * FichaLeitura fichaLeitura = new FichaLeitura(contrato, equipamentoContrato,\n\t\t\t * itemmovimento.getDataleitura(), StatusActiv.ABERTO.getDescricao());\n\t\t\t */\n\n\t\t\tCentroCusto centroCusto = centroCustoRepository.findById(movement.getHistorico().getCentrocusto().getId())\n\t\t\t\t\t.get();\n\t\t\tcentroCusto.setSaldoReceber(centroCusto.getSaldoReceber() + (contrato.getTotal()));\n\n\t\t\tcentroCustoRepository.save(centroCusto);\n\t\t\titemmovimento = faturaRepository.save(itemmovimento);\n\t\t\tfor (EquipamentosContrato equipamentoContrato : contrato.getEquipamentosContratos()) {\n\t\t\t\tfichas.add(new FichaLeitura(contrato, equipamentoContrato, itemmovimento.getDataleitura(),\n\t\t\t\t\t\tStatusActiv.ABERTO.getDescricao(), itemmovimento));\n\t\t\t}\n\n\t\t}\n\t\tfichaLeituraRepository.saveAll(fichas);\n\n\t}", "private void checkIsBetterSolution() {\n if (solution == null) {\n solution = generateSolution();\n //Si la solucion que propone esta iteracion es mejor que las anteriores la guardamos como mejor solucion\n } else if (getHealthFromAvailableWorkers(availableWorkersHours, errorPoints.size()) < solution.getHealth()) {\n solution = generateSolution();\n }\n }", "private Posicion posicionAlDesarmarMenasor(Posicion posicion) {\n\t\t\t\tPosicion posAux;\n\t\t\t\ttry{\n\t\t\t\t\tposAux=new Posicion(posicion.getFila(),posicion.getColumna()-2);\n\t\t\t\t}catch(ErrorPosicionInvalida e){\n\t\t\t\t\tposAux=new Posicion(posicion.getFila(),posicion.getColumna()+1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn posAux;\n\t\t\t}", "@Test\n public void deberiaMostrarListaDeCtaMayor() {\n log.debug(\"Debiera mostrar lista de ctaMayor\");\n Ejercicio ejercicio = new Ejercicio(\"test\", \"A\");\n currentSession().save(ejercicio);\n assertNotNull(ejercicio);\n log.debug(\"ejercicio >>\" + ejercicio);\n for (int i = 0; i < 20; i++) {\n CuentaMayor ctaMayor = new CuentaMayor(\"test\" + i, \"test\");\n currentSession().save(ctaMayor);\n assertNotNull(ctaMayor);\n log.debug(\"ctaMayor>>\" + ctaMayor);\n }\n\n Map<String, Object> params = null;\n Map result = instance.lista(params);\n assertNotNull(result.get(\"ctaMayores\"));\n assertNotNull(result.get(\"cantidad\"));\n\n assertEquals(10, ((List<Empresa>) result.get(\"ctaMayores\")).size());\n assertEquals(20, ((Long) result.get(\"cantidad\")).intValue());\n }", "private void guardarEstadoObjetosUsados() {\n }", "public static void main (String [] args){\r\n Jefatura jefe_RR=new Jefatura(\"Jeanpool\",55000,2006,9,25);\r\n jefe_RR.estableceIncentivo(2570);\r\n Empleado [] misEmpleados=new Empleado[6];\r\n misEmpleados[0]=new Empleado(\"Paco Gomez\",85000,1990,12,17);\r\n misEmpleados[1]=new Empleado(\"Ana Lopez\",95000,1995,06,02);\r\n misEmpleados[2]=new Empleado(\"Maria Martin\",105000,2002,03,15);\r\n misEmpleados[3]=new Empleado(\"Jeanpool Guerrero\");\r\n misEmpleados[4]=jefe_RR;/**--Polimorfismo: Prinicipio de sustitucion*/\r\n misEmpleados[5]=new Jefatura(\"Maria\",95000,1999,5,26);\r\n Jefatura jefa_Finanzas=(Jefatura)misEmpleados[5];/** CASTING CONVERTIR UN OBJETO A otro */\r\n jefa_Finanzas.estableceIncentivo(55000);\r\n \r\n \r\n \r\n /** for(int i=0;i<3; i++){\r\n misEmpleados[i].subeSueldo(5);\r\n \r\n }\r\n \r\n for(int i=0;i<3;i++){\r\n System.out.println(\"Nombre \"+misEmpleados[i].dimeNombre() + \"Sueldo: \"+misEmpleados[i].dimeSueldo()+ \"Fecha Alta: \"+misEmpleados[i].dameFechaContrato());\r\n }\r\n */\r\n\r\n for(Empleado elementos:misEmpleados){\r\n \r\n elementos.subeSueldo(5);\r\n \r\n }\r\n \r\n for(Empleado elementos:misEmpleados){\r\n System.out.println(\"Nombre: \"+elementos.dimeNombre()+ \" Sueldo: \"+elementos.dimeSueldo()+ \" Alta Contrato: \"+elementos.dameFechaContrato());\r\n }\r\n \r\n }", "public static void actualizarCreencias(int id) {\n\t\tint j =0;\t\t\n\t\t//Actualizamos las creecias del jugador \n\t\tint i =0;\n\t\tfor(j =0; j < GestorPartida.getContJugadores();j++) {\n\t\t\t\n\t\t\t\n\t\t\tif(GestorPartida.getJugadores()[j].getId() != id) {\n\t\t\t\t//Filtramos que los jugadores que vayan a actualizar sus creencias sean los de la sala del jugador que acaba de realizar una accion, excepto las suyas propias\t\t\t\n\t\t\t\tif(GestorPartida.getJugadores()[j].getSala().equalsIgnoreCase(GestorPartida.getJugadores()[id].getSala()) && GestorPartida.getJugadores()[j].getId() != id) {\n\t\t\t\t\t//Actualizamos la sala por si el jugador se acaba de mover\n\t\t\t\t\tGestorPartida.getJugadores()[id].getCreencias().setSalaPersona(GestorPartida.getJugadores()[j].getSala(), i);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t\t\t\n\t\tfor(j = 0; j < GestorPartida.getContObjetosJugador();j++) {\n\t\t\t//Comprobamos que el jugador coincida con un poseedor de un objeto\n\t\t\tif(GestorPartida.getObjetoJugador()[j].getJugador().getSala().equalsIgnoreCase(GestorPartida.getJugadores()[id].getSala())) {\n\t\t\t\tfor(int x =0; GestorPartida.getJugadores()[id].getCreencias().getNombreObjeto()[x]!=null ; x++) {\n\t\t\t\t\t//Cogemos la posicion del objeto donde esta el objeto dentro de las creencias\n\t\t\t\t\tif(GestorPartida.getJugadores()[id].getCreencias().getNombreObjeto()[x].equalsIgnoreCase(GestorPartida.getObjetoJugador()[j].getNombreObjeto())) {\n\t\t\t\t\t\tGestorPartida.getJugadores()[id].getCreencias().setLugarObjeto(GestorPartida.getObjetoJugador()[j].getJugador().getNombre(), x);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(j = 0; j < GestorPartida.getContObjetosSala();j++) {\n\t\t\t//Comprobamos si hay objetos en la sala del jugador\n\t\t\tif(GestorPartida.getObjetoSala()[j].getSala().getNombre().equalsIgnoreCase(GestorPartida.getJugadores()[id].getSala())) {\n\t\t\t\tfor(int x =0; GestorPartida.getJugadores()[id].getCreencias().getNombreObjeto()[x]!=null ; x++) {\n\t\t\t\t\t//Cogemos la posicion del objeto donde esta el objeto dentro de las creencias\n\t\t\t\t\tif(GestorPartida.getJugadores()[id].getCreencias().getNombreObjeto()[x].equalsIgnoreCase(GestorPartida.getObjetoSala()[j].getNombreObjeto())) {\n\t\t\t\t\t\tGestorPartida.getJugadores()[id].getCreencias().setLugarObjeto(GestorPartida.getObjetoSala()[j].getSala().getNombre(), x);\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "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 CajaLogic()throws SQLException,Exception {\r\n\t\tsuper();\r\n\t\t\r\n\t\ttry\t{\t\t\t\t\t\t\r\n\t\t\tthis.cajaDataAccess = new CajaDataAccess();\r\n\t\t\t\r\n\t\t\tthis.cajas= new ArrayList<Caja>();\r\n\t\t\tthis.caja= new Caja();\r\n\t\t\t\r\n\t\t\tthis.cajaObject=new Object();\r\n\t\t\tthis.cajasObject=new ArrayList<Object>();\r\n\t\t\t\t\r\n\t\t\t/*\r\n\t\t\tthis.connexion=new Connexion();\r\n\t\t\tthis.datosCliente=new DatosCliente();\r\n\t\t\tthis.arrDatoGeneral= new ArrayList<DatoGeneral>();\r\n\t\t\t\r\n\t\t\t//INICIALIZA PARAMETROS CONEXION\r\n\t\t\tthis.connexionType=Constantes.CONNEXIONTYPE;\r\n\t\t\tthis.parameterDbType=Constantes.PARAMETERDBTYPE;\r\n\t\t\t\r\n\t\t\tif(Constantes.CONNEXIONTYPE.equals(ConnexionType.HIBERNATE)) {\r\n\t\t\t\tthis.entityManagerFactory=ConstantesCommon.JPAENTITYMANAGERFACTORY;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.datosDeep=new DatosDeep();\r\n\t\t\tthis.isConDeep=false;\r\n\t\t\t*/\r\n\t\t\t\r\n\t\t\tthis.cajaDataAccess.setConnexionType(this.connexionType);\r\n\t\t\tthis.cajaDataAccess.setParameterDbType(this.parameterDbType);\r\n\t\t\t\r\n\t\t\t\r\n\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tthis.invalidValues=new InvalidValue[0];\r\n\t\t\tthis.stringBuilder=new StringBuilder();\r\n\t\t\tthis.conMostrarMensajesStringBuilder=true;\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t \r\n }", "private ArrayList<Estado> tratar_repetidos(ArrayList<Estado> cerrados, ArrayList<Estado> abiertos,\r\n\t\t\tArrayList<Estado> hijos) {\r\n\r\n\t\tArrayList<Estado> aux_hijos = new ArrayList<>(); // Para evitar error de concurrencia creo una lista auxiliar de nodos hijos\r\n\t\tfor (int i = 0; i < hijos.size(); i++) {\r\n\t\t\taux_hijos.add(hijos.get(i));\r\n\t\t}\r\n\t\tswitch (trata_repe) {\r\n\t\tcase 1:\r\n\t\t\tfor (Estado h : aux_hijos) { // Recorro todos los nodos hijos\r\n\t\t\t\tif (cerrados.contains(h) || abiertos.contains(h)) // Si el hijo esta en la cola de abiertos o en cerrados\r\n\t\t\t\t\thijos.remove(h); // Lo elimino\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tfor (Estado h : aux_hijos) { // Recorro todos los nodos hijos\r\n\t\t\t\tif (abiertos.contains(h)) // Si el hijo esta en la pila de abiertos\r\n\t\t\t\t\thijos.remove(h); // Lo elimino puesto que no nos interesa ya que tendrá una profundidad mayor\r\n\t\t\t\telse if (cerrados.contains(h)) // Si el hijo esta en cerrados\r\n\t\t\t\t\tif (h.getProf() >= cerrados.get(cerrados.indexOf(h)).getProf()) // Compruebo si la profundidad es >= \r\n\t\t\t\t\t\thijos.remove(h); // Lo elimino porque solo nos interesan los de menor profundidad\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn hijos;\r\n\t}", "private void moverJogadorAPosicao(int jogador, int valorDados, boolean iguais) {\n int tentativasDeSairDaPrisao = this.listaJogadores.get(jogadorAtual()).getTentativasSairDaPrisao();\n //Analisando se o cara esta preso, se a prisao ta ativada e se o cara tentou um numero de vezes menos que tres\n //ou se a funcao prisao esta falsa\n //ou se o jogador nao esta preso\n if ((JogadorEstaPreso(this.listaJogadores.get(jogadorAtual()).getNome()) && iguais && this.prisao == true && tentativasDeSairDaPrisao <= 2) || this.prisao == false || (!JogadorEstaPreso(this.listaJogadores.get(jogadorAtual()).getNome()) && this.prisao == true)) {\n if (JogadorEstaPreso(this.listaJogadores.get(jogadorAtual()).getNome()) && iguais && this.prisao == true && tentativasDeSairDaPrisao < 2);\n {\n this.sairdaPrisao(this.listaJogadores.get(jogadorAtual()));\n this.listaJogadores.get(jogadorAtual()).setTentativasSairDaPrisao(0);\n }\n this.posicoes[jogador] = (this.posicoes[jogador] + valorDados);\n if (posicoes[jogador] > 40) {\n posicoes[jogador] = posicoes[jogador] - 40;\n }\n }\n\n //analisando se o jogador esta preso e lanca numeros diferentes nos dados\n if (JogadorEstaPreso(this.listaJogadores.get(jogadorAtual()).getNome()) && !iguais && this.prisao == true) {\n //analisa se estourou as tentativas\n //se estourou\n if (this.listaJogadores.get(jogadorAtual()).getTentativasSairDaPrisao() == 2) {\n this.sairdaPrisao(this.listaJogadores.get(jogadorAtual()));\n this.listaJogadores.get(jogadorAtual()).retirarDinheiro(50);\n this.listaJogadores.get(jogadorAtual()).setTentativasSairDaPrisao(0);\n this.posicoes[jogador] = (this.posicoes[jogador] + valorDados);\n if (posicoes[jogador] > 40) {\n posicoes[jogador] = posicoes[jogador] - 40;\n }\n\n } //se nao estourou\n else if (this.listaJogadores.get(jogadorAtual()).getTentativasSairDaPrisao() < 2) {\n this.listaJogadores.get(jogadorAtual()).addTentativasSairDaPrisao();\n }\n\n\n }\n\n\n }", "public static void main(String[] args) throws Exception {\n Circulo c[] = new Circulo[3];\n c[0] = new Circulo(5);\n c[1] = new Circulo(6);\n c[2] = new Circulo(7);\n System.out.println(c[0].area());\n System.out.println(c[0].perimetro());\n System.out.println(c[1].area());\n System.out.println(c[1].perimetro());\n System.out.println(c[2].area());\n System.out.println(c[2].perimetro());\n\n // vetor de retangulos e suas devidas implementacoes\n Retangulo r[] = new Retangulo[3];\n\n r[0] = new Retangulo(5, 3);\n r[1] = new Retangulo(45, 8);\n r[2] = new Retangulo(5, 5);\n System.out.println(r[0].area());\n System.out.println(r[0].perimetro());\n System.out.println(r[1].area());\n System.out.println(r[1].perimetro());\n System.out.println(r[2].area());\n System.out.println(r[2].perimetro());\n\n Quadrado q[] = new Quadrado[3];\n\n q[0] = new Quadrado(5);\n q[1] = new Quadrado(8);\n q[2] = new Quadrado(3);\n System.out.println(q[0].area());\n System.out.println(q[0].perimetro());\n System.out.println(q[1].area());\n System.out.println(q[1].perimetro());\n System.out.println(q[2].area());\n System.out.println(q[2].perimetro());\n\n }", "private void habilitarCamposModif() {\n\n listarPromotoresModif();\n //limpiarListaCrear();\n }", "public void resolver(){\n\t\tfor(int i = 0 ; i < tablero.getTamanio(); i++){\n\t\t\tfor(int j = 0 ; j < diccionario.getCantPalabras(); j++){\n\t\t\t\tif(tablero.getTablero()[i].contains(diccionario.getPalabra()[j].getPalabra()) && !diccionario.getPalabra()[j].isEncontrada()){\n\t\t\t\t\tdiccionario.getPalabra()[j].setEncontrada(true);\n\t\t\t\t\trespuesta.add(Integer.toString(j+1) + \"\\tE\");\n\t\t\t\t} else if (tablero.getTablero()[i].contains(diccionario.getPalabra()[j].invertirPalabra()) && !diccionario.getPalabra()[j].isEncontrada()){\n\t\t\t\t\tdiccionario.getPalabra()[j].setEncontrada(true);\n\t\t\t\t\trespuesta.add(Integer.toString(j+1) + \"\\tO\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Busca sentido Norte y Sur\n\t\tString aux = \"\";\n\t\tfor(int i = 0 ; i < tablero.getTamanio(); i++){\n\t\t\tfor(int j = 0 ; j < tablero.getTamanio(); j++){\n\t\t\t\taux += tablero.getTablero()[j].charAt(i);\n\t\t\t}\n\t\t\tfor(int j = 0 ; j < diccionario.getCantPalabras() ; j++){\n\t\t\t\tif(aux.contains(diccionario.getPalabra()[j].getPalabra()) && !diccionario.getPalabra()[j].isEncontrada()){\n\t\t\t\t\tdiccionario.getPalabra()[j].setEncontrada(true);\n\t\t\t\t\trespuesta.add(Integer.toString(j+1) + \"\\tS\");\n\t\t\t\t} else if(aux.contains(diccionario.getPalabra()[j].invertirPalabra()) && !diccionario.getPalabra()[j].isEncontrada()){\n\t\t\t\t\tdiccionario.getPalabra()[j].setEncontrada(true);\n\t\t\t\t\trespuesta.add(Integer.toString(j+1) + \"\\tN\");\n\t\t\t\t}\n\t\t\t}\n\t\t\taux = \"\";\n\t\t}\n\t\t\n\t\ttry{\n\t\t\tPrintWriter pw = new PrintWriter(new File(\"Rapigrama1.out\"));\n\t\t\tfor(int i = 0 ; i < respuesta.size(); i++){\n\t\t\t\tpw.println(respuesta.get(i));\n\t\t\t}\n\t\t\tpw.close();\n\t\t} catch (Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}" ]
[ "0.6474738", "0.62258404", "0.62159973", "0.6076255", "0.60350484", "0.60301054", "0.6000147", "0.59471464", "0.59315765", "0.58789665", "0.58669794", "0.58547103", "0.582998", "0.57991", "0.57884645", "0.5767808", "0.57469857", "0.5744607", "0.57312226", "0.57190394", "0.5717805", "0.5700375", "0.5698878", "0.5671415", "0.56552124", "0.56271744", "0.562634", "0.5625822", "0.56212246", "0.5612375", "0.5611152", "0.5607947", "0.55969673", "0.5589361", "0.55815536", "0.5581401", "0.5580978", "0.55784005", "0.5576154", "0.55708075", "0.5561839", "0.5559519", "0.5541406", "0.55366457", "0.5536067", "0.55227697", "0.5519563", "0.55153733", "0.5514615", "0.5513461", "0.55003613", "0.5499296", "0.5498759", "0.5491909", "0.54902035", "0.5482822", "0.54819", "0.54811805", "0.547955", "0.54697776", "0.54551804", "0.545237", "0.5446824", "0.5440092", "0.5439938", "0.54336345", "0.54324853", "0.54298973", "0.5427258", "0.5421426", "0.5419615", "0.54183674", "0.5413168", "0.54088753", "0.54079187", "0.540462", "0.54033756", "0.5397625", "0.53964096", "0.5395469", "0.53875285", "0.53843004", "0.53834003", "0.53814983", "0.5378669", "0.5376979", "0.5368382", "0.5364322", "0.53619754", "0.53609174", "0.53543764", "0.53535235", "0.53523177", "0.5352309", "0.53515434", "0.535152", "0.534957", "0.5344879", "0.53381854", "0.53358394", "0.53347486" ]
0.0
-1
Metodo que agrega un nodo a un nivel, si existe no se agrega.
public ArbolGeneralDNS agregarHijo(ArbolGeneralDNS hijo){ return modAdmin.agregarHijo( hijo); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void agregarNodo(Nodo nuevo){\n agregarNodoRec(root, nuevo);//la primera vez inicia en la raiz \n }", "public void Nivel(Nodo nodo){\r\n\t\tif(cont<(int)Math.pow(2,base)){\r\n\t\t\tnodo.setNivel(nivel);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tnivel++;\r\n\t\t\tbase++;\r\n\t\t\tnodo.setNivel(nivel);\r\n\t\t}\r\n\t}", "public void AgregarDeMayorAMenor(int el) throws Exception{\n if(repetido(el)){\n throw new Exception(\"El dato ya existe en la lista!!!\");\n }else{\n /*\n Crear un nodo para el nuevo dato.\n Si la lista esta vacía, o el valor del primer elemento de la lista \n es mayor que el nuevo, insertar el nuevo nodo en la primera posición \n de la lista y modificar la cabecera respectivamente.\n \n */\n NodoDoble newNode = new NodoDoble(el);\n if (estVacia() || inicio.GetDato() == el) {\n newNode.SetSiguiente(inicio);\n inicio = newNode;\n } else {\n /* \n Si no se cumple el caso anterior, buscar el lugar adecuado \n para la inserción: recorrer la lista conservando el nodo actual. \n Inicializar nodo actual con el valor de primera posición, \n y avanzar mientras el siguiente nodo no sea nulo y el dato \n que contiene la siguiente posición sea mayor o igual que \n el dato a insertar.\n */\n NodoDoble current = inicio;//\n while (current.GetSiguiente() != null\n && current.siguiente.GetDato() >= el) {\n current = current.GetSiguiente();\n }\n /*\n Con esto se señala al nodo adecuado, \n a continuación insertar el nuevo nodo a continuación de él.\n */\n newNode.SetSiguiente(current.GetSiguiente());\n current.SetSiguiente(newNode);\n }\n } \n }", "public void inserisci(NodoAlbero dove, String contenuto, String tipo){\n if (n_nodi == 0){\n root = new NodoAlbero(contenuto, null, tipo);\n n_nodi++;\n return;\n }\n //se il nodo padre non ha un figlio, lo creiamo\n if (dove.getFiglio() == null)\n dove.setFiglio(new NodoAlbero(contenuto, dove, tipo));\n //se ce ne ha già almeno uno, lo accodiamo agli altri figli\n else {\n NodoAlbero temp = dove.getFiglio();\n while (temp.getFratello() != null)\n temp = temp.getFratello();\n temp.setFratello(new NodoAlbero(contenuto, temp.getPadre(), tipo));\n }\n n_nodi++;\n }", "public void agregarAlinicio(int el){\n if(!estVacia()){\n inicio=new NodoDoble(el, inicio, null);\n inicio.siguiente.anterior=inicio;\n }else{\n inicio=fin=new NodoDoble(el);\n }\n }", "public void agregarAlFinal(int el){\n if(!estVacia()){\n fin=new NodoDoble(el,null,fin);\n fin.anterior.siguiente=fin;\n }else{\n inicio=fin=new NodoDoble(el);\n }\n }", "public void insert(Nodo nodo) {\r\n\t\tif(cont<7){\r\n\t\t\tif(this.getRaiz() == null) {\r\n\t this.setRaiz(nodo);\r\n\t nodo.setClave(0);\r\n\t return;\r\n\t }\r\n\t \r\n\t Nodo t = this.getRaiz();\r\n\t boolean val = true;\r\n\t while((t != null)&&(val)) {\r\n\t if(t.getLeft() == null) {\r\n\t \tt.setLeft(nodo);\r\n\t \tcont++;\r\n\t \tNivel(nodo);\r\n\t \tval=false;\r\n\t }\r\n\t else if(t.getRight() == null) {\r\n\t t.setRight(nodo);\r\n\t cont++;\r\n\t \tNivel(nodo);\r\n\t val=false;\r\n\t }\r\n\t else {\r\n\t int lCount = countChildren(t.getLeft());\r\n\t int rCount = countChildren(t.getRight());\r\n\t if(lCount == rCount)\r\n\t t = t.getLeft(); \r\n\t \r\n\t else if(lCount == 0 || lCount == 1)\r\n\t t = t.getLeft(); \r\n\t \r\n\t else\r\n\t t = t.getRight();\r\n\t \r\n\t }\r\n\t\r\n\t }\r\n\t\t}\r\n\t}", "public void addPrimero(Object obj) {\n if (cabeza == null) { //Si la cabeza es nula, entoces se creará un nuevo nodo donde le pasaremos el valor de obj\n cabeza = new Nodo(obj);\n } else { //Si no es nula, signifa que el valor que se ingrese, pasara a ser la nueva cabeza\n Nodo temp = cabeza; //Metemos la cabeza en un nodo temporal\n Nodo nuevo = new Nodo(obj); //Creamos un nuevo nodo, que no está enlazado\n nuevo.enlazarSiguiente(temp); //Y el nuevo nodo lo enlazamos a el nodo Temp, que contenia el valor anterior de la otra cabeza\n cabeza = nuevo; //Y ahora le decimos que la cabeza sera nuevo\n }\n size++; //Cada vez que agreguemos un nuevo nodo el tamaño de nuestra lista tendra que aumentar\n }", "public void agregarAlInicio(String valor){\r\n // Define un nuevo nodo.\r\n Nodo nuevo = new Nodo();\r\n // Agrega al valor al nodo.\r\n nuevo.setValor(valor);\r\n // Consulta si la lista esta vacia.\r\n if (esVacia()) {\r\n // Inicializa la lista agregando como inicio al nuevo nodo.\r\n inicio = nuevo;\r\n // Caso contrario va agregando los nodos al inicio de la lista.\r\n } else{\r\n // Une el nuevo nodo con la lista existente.\r\n nuevo.setSiguiente(inicio);\r\n // Renombra al nuevo nodo como el inicio de la lista.\r\n inicio = nuevo;\r\n }\r\n // Incrementa el contador de tamaño de la lista.\r\n tamanio++;\r\n }", "@Override\n\tpublic boolean adicionar(Veiculo veiculo) {\n\t\treturn false;\n\t}", "public void insertarOrden(Object dato) {\n Nodo nuevo = new Nodo(dato);\n int res = 0;\n // System.out.println(\"esxa\"+res);\n if (primero == null) {\n nuevo.setReferencia(primero);\n primero = nuevo;\n // System.out.println(\"Es nulo\");\n// System.out.println(\"sss\"+primero.getDato());\n } else {\n res = comp.evaluar(dato, primero.getDato());\n // System.out.println(\"\"+res);\n if (res == -1) {\n nuevo.setReferencia(primero);\n primero = nuevo;\n } else {\n int auxres = 0;\n Nodo anterior, actual;\n anterior = actual = primero;\n auxres = comp.evaluar(dato, actual.getDato());\n while ((actual.getReferencia() != null) && (auxres == 1)) {\n anterior = actual;\n actual = actual.getReferencia();\n auxres = comp.evaluar(dato, actual.getDato());\n }\n if (auxres == 1) {\n anterior = actual;\n }\n nuevo.setReferencia(anterior.getReferencia());\n anterior.setReferencia(nuevo);\n\n }\n }\n\n }", "public void inserisci(String dove, String contenuto){\n if (n_nodi == 0){\n root = new NodoAlbero(contenuto, null, \"directory\");\n n_nodi++;\n return;\n }\n //troviamo il nodo che sarà il padre del nodo che dobbiamo aggiungere\n NodoAlbero cercato = ricerca(dove);\n \n //se il nodo padre non esiste, non aggiungiamo il nuovo nodo\n if (cercato == null)\n return;\n //se il nodo padre non ha un figlio, lo creiamo\n if (cercato.getFiglio() == null)\n cercato.setFiglio(new NodoAlbero(contenuto, cercato, \"directory\"));\n //se ce ne ha già almeno uno, lo accodiamo agli altri figli\n else {\n NodoAlbero temp = cercato.getFiglio();\n while (temp.getFratello() != null)\n temp = temp.getFratello();\n temp.setFratello(new NodoAlbero(contenuto, temp.getPadre(), \"directory\"));\n }\n n_nodi++;\n }", "public void setNivelNodo(NivelNodo nivelNodo) {\n\t\tthis.nivelNodo = nivelNodo;\n\t}", "public void agregarAlInicio( int elemento ) {\n\t\tif( !estaVacia() ) {\n\t\t\tinicio = new NodoDoble(elemento, inicio, null);\n\t\t\tinicio.siguiente.anterior = inicio;\n\t\t} else {\n\t\t\tinicio = fin = new NodoDoble(elemento);\n\t\t}\n\t}", "public void imprimirNivelSuperior(){\n\t\tmodCons.imprimirNivelSuperior();\n\t}", "public void agregar_Alinicio(int elemento){\n inicio=new Nodo(elemento, inicio);// creando un nodo para que se inserte otro elemnto en la lista\r\n if (fin==null){ // si fin esta vacia entonces vuelve al inicio \r\n fin=inicio; // esto me sirve al agregar otro elemento al final del nodo se recorre al inicio y asi sucesivamnete\r\n \r\n }\r\n \r\n }", "public void InsertarNodo(int nodo) {\r\n Nodo nuevo_nodo = new Nodo(nodo);\r\n nuevo_nodo.siguiente = UltimoValorIngresado;\r\n UltimoValorIngresado = nuevo_nodo;\r\n tamaño++;\r\n }", "public void agregarAlFinal(T v){\n\t\tNodo<T> nuevo = new Nodo<T>();\r\n\t\tnuevo.setInfo(v);\r\n\t\tnuevo.setRef(null);\r\n\t\t\r\n\t\t//si la lista aun no tiene elementos\r\n\t\tif(p == null){\r\n\t\t\t//el nuevo nodo sera el primero\r\n\t\t\tp=nuevo;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t//retorno la lista hasta que aux apunte al ultimo nodo\r\n\t\tNodo<T> aux;\r\n\t\tfor(aux=p; aux.getRef() != null; aux=aux.getRef()){\r\n\t\t\t//enlazo el nuevo nodo como el siguiente del ultimo\r\n\t\t\taux.setRef(nuevo);\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\n public void cantidad_Defensa(){\n defensa=2+nivel+aumentoD;\n }", "public void agregarAlFinal(String valor){\r\n // Define un nuevo nodo.\r\n Nodo nuevo = new Nodo();\r\n // Agrega al valor al nodo.\r\n nuevo.setValor(valor);\r\n // Consulta si la lista esta vacia.\r\n if (esVacia()) {\r\n // Inicializa la lista agregando como inicio al nuevo nodo.\r\n inicio = nuevo;\r\n // Caso contrario recorre la lista hasta llegar al ultimo nodo\r\n //y agrega el nuevo.\r\n } else{\r\n // Crea ua copia de la lista.\r\n Nodo aux = inicio;\r\n // Recorre la lista hasta llegar al ultimo nodo.\r\n while(aux.getSiguiente() != null){\r\n aux = aux.getSiguiente();\r\n }\r\n // Agrega el nuevo nodo al final de la lista.\r\n aux.setSiguiente(nuevo);\r\n }\r\n // Incrementa el contador de tamaño de la lista\r\n tamanio++;\r\n }", "public NivelNodo getNivelNodo() {\n\t\treturn nivelNodo;\n\t}", "public void agregarElemento(NodoRuta nodo) {\n if(nodos.contains(nodo)) {\n nodos.remove(nodo);\n }\n \n nodos.add(nodo);\n fireIntervalAdded(this, nodos.size(), nodos.size());\n }", "public void agregarinicio(int el){\n if(!estavacia()){\n fin=new nododoble(el, inicio,null);\n inicio.siguiente.anterior=inicio;\n }else{\n inicio=fin=new nododoble(el);\n }}", "public void agregaralfinal(int el){\n if(!estavacia()){\n fin=new nododoble(el, null, fin);\n fin.anterior.siguiente=fin;\n }else{\n inicio=fin=new nododoble(el);\n }}", "private void adicionar(No novo, Pessoa pessoa) {\n if(raiz == null)\n raiz = new No(pessoa);\n else{\n if(pessoa.getIdade()<novo.getPessoa().getIdade()){\n if(novo.getEsquerda() != null)\n adicionar(novo.getEsquerda() , pessoa);\n else\n novo.setEsquerda(new No(pessoa));\n }else{\n if(novo.getDireita() !=null)\n adicionar(novo.getDireita(), pessoa);\n else\n novo.setDireita(new No(pessoa));\n }\n }\n \n }", "ParqueaderoEntidad agregar(String nombre);", "public void addend(int dato) {\n //agrega nuevo nodo \n NodoEnteroSimple nodo = new NodoEnteroSimple();\n\n nodo.setValor(dato);\n\n if (vacia()) {\n\n head = nodo;\n } else {\n //un temporal de la lista \n NodoEnteroSimple temp = head;\n\n while (temp.getSiguiente() != null) {\n temp = temp.getSiguiente();\n\n }\n temp.getSiguiente();\n }\n size++;\n }", "private void insertarOrdenado(NodoBAVL<T> n, T o, int index) {\n if (o.compareTo(n.getElemento()) < 0) {\n if (n.getIzquierda() == null) {\n n.setIzquierda(new NodoBAVL<>(o, null, null, n));\n n.getIzquierda().getEgresados().add(index);\n recalcularFE(n);\n } else {\n insertarOrdenado((NodoBAVL) n.getIzquierda(), o, index);\n }\n } else if (o.compareTo(n.getElemento()) > 0) {\n if (n.getDerecha() == null) {\n n.setDerecha(new NodoBAVL<>(o, null, null, n));\n n.getDerecha().getEgresados().add(index);\n recalcularFE(n);\n } else {\n insertarOrdenado((NodoBAVL) n.getDerecha(), o, index);\n }\n } else {\n n.getEgresados().add(index);\n }\n }", "public void afegirEquip(Equip equip, boolean ordenat) throws LlistaPlena, EquipExisteix {\n\t\tif(primer==null){\n\t\t\t//Aqui coloco el primer de tots\n\t\t\tprimer= new Node();\n\t\t\tprimer.info=equip;\n\t\t\tn_equips=n_equips+1;\n\t\t\tanterior=primer;\n\t\t}\n\t\telse{\n\t\t\tif(ordenat){\n\t\t\t\t//Ordenat\n\t\t\t\tNode Nanterior=primer, Nseguent=primer.Nodeseguent;\n\t\t\t\tboolean trobat=false;\n\t\t\t\tif(Nanterior.info.getNom().equalsIgnoreCase(equip.getNom())) throw new EquipExisteix();\n\t\t\t\t//Comprobo si ha d'anar el primer de tots\n\t\t\t\tif(equip.getNom().compareToIgnoreCase(primer.info.getNom())<0){\n\t\t\t\t\tNode aux = new Node();\n\t\t\t\t\taux.info=equip;\n\t\t\t\t\tprimer.Nodeanterior=aux;\n\t\t\t\t\taux.Nodeseguent=primer;\n\t\t\t\t\tprimer=aux;\n\t\t\t\t\tanterior=aux;\n\t\t\t\t\tn_equips=n_equips+1;\n\t\t\t\t}else{\n\t\t\t\t\t//Comprobo si existeix l'element a la llista\n\t\t\t\t\twhile(!trobat && Nseguent!=null){\n\t\t\t\t\t\tif(Nseguent.info.getNom().equalsIgnoreCase(equip.getNom())) throw new EquipExisteix();\n\t\t\t\t\t\tif(equip.getNom().compareToIgnoreCase(Nseguent.info.getNom()) < 0) trobat=true;\n\t\t\t\t\t\telse{\tNanterior=Nseguent;\n\t\t\t\t\t\t\t\tNseguent=Nseguent.Nodeseguent;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tNode aux = new Node();\n\t\t\t\t\taux.info=equip;\n\t\t\t\t\tNanterior.Nodeseguent=aux;\n\t\t\t\t\taux.Nodeanterior=Nanterior;\n\t\t\t\t\taux.Nodeseguent=Nseguent;\n\t\t\t\t\tif(Nseguent!=null) Nseguent.Nodeanterior=aux; \n\t\t\t\t\tanterior=aux;\n\t\t\t\t\tn_equips=n_equips+1;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\telse{\n\t\t\t\t//Desordenat\n\t\t\t\tNode Nseguent=primer;\n\t\t\t\t//Comprobo si existeix l'element a la llista\n\t\t\t\twhile(Nseguent!=null){\n\t\t\t\t\tif(Nseguent.info.getNom().equalsIgnoreCase(equip.getNom())) throw new EquipExisteix();\n\t\t\t\t\tNseguent=Nseguent.Nodeseguent;\n\t\t\t\t}\n\t\t\t\tNode aux3= new Node();\n\t\t\t\taux3.info=equip;\n\t\t\t\tanterior.Nodeseguent=aux3;\n\t\t\t\taux3.Nodeanterior=anterior;\n\t\t\t\tanterior=aux3;\n\t\t\t\tn_equips=n_equips+1;\n\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t}", "public void agregarAlFinal(int edad){\n if(!estaVacia()){\n fin.siguiente = new Nodo(edad);\n fin=fin.siguiente;\n }else{\n fin=inicio = new Nodo(edad);\n }\n }", "public void insertarInicio(E dato) {\n\t\tprimero=new Nodo<E>(dato,primero);\n\t\tif (estaVacia()) {\n\t\t\tultimo=primero;\n\t\t}\n\t\tcantidad++;\n\t}", "public void agregarElemento(K llave, T dato) {\n\n\t\tif (primerElemento == null) {\n\t\t\tNodeTabla<K, T> nodo = new NodeTabla<K, T>(llave, dato, null);\n\t\t\t// agrega el nodo como ultimo y primer elemento\n\t\t\tprimerElemento = nodo;\n\t\t\tultimoElemento = nodo;\n\t\t} else {\n\t\t\t// pone el elemento al final de la fila\n\t\t\tultimoElemento = new NodeTabla<K, T>(llave, dato, ultimoElemento);\n\t\t}\n\n\t\t// incrementa el tamano\n\t\ttamano++;\n\t}", "@Override\n public boolean insertar(T dato){\n //Si el arbol se encuentra vacio\n if (esVacio()) {\n super.setRaiz(new NodoBin<T>(dato));\n return (true);\n } \n super.setRaiz(buscarAS(dato));\n int cmp = ((Comparable)dato).compareTo(super.getRaiz().getInfo()); \n // Si el dato es menor a la raiz\n if (cmp < 0) {\n NodoBin<T> n = new NodoBin<T>(dato);\n n.setIzq(super.getRaiz().getIzq());\n n.setDer(super.getRaiz());\n super.getRaiz().setIzq(null);\n super.setRaiz(n);\n return (true);\n }\n // Si el dato es mayor a la raiz\n else if (cmp > 0) {\n NodoBin<T> n = new NodoBin<T>(dato);\n n.setDer(super.getRaiz().getDer());\n n.setIzq(super.getRaiz());\n super.getRaiz().setDer(null);\n super.setRaiz(n);\n return (true);\n }\n return (false);\n }", "@Override\n public int nivel() {\n return this.altura() - 1;\n }", "public void anadirObjetoRecolectable (ObjetoRecolectable pObjeto){\n\t\tif (pObjeto instanceof ObjetoClave){\n\t\t\tthis.anadirObjetoClave((ObjetoClave)pObjeto);\n\t\t}\n\t\telse if (pObjeto instanceof PiezaArmadura){\n\t\t\tthis.actualizarArmadura((PiezaArmadura)pObjeto);\n\t\t}\n\t}", "@Override\n public Nodo ejecutar() {\n listaNodos.add(nodoRaiz);\n //nodo almacenado temporalmente\n Nodo nodoActual;\n //cola de hijos producto de aplicar ops\n ArrayList <Nodo> cola;\n \n NODO:while(!(listaNodos.isEmpty()))\n {\n nodoActual=listaNodos.get(0);\n listaNodos.remove(0);\n //Detecto el nodo como un ciclo y salto si sí es luego verifico meta\n if(nodoCiclo(nodoActual))\n {\n \n// System.out.println(\"Es Ciclo: \"+nodoActual.getOperador());\n continue NODO;\n }\n else if(esMeta(nodoActual)){\n solucion(nodoActual);\n JOptionPane.showMessageDialog(null, \"nodos expandidos\"+nodoexpandidos+\"profundidad\"+profundidad);\n return nodoActual;\n }\n //Expando Nodo\n cola=expandirNodo(nodoActual);\n nodoexpandidos++;\n for(int i=0;i<cola.size();i++)\n {\n Nodo temporal=cola.get(i);\n cola.set(i, temporal);\n \n }\n //Armo cola general\n cola.addAll(listaNodos);\n listaNodos=(ArrayList <Nodo>)cola.clone();\n }\n return null;\n }", "public void siguienteNivel(){ \n\t\tnivel++;\n\t\tcontador = 0;\n\t\tcontadorE = 0;\n\t\treiniciar = false;\n\t\t\n\t\tnumDisparos=0; \n\t\tpausa=false;\n\t\tdisparando=false;\n\t\t\n\t\tif(nivel<9){\n\t\t\tasteroides =new Asteroide [(2+(nivel*2)) *(int)Math.pow(astNumDivision,astNumDisparos-1)+1];\n\t\t\tnumAsteroides = 2+(nivel*2);\n\t\t}\n\t\telse{\n\t\t\tasteroides =new Asteroide [12 *(int)Math.pow(astNumDivision,astNumDisparos-1)+1];\n\t\t\tnumAsteroides = 12;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<numAsteroides;i++){\n\t\t\tasteroides[i]=new Asteroide(this, Math.random()*this.getWidth(), Math.random()*this.getHeight(), \n\t\t\t\t\tastRadio,minAstVel, maxAstVel, astNumDisparos, astNumDivision, 1);\n\t\t}\n\t}", "@Override\n public void buildNivel(int nivel) {\n \n if(nivel < 6)\n this.personaje.setNivel(nivel);\n }", "@Override\n\tpublic void aumentar(int cantidad) {\n\t\t\n\t}", "public Nodo NodoNotExec(Nodo nodo){\n if (nodo.getParent()!=null){\n Nodo hermano=nodo.getParent().getChildren().getFirst();\n Nodo n= hermano.getHermanos().get(nodo.getSimbolo());\n return n;\n }\n return null;\n }", "private void añadirEnemigo() {\n\t\t\n\t\tif(enemigo.isVivo()==false){\n\t\t\tint k;\n\t\t\tk = (int)(Math.random()*1000)+1;\n\t\t\tif(k<=200){\n\t\t\t\tif(this.puntuacion<10000){\n\t\t\t\t\tenemigo.setTipo(0);\n\t\t\t\t\tenemigo.setVivo(true);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tenemigo.setTipo(1);\n\t\t\t\t\tenemigo.setVivo(true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void insertSubArbol(Nodo nodo) {\r\n\t\tif(cont<5){\r\n\t\t\tif(this.getRaiz() == null) {\r\n\t\t\t\tthis.setRaiz(nodo);\r\n\t\t\t\tnodo.setClave(0);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tNodo t = this.getRaiz();\r\n\t\t\tboolean val = true;\r\n\t\t\twhile((t != null)&&(val)) {\r\n\t\t\t\tif(t.getLeft() == null) {\r\n\t\t\t\t\tt.setLeft(nodo);\r\n\t\t\t\t\tcont++;\r\n\t\t\t\t\tval=false;\r\n\t\t\t\t}\r\n\t\t\t\telse if(t.getRight() == null) {\r\n\t\t\t\t\tt.setRight(nodo);\r\n\t\t\t\t\tcont++;\r\n\t\t\t\t\tval=false;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tint lCount = countChildren(t.getLeft());\r\n\t\t\t\t\tint rCount = countChildren(t.getRight());\r\n\t\t\t\t\tif(lCount == rCount)\r\n\t\t\t\t\t\tt = t.getLeft(); \r\n\t\t\t\t\t\r\n\t\t\t\t\telse if(lCount == 0 || lCount == 1)\r\n\t\t\t\t\t\tt = t.getLeft(); \r\n\t\t\t\t\t\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tt = t.getRight();\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}", "boolean insertar(Nodo_B nuevo){\n if(this.primero == null){\n this.primero = nuevo;\n this.ultimo = nuevo;\n size ++;\n return true;\n }else{\n if(this.primero == this.ultimo){ // -------------------------solo hay un nodo \n if(nuevo.valor < this.primero.valor){\n nuevo.siguiente = this.primero;\n this.primero.anterior = nuevo;\n this.primero.izq = nuevo.der; // -----cambia los punteros a las paginas\n this.primero = nuevo;\n size++; \n return true;\n }else if(nuevo.valor > this.ultimo.valor){\n this.ultimo.siguiente = nuevo;\n nuevo.anterior = this.ultimo;\n this.ultimo.der = nuevo.izq; //------ cambia los punteros a las paginas \n this.ultimo = nuevo;\n size++; \n return true;\n }else{\n System.out.println (\"ya hay un destino con ese codigo registrado\");\n return false;\n }\n }else{ // ---------------------------------------------------hay mas de un nodo\n if(nuevo.valor < this.primero.valor){\n nuevo.siguiente = this.primero;\n this.primero.anterior = nuevo;\n this.primero.izq = nuevo.der; // -----cambia los punteros a las paginas\n this.primero = nuevo;\n size++; \n return true;\n }else if(nuevo.valor > this.ultimo.valor){\n this.ultimo.siguiente = nuevo;\n nuevo.anterior = this.ultimo;\n this.ultimo.der = nuevo.izq; //------ cambia los punteros a las paginas \n this.ultimo = nuevo;\n size++; \n return true;\n }else{\n Nodo_B pivote = this.primero;\n while(pivote != null){\n if(nuevo.valor < pivote.valor){\n nuevo.siguiente = pivote;\n nuevo.anterior = pivote.anterior;\n //--------------------------- cambia los punteros a las paginas\n pivote.izq = nuevo.der;\n pivote.anterior.der = nuevo.izq;\n //-----------------------------------------------------------\n pivote.anterior.siguiente = nuevo;\n pivote.anterior = nuevo;\n size++;\n return true;\n }else if(nuevo.valor == pivote.valor){\n System.out.println (\"ya hay un destino con ese codigo registrado\");\n return false;\n }else{\n pivote = pivote.siguiente;\n }\n }\n }\n }\n }\n return false;\n }", "public boolean addPieza(Ordenador o, Pieza p, int cantidad) {\n\t\tboolean resultado = false;\n\t\ttry {\n\t\t\t\t\t\n\t\t\tXPathQueryService consulta = (XPathQueryService) col.getService(\"XPathQueryService\", \"1.0\");\n\t\t\tconsulta.query(\"update insert \"\n\t\t\t\t\t+ \"<pieza codigo='\"+p.getCodigo()+\"' cantidad='\"+\n\t\t\t\t\t cantidad+\"'/>\"\n\t\t\t\t\t+ \"into //ordenador[@codigo='\"+o.getCodigo()+\"']/piezas\");\n\t\t\tresultado=true;\n\t\t} catch (XMLDBException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn resultado;\n\t}", "private static void addNodo(Alumno alumno, Nodo raiz) {\n Nodo izq = null;\n Nodo der = null;\n if (raiz == null) {\n raiz.setAlumno(alumno);\n } else if (0 <= ((raiz.getAlumno().getApellidoPaterno()).compareTo(alumno.getApellidoPaterno()))) {\n addNodo(alumno, der);\n } else {\n addNodo(alumno, izq);\n }\n\n }", "@Override\r\n\tprotected void agregarObjeto() {\r\n\t\t// opcion 1 es agregar nuevo justificativo\r\n\t\tthis.setTitle(\"PROCESOS - PERMISOS INDIVIDUALES (AGREGANDO)\");\r\n\t\tthis.opcion = 1;\r\n\t\tactivarFormulario();\r\n\t\tlimpiarTabla();\r\n\t\tthis.panelBotones.habilitar();\r\n\t}", "public void agregar(T elemento) {\n\t\tNode <T> agrega= new Node<T>(elemento);\n\t\tNode <T> actual=null;\n\t\tNode <T> anterior = null;\n\t\tactual=primero;\n\t\tboolean agregado=false;\n\t\tif ( numeroElementos==0) {\n\t\t\tprimero = agrega;\n\t\t\tultimo=primero;\n\t\t}\n\t\telse if ( agrega.darElemento().compareTo(ultimo.darElemento())<=0) \n\t\t{\n\t\t\tultimo.asignarSiguiente(agrega);\n\t\t\tultimo=agrega;\n\t\t}\n\t\telse if(agrega.darElemento().compareTo(primero.darElemento())>=0) {\n\t\t\tagrega.asignarSiguiente(primero);\n\t\t\tprimero=agrega;\n\t\t\t}\n\t\telse {\n\t\t\twhile (!agregado) {\n\n\t\t\t\tif (agrega.darElemento().compareTo(actual.darElemento())<0) {\n\t\t\t\t\tanterior= actual;\n\t\t\t\t\tactual=actual.darSiguiente();\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse { \n\t\t\t\t\tanterior.asignarSiguiente(agrega);\n\t\t\t\t\tagrega.asignarSiguiente(actual);\n\t\t\t\t\t\tagregado=true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tnumeroElementos++;\n\t}", "public void agregarCantidad() {\r\n\t\tif (cantidad > 0) {\r\n\t\t\tif (cantidad <= inventarioProductoComprar.getCantidad()) {\r\n\t\t\t\tdetalleAgregar.setCantidad(cantidad);\r\n\t\t\t\tdetalleAgregar.setSubtotal(detalleAgregar.getProducto().getValorProducto() * cantidad);\r\n\t\t\t\tinventarioProductoComprar.setCantidad(inventarioProductoComprar.getCantidad() - cantidad);\r\n\t\t\t\tsumarTotalVenta(cantidad, detalleAgregar.getProducto().getValorProducto());\r\n\t\t\t\tproductosCompra.add(detalleAgregar);\r\n\t\t\t\tinventariosEditar.add(inventarioProductoComprar);\r\n\t\t\t\tdetalleAgregar = null;\r\n\t\t\t\treload();\r\n\r\n\t\t\t} else {\r\n\t\t\t\tMessages.addFlashGlobalError(\"No existe esta cantidad en el inventario\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tMessages.addFlashGlobalError(\"La cantidad debe ser mayor a 0\");\r\n\t\t}\r\n\t}", "public void agregarAlInicio(int edad){\n //CREAR UN NUEVO NODO AL INICIO DE LA LISTA\n inicio = new Nodo(edad,inicio);\n if(fin==null){\n fin=inicio;\n }\n }", "public void insertar(int x, String nombre) {\n \tNodo nuevo;\n nuevo = new Nodo();\n nuevo.edad = x;\n nuevo.nombre = nombre;\n //Validar si la lista esta vacia\n if (raiz==null)\n {\n nuevo.sig = null;\n raiz = nuevo;\n }\n else\n {\n nuevo.sig = raiz;\n raiz = nuevo;\n }\n }", "@Override\n\tpublic boolean semelhante(Assemelhavel obj, int profundidade) {\n\t\treturn false;\n\t}", "public NodoDoble(NodoDoble<E> anterior, E elemento, NodoDoble<E> siguiente){//a ver si no te da problema el nodo por no estar especigicando su tipo... puesto que esta clase es genérica y aquí estas creando uno sin saber, asi que creo que debería de especificarselo\n contenido = elemento;\n nodoSiguiente = siguiente;\n nodoAnterior = anterior;\n }", "public void verificarNivel (int nivel) {\n this.nivelUsuario = nivel;\n }", "public void setNodo(Long nodo);", "@Override\n\tpublic boolean create(Eleve o) {\n\t\tmap.put(o.getId(),o);\n\t\treturn true;\n\t}", "@DirectMethod\r\n\tpublic String agregarNodosArbolIn(boolean bNvoHijo,//que si es nuevo hijo si dice false es padre\r\n\t\t\t\t\t\t\t\t\tString sRuta,//trae la clave de donde viene de la empresa raiz ala que se le metera el hijo\r\n\t\t\t\t\t\t\t\t\tint iIdEmpresaRaiz,//trae la clave de la empresa raiz ala que se le metera el hijo \r\n\t\t\t\t\t\t\t\t\tint iIdEmpresaHijo,//Id de la empresa \r\n\t\t\t\t\t\t\t\t\tdouble uMonto,//monto en flotante\r\n\t\t\t\t\t\t\t\t\tString nombreArbol,//trae un dato en blanco ''\r\n\t\t\t\t\t\t\t\t\t//String tipoValor,//trae el dato del combo tipodevalor \r\n\t\t\t\t\t\t\t\t\tint tipoOperacion,//treae el numero de la operacion\r\n\t\t\t\t\t\t\t\t\tint iIdEmpresaPadre){//trae el Id del padre ala que se insertara\r\n\r\n\t\t\r\n\t\t\r\n\r\n\t\tString sMsgUsuario = \"en nodos hojso angel\";\r\n\t\tif(!Utilerias.haveSession(WebContextManager.get()))\r\n\t\t\treturn sMsgUsuario;\r\n\t\ttry{\r\n\t\t\tBarridosFondeosService barridosFondeosService = (BarridosFondeosService) contexto.obtenerBean(\"barridosFondeosBusinessImpl\");\r\n\t\t\tsMsgUsuario = barridosFondeosService.agregarNodosArbolIn(bNvoHijo, sRuta, iIdEmpresaRaiz, \r\n\t\t\t\t\tiIdEmpresaHijo, uMonto, nombreArbol, tipoOperacion, iIdEmpresaPadre); \r\n\t\t}catch(Exception e){\r\n\t\t\tbitacora.insertarRegistro(new Date().toString() + \" \" + Bitacora.getStackTrace(e)\r\n\t\t\t\t\t+ \"P: BarridosFondeos C: BarridosFondeosAction M: agregarNodosArbolIn\");\r\n\t\t}return sMsgUsuario;\r\n\t}", "public void agregarAlFinal(int d){\n if(!estaVacia()){\n fin = new NodoBus(d, null, fin);\n fin.ant.sig =fin;\n }else{\n inicio = fin = new NodoBus(d);\n }\n }", "public void crearNodos()\n\t{\n\t\tfor(List<String> renglon: listaDeDatos)\n\t\t{\n\t\t\tPersona persona = new Persona(Integer.parseInt(renglon.get(1)), Integer.parseInt(renglon.get(2))); //crea la persona\n\t\t\t\n\t\t\tNodo nodo = new Nodo(Integer.parseInt(renglon.get(0)), 0, 0, false); //crea el nodo con id en posicion 1\n\t\t\t\n\t\t\tnodo.agregarPersona(persona);\n\t\t\tlistaNodos.add(nodo);\n\t\t}\n\t\t\n\t}", "public void inOrden(Nodo r){\n if(r != null){\n inOrden(r.hijoIzquierdo);\n System.out.println(r.valor);\n inOrden(r.hijoDerecho);\n }\n }", "ParqueaderoEntidad agregar(ParqueaderoEntidad parqueadero);", "public void agregar(T data, String tag) throws CloneNodeException, NullTagException {\n if (tag == null) {\n throw new NullTagException(\"Se debe de agregar un tag de identificacion\");\n } else {\n //NodoListaDoble<T> nuevo = new NodoListaDoble(raiz, tag);\n NodoListaDoble<T> nuevo = new NodoListaDoble(this.raiz,tag);\n if (this.raiz == null) {\n this.raiz = nuevo;\n } else {\n if (this.buscar(nuevo.getTag()) == null) {\n NodoListaDoble<T> tmp = this.raiz;\n\n while (tmp != null) {\n if (tmp.getSiguiente() == null) {\n tmp.setSiguiente(nuevo);\n nuevo.setAnterior(tmp);\n break;\n }\n tmp = tmp.getSiguiente();\n }\n } else {\n throw new CloneNodeException(\"Ya existe un elemento con tag: \" + nuevo.getTag());\n }\n }\n }\n }", "public void addNodo(String nombre) {\n\t\tNodo nodo = new Nodo();\n\t\tnodo.setNombre(nombre);\n\t\tnodos.add(nodo);\n\t}", "private boolean existsRec(Node<T> nodo, T key) {\r\n\t\tif (nodo.getData().equals(key)) {// Si existe el nodo en el arbol\r\n\t\t\treturn true;\r\n\t\t} else if (nodo.getChildren() != null) {// Si tiene hijos\r\n\t\t\tList<Node<T>> lista = nodo.getChildren();// Los hijos\r\n\t\t\tboolean comprobacion = false;\r\n\t\t\tfor (int i = 1; i <= lista.size(); i++) {\r\n\t\t\t\tcomprobacion = existsRec(lista.get(i), key);// Recursividad\r\n\t\t\t\tif (comprobacion == true) // Se encontro\r\n\t\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false; // No se encontro\r\n\t}", "public void add(T conteudo){\n No<T> novoNo = new No(conteudo);\n if( this.isEmpty() ){\n this.referenciaEntrada = novoNo;\n }else {\n No<T> noAuxiliar = referenciaEntrada;\n for (int i = 0; i < this.size() - 1; i++) {\n noAuxiliar = noAuxiliar.getProximoNo();\n }\n noAuxiliar.setProximoNo(novoNo);\n }\n }", "public INode addOrGetNode(String label);", "public void nascitaAgnello() {\n\t\tpecore.add(new Agnello());\n\t\tnumeroAgelli++;\n\t}", "public void agregarOrden(Orden o) {\n\t\tthis.colaOrdenes.add(o);\n\t}", "@Override\n\tpublic Oglas addPonuda(Ponuda p, Long id) {\n\t\tOglas oglas = repository.findOne(id);\n\t\toglas.getPonudeZaOglas().add(p);\n\t\treturn repository.save(oglas);\n\t}", "protected void subirDeNivel(int n) //A cada 100 de xp, sobe de nivel\n {\n this.nivel = nivel + n;\n }", "public boolean insertarOrdenador(Ordenador o) {\n\t\tboolean resultado = false;\n\t\ttry {\n\t\t\tSimpleDateFormat formato = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\n\t\t\tXPathQueryService consulta = (XPathQueryService) col.getService(\"XPathQueryService\", \"1.0\");\n\t\t\tconsulta.query(\"update insert \"\n\t\t\t\t\t+ \"<ordenador codigo='\"+o.getCodigo()+\"' fecha='\"+\n\t\t\t\t\t formato.format(o.getFecha())+\"'>\"\n\t\t\t\t\t + \"<piezas/>\" +\n\t\t\t\t\t \"<precio>0</precio>\" \n\t\t\t\t\t+\"</ordenador>\"\n\t\t\t\t\t+ \"into /ordenadores\");\n\t\t\tresultado=true;\n\t\t} catch (XMLDBException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn resultado;\n\t}", "public void addNode() {\r\n \r\n Nod nod = new Nod(capacitate_noduri);\r\n numar_noduri++;\r\n noduri.add(nod);\r\n }", "public Nodo() {\n this.valor = 0;\n this.proximo=null;\n\n }", "public void agregarBodega(String nombre_bodega){\n Nodo_Bodega Nueva_bodega = new Nodo_Bodega(Size,nombre_bodega);\n if(Nodo_bodega_inicial==null){\n Nodo_bodega_inicial = Nueva_bodega;\n Nodo_bodega_final = Nueva_bodega;\n Nodo_bodega_actual = Nueva_bodega;\n }else{\n Nueva_bodega.definirAnterior(Nodo_bodega_final);\n Nodo_bodega_final.definirSiguiente(Nueva_bodega);\n Nodo_bodega_final = Nueva_bodega;\n }\n Size++;\n }", "public void imprimirNivelMedio(){\n\t\tmodCons.imprimirNivelMedio();\n\t}", "@Override\n\tpublic void addNode(IOptiuniMeniu optiune) {\n\t\tthrow new IllegalArgumentException(\"Exceptie\");\n\t}", "public int cargarCombustible(){ //creamos metodo cargarCombustible\r\n return this.getNivel();//retornara el nivel de ese mecanico\r\n }", "public void inserirFinal(int elemento) {\n No novo = new No(elemento, null);\n No temp = ini;\n\n if (eVazia()) {\n ini = novo;\n } else {\n //Percorrer até chegar no ultimo Nó\n while (temp.getProximo() != null) {\n temp = temp.getProximo();\n }\n temp.setProximo(novo);\n }\n\n }", "public long create_node(Node node)\r\n\t\t{ \r\n\t\t long id = 0; //id de la tabla user (único) \r\n\r\n\t\t try \r\n\t\t { \r\n\t\t iniciaOperacion(); \r\n\t\t id = (Long)sesion.save(node); //metodo para guardar cliente (del objeto hibernate.sesion) \r\n\t\t tx.commit(); \r\n\t\t }catch(HibernateException he) \r\n\t\t { \r\n\t\t manejaExcepcion(he);\r\n\t\t throw he; \r\n\t\t }finally \r\n\t\t { \r\n\t\t sesion.close(); \r\n\t\t } \r\n\t\t return id; \r\n\t\t}", "private native boolean setModoEnfoque(int modo);", "private void inicializarPartida(int nivel) {\r\n\t\tif(nivel == PRINCIPIANTE) {\r\n\t\t\tcasillas = new Casilla [FILAS_PRINCIPIANTE] [COLUMNAS_PRINCIPIANTE];\r\n\t\t\tcantidadMinas = CANTIDAD_MINAS_PRINCIPANTE;\r\n\t\t\t\r\n\t\t}\r\n\t\tif(nivel == INTERMEDIO) {\r\n\t\t\tcasillas = new Casilla [FILAS_INTERMEDIO] [COLUMNAS_INTERMEDIO];\r\n\t\t\tcantidadMinas = CANTIDAD_MINAS_INTERMEDIO;\r\n\t\t}\r\n\t\tif(nivel == EXPERTO) {\r\n\t\t\tcasillas = new Casilla [FILAS_EXPERTO] [COLUMNAS_EXPERTO] ;\r\n\t\t\tcantidadMinas = CANTIDAD_MINAS_EXPERTO;\r\n\t\t\t\r\n\t\t}\r\n\t}", "@Override\r\n public Resultado excluir(EntidadeDominio entidade) {\n String nmClass = entidade.getClass().getName();\r\n //executando validações de regras de negocio \r\n String msg = executarRegras(entidade, \"EXCLUIR\");\r\n if (msg.isEmpty()) {\r\n IDAO dao = daos.get(nmClass);\r\n dao.excluir(entidade);\r\n resultado.setMsg(\"Dados excluidos\");\r\n } else {\r\n resultado.setMsg(msg.toString());\r\n }\r\n return resultado;\r\n }", "@Override\n public void vaciar() {\n this.raiz = NodoBinario.nodoVacio();\n }", "public Nodo() {\r\n this.dato = null;\r\n this.siguiente = null;\r\n }", "private boolean insertarAux(NodoABB n, Comparable elem) {\n boolean exito = true;\r\n if (elem.compareTo(n.getElem()) == 0) {\r\n //Reportar error: elemento repetido\r\n exito = false;\r\n\r\n } else if (elem.compareTo(n.getElem()) < 0) {\r\n //elemento es menor que el elemento del nodo\r\n //si tine HI baja a la izq, sino agrega elemento\r\n if (n.getIzquierdo() != null) {\r\n exito = insertarAux(n.getIzquierdo(), elem);\r\n } else {\r\n n.setIzquierdo(new NodoABB(elem, null, null));\r\n }\r\n } else // elemento es mayor que el elemento del nodo\r\n //si tiene HD baja a la derecha, sino agrega el elemento\r\n if (n.getDerecho() != null) {\r\n exito = insertarAux(n.getDerecho(), elem);\r\n } else {\r\n n.setDerecho(new NodoABB(elem, null, null));\r\n }\r\n return exito;\r\n }", "public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }", "private int verificarRemocao(No no){\n if(no.getDireita()==null && no.getEsquerda()==null)\n return 1;\n if((no.getDireita()==null && no.getEsquerda()!=null) || (no.getDireita()!=null && no.getEsquerda()==null))\n return 2;\n if(no.getDireita() != null && no.getEsquerda() != null)\n return 3;\n else return -1;\n }", "private void insercionOrdenada(BTreeNode<T> currentNode, T t) {\n int indexNewKey = findChildOrIndex(currentNode, (I)t.getId());\n\n for (int i = currentNode.getNumKeys() - 1; i >= indexNewKey; i--) {\n currentNode.setKey(currentNode.getKey(i), i + 1);\n }\n\n currentNode.setKey(t, indexNewKey);\n\n currentNode.increaseNumKeys();\n }", "private int getNumberOfNodesRec(int contador, Node<T> nodo) {\r\n\t\tcontador++;// Si este metodo entra es porque entro a un nodo por lo que\r\n\t\t\t\t\t// se suma 1\r\n\t\tif (nodo.getChildren() != null) {// Si tiene hijos\r\n\t\t\tList<Node<T>> lista = nodo.getChildren();// Hijos\r\n\t\t\tfor (int i = 1; i <= lista.size(); i++) {\r\n\t\t\t\tcontador = getNumberOfNodesRec(contador, lista.get(i));// Recursividad\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn contador;\r\n\t}", "public void addRegistro(String nombre, String apellidos, String dni) {\r\n\t\t\r\n\t\tSession ss = Util.getSessionFactory().openSession();\r\n\t\tTransaction tr = null;\r\n\t\ttry {\r\n\t\t\ttr = ss.beginTransaction();// comenzamos a hacer cositas\r\n\t\t\t// id incremental,por eso pongo cero\r\n\t\t\tPersona p = new Persona(0, nombre, apellidos, dni);\r\n\t\t\tss.save(p);\r\n\t\t\ttr.commit();\r\n\t\t} catch (HibernateException e) {\r\n\t\t\tSystem.out.println(\"Pako_error= \" + e);\r\n\t\t} finally {\r\n\t\t\tss.close();\r\n\t\t\t// System.out.println(\"Final\");\r\n\t\t}\r\n\t}", "public void subirNivelAtaque(){\n\tif(contadorNivel==5){\n\t nivelAtaque++;\n\t System.out.println(\"El ataque \"+obtenerNombreAtaque()+\" ha subido de nivel\");\n\t contadorNivel=0;\n\t dano+=5;\n\t} else {\n\t nivelAtaque=nivelAtaque;\n\t}\n }", "@Override\n public void addNode(node_data n) {\n this.modeCount += this.nodes.putIfAbsent(n.getKey(), n) == null ? 1 : 0; // if the node was already in the graph - it will simply do nothing, if it wasn't - it will add it to the graph and increment modeCount by 1\n }", "public void gerarReceitaLiquidaIndiretaDeAgua() \n\t\t\tthrows ErroRepositorioException;", "public void mezclarPorGrado() {\n\t\tint i = 0;\n\t\tint inicio = 0;\n\t\tint fin = 0;\n\t\tint grado = 0;\n\t\tNodo aux;\n\t\tRandom r = new Random();\n\t\tboolean[] mezclado = new boolean[cantNodos];\n\n\t\twhile (i < cantNodos) {\n\t\t\tinicio = i;\n\t\t\tgrado = nodos.get(i).getGrado();\n\t\t\twhile (i < cantNodos && nodos.get(i).getGrado() == grado)\n\t\t\t\ti++;\n\n\t\t\tfin = i;\n\n\t\t\tfor (int k = inicio; k < (fin - inicio); k++) {\n\t\t\t\tint res = r.nextInt(fin - inicio);\n\t\t\t\tif (mezclado[k])\n\t\t\t\t\tres = r.nextInt(fin - inicio);\n\t\t\t\taux = nodos.get(k);\n\t\t\t\tmezclado[k] = true;\n\t\t\t\tnodos.set(k, nodos.get(inicio + res));\n\t\t\t\tnodos.set(inicio + res, aux);\n\t\t\t}\n\t\t}\n\t\tvalidarMezcla();\n\t}", "public void agregarAlInventario(int cantidad) {\n\t\tif(cantidad>=0) {\n\t\t\tthis.cantidad += cantidad;\n\t\t}\n\t}", "private int jumlahNode(Node node) {\n if (node == null) {\n return 0;\n } else {\n return 1 + jumlahNode(node.pKiri) + jumlahNode(node.pKanan);\n }\n }", "public void asignar_Nodo(Nodo e) {\n\t\tthis.elem = e;\n\t}", "@Override\n public void subida(){\n // si es mayor a la eperiencia maxima sube de lo contrario no\n if (experiencia>(100*nivel)){\n System.out.println(\"Acabas de subir de nivel\");\n nivel++;\n System.out.println(\"Nievel: \"+nivel);\n }else {\n\n }\n }", "public boolean repetido(int el){\n boolean repe = false;\n NodoDoble current = inicio;\n while(current != null){\n if(current.dato==el){\n repe = true;\n break; \n }else{\n repe = false;\n } \n current = current.siguiente;\n }\n return repe;\n }", "boolean addNode(N node);", "void insertar_cabeceraMatriz(Nodo_B nuevo){\n \n if(this.primero == null){\n this.primero = nuevo;\n this.ultimo = nuevo;\n \n this.size++;\n }else{\n \n if(nuevo.getValor() < this.primero.getValor()){\n nuevo.siguiente = this.primero;\n this.primero.anterior = nuevo;\n this.primero = nuevo;\n this.size++;\n }else if(nuevo.getValor() > this.ultimo.getValor()){\n this.ultimo.siguiente = nuevo;\n nuevo.anterior = this.ultimo;\n this.ultimo = nuevo;\n this.size++;\n }else{\n Nodo_B pivote = this.primero;\n \n while(pivote != null){\n if(nuevo.getValor() < pivote.getValor()){\n nuevo.siguiente = pivote;\n nuevo.anterior = pivote.anterior;\n pivote.anterior.siguiente = nuevo;\n pivote.anterior = nuevo;\n this.size++;\n break;\n }else if(nuevo.getValor() == pivote.getValor()){\n System.out.print(\"ya hay un valor con este codigo registrado\");\n break;\n }else{\n pivote = pivote.siguiente;\n }\n }\n }\n }\n // JOptionPane.showMessageDialog(null, \"salio del metodo insertar cabecera con el pais :\"+nuevo.nombreDestino);\n }", "private Ingrediente givenExisteUnIngrediente() {\n\t\tIngrediente ing = new Ingrediente();\n\t\ting.setId_categoriaIngrediente(1);\n\t\ting.setNombre(\"TOMATE\");\n\t\treturn ing;\n\t}" ]
[ "0.6648787", "0.6438415", "0.64003927", "0.6396134", "0.62275326", "0.6221523", "0.60723233", "0.60292274", "0.59790295", "0.59695196", "0.58981794", "0.5889739", "0.58892894", "0.5887781", "0.58875597", "0.5803798", "0.5780324", "0.57600504", "0.57589865", "0.57212424", "0.57077646", "0.56966746", "0.5683351", "0.5681916", "0.5659609", "0.563535", "0.56233895", "0.5622656", "0.5604305", "0.56007475", "0.55997854", "0.559282", "0.55882674", "0.5550389", "0.5527057", "0.55212754", "0.551615", "0.5514965", "0.551461", "0.55040413", "0.5497716", "0.5438103", "0.54277474", "0.5390047", "0.5377671", "0.53655744", "0.5360828", "0.5348376", "0.5347839", "0.53220004", "0.5310861", "0.5292552", "0.5279258", "0.5271494", "0.526199", "0.5259175", "0.5253883", "0.5249881", "0.5246092", "0.5237239", "0.5231325", "0.5213339", "0.52111155", "0.52039087", "0.5200217", "0.518797", "0.5172798", "0.51707685", "0.5167452", "0.51610535", "0.51573986", "0.51361686", "0.5131615", "0.5109789", "0.51048875", "0.50967485", "0.5085241", "0.5084892", "0.507807", "0.5077989", "0.50774807", "0.50708055", "0.5069956", "0.50662464", "0.5064688", "0.5063867", "0.50602055", "0.5049539", "0.5048257", "0.5043247", "0.503929", "0.50388783", "0.50356025", "0.5035049", "0.5027275", "0.50268495", "0.5025223", "0.50245893", "0.50213647", "0.5017041", "0.501365" ]
0.0
-1
> modulo de administracion > Metodo que elimina una maquina del servidor DNS , pasando como parametro la URL
public void eliminar(ListaConArreglo nodosMaquina){ modAdmin.eliminar( nodosMaquina); if(!ModAdmin.existe){ System.err.println("El dominio indicado no existe en la base"); } ModAdmin.existe=false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void decomminsionHost( int hostId );", "public void removeMotorista() {\n\t\tConector con = new Conector();\r\n\t\tString params[] = new String[2];\r\n\r\n\t\tparams[0] = \"op=8\";\r\n\t\tparams[1] = \"email=\" + usuario;\r\n\r\n\t\tcon.sendHTTP(params);\r\n\t}", "public void del(String url) throws IOException {\n urlCommand(\"DEL\\0\", url);\n readReply();\n switch(_reply_com) {\n case PushCacheProtocol.OK:\n break;\n case PushCacheProtocol.ERR:\n serverError();\n break;\n default:\n unexpectedReply();\n }\n }", "void deleteVHost(String vHostName);", "@Override\n public String deleteFromWalletServer(String urlSegment) {\n // Construct the http header.\n HttpHeaders header = constructHttpHeaders();\n // Construct the http URL.\n String baseUrl = ConfigUtil.instants().getValue(\"walletServerBaseUrl\");\n String walletServerUrl = baseUrl + urlSegment;\n HttpEntity<JSONObject> entity = new HttpEntity<>(null, header);\n // Send the http request and get response.\n ResponseEntity<String> exchange =\n REST_TEMPLATE.exchange(walletServerUrl, HttpMethod.DELETE, entity, String.class);\n return exchange.getBody();\n }", "void freeaddrinfo(Pointer res);", "private void deleteAddr() {\n\t\tshowDialog(PostChangeDialogFragment.TYPE_DELETE);\n\t\tnew AsyncTask<String, Void, Integer>() {\n\n\t\t\t@Override\n\t\t\tprotected Integer doInBackground(String... params) {\n\t\t\t\tint status = -1;\n\t\t\t\tInputStream is = null;\n\t\t\t\ttry {\n\t\t\t\t\tHttpPost post = new HttpPost(\n\t\t\t\t\t\t\tFunctionEntry.fixUrl(params[0]));\n\t\t\t\t\tpost.setEntity(HTTPUtils.fillEntity(HTTPUtils\n\t\t\t\t\t\t\t.formatRequestParams(params[1], setRequestParams(),\n\t\t\t\t\t\t\t\t\tsetRequestParamValues(), false)));\n\t\t\t\t\tHttpResponse resp = HttpRequestBox.getInstance(mAct)\n\t\t\t\t\t\t\t.sendRequest(post);\n\t\t\t\t\tif (resp == null) {\n\t\t\t\t\t\treturn status;\n\t\t\t\t\t}\n\t\t\t\t\tint statusCode = resp.getStatusLine().getStatusCode();\n\t\t\t\t\tif (Constants.DEBUG) {\n\t\t\t\t\t\tLog.d(TAG, \"statusCode : \" + statusCode);\n\t\t\t\t\t}\n\t\t\t\t\tif (statusCode != HttpStatus.SC_OK) {\n\t\t\t\t\t\treturn status;\n\t\t\t\t\t}\n\t\t\t\t\tis = resp.getEntity().getContent();\n\t\t\t\t\t// TODO\n\t\t\t\t\t// if (HTTPUtils.testResponse(is)) {\n\t\t\t\t\t// return status;\n\t\t\t\t\t// }\n\t\t\t\t\tXmlPullParserFactory factory = XmlPullParserFactory\n\t\t\t\t\t\t\t.newInstance();\n\t\t\t\t\tfactory.setNamespaceAware(true);\n\t\t\t\t\tXmlPullParser parser = factory.newPullParser();\n\t\t\t\t\tparser.setInput(is, HTTP.UTF_8);\n\t\t\t\t\tint eventType = parser.getEventType();\n\t\t\t\t\tString tag = \"\";\n\t\t\t\t\twhile (eventType != XmlPullParser.END_DOCUMENT) {\n\t\t\t\t\t\tif (eventType == XmlPullParser.START_TAG) {\n\t\t\t\t\t\t\ttag = parser.getName();\n\t\t\t\t\t\t\tif (TextUtils.equals(tag, HTTPUtils.STATUS)) {\n\t\t\t\t\t\t\t\tparser.next();\n\t\t\t\t\t\t\t\tstatus = Integer.parseInt(parser.getText());\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\teventType = parser.next();\n\t\t\t\t\t}// ?end while\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLog.e(TAG, \"Exception\", e);\n\t\t\t\t\treturn status;\n\t\t\t\t} finally {\n\t\t\t\t\tif (is != null) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tis.close();\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t//\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn status;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tprotected void onPostExecute(Integer result) {\n\t\t\t\tsuper.onPostExecute(result);\n\t\t\t\thandleDialogResult(result);\n\t\t\t\tif (result != -1) {\n\t\t\t\t\tProviderOp.deleteAddr(mAct.getContentResolver(), mRowId);\n\t\t\t\t\tmAct.setResult(Constants.ACTIVITY_RESULT_ADDR_DELETE,\n\t\t\t\t\t\t\tnew Intent().putExtra(\n\t\t\t\t\t\t\t\t\tAddressListFragment.EXTRA_DEL_ADDR_ID,\n\t\t\t\t\t\t\t\t\tmRowId));\n\t\t\t\t\tmAct.finish();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tprivate List<String> setRequestParams() {\n\t\t\t\tList<String> list = new ArrayList<String>();\n\t\t\t\tlist.add(HTTPUtils.USERID);\n\t\t\t\tlist.add(HTTPUtils.IMEI);\n\t\t\t\tlist.add(HTTPUtils.CHANNELID);\n\t\t\t\tlist.add(CrmDb.Address.ID);\n\t\t\t\treturn list;\n\t\t\t}\n\n\t\t\tprivate List<HttpParam> setRequestParamValues() {\n\t\t\t\tList<HttpParam> list = new ArrayList<HttpParam>();\n\t\t\t\tlist.add(new HttpParam(false, Utils.getIMEI(mAct)));\n\t\t\t\tlist.add(new HttpParam(false, Utils.getIMEI(mAct)));\n\t\t\t\tlist.add(new HttpParam(false, Utils.getChannelId(mAct)));\n\t\t\t\tlist.add(new HttpParam(false, String.valueOf(mRowId)));\n\t\t\t\treturn list;\n\t\t\t}\n\n\t\t}.execute(FunctionEntry.ADDRESS_ENTRY, InstConstants.ADDRESS_DELETE);\n\t}", "@Override\n\tpublic void removeServer(String arg0) {\n\n\t}", "private void eliminar(HttpServletRequest request, HttpServletResponse response) {\n\t\n\t\ttry {\n\t\t\tString numero =request.getParameter(\"idCliente\");//leo parametro numeroHabitacion de la vista\n\t\t\t\n\t\t\t//llamo a un metodo del modelo para que elimine el editorial de la bd y consulto si se pudo eliminar\n\t\t\tif(modelo.eliminarCliente(numero) > 0) {\n\t\t\t\t\n\t\t\t\t//paso un atributo de exito si se pudo eliminar\n\t\t\t\trequest.setAttribute(\"exito\", \"Cliente eliminado exitosamente\");\n\t\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//paso un atributo de fracaso. \n\t\t\t\trequest.setAttribute(\"fracaso\", \"No se puede eliminar Cliente\");\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//redirecciono sin importar si se pudo o no eliminar\n\t\t\trequest.getRequestDispatcher(\"/clientes.do?op=listar\").forward(request, response);\n\t\t} catch (SQLException | ServletException | IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\n\t}", "@Override\r\n\tpublic void del(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\t\tthis.URL1=\"../admin/xiaoshuorecycle.jsp\";\r\n\t\tsuper.del(request, response);\r\n\t}", "public static void deleteReqClient(String url) throws Exception {\n\t\tHttpClient httpclient = new DefaultHttpClient();\r\n \t\tHttpDelete httpDelete = new HttpDelete(url);\r\n \t\t\r\n\t\t//httpclient.execute(httpDelete);\r\n\t\tSystem.out.println(\"executing request \" + httpDelete.getRequestLine());\r\n response(httpclient, httpDelete);\r\n\t}", "public void removeServiceEntry(String linkName);", "void supprimerTopo(String user, Integer topoId);", "void unsetSites();", "public void removeServer(Identity identity);", "@Override\n\tpublic void removeBan(String ip) throws Exception {\n\n\t}", "public void removeBorda(String host) {\r\n for(Borda b:bordas){\r\n if(b.getEndereco().equals(host)){\r\n bordas.remove(b);\r\n break;\r\n }\r\n }\r\n }", "String deleteDatasource(String dsID) throws RepoxException;", "public void delete(long setId) throws ServerException;", "void removeHost(Service oldHost);", "HttpDelete deleteRequest(HttpServletRequest request, String address) throws IOException;", "public void removeFromStorage() throws Exception {\n String baseUrl = REST_URL + \"/core/device\";\n\n Treespace t = dbService.getControllerTreespace();\n String qStr =\n String.format(\"/core/device[id=\\\"%s\\\"]/security-ip-address\",\n eKey);\n Query q = Query.parse(qStr);\n t.deleteData(q, AuthContext.SYSTEM);\n }", "public String eliminar()\r\n/* 121: */ {\r\n/* 122: */ try\r\n/* 123: */ {\r\n/* 124:149 */ this.servicioDimensionContable.eliminar(this.dimensionContable);\r\n/* 125:150 */ addInfoMessage(getLanguageController().getMensaje(\"msg_info_eliminar\"));\r\n/* 126:151 */ cargarDatos();\r\n/* 127: */ }\r\n/* 128: */ catch (Exception e)\r\n/* 129: */ {\r\n/* 130:153 */ addErrorMessage(getLanguageController().getMensaje(\"msg_error_eliminar\"));\r\n/* 131:154 */ LOG.error(\"ERROR AL ELIMINAR DATOS\", e);\r\n/* 132: */ }\r\n/* 133:156 */ return \"\";\r\n/* 134: */ }", "void removeDevice(int networkAddress);", "private void enviarRequisicaoRemover() {\n servidor.removerPalito(nomeJogador);\n atualizarPalitos();\n }", "private void delete(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tString string = request.getParameter(\"id\");\r\n\t\tservice.delete(Integer.valueOf(string));\r\n\t\trequest.getRequestDispatcher(\"NoticeServlet?service=NoticeGuanLi\").forward(request, response);\r\n\r\n\t}", "void deletePortal(Portal portal);", "public void eliminarMensaje(InfoMensaje m) throws Exception;", "@Override\r\n\tpublic void doDel(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\t\r\n\t}", "Map<String, Object> deleteConfig(VirtualHost vhost, String type, String id);", "public void eliminarGrupoLocal(GrupoLocalRequest grupoLocalRequest);", "@Override\n\t\t\tpublic void onDisconnectRemoteNode(String url) {\t\t\t\t\n\t\t\t}", "@RequestMapping(value=\"/hostqnadeleteManager.go\", method={RequestMethod.POST})\r\n public String qnahostdelete(HttpServletRequest req) { \r\n \r\n String seq_question = req.getParameter(\"seq_question\");\r\n \r\n HashMap<String, String> map = new HashMap<String, String>();\r\n map.put(\"seq_question\", seq_question);\r\n \r\n int n = service.hostqnadelete(map);\r\n \r\n req.setAttribute(\"n\", n);\r\n \r\n return \"Manager/qnahostdeleteEnd.tilesM\";\r\n \r\n }", "@HTTP(\n method = \"DELETE\",\n path = \"/apis/config.openshift.io/v1/dnses\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<Status> deleteCollectionDNS();", "public String eliminar()\r\n/* 88: */ {\r\n/* 89: */ try\r\n/* 90: */ {\r\n/* 91:101 */ this.servicioMotivoLlamadoAtencion.eliminar(this.motivoLlamadoAtencion);\r\n/* 92:102 */ addInfoMessage(getLanguageController().getMensaje(\"msg_info_eliminar\"));\r\n/* 93: */ }\r\n/* 94: */ catch (Exception e)\r\n/* 95: */ {\r\n/* 96:104 */ addErrorMessage(getLanguageController().getMensaje(\"msg_error_eliminar\"));\r\n/* 97:105 */ LOG.error(\"ERROR AL ELIMINAR DATOS\", e);\r\n/* 98: */ }\r\n/* 99:107 */ return \"\";\r\n/* 100: */ }", "public static void delBan(String ip, String sender) {\n String query = \"DELETE FROM `\" + mysql_db + \"`.`banlist` WHERE `ip` = ?\";\n try (Connection con = getConnection(); PreparedStatement pst = con.prepareStatement(query)) {\n pst.setString(1, ip);\n if (pst.executeUpdate() <= 0) {\n bot.blockingIRCMessage(sender, \"IP does not exist.\");\n } else {\n // Temporary list to avoid concurrent modification exception\n List<Server> tempList = new LinkedList<>(bot.servers);\n for (Server server : tempList) {\n server.in.println(\"delban \" + ip);\n }\n bot.blockingIRCMessage(sender, \"Removed \" + ip + \" from banlist.\");\n }\n } catch (SQLException e) {\n\n logMessage(LOGLEVEL_IMPORTANT, \"Could not delete ip from banlist\");\n }\n }", "public void deleteNetWS() {\r\n/* 142 */ this._has_netWS = false;\r\n/* */ }", "public void disconnectedFromHost();", "public void delUtente(Utente u);", "public static void removeMesas() {\n\t\tScanner sc = new Scanner(System.in);\t\n\t\tString idE, local;\n\t\tint check = 0;\n\t\t\n\t\tSystem.out.println(\"\\nInsira o id da eleicao da qual pretende remover uma mesa de voto:\");\n\t\tidE = sc.nextLine();\n\n\t\tdo {\n\t\t\tSystem.out.println(\"\\nInsira o departamento em que se encontra a mesa de voto:\");\n\t\t\tlocal = sc.nextLine();\n\t\t\tif(verificarLetras(local) && local.length()>0) {\n\t\t\t\tcheck = 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"\\nO nome do departamento so pode conter letras\");\n\t\t\t}\n\t\t}while(check==0);\n\t\tcheck = 0;\n\t\t\n\t\tString msgServer = \"\";\n\t\t\n\t\tcheck = 0;\n\t\tint tries = 0;\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tmsgServer = rmiserver.removeMesaVoto(idE, local);\n\t\t\t\tSystem.out.println(msgServer);\n\t\t\t\tSystem.out.println(\"\\n\");\n\t\t\t\tcheck = 1;\n\t\t\t} catch (RemoteException e1) {\n\t\t\t\t// Tratamento da Excepcao da chamada RMI addCandidatos\n\t\t\t\tif(tries == 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(6000);\n\t\t\t\t\t\t//faz novo lookup\n\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\ttries++;\n\t\t\t\t\t}\n\t\t\t\t}else if(tries > 0 && tries < 24) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t//faz novo lookup\n\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\ttries++;\n\t\t\t\t\t}\n\t\t\t\t}else if(tries >= 24) {\n\t\t\t\t\tSystem.out.println(\"Impossivel realizar a operacao devido a falha tecnica (Servidores RMI desligados).\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}while(check==0);\n\t\tcheck = 0;\n\t}", "public void agregarNuevaUrl(ListaConArreglo url,String ip,ListaEnlazada servicios) {\n\t\tmodAdmin.agregarMaquina( url, ip, servicios);\n\t}", "protected void removerContato(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tString id = request.getParameter(\"id\");\n\t\t// System.out.println(id);//teste de recebimento do ID\n\n\t\t// evio do ID - Send ID\n\t\tcontato.setId(id);\n\t\t// executando a exclusão - execute\n\t\tdao.deletarContato(contato);\n\t\t// redirecionar para agenda.jsp - redirect to agenda.jsp\n\t\tresponse.sendRedirect(\"main\");\n\n\t}", "private void eliminar(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n Connection con = null;//Objeto para la conexion\r\n Statement sentencia = null;//Objeto para definir y ejecutar las consultas sql\r\n int resultado = 0;//resultado de las filas borradas sql\r\n String sql = \"\";\r\n try {\r\n\r\n //ESTABLECER CONEXION\r\n con = conBD.getCConexion();\r\n System.out.println(\"Conectado a BD...\");\r\n\r\n //OBTENER EL DATO A ELIMINAR\r\n String emailUsuario = request.getParameter(\"ID\");\r\n\r\n //Definición de Sentencia SQL\r\n sql = \"DELETE FROM USUARIOS WHERE semail='\" + emailUsuario + \"'\";\r\n\r\n //Ejecutar sentencia\r\n sentencia = con.createStatement();\r\n resultado = sentencia.executeUpdate(sql);\r\n System.out.println(\"Borrado exitoso !\");\r\n request.setAttribute(\"mensaje\", \"Registro borrado exitosamente !\");\r\n //cerrar la conexion\r\n //con.close();\r\n\r\n //listar de nuevo los datos\r\n todos(request, response);\r\n\r\n } catch (SQLException ex) {\r\n System.out.println(\"No se ha podido establecer la conexión, o el SQL esta mal formado \" + sql);\r\n request.getRequestDispatcher(\"/Error.jsp\").forward(request, response);\r\n }\r\n }", "Curso eliminaCurso(String clave);", "void delete(URI url) throws RestClientException;", "String delete(String request) throws RemoteException;", "void host(String host);", "void host(String host);", "private static void deleteInstance(String[] args,String command,List<ExampleServer> servers) {\n \n if (args.length != 1) {\n System.err.println(\"syntax error (expected delete <name>): \" + command);\n return;\n }\n \n final String serviceName = args[0];\n ExampleServer server = Iterables.find(servers,server1 -> server1.getThisInstance().getName()\n .endsWith(serviceName),null);\n if (server == null) {\n System.err.println(\"No servers found named: \" + serviceName);\n return;\n }\n \n servers.remove(server);\n CloseableUtils.closeQuietly(server);\n System.out.println(\"Removed a random instance of: \" + serviceName);\n }", "public void delUtente(int id);", "public void removerClienteDoBanco(){\n\t\tdao.removerCliente(doCadastroController);\r\n\t}", "public boolean deleteAppuntamento(String url) {\n\n\t\ttry {\n\n\t\t\tDefaultHttpClient httpClient = new DefaultHttpClient();\n\n\t\t\tHttpPost postRequest = new HttpPost(url);\n\n\t\t\t// StringEntity input = new StringEntity(utente.toString());\n\t\t\t// input.setContentType(\"application/json\");\n\t\t\t// postRequest.setEntity(input);\n\n\t\t\tHttpResponse response = httpClient.execute(postRequest);\n\n\t\t\tif (response.getStatusLine().getStatusCode() != 201) {\n\n\t\t\t\treturn false;\n\n\t\t\t\t// throw new RuntimeException(\n\t\t\t\t// \"Failed : HTTP error code : \"\n\t\t\t\t// + response.getStatusLine()\n\t\t\t\t// .getStatusCode());\n\n\t\t\t}\n\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\t\t(response.getEntity().getContent())));\n\n\t\t\tString output;\n\t\t\tSystem.out.println(\"Output from Server .... \\n\");\n\t\t\twhile ((output = br.readLine()) != null) {\n\t\t\t\tSystem.out.println(output);\n\t\t\t}\n\n\t\t\thttpClient.getConnectionManager().shutdown();\n\n\t\t} catch (MalformedURLException e) {\n\n\t\t\te.printStackTrace();\n\n\t\t} catch (IOException e) {\n\n\t\t\te.printStackTrace();\n\n\t\t}\n\n\t\treturn true;\n\n\t}", "public void deleteHostel(int id) {\n hostelRepository.deleteById(id);\n\n }", "public void deletelink(Integer linkId);", "public static int doDelete(String id) {\n int status = 0;\n try {\n // pass the id on the URL line\n URL url = new URL(\"https://intense-lake-93564.herokuapp.com/menusection/\" + \"//\"+id);\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setRequestMethod(\"DELETE\");\n status = conn.getResponseCode();\n String output = \"\";\n String response = \"\";\n // things went well so let's read the response\n BufferedReader br = new BufferedReader(new InputStreamReader(\n (conn.getInputStream())));\n while ((output = br.readLine()) != null) {\n response += output; \n }\n conn.disconnect(); \n }\n catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return status;\n }", "public void eliminar(Long id) throws AppException;", "Map<String, Object> deleteConfig(Request request, String type, String id);", "@Override\n protected void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n PrintWriter out = resp.getWriter();\n resp.setCharacterEncoding(\"UTF-8\");\n resp.setContentType(\"application/json\");\n resp.addHeader(\"Access-Control-Allow-Origin\", \"*\");\n resp.addHeader(\"Access-Control-Allow-Methods\", \"POST, GET, OPTIONS, PUT, DELETE, HEAD\");\n\n BufferedReader br = new BufferedReader(new InputStreamReader(req.getInputStream()));\n String data = URLDecoder.decode(br.readLine());\n String[] dataParse = data.split(\"&\");\n Map<String, String> mapa = new HashMap<>();\n for (int i = 0; i < dataParse.length; i++) {\n String[] par = dataParse[i].split(\"=\");\n mapa.put(par[0], par[1]);\n }\n\n try {\n Contato contato = new Contato(Integer.parseInt(mapa.get(\"id\")));\n contato.exclui();\n resp.setStatus(200); // status ok\n } catch (SQLException e) {\n e.printStackTrace();\n resp.setStatus(500); // server error\n }\n }", "public String eliminarEstudiante(HttpServletRequest request,String codEstudiante){\n String salida=\"\";\n if(request==null){\n return \"\";\n }\n if(connection!=null && codEstudiante!=null && codEstudiante.length()>0){\n try {\n StringBuilder query=new StringBuilder();\n query.append(\"delete from estudiante \");\n query.append(\" where idestudiante=? \");\n deleteEstudiante=connection.prepareStatement(query.toString());\n //pasando el parametro\n deleteEstudiante.setInt(1, Integer.parseInt(codEstudiante));\n //ejecutando la consulta\n int nroRegistros=deleteEstudiante.executeUpdate();\n if(nroRegistros==1){\n salida=\"Registro Eliminado de forma correcta\";\n }\n else{\n salida=\"Existo un error al tratar de eliminar el registro\";\n }\n } catch (SQLException e) {\n salida=\"Existo un error SQL\";\n System.out.println(\"Error en el proceso \");\n e.printStackTrace();\n }\n }\n return salida;\n }", "@Override\n\tpublic boolean eliminar(Connection connection, Object DetalleSolicitud) {\n\t\tString query = \"DELETE FROM detallesolicitudes WHERE sysPK = ?\";\n\t\ttry {\t\n\t\t\tDetalleSolicitud detalleSolicitud = (DetalleSolicitud)DetalleSolicitud;\n\t\t\tPreparedStatement preparedStatement = (PreparedStatement) connection.prepareStatement(query);\n\t\t\tpreparedStatement.setInt(1, detalleSolicitud.getSysPk());\n\t\t\tpreparedStatement.execute();\n\t\t\treturn true;\n\t\t} catch (SQLException e) {\n\t\t\tNotificacion.dialogoException(e);\n\t\t\treturn false;\n\t\t}//FIN TRY/CATCH\t\n\t}", "@Override\n protected Integer doInBackground(String... urlString) {\n try {\n \teliminarEvento();\n } catch (Exception exception) {\n\n }\n return null ;\n }", "@Override\n\tpublic void deleteSanCtn(Map<String, String> params) throws SQLException {\n\t\t\n\t}", "@DELETE\n @Path(\"{id}\")\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.APPLICATION_JSON)\n public Response deleteNetwork(@PathParam(\"id\") String id) {\n log.trace(String.format(MESSAGE, \"DELETE \" + id));\n\n if (!haService.isActive()\n && !DEFAULT_ACTIVE_IP_ADDRESS.equals(haService.getActiveIp())) {\n return syncDelete(haService, NETWORKS, id);\n }\n\n adminService.removeNetwork(id);\n return noContent().build();\n }", "@RequestMapping(path = \"/delAdmin/{id}\")\n public String delAdmin(HttpServletRequest request, @Value(\"删除帐号、员工信息\") String type,@PathVariable(\"id\") String id){\n adminService.delAdmin(id);\n// empService.delEmp(admin.getId()); //这个是根据编号删除,我们要根据帐号删除\n\n empService.delEmpByAdminID(id);\n\n //日志\n addlog(request,type);\n return \"redirect:/adminList/1\";\n }", "public void removeByG_UT_ST(long groupId, String urlTitle, int status);", "private NameValue<String, String> removeURL(Map<String, List<ReplicaCatalogEntry>> m) {\n if (m == null || m.keySet().isEmpty()) {\n return null;\n }\n\n // Return the first url from the EntrySet\n Iterator it = m.entrySet().iterator();\n Map.Entry<String, List<ReplicaCatalogEntry>> entry = (Map.Entry) it.next();\n // remove this entry\n it.remove();\n // returning the first element. No need for a check as\n // population of the list is controlled\n return new NameValue(entry.getKey(), entry.getValue().get(0).getPFN());\n }", "@Override\r\n public void elminarVehiculo(String placa) {\n Connection conn = null;\r\n try{\r\n conn = Conexion.getConnection();\r\n String sql = \"delete from vehiculo where veh_placa=?\";\r\n PreparedStatement statement = conn.prepareStatement(sql);\r\n statement.setString(1, placa);\r\n int rowsDelete = statement.executeUpdate();\r\n if(rowsDelete > 0){\r\n JOptionPane.showMessageDialog(null, \"Registro eliminado de manera correcta\");\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(VehiculoDAOJDBCImpl.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "@HTTP(\n method = \"DELETE\",\n path = \"/apis/config.openshift.io/v1/dnses\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<Status> deleteCollectionDNS(\n @QueryMap DeleteCollectionDNS queryParameters);", "@POST\r\n @Path(\"deletewifi\")\r\n public void deleteWifi(@FormParam(\"ssid\")String ssid) throws ClassNotFoundException, SQLException{\r\n Class.forName(\"org.postgresql.Driver\");\r\n \r\n Connection connection = null;\r\n try{\r\n Class.forName(\"org.postgresql.Driver\");\r\n\r\n String url =\"jdbc:postgresql://localhost:5432/postgres\";\r\n String usuario=\"postgres\";\r\n String contraseña=\"123\";\r\n connection = DriverManager.getConnection(url, usuario, contraseña);\r\n \r\n if(!connection.isClosed()){\r\n String query = \"Delete From wifis Where ssid=?\";\r\n\r\n // create the mysql insert preparedstatement\r\n PreparedStatement preparedStmt = connection.prepareStatement(query);\r\n preparedStmt.setString(1, ssid);\r\n\r\n preparedStmt.execute();\r\n preparedStmt.close();\r\n connection.close();\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n System.err.println(e.getClass().getName()+\": \"+e.getMessage());\r\n System.exit(0);\r\n \r\n }\r\n \r\n }", "private static void deleteDB(String dbName) {\n\t\tString url = SERVER_URI_ADMIN_API + \"/\" + dbName + \"/\";\n\t\tSystem.out.println(\"url: \" + url);\n\n\t\tRestTemplate restTemplate = new RestTemplate();\n\n\t\ttry {\n\t\t\trestTemplate.delete(url);\n\t\t} catch (RestClientException e1) {\n\t\t\tSystem.out.println(\"Db was not deleted in sync gateway\");\n\t\t\t// e1.printStackTrace();\n\t\t}\n\n\t\tString urlcouchdb = \"http://@localhost:8091/pools/default/buckets/\"\n\t\t\t\t+ dbName;\n\t\t// flus database should be enabled\n\t\t/*\n\t\t * String urlServerCouch =\n\t\t * \"http://localhost:8091/pools/default/buckets/grocery-sync/controller/doFlush\"\n\t\t * ;\n\t\t * //\"http://admin:a1a2a3@localhost:8091/pools/default/buckets/\"+dbName+\n\t\t * \"/controller/doFlush\"; try{ restTemplate.delete(urlServerCouch);\n\t\t * }catch(RestClientException e){ e.printStackTrace(); }\n\t\t */\n\t\t// RestTemplate restTemplate = new RestTemplate();\n\t\tResponseEntity<String> response;\n\n\t\tHttpHeaders httpHeaders = createHeaders(\"user\", \"pass\");\n\n\t\tresponse = restTemplate.exchange(urlcouchdb, HttpMethod.DELETE,\n\t\t\t\tnew HttpEntity<Object>(httpHeaders), String.class);\n\n\t}", "public ServiceResponse deleteRequest(String url) throws IOException {\n HttpClient client = HttpClientBuilder.create().build();\n HttpDelete request = new HttpDelete(url);\n HttpResponse httpResponse = client.execute(request);\n return new ServiceResponse(httpResponse.getStatusLine().getStatusCode());\n }", "public void eliminarParametro() throws Exception;", "String deleteENH(String request) throws RemoteException;", "void removeHadithUrl(Object oldHadithUrl);", "@Override\r\n\tpublic void remover(Tipo tipo) {\n String sql = \"delete from tipos_servicos where id = ?\";\r\n try {\r\n stmt = conn.prepareStatement(sql);\r\n stmt.setInt(1, tipo.getId());\r\n \r\n stmt.execute();\r\n } catch (SQLException ex) {\r\n ex.printStackTrace();\r\n }\r\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String pieza= request.getParameter(\"textp\");\n String coston= request.getParameter(\"textc\");\n System.out.println(pieza);\n try{\n Manejador_Pieza mp= new Manejador_Pieza(); \n mp.delete(pieza, new BigDecimal(coston));\n this.response(response, \"ok\", request);\n }catch(SQLException e){\n System.out.println(e);\n this.response(response, \"error\", request);\n }\n \n }", "public void eliminar(String sentencia){\n try {\n Statement stmt = Conexion.getInstancia().createStatement();\n stmt.executeUpdate(sentencia);\n }\n catch (Exception ex){\n ex.printStackTrace();\n }\n }", "public boolean removeRemoteSite (String url) {\r\n\t\ttry {\r\n\t\t\tif (!isInDatabase(url)) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tpstmt = conn.prepareStatement(\"DELETE FROM RemoteSite WHERE url = ?\");\r\n\t\t\tpstmt.setString(1, url);\r\n\t\t\tint numRows = pstmt.executeUpdate();\r\n\t\t\treturn (numRows == 1);\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t} finally {\r\n\t\t\tDatabaseConnection.closeStmt(pstmt, rset);\r\n\t\t}\r\n\t}", "@ZAttr(id=744)\n public void unsetDNSCheckHostname() throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraDNSCheckHostname, \"\");\n getProvisioning().modifyAttrs(this, attrs);\n }", "public void eliminarUsuario(String id) throws BLException;", "public void deleteRequest(String requestName) {\n\n }", "@Override\n\t/*Método para eliminar al usuario al pulsar el botón especifico para ello desde la BD*/\n\tpublic String eliminarUsuario(String nombreusuario) {\n\t\tDBConnection con = new DBConnection();\n\t\tString sql =\"DELETE from usuarios where nombreusuario LIKE '\"+nombreusuario+\"'\"; //Sentencia para eliminar al usuario pasado como parámetro de la BD\n\t\ttry {\n\t\t\tStatement st = con.getConnection().createStatement();\n\t\t\tst.executeQuery(sql);\n\t\t\treturn \"Usuario eliminado correctamente\"; //mensaje que se devuelve para mostrar en la web\n\t\t}catch(Exception e) {\n\t\t\treturn e.getMessage();\n\t\t}finally {\n\t\t\tcon.desconectar();\n\t\t\t}\n\t}", "public void resetReferenciado();", "public void removerPorReferencia(String referencia){\n if (buscar(referencia)) {\r\n // Consulta si el nodo a eliminar es el pirmero\r\n if (inicio.getValor() == referencia) {\r\n // El primer nodo apunta al siguiente.\r\n inicio = inicio.getSiguiente();\r\n } else{\r\n // Crea ua copia de la lista.\r\n Nodo aux = inicio;\r\n // Recorre la lista hasta llegar al nodo anterior \r\n // al de referencia.\r\n while(aux.getSiguiente().getValor() != referencia){\r\n aux = aux.getSiguiente();\r\n }\r\n // Guarda el nodo siguiente del nodo a eliminar.\r\n Nodo siguiente = aux.getSiguiente().getSiguiente();\r\n // Enlaza el nodo anterior al de eliminar con el \r\n // sguiente despues de el.\r\n aux.setSiguiente(siguiente); \r\n }\r\n // Disminuye el contador de tamaño de la lista.\r\n tamanio--;\r\n }\r\n }", "@Override\r\n\tpublic void del(HttpServletResponse paramHttpServletResponse) {\n\t\t\r\n\t}", "public void removeDeviceServiceLink();", "@Override\r\n\tpublic String delete() {\n\t\tList<Object> paramList=new ArrayList<Object>();\r\n\t\tparamList.add(admin.getAdminAccount());\r\n\t\tboolean mesg=false;\r\n\t\tif(adminDao.doDelete(paramList)==1)\r\n\t\t\tmesg=true;\r\n\t\tthis.setResultMesg(mesg, \"ɾ³ý\");\r\n\t\treturn SUCCESS;\r\n\t}", "public String delete()\r\n\t{\r\n\t\tlog.debug(\"Delete ip addresses called\");\r\n\t\tif( ignoreIpAddressIds != null )\r\n\t\t{\r\n\t\t for(int index = 0; index < ignoreIpAddressIds.length; index++)\r\n\t\t {\r\n\t\t\t log.debug(\"Deleting ignore ip address with id \" + ignoreIpAddressIds[index]);\r\n\t\t\t IgnoreIpAddress address = ignoreIpAddressService.getIgnoreIpAddress(ignoreIpAddressIds[index], false);\r\n\t\t\t ignoreIpAddressService.deleteIgnoreIpAddress(address);\r\n\t\t }\r\n\t\t downloadStatisticsService.updateAllRepositoryFileRollUpCounts();\r\n\t\t}\r\n\t\tdeleted = true;\r\n\t\treturn \"deleted\";\r\n\t}", "public void deleteBeneficioDeuda(Map parametros);", "public abstract void removePropertyChangeListener(PropertyChangeListener listener, String kenaiHostUrl);", "int deleteByExample(TLinkmanExample example);", "void delete( int nIdFormResponse, Plugin plugin );", "private void deRegister() {\n\t\ttry {\n\t\t\tOverlayNodeSendsDeregistration deregister = new OverlayNodeSendsDeregistration(\n\t\t\t\t\tmyIPAddress, myServerThreadPortNum, this.myAssignedID);\n\t\t\tthis.registry.getSender().sendData(deregister.getBytes());\n\t\t} catch (UnknownHostException e1) {\n\t\t\tSystem.out.println(e1.getMessage()\n\t\t\t\t\t+ \" Trouble sending DEregistration event.\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage()\n\t\t\t\t\t+ \" Trouble sending DEregistration event.\");\n\t\t}\n\t}", "void eliminarPedidosUsuario(String idUsuario);", "protected abstract void removeRequest ();", "public void eliminarProyecto(int id) {\n\t\t\tRestTemplate plantilla = new RestTemplate();\n\t\t\tplantilla.delete(\"http://localhost:5000/proyectos/\" + id);\n\t\t}", "void DevClearList (int boardID, short[] addrlist);", "@Override\n\tpublic int supprimerAdresse(Adresse a) {\n\t\treturn dao.supprimerAdresse(a);\n\t}", "@Override\r\n\tpublic void deleteBySSO(String sso) {\n\t\t\r\n\t}", "void deleleNews(String id);" ]
[ "0.66179335", "0.63763607", "0.58223516", "0.57869256", "0.57696146", "0.5696839", "0.5663242", "0.5650015", "0.5646403", "0.56460273", "0.55981666", "0.5588938", "0.5583134", "0.55726296", "0.5567252", "0.5565588", "0.5547251", "0.55256474", "0.54881847", "0.5478408", "0.5461458", "0.5458997", "0.5456747", "0.5455305", "0.5452913", "0.5446891", "0.5428123", "0.5425176", "0.54214215", "0.54113907", "0.5407982", "0.54078966", "0.5403897", "0.5396693", "0.53947693", "0.53816456", "0.5380389", "0.53682363", "0.5349174", "0.5344055", "0.5334892", "0.53228915", "0.53131187", "0.5308999", "0.53024673", "0.52918804", "0.52842283", "0.52842283", "0.5284215", "0.526085", "0.52553785", "0.52305686", "0.5222989", "0.52173895", "0.5216286", "0.52055055", "0.5204554", "0.52040875", "0.5179068", "0.5172824", "0.51710814", "0.51604086", "0.51573414", "0.515216", "0.514629", "0.5145645", "0.51456195", "0.51349527", "0.5133793", "0.51326746", "0.51189077", "0.5106559", "0.50956285", "0.5093801", "0.5091801", "0.50854146", "0.50805277", "0.5069811", "0.506779", "0.50621045", "0.5062069", "0.50502616", "0.50501454", "0.5049678", "0.5046835", "0.50434214", "0.50304514", "0.5028743", "0.50235146", "0.50151503", "0.50150466", "0.50095093", "0.5009208", "0.49996126", "0.49990425", "0.4997399", "0.49962142", "0.49958685", "0.49953154", "0.49946952" ]
0.5514427
18
Metodo que va agregando por cada nodo de la url de derecha a izquierda en el arbol
public void agregarNuevaUrl(ListaConArreglo url,String ip,ListaEnlazada servicios) { modAdmin.agregarMaquina( url, ip, servicios); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ClaveDicotomica(String url, String nodoInicial) {\n\t\tuserAgent = new UserAgent();\n\t\tarbolNodos = new TreeMap<String, ArrayList<String>>();\n\t\tcontenidoNodos = new TreeMap<String, ArrayList<String>>();\n\t\tgenerosNodos = new TreeMap<String, String>();\n\t\ttraductor = new Translator();\n\t\t// Inicializo el primer nodo\n\t\tArrayList<String> contenidoNodoUno = new ArrayList<String>();\n\t\tcontenidoNodoUno.add(\"Nodo inicial\");\n\t\tcontenidoNodoUno.add(url);\n\t\tcontenidoNodoUno.add(nodoInicial);\n\t\tcontenidoNodos.put(nodoInicial, contenidoNodoUno);\n\t}", "@Override\n protected List<String> convertDoisToUrls(Collection<String> dois) {\n List<String> urls = new ArrayList<String>();\n for(String doi:dois) {\n // Encode the doi, then revert the FIRST %2F (slash) back to a \"/\":\n // 10.1023/A%3A1026541510549, not\n // 10.1023%2FA%3A1026541510549\n String url = String.format(\"%sarticle/%s\", baseUrl, encodeDoi(doi).replaceFirst(\"%2F\",\"/\"));\n urls.add(url);\n }\n return urls;\n }", "public static List getAllUrl() {\n List polovniautomobili = new ArrayList<>();\n try {\n CONNECTION = DriverManager.getConnection(URL, USERNAME, PASSWORD);\n String query = \"SELECT url FROM polovni\";\n try (PreparedStatement ps = CONNECTION.prepareStatement(query)) {\n ResultSet result = ps.executeQuery();\n while (result.next()) {\n String naziv = result.getString(\"url\");\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 }", "private ArrayList<ResultPair> InitializeManualUrls()\n {\n\t ArrayList<ResultPair> fileUrls = new ArrayList<ResultPair>();\n\t fileUrls.add(new ResultPair(\"https://www.google.com\", true));\n\t fileUrls.add(new ResultPair(\"https://///www.google.com\", false));\n\t fileUrls.add(new ResultPair(\"\", false));\n\t fileUrls.add(new ResultPair(\"http://74.125.224.72/\", true));\n\t fileUrls.add(new ResultPair(\"file:///C:/\", true));\n\t fileUrls.add(new ResultPair(\"http://WWW.GOOGLE.COM\", true));\n\t fileUrls.add(new ResultPair(\"http://www.google.com:80/test1\", true));\n\t fileUrls.add(new ResultPair(\"h3t://go.cc:65a/$23?action=edit&mode=up\", false));\n\t fileUrls.add(new ResultPair(\"12345\", false));\n\t fileUrls.add(new ResultPair(\"http://www.space in here.com\", false));\n\t fileUrls.add(new ResultPair(\"http://site.com/#citation\", true));\n\t fileUrls.add(new ResultPair(\"ftp://site.com\", true));\n\t fileUrls.add(new ResultPair(\"http://site.com/hyphen-here\", true));\n\t fileUrls.add(new ResultPair(\"http://www.example.com:8080\", true));\n\t fileUrls.add(new ResultPair(\"foo://example.com:80/over/there?name=ferret#nose\", true));\n\t fileUrls.add(new ResultPair(\"foo://example.com:80/over/there#nose\", true));\n\t fileUrls.add(new ResultPair(\"foo://example.com/there?name=ferret\", true));\n\t fileUrls.add(new ResultPair(\"foo://example.com:8042/over/there?name=ferret#nose\", true));\n\t fileUrls.add(new ResultPair(\"http://[email protected]\", true));\n\t fileUrls.add(new ResultPair(\"http://142.10.5.2:8080/\", true));\n\t return fileUrls;\n }", "public Set<String> getSetOfURLStringThatRepresentsEuLOTL() {\n\n\t\t// Si aún no se ha inicializado...\n\t\tif (setOfURLStringThatRepresentsEuLOTL.isEmpty()) {\n\n\t\t\t// Como mínimo añadimos las dos URL conocidas a fecha de 20/08/2019:\n\t\t\t// -\n\t\t\t// https://ec.europa.eu/information_society/policy/esignature/trusted-list/tl-mp.xml\n\t\t\tsetOfURLStringThatRepresentsEuLOTL.add(ITSLCommonURIs.TSL_EU_LIST_OF_THE_LISTS_1);\n\t\t\tsetOfURLStringThatRepresentsEuLOTLinString = ITSLCommonURIs.TSL_EU_LIST_OF_THE_LISTS_1;\n\t\t\t// - https://ec.europa.eu/tools/lotl/eu-lotl.xml\n\t\t\tsetOfURLStringThatRepresentsEuLOTL.add(ITSLCommonURIs.TSL_EU_LIST_OF_THE_LISTS_2);\n\t\t\tsetOfURLStringThatRepresentsEuLOTLinString += UtilsStringChar.SYMBOL_COMMA_STRING;\n\t\t\tsetOfURLStringThatRepresentsEuLOTLinString += UtilsStringChar.SPECIAL_BLANK_SPACE_STRING;\n\t\t\tsetOfURLStringThatRepresentsEuLOTLinString += ITSLCommonURIs.TSL_EU_LIST_OF_THE_LISTS_2;\n\n\t\t\t// Ahora recolectamos las establecidas en la configuración estática,\n\t\t\t// y añadimos aquellas que\n\t\t\t// no estén ya.\n\t\t\tProperties props = StaticValetConfig.getProperties(StaticValetConfig.TSL_EU_LOTL_PREFIX);\n\t\t\tif (props != null && !props.isEmpty()) {\n\t\t\t\tCollection<Object> urlStringColl = props.values();\n\t\t\t\tfor (Object urlStringObject: urlStringColl) {\n\t\t\t\t\tif (urlStringObject != null) {\n\t\t\t\t\t\tString urlString = ((String) urlStringObject).trim();\n\t\t\t\t\t\tif (!UtilsStringChar.isNullOrEmpty(urlString) && !setOfURLStringThatRepresentsEuLOTL.contains(urlString)) {\n\t\t\t\t\t\t\tsetOfURLStringThatRepresentsEuLOTL.add(urlString);\n\t\t\t\t\t\t\tsetOfURLStringThatRepresentsEuLOTLinString += UtilsStringChar.SYMBOL_COMMA_STRING;\n\t\t\t\t\t\t\tsetOfURLStringThatRepresentsEuLOTLinString += UtilsStringChar.SPECIAL_BLANK_SPACE_STRING;\n\t\t\t\t\t\t\tsetOfURLStringThatRepresentsEuLOTLinString += urlString;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\t// Devolvemos el conjunto de URL que reconocen la lista de las TSL\n\t\t// europeas...\n\t\treturn setOfURLStringThatRepresentsEuLOTL;\n\n\t}", "private void montaListaDeItensDeLinks(org.jsoup.nodes.Document doc, JSONArray description) {\n Elements links = doc.select(\"div\").select(\"ul\").select(\"li\").select(\"a\");\n JSONArray listalinks = new JSONArray();\n for (Element link : links) {\n\n listalinks.put(link.attr(\"abs:href\"));\n }\n\n // Após a lista de links montada ela é incluída dentro de um nó links do json de\n // saída\n JSONObject ljson = new JSONObject();\n ljson.put(\"type\", \"links\");\n ljson.put(\"content\", listalinks);\n\n // O novo item (ljson) está pronto e é incluindo como um item da lista\n // description\n description.put(ljson);\n }", "private void setUsefulURLsInfo () {\n infoList = new ArrayList<> ();\n\n\n // item number 1\n\n Info info = new Info ();// this class will help us to save data easily !\n //set the title >> it can be website name or Topic title ...\n info.setInfoTitle (\"Autism.com\");\n\n //set the description of the Topic or the website ....\n info.setInfoDescription (\"this website has will help you identify the level of Autism of a patient ...\");\n\n // we can add the url >>\n info.setInfoPageURL (\"https://stackoverflow.com/\");\n\n infoList.add (info); //adding item 1 to list\n\n\n // item number 2\n info = new Info ();// save the second Url\n //set the title >> it can be website name or Topic title ...\n info.setInfoTitle (\"We Can help solve Autism\");\n\n //set the description of the Topic or the website ....\n info.setInfoDescription (\"this website has will help patient of Autism to get better by communicate with experts ...\");\n\n // we can add the url >>\n info.setInfoPageURL (\"https://www.androidauthority.com/\");\n\n infoList.add (info);//adding item number 2 to list\n\n\n // item 3\n info = new Info ();// save the third Url\n //set the title >> it can be website name or Topic title ...\n info.setInfoTitle (\"Say no for Autism\");\n\n //set the description of the Topic or the website ....\n info.setInfoDescription (\"this an article about patient of Autism and how to help them get better ...\");\n\n // we can add the url >>\n info.setInfoPageURL (\"https://developer.android.com/index.html\");\n infoList.add (info);// adding item 3 to list\n\n\n displayInfo (infoList);\n\n }", "public interface Url {\n String BASE_URL = \"http://v3.wufazhuce.com:8000/api/\";\n\n //获取最新 idlist(返回的字段用于下个接口获取某一天的onelist,一共10个返回值,也就是10天的数据)\n String ID_LIST = \"onelist/idlist/\";\n //获取某天的 onelist\n String ONE_LIST = \"onelist/\";\n\n //阅读列表\n String READ_LIST = \"channel/reading/more/0\";\n //音乐列表\n String MUSIC_LIST = \"channel/music/more/0\";\n //影视列表\n String MOVIE_LIST = \"channel/movie/more/0\";\n\n //阅读相关详情\n String READ_DETAIL = \"essay/\";\n //阅读详情(问答)\n String READ_QUESTION = \"question/itemId\";\n //音乐详情\n String MUSIC_DETAIL = \"music/detail/\";\n //影视详情\n String MOVIE_DETAIL = \"movie/itemId/story/1/0\";\n //影视详情(图片和视频)\n String MOVIE_DETAIL_PIC = \"movie/detail/itemId\";\n\n //阅读评论\n String READ_COMMENT = \"comment/praiseandtime/essay/\";\n //音乐评论\n String MUSIC_COMMENT = \"comment/praiseandtime/music/\";\n //影视评论\n String MOVIE_COMMENT = \"comment/praiseandtime/movie/itemId/0\";\n\n //http://v3.wufazhuce.com:8000/api/praise/add?channel=update&source_id=9598&source=summary&version=4.0.7&\n //uuid=ffffffff-a90e-706a-63f7-ccf973aae5ee&platform=android\n\n // 点赞\n String MUSIC_PRAISE = \"praise/add\";\n}", "private boolean tienePermiso(String urlStr){\n return true;\n }", "static List<WebURL> ExtractUrl(Page page){\n // TODO: reference to parser to extractor urls from the web content\n return null;\n }", "private static void getInfos(String ligne) throws IOException {\n String[] info = ligne.split(\" \");\n nbVideo = Integer.parseInt(info[0]);\n nbEndpoint = Integer.parseInt(info[1]);\n nbDescri = Integer.parseInt(info[2]);\n nbCache = Integer.parseInt(info[3]);\n tailleCache = Integer.parseInt(info[4]);\n }", "public static List<UrlInfo> searchAllUrl() {\n\n //getSynonyms(queryKeywords);\n\n ArrayList<Long> keywordIdList = new ArrayList<Long>();\n ArrayList<Long> finalIdList = new ArrayList<Long>();\n\n String email = Secured.getUser(ctx());\n List<UrlEntry> entryIdList = UrlEntry.find()\n .select(\"entryId\")\n .where()\n .eq(\"email\", email)\n .findList();\n for (UrlEntry entry : entryIdList) {\n finalIdList.add(entry.getEntryId());\n }\n System.out.println(\"finalIdList---\" + finalIdList);\n List<UrlInfo> urlList = UrlInfo.find().select(\"url\").where().in(\"urlEntryId\", finalIdList).findList();\n /*ArrayList<String> urls = new ArrayList<String>();\n for (UrlInfo urlInfo : urlList) {\n urls.add(urlInfo.getUrl());\n }\n System.out.println(\"urls in search----\" + urls);*/\n return urlList;\n }", "private void ExtractURLs(String line)\n {\n String matchedURL = \"\";\n Matcher urlMatcher = urlPattern.matcher(line);\n\n while (urlMatcher.find())\n {\n matchedURL = urlMatcher.group();\n\n if (!distinctURLs.containsKey(matchedURL))\n {\n distinctURLs.put(matchedURL,matchedURL);\n }\n }\n }", "public interface URLs\r\n{\r\n String BASIC_URL = \"http://api.timetable.asia/\";\r\n\r\n String KEY = \"221b368d7f5f597867f525971f28ff75\";\r\n\r\n String COMPANY_URL = \"operator.json\";\r\n String LANGUAGE_URL = \"lang.json\";\r\n String VEHICLE_URL = \"fleet.json\";\r\n String ROUTE_URL = \"route.json\";\r\n String TRIP_URL = \"trip.json\";\r\n String COMMIT_URL = \"commit.json\";\r\n String CURRENT_STATIONS_URL = \"station.json\";\r\n public static final String LANGPACK_URL = \"langpack.json\";\r\n}", "public interface RequestURLs {\n String DEFAULT_URL = \"http://aperturedev.co.kr:21002/petcommunity/\";\n\n /*\n 매칭 서비스 관련\n */\n String GET_PET_TYPES = DEFAULT_URL + \"services/get-pettypes.php\"; // 강아지 종을 가져온다.\n String REGIST_MATCH_PET = DEFAULT_URL + \"matching/regist-new-pet.php\"; // 팻 등록 실시\n String MATCHING_OTHER_PET = DEFAULT_URL + \"matching/matching.php\"; // 매칭할 팻을 하나 가져옵니다.\n\n /*\n 사용자 정보 관련\n */\n String GET_USER_INFO = DEFAULT_URL + \"users/get-info.php\"; // UUID -> 사용자 정보\n String REGIST_SERVICE = DEFAULT_URL + \"users/signup.php\"; // 회원가입을 실시한다.\n String IS_REGIST_SERVICE = DEFAULT_URL + \"/users/is-registed.php\"; // 회원가입 되어 있는지 확인한다.\n String LOGIN_SERVICE = DEFAULT_URL + \"users/signin.php\"; // 로그인 처리한다.\n\n\n\n\n}", "public List<String> obtenerHiperenlaces() throws IOException {\r\n // Los hiperenlaces debemos guardarlos en un arrayList\r\n ArrayList<String> hipenlaces = new ArrayList<>();\r\n File doc = new File(\"Jsoup_Link.txt\");\r\n doc.delete();\r\n File newdoc = new File(\"Jsoup_Link.txt\");\r\n //nuevo documento donde se escribiran los enlaces\r\n FileWriter fw = new FileWriter(newdoc, false);\r\n Elements links;\r\n links = doc.select(\"a[href]\");\r\n //Con este bucle for conseguimos introducir los links \r\n //en el array y escribirlos en el doc.\r\n for (Element link : links) {\r\n\r\n hipenlaces.add(link.attr(\"href\"));\r\n fw.write(link.attr(\"href\") + nextline);\r\n }\r\n \r\n //Borra los elementos nulos del ArrayList\r\n hipenlaces.removeAll(Arrays.asList(null, \"\"));\r\n\r\n fw.close();\r\n \r\n //devuelve el arraylist\r\n return hipenlaces;\r\n }", "public List<String> getLinks();", "protected List<List<URL>> getDefaultUrlList() throws MalformedURLException {\n URL[] urls1 = { \n new URL(\"http://www.dre.vanderbilt.edu/~schmidt/ka.png\"),\n new URL(\"http://www.dre.vanderbilt.edu/~schmidt/uci.png\"),\n new URL(\"http://www.dre.vanderbilt.edu/~schmidt/gifs/dougs-small.jpg\")\n };\n URL[] urls2 = {\n new URL(\"http://www.cs.wustl.edu/~schmidt/gifs/lil-doug.jpg\"),\n new URL(\"http://www.cs.wustl.edu/~schmidt/gifs/wm.jpg\"),\n new URL(\"http://www.cs.wustl.edu/~schmidt/gifs/ironbound.jpg\")\n };\n\n \tList<List<URL>> variableNumberOfInputURLs = \n new ArrayList<List<URL>>();\n variableNumberOfInputURLs.add(Arrays.asList(urls1));\n variableNumberOfInputURLs.add(Arrays.asList(urls2));\n \treturn variableNumberOfInputURLs;\n }", "public interface BaseURL {\n\n //INFOQ网址[目前全为移动端]\n String INFOQ_PATH = \"http://www.infoq.com/cn/\";\n\n //CSDN网址\n String CSDN_PATH = \"http://geek.csdn.net/\";\n\n //CSDN ajax请求算法\n String GEEK_CSDN_PATH = \"http://geek.csdn.net/service/news/\";\n\n String ITEYE_PATH_SHORT = \"http://www.iteye.com\";\n\n //ITEYE网址\n String ITEYE_PATH = ITEYE_PATH_SHORT + \"/\";\n\n //泡在网上的日子[移动版块]\n String JCC_PATH = \"http://www.jcodecraeer.com/\";\n\n //开源中国 [使用ajax请求]\n String OS_CHINA_PATH = \"https://www.oschina.net/\";\n\n //开源中国 [使用ajax请求]\n String OS_CHINA_PATH_AJAX = \"https://www.oschina.net/action/ajax/\";\n\n //CSDN搜索区\n String SEARCH_CSDN = \"http://so.csdn.net/so/search/\";\n\n //OSCHINA搜索区\n String SEARCH_OSCHINA = \"https://www.oschina.net/\";\n\n //INFOQ搜索区\n String SEARCH_INFOQ = \"http://www.infoq.com/\";\n\n\n /**\n * 获取CSDN文章链接\n *\n * @return\n * @\n */\n @GET(\"get_category_news_list\")\n Observable<String> getCSDNArticle(@Query(\"category_id\") String category_id,\n @Query(\"jsonpcallback\") String jsonpcallback,\n @Query(\"username\") String username,\n @Query(\"from\") String from,\n @Query(\"size\") String size,\n @Query(\"type\") String type,\n @Query(\"_\") String other);\n\n /**\n * ITeye文章链接\n *\n * @param page\n * @return\n */\n @GET(\"{type}\")\n Observable<String> getITEyeArticle(@Path(\"type\") String path, @Query(\"page\") int page);\n\n /**\n * ITEye 专栏笔记 位于blog之下\n *\n * @param path\n * @return\n */\n @GET(\"{path}\")\n Observable<String> getITEyeSubject(@Path(\"path\") String path);\n\n\n /**\n * Info文章链接\n *\n * @param id\n * @return\n */\n @GET(\"{type}/articles/{id}\")\n Observable<String> getInfoQArticle(@Path(\"type\") String type, @Path(\"id\") int id);\n\n /**\n * 泡在网上的日子 链接\n *\n * @param tid\n * @param pageNo\n * @return\n */\n @GET(\"plus/list.php\")\n Observable<String> getJccArticle(@Query(\"tid\") int tid, @Query(\"PageNo\") int pageNo);\n\n /**\n * OSChina 链接 ?type=0&p=5#catalogs\n *\n * @return\n */\n @GET(\"get_more_recommend_blog\")\n Observable<String> getOSChinaArticle(@Query(\"classification\") String classification, @Query(\"p\") int p);\n\n /**\n * 获取网页详细内容\n *\n * @return\n */\n @GET(\"{path}\")\n Observable<String> getWebContent(@Path(\"path\") String path);\n\n //http://so.csdn.net/so/search/s.do?q=Android&t=blog&o=&s=&l=null\n @GET(\"s.do\")\n Observable<String> searchCSDNContent(@Query(\"q\") String keyWords,\n @Query(\"t\") String type,\n @Query(\"o\") String o,\n @Query(\"s\") String s,\n @Query(\"l\") String l);\n\n //https://www.oschina.net/search?scope=blog&q=Android&fromerr=Nigvshhe\n @GET(\"search\")\n Observable<String> searchOSChinaContent(@Query(\"q\") String keyWords,\n @Query(\"scope\") String type,\n @Query(\"fromerr\") String formerr);\n\n\n //http://www.iteye.com/search?query=Android&type=blog\n @GET(\"search\")\n Observable<String> searchItEyeContent(@Query(\"query\") String keyWords,\n @Query(\"type\") String type);\n\n\n //http://www.jcodecraeer.com/plus/search.php?kwtype=0&q=Java\n @GET(\"plus/search.php\")\n Observable<String> searchJCCContent(@Query(\"keyword\") String keyWord,\n @Query(\"searchtype\") String searchType,\n @Query(\"orderby\") String orderby,\n @Query(\"kwtype\") String type,\n @Query(\"pagesize\") String pagesize,\n @Query(\"typeid\") String typeid,\n @Query(\"pageNo\") String pageNo);\n\n //http://www.infoq.com/cn/search.action?queryString=java&page=1&searchOrder=&sst=o9OURhPD52ER0BUp\n //sst 在infoQ中为搜索验证时使用 不对的话 将会有HTTP 404 异常\n //o9OURhPD52ER0BUp\n @GET(\"search.action\")\n Observable<String> searchInfoQContent(@Query(\"queryString\") String keyWords,\n @Query(\"page\") int page,\n @Query(\"searchOrder\") String order,\n @Query(\"sst\") String sst);\n\n //获取INFOQ的sst用于搜索\n @GET(\"mobile\")\n Observable<String> searchInfoQSST();\n\n //文件下载\n @GET(\"{photoPath}\")\n Observable<ResponseBody> downloadFile(@Path(value = \"photoPath\") String photoPath);\n\n\n}", "@Override\n public HashSet<String> findPostIds(String catWiseUrl) throws IOException {\n HashSet<String> postId = new HashSet<String>();\n Document document = Jsoup.connect(catWiseUrl).userAgent(\"Opera\").get();\n Element body = document.body();\n\n Elements posts = body.getElementsByClass(\"lead-news\").first().getElementsByTag(\"a\");\n\n for (Element post:posts) {\n String link = post.attr(\"href\");\n postId.add(link);\n }\n\n posts = body.getElementsByClass(\"lead-news-2nd\").first().getElementsByTag(\"a\");\n\n for (Element post:posts) {\n String link = post.attr(\"href\");\n postId.add(link);\n }\n\n posts = body.getElementsByClass(\"lead-news-3nd\").first().getElementsByTag(\"a\");\n\n for (Element post:posts) {\n String link = post.attr(\"href\");\n postId.add(link);\n\n if(postId.size()==5)\n break;\n }\n\n return postId;\n }", "public List<String> linkTexts()\n\t{\n\t\t\n\t\tList<String> links=new ArrayList<String>();\n\t\tlinks.add(linkString);\n\t\tlinks.add(\"Facebook.com\");\n\t\tlinks.add(\"google.com;\");\n\t\tlinks.add(\"gmail.com\");\n\t\tlinks.add(\"shine.com\");\n\t\tlinks.add(\"nukari.com\");\n\t\t\n\t\t// Like the above we have to add number of link text are passed to achieve the DataDriven approach through BBD \n\t\t\t\n\t\treturn links;\n\t\t\n\t}", "private URLs() {\n }", "Collection<? extends Object> getHadithUrl();", "private Hashtable<String, String> cargarRecursos() {\n Hashtable<String, String> recursosTemp = new Hashtable<String, String>(); \n \n recursosTemp.put(ConstantesWS.RECURSOS_MENU_ASOCIAR_FACTURA, ConstantesWS.RECURSOS_MENU_ASOCIAR_FACTURA);\n recursosTemp.put(ConstantesWS.RECURSOS_MENU_ABM_USUARIOS_WEB, ConstantesWS.RECURSOS_MENU_ABM_USUARIOS_WEB);\n return recursosTemp;\n }", "public Fund hentArtikel(String u) {\n\t\tp(\"hentArtikel(\"+u+\")\");\n\t\tString vUrl = \"\";\n\t\tArrayList <String> beskrivelser = new ArrayList<>();\n\n\n\t\ttry {\n\t\t\tInputStream is = new URL(\"http://m.tegnsprog.dk/artikler/\"+u+\".html\").openStream();\n\t\t\tis = new BufferedInputStream(is);\n\t\t\tis.mark(1);\n\t\t\tif (is.read() == 0xef) {\n\t\t\t\tis.read();\n\t\t\t\tis.read();\n\n\t\t\t} else {\n\t\t\t\tis.reset();\n\t\t\t}\n\t\t\tp(\"#=#=#=#=#=#=#=#= hentArtikel() =#=#=#=#=#=#=#=#=#=#=#\");\n\t\t\tbyte[] contents = new byte[1024];\n\t\t\tString heleIndholdet = \"\";\n\t\t\tint bytesRead = 0;\n\t\t\t//bytesRead = is.read(contents); //skipper første linie\n\t\t\t//bytesRead = is.read(contents); //skipper anden linie\n\n\t\t\twhile((bytesRead = is.read(contents)) != -1) {\n\t\t\t\tString linie = new String(contents, 0, bytesRead);\n\t\t\t\theleIndholdet += linie;\n\n\n\n\t\t\t}\n\t\t\t\n\t\t\t//p(\"\\nArtikel_______________________________: \"+heleIndholdet);\n\n\n\n\t\t\t//-- Vi finder video-urlen\n\n\t\t\tint startindeks = heleIndholdet.indexOf(\"src=\\\"\");\n\t\t\tString tempUrl = heleIndholdet.substring(startindeks+5);\n\t\t\tint slutIndeks= tempUrl.indexOf(\"\\\" type='video/mp4'>Your browser does not support the video tag.\");\n\t\t\tvUrl = tempUrl.substring(0,slutIndeks);\n\t\t\tp(\"videourl::::::::::::::::::::::::::::::::\"+vUrl);\n\n\t\t\tif (webm) {\n\t\t\t\tint underscore = vUrl.lastIndexOf(\"_\") + 1;\n\t\t\t\tint sidstepunktum = vUrl.lastIndexOf(\".\");\n\n\t\t\t\tString indeksnr = vUrl.substring(underscore, sidstepunktum);\n\t\t\t\tp(\"indeksnr: \" + indeksnr);\n\t\t\t\tvUrl = \"http://m.tegnsprog.dk/video/mobil/t-webm/t_\" + indeksnr + \".webm\";\n\t\t\t\tp(vUrl);\n\t\t\t}\n\n\n\n\t\t\t//-- Vi finder de danske ord\n\n\t\t\tstartindeks = tempUrl.indexOf(\"<TABLE>\");\n\t\t\tslutIndeks = tempUrl.indexOf(\"<TABLE width=\\\"100%\\\">\");\n\t\t\tString tabelDKOrd = tempUrl.substring(startindeks, slutIndeks);\n\t\t\t//p(\"__________min html:\");\n\t\t\t//p(tabelDKOrd);\n\t\t\t//p(\"----------\");\n\t\t\t//dKOrd = tabelDKOrd.replaceAll(\"\\\\/TR><TR\", \"</TR><BR><TR>\").replaceAll(\"\\\\&middot\\\\;\", \" , \");\n\t\t\tString dKOrd = tabelDKOrd\n\t\t\t\t\t.replaceAll(\"<TABLE>\", \"\")\n\t\t\t\t\t.replaceAll(\"</TD><TD>\", \" \")\n\t\t\t\t\t.replaceAll(\"\\\\&middot\\\\;\", \" , \")\n\t\t\t\t\t.replaceAll(\"<TABLE/>\", \"\")\n\t\t\t\t\t.replaceAll(\"</TABLE>\", \"\")\n\t\t\t\t\t.replaceAll(\"&nbsp;\", \"\")\n\t\t\t\t\t.replaceAll(\"<TR>\", \"\")\n\t\t\t\t\t.replaceAll(\"<TR style=\\\"vertical-align:top;\\\">\", \"\")\n\t\t\t\t\t.replaceAll(\"</TR>\", \"\")\n\t\t\t\t\t.replaceAll(\"</TD>\", \"ønskernylinie\")\n\t\t\t\t\t.replaceAll(\"<TD>\", \"\")\n\t\t\t\t\t.replaceAll(\"<BR>\",\"\\n\")\n\t\t\t\t.replaceAll(\"<BR/>\",\"\\n\");\n\n\t\t\t//Erstat html-koder for danske vokaler\n\t\t\t//æ: &aelig;\n\t\t\t//ø: &oslash;\n\t\t\t//å: &aring;\n\n\t\t\tdKOrd = dKOrd\n\t\t\t\t\t.replaceAll(\"&aelig;\", \"æ\")\n\t\t\t\t\t.replaceAll(\"&oslash;\", \"ø\")\n\t\t\t\t\t.replaceAll(\"&aring;\", \"å\");\n\n\n\n\n\n\t\t\tbeskrivelser = new ArrayList<String>(Arrays.asList(dKOrd.split(\"ønskernylinie\")));\n\n\n\t\t\tp(\"Efter rens\");\n\t\t\tp(beskrivelser.toString());\n\n\n\n/*\n\t\t\t<HTML>\n\t\t\t\t<video width=\"100%\" autoplay>\n\t\t\t \t\t<source src=\"http://www.tegnsprog.dk/video/t/t_317.mp4\" type='video/mp4'>\n\t\t\t \t\tYour browser does not support the video tag.\n\t\t\t \t</video>\n\t\t\t\t<TABLE>\n\t\t\t\t\t<TR style=\"vertical-align:top;\">\n\t\t\t\t\t\t<TD>1. </TD>\n\t\t\t\t\t\t<TD>brun</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t\t<TR style=\"vertical-align:top;\">\n\t\t\t\t\t\t<TD>2. </TD>\n\t\t\t\t\t\t<TD>kaffe</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t</TABLE>\n\t\t\t\t<TABLE width=\"100%\">\n\t\t\t\t\t<TR>\n\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\t<A TITLE=\"&Aring;bn den fulde ordbogsartikel i browseren\" href=\"#\" onclick=\"var ref = window.open('http://www.tegnsprog.dk/#|soeg|tegn|386', '_system');\">\n\t\t\t\t\t\t\t<IMG SRC=\"http://www.tegnsprog.dk/billeder/web/logo-mini.png\"/>\n\t\t\t\t\t\t\t\tVis p&aring; tegnsprog.dk</A></TD><TD style=\"text-align: right;\">\n\t\t\t\t\t\t\t<A TITLE=\"G&aring; til toppen\" href=\"#0\">\n\t\t\t\t\t\t\t\t&#8679;\n\t\t\t\t\t\t\t</A>\n\t\t\t\t\t\t</TD></TR></TABLE></HTML>\n\n\n\t\t\t\t\t\tANDEN VERSION______________________________\n\n\t\t\t\t<TABLE>\n\t\t\t\t\t<TR>\n\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\t&nbsp;\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\tforan &middot; forrest &middot; f&oslash;re &middot; komme f&oslash;rst\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t</TABLE>\n\t\t\t\t<TABLE width=\"100%\"><TR><TD><A TITLE=\"&Aring;bn den fulde ordbogsartikel i browseren\" href=\"#\" onclick=\"var ref = window.open('http://www.tegnsprog.dk/#|soeg|tegn|1000', '_system');\"><IMG SRC=\"http://www.tegnsprog.dk/billeder/web/logo-mini.png\"/>Vis p&aring; tegnsprog.dk</A></TD><TD style=\"text-align: right;\"><A TITLE=\"G&aring; til toppen\" href=\"#0\">&#8679;</A></TD></TR></TABLE></HTML>\n\n*/\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t\tp(ex);\n\t\t\tp(ex.getMessage());\n\t\t\tnulNetBeskedFraBraggrund();\n\n\t\t}\n\t\tp(\"hentArtikel færdig\");\n\t\treturn new Fund(Uri.parse(vUrl), beskrivelser);\n\t}", "String directsTo();", "public List<Arresto> getArresto(String dni);", "public void nuevosDatosEdicion(String nombre, Date fechaI, Date fechaF, int cupo, Date fechaPub, String nomCurso, ArrayList<String> docentes, String url) throws EdicionExcepcion, CursoExcepcion;", "private static void etapa3Urna() {\n\t\t\n\t\turna.contabilizarVotosPorCandidato(enderecoCandidatos);\n\t\t\n\t}", "@Test\n\tpublic void test() {\n\t\tString url = \"URL http://www.nuigalway.ie/c3/documents/3pentanonethermo.dat\";\n\t\t//String url = \"URL http://www.nuigalway.ie/c3/documents/DIB_mechanism.dat\";\n\t\t//String url = \"URL http://www.nuigalway.ie/c3/aramco2/DATA_FILES/AramcoMech2.0.mech\";\n\t\t//String url = \"URL http://web.eng.ucsd.edu/mae/groups/combustion/sdmech/sandiego20141004/sandiego20141004_mechCK.txt\";\n\t\t//String url = \"URL http://web.eng.ucsd.edu/mae/groups/combustion/sdmech/sandiego_nitrogen/NOx_20041209/NOXsandiego20041209.mec\";\n\t\t//String url = \"URL https://combustion.llnl.gov/content/assets/docs/combustion/h2_v1b_mech.txt\";\n\t\t//String url = \"URL http://www.nuigalway.ie/c3/documents/Methanol_2016_mech.inp\";\n\t\t//String url = \"URL http://www.nuigalway.ie/c3/documents/56.55_c3_chem.inp\";\n\t\t//String url = \"URL https://combustion.llnl.gov/content/assets/docs/combustion/i-pentanol_v46_06_release_inp.txt\";\n\t\t//String url = \"URL http://www.nuigalway.ie/c3/documents/c3oh_49.mech\";\n\t\t//String resource = \"RESOURCE info/esblurock/react/resources/mechanisms/LLNLHeptane\";\n\t\tReadToString read = new ReadToString();\n\t\ttry {\n\t\t\t//String input = read.parseFromLineSpecification(resource);\n\t\t\tString input = read.parseFromLineSpecification(url);\n\t\t\t//URLToString urlstring = new URLToString(resource);\n\t\t\t//String input = urlstring.toString();\n\t\t\tString commentChar = \"!\";\n\t\t\tChemkinString lines = new ChemkinString(input, commentChar);\n\t\t\tChemkinMechanism mechanism = new ChemkinMechanism();\n\t\t\tlines.nextToken();\n\t\t\tmechanism.parse(lines, commentChar);\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//System.out.println(urlstring.toString());\n\n\t}", "private Set<String> extracLinks(String url, LinkFilter filter) {\n\n\t\tSet<String> links = new HashSet<String>();\n\t\ttry {\n\t\t\tParser parser = new Parser(url);\n\t\t\tparser.setEncoding(\"UTF-8\");\n\t\t\t// linkFilter filter <a> tag\n\t\t\tNodeClassFilter linkFilter = new NodeClassFilter(LinkTag.class);\n\t\t\t// get all filtered links\n\t\t\tNodeList list = parser.extractAllNodesThatMatch(linkFilter);\n\t\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\t\tNode tag = list.elementAt(i);\n\t\t\t\tif (tag instanceof LinkTag)// <a> tag\n\t\t\t\t{\n\t\t\t\t\tLinkTag link = (LinkTag) tag;\n\t\t\t\t\tString linkUrl = link.getLink();// url\n\t\t\t\t\tif (filter.accept(linkUrl)) {\n\t\t\t\t\t\t// change bbsdoc to bbstdoc\n\t\t\t\t\t\tString stlink = linkUrl.replace(\"bbsdoc\", \"bbstdoc\");\n\t\t\t\t\t\tlinks.add(stlink);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (ParserException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn links;\n\t}", "public void metodoInstanciaArbitrariaDeUnTipo2() {\n\t\tString[] lista= {\"cielo\",\"agua\",\"papa\",\"carpintero\",\"taza\",\"ciencia\",\"dedo\",\"mamut\",\"telefono\",\"computadora\",\"maniqui\",\"zapato\"};\n\t\tList<String> palabras=Arrays.asList(lista);\n\t\tpalabras.forEach(String::length);// \n\t\t//forEach recibe un consumidor de solo un parametro, es decir puede ser de la siguiente forma: (palabra)->{}\n\t\t//Pero tambien puede recibir un metodo referencia, en este caso, por ejemplo recibe el metodo length, pero el metodo length se opera sobre una instancia de String.\n\t\t//la firma del metodo length es: public int length() , es decir no recibe parametros, es operado sobre la instanacia del objeto.\n\t\t\n\t\t//Otro caso de referencia arbitraria seria\n\t\tArrays.sort(lista, String::compareToIgnoreCase);\n\t\t//Donde el segundo parametro es un Comparator, en este caso el metodo compareToIgnoreCase es un metodo de instancia, y recibe como parametro otro String para compararse \n\t\t//sobre la instancia del mismo.\n\t\t//definicion del Comparator: int compare(T o1, T o2);\n\t\t//definicion del compareToIgnoreCase: public int compareToIgnoreCase(String str)\n\t\t//La definicion compareToIgnoreCase esta muy cerca de Comparator pero el primero parametro es una instancia y el segundo parametro otra instancia. \n\t}", "private void processUrls(){\n // Strip quoted tweet URL\n if(quotedTweetId > 0){\n if(entities.urls.size() > 0 &&\n entities.urls.get(entities.urls.size() - 1)\n .expandedUrl.endsWith(\"/status/\" + String.valueOf(quotedTweetId))){\n // Match! Remove that bastard.\n entities.urls.remove(entities.urls.size() - 1);\n }\n }\n\n // Replace minified URLs\n for(Entities.UrlEntity entity : entities.urls){\n // Find the starting index for this URL\n entity.indexStart = text.indexOf(entity.minifiedUrl);\n // Replace text\n text = text.replace(entity.minifiedUrl, entity.displayUrl);\n // Find the last index for this URL\n entity.indexEnd = entity.indexStart + entity.displayUrl.length();\n }\n }", "public interface CeshiUrl {\n String SINGLE_URL = \"http://nq.website-art.com/app/category.php\";\n\n String TEST=\"http://nq.website-art.com/app/test.php\";\n}", "public URL[] getURLs(String mkey) {\n\t\tURL last;\n\t\tint i = 0;\n\t\tArrayList<URL> v = new ArrayList<>();\n\t\twhile (true) {\n\t\t\tlast = getURL(mkey + i);\n\t\t\ti++;\n\t\t\tif (last == null)\n\t\t\t\tbreak;\n\t\t\tv.add(last);\n\t\t}\n\t\tif (v.size() != 0) {\n\t\t\tURL[] path = new URL[v.size()];\n\t\t\treturn v.toArray(path);\n\t\t} else {\n\t\t\treturn (URL[]) getDefault(mkey);\n\t\t}\n\t}", "public static List<String> extract(Document document) {\n Elements links = document.select(\"a[href]\");\n Elements media = document.select(\"[src]\");\n Elements imports = document.select(\"link[href]\");\n\n List<String> allLinks = new ArrayList<>();\n populateLinks(allLinks, media, \"abs:src\");\n populateLinks(allLinks, imports, \"abs:href\");\n populateLinks(allLinks, links, \"abs:href\");\n return allLinks;\n }", "private ArrayList<String> permaLinkParser(String response, ArrayList<String> permaLinkUrls){\n\t\tJsonElement element = new JsonParser().parse(response);\n\t\tJsonArray array = element.getAsJsonArray();\n\t\t\n\t\tfor(int i = 0; i < array.size(); i++){\n\t\t\tJsonObject currentObject = array.get(i).getAsJsonObject().getAsJsonObject();\n\t\t\t\n\t\t\tString key = currentObject.get(\"permalink_url\").toString().replaceAll(\"\\\"\", \"\");\n\t\t\tpermaLinkUrls.add(key);\n\t\t}\n\t\t\n\t\treturn permaLinkUrls;\n\t\t\n\t}", "private @NotNull List<String> getAllLinks(final String text, final String urlStart) {\n List<String> links = new ArrayList<>();\n\n int i = 0;\n while (text.indexOf(urlStart, i) != -1) {\n int linkStart = text.indexOf(urlStart, i);\n int linkEnd = text.indexOf(\" \", linkStart);\n if (linkEnd != -1) {\n String link = text.substring(linkStart, linkEnd);\n links.add(link);\n } else {\n String link = text.substring(linkStart);\n links.add(link);\n }\n i = text.indexOf(urlStart, i) + urlStart.length();\n }\n\n return links;\n }", "private static String[][] decodificarCadenaParametros(String cadena) {\n ArrayList resultado = new ArrayList();\n StringTokenizer stringTokenizer = new StringTokenizer(cadena, \"&\");\n String aux = null;\n int index = 0;\n String[] atributo = null; //Un atributo se compone de un nombre y un valor asociado \n String attrtmp; // [1] atributo temporal para conoces si tenia un & en el string original\n while (stringTokenizer.hasMoreElements()) {\n aux = stringTokenizer.nextToken();\n index = aux.indexOf('=');\n\n if (index == -1) {\n throw new IllegalArgumentException(\"Al parametro le falta el =\");\n } else {\n atributo = new String[2];\n atributo[0] = aux.substring(0, index); //A la izquierda del =\n attrtmp = aux.substring(index + 1, aux.length()); // [1] a la derecha del =\n attrtmp = attrtmp.replaceAll(\";druida;amp;\",\"&\");//[1]\n atributo[1] = attrtmp; //[1]\n //[1] atributo[1] = aux.substring(index + 1, aux.length()); //A la derecha del =\n resultado.add(atributo); //Añadimos el atributo recien creado a la lista\n }\n }\n\n return listToArray(resultado);\n }", "List<Videogioco> retriveByGenere(String genere);", "public int[] linkernTour() {\n int nbCities = ttp.getNbCities();\n int[] tour = new int[nbCities];\n \n String fileName = ttp.getTspName();\n String dirName = ConfigHelper.getProperty(\"lktours\");\n fileName += \".linkern.tour\";\n //Deb.echo(dirName + \"/\" + fileName);\n \n File file = new File(dirName + \"/\" + fileName);\n BufferedReader br = null;\n \n try {\n br = new BufferedReader(new FileReader(file));\n String line;\n \n // scan tour\n while ((line = br.readLine()) != null) {\n \n if (line.startsWith(\"TOUR_SECTION\")) {\n \n for (int j=0; j<nbCities; j++) {\n line = br.readLine();\n tour[j] = Integer.parseInt(line);\n }\n }\n } // end while\n \n br.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n \n return tour;\n }", "public void processUrl() {\n try {\n\n JsonNode rootNode = getJsonRootNode(getJsonFromURL()); // todo: pass url in this method (to support multi-urls)\n getValuesFromJsonNodes(rootNode);\n setAndFormatValues();\n\n } catch (Exception e) {\n System.out.println(\"ERROR: caught error in processUrl()\");\n e.printStackTrace();\n }\n }", "String[] chiediSecondaScommessa();", "protected String cargarObsequioGeneral(String url, String username,\n String password) throws Exception {\n try {\n if(mObsequiosGeneral.size()>0){\n // La URL de la solicitud POST\n final String urlRequest = url + \"/movil/obsequiosgen\";\n ObsequioGeneral[] envio = mObsequiosGeneral.toArray(new ObsequioGeneral[mObsequiosGeneral.size()]);\n HttpHeaders requestHeaders = new HttpHeaders();\n HttpAuthentication authHeader = new HttpBasicAuthentication(username, password);\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n requestHeaders.setAuthorization(authHeader);\n HttpEntity<ObsequioGeneral[]> requestEntity =\n new HttpEntity<ObsequioGeneral[]>(envio, requestHeaders);\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.getMessageConverters().add(new StringHttpMessageConverter());\n restTemplate.getMessageConverters().add(new MappingJacksonHttpMessageConverter());\n // Hace la solicitud a la red, pone la vivienda y espera un mensaje de respuesta del servidor\n ResponseEntity<String> response = restTemplate.exchange(urlRequest, HttpMethod.POST, requestEntity,\n String.class);\n return response.getBody();\n }\n else{\n return \"Datos recibidos!\";\n }\n } catch (Exception e) {\n Log.e(TAG, e.getMessage(), e);\n return e.getMessage();\n }\n }", "@Override\n\tpublic List<AllcodeModel> get_url_nganluong() {\n\t\treturn allcode.get_url_nganluong();\n\t}", "public static ArrayList<Map<String,String>> getContFromRssNoHtml(String urlAdress) {\n\n URL url = null;\n Iterator itEntries = null;\n try {\n //thetume ton browser Agent se browser-like gia na apofigume 403 errors\n System.setProperty(\"http.agent\", \"Mozilla/5.0 (Windows NT 10.0; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0\");\n url = new URL(urlAdress);\n HttpURLConnection httpcon = (HttpURLConnection) url.openConnection();\n httpcon.setRequestProperty(\"User-Agent\",\n \"Mozilla/5.0 (Windows NT 5.1; rv:19.0) Gecko/20100101 Firefox/19.0\");\n // Reading the feed\n SyndFeedInput input = new SyndFeedInput();\n SyndFeed feed = input.build(new XmlReader(httpcon));\n List entries = feed.getEntries();\n itEntries = entries.iterator();\n } catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (FeedException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n //contAr has all the entries\n ArrayList<Map<String,String>> contAr = new ArrayList<Map<String, String>>();\n\n //contMap has all the entries contents\n Map<String,String> contMap = new HashMap<String, String>();\n contMap.put(\"URI\",urlAdress);\n\n\n while (itEntries.hasNext()) {\n contMap = new HashMap<String, String>();\n SyndEntry entry = (SyndEntry) itEntries.next();\n System.out.println(entry.getUri());\n contMap.put(\"Title\",entry.getTitle());\n contMap.put(\"Link\",entry.getLink());\n contMap.put(\"Description\",entry.getDescription().getValue());\n\n contAr.add(contMap);\n System.out.println();\n }\n return contAr;\n }", "public static void getAllNounousApi(String url, final Context contexte,\r\n\t\t\tfinal ListView listView,final ConnectivityManager cm) {\r\n\t\tLog.i(\"URL SERVER---------\", url);\r\n\t\tdialog = ProgressDialog.show(contexte, \"\", \"Chargement...\");\r\n\t\tRequestQueue _volleyQueue = VolleySingleton.getInstance(contexte)\r\n\t\t\t\t.getRequestQueue();\r\n\t\t_volleyQueue = Volley.newRequestQueue(contexte);\r\n\t\t// _volleyQueue.getCache().clear();\r\n\t\t/* Si on a un cache pour cette url mais pas de connexion*/\r\n\t\tif (_volleyQueue.getCache().get(url) != null && !ConnexionManager.testConnexion(cm)) {\r\n\t\t\tLog.i(\"Api\", \"get url from cache\");\r\n\t\t\ttry {\r\n\t\t\t\t// On récupère la liste depuis le cache\r\n\t\t\t\tJSONObject cacheContent = new JSONObject(new String(\r\n\t\t\t\t\t\t_volleyQueue.getCache().get(url).data));\r\n\t\t\t\tajoutListeNounou(cacheContent, contexte, listView);\r\n\t\t\t} catch (JSONException e) {\r\n\t\t\t\tLog.i(\"ERROR JSON EXCEPTION---------\", e.toString());\r\n\t\t\t}\r\n\r\n\t\t\t/* Sinon on va chercher en BD */\r\n\t\t} else {\r\n\t\t\tJsonObjectRequest jsObjRequest = new JsonObjectRequest(\r\n\r\n\t\t\tRequest.Method.GET, url, null, new Response.Listener<JSONObject>() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onResponse(JSONObject response) {\r\n\t\t\t\t\tLog.i(\"Api\", response.toString());\r\n\t\t\t\t\tajoutListeNounou(response, contexte, listView);\r\n\t\t\t\t\t/*Préchargement des profils nounous en cache volley au cas ou la connexion soit coupée*/\r\n\t\t\t\t\tJSONArray jsonArrayNounou;\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tjsonArrayNounou = response.getJSONArray(\"allNounous\");\r\n\t\t\t\t\t\tRequestQueue _volleyQueue = VolleySingleton.getInstance(contexte)\r\n\t\t\t\t\t\t\t\t.getRequestQueue();\r\n\t\t\t\t\t\t_volleyQueue = Volley.newRequestQueue(contexte);\r\n\t\t\t\t\t\tfor (int i = 0; i < jsonArrayNounou.length(); i++) {\r\n\t\t\t\t\t\t\tString urlUneNounou = UrlServer.getServerUrl()+\"/api/nounou/\"+jsonArrayNounou.getJSONObject(i).getString(\"_id\");\r\n\t\t\t\t\t\t\tJsonObjectRequest jsObjRequest = new JsonObjectRequest(\r\n\r\n\t\t\t\t\t\t\t\t\tRequest.Method.GET, urlUneNounou, null,\r\n\r\n\t\t\t\t\t\t\t\t\tnew Response.Listener<JSONObject>() {\r\n\r\n\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void onResponse(JSONObject response) {\r\n\t\t\t\t\t\t\t\t\t\t\tLog.i(\"API CHARGEMENT PROFIL NOUNOU---\",\"OK\");\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}, new Response.ErrorListener() {\r\n\r\n\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void onErrorResponse(VolleyError error) {\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tLog.i(\"ERROR---------\", error.toString());\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\t\t\t_volleyQueue.add(jsObjRequest);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (JSONException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t}, new Response.ErrorListener() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onErrorResponse(VolleyError error) {\r\n\t\t\t\t\tLog.i(\"ERROR---------\", error.toString());\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\t_volleyQueue.add(jsObjRequest);\r\n\t\t}\r\n\t}", "@Override\n protected String doInBackground(String... arrays) {\n\n try {\n\n // doi tuong URL, dung de khoi tao dia chi request\n URL url = new URL(arrays[0]);\n\n // mo ket noi toi dia chi url\n HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();\n\n\n // doc du lieu thong qua InputStream\n InputStream inputStream = httpURLConnection.getInputStream();\n\n // doc du lieu\n BufferedReader r = new BufferedReader(new InputStreamReader(inputStream));\n\n StringBuilder total = new StringBuilder();\n\n for (String line; (line = r.readLine()) != null; ) {\n total.append(line).append('\\n');\n\n }\n\n return total.toString();\n\n\n } catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return null;\n }", "private void parseIndex() throws IOException {\n\t\tDocument doc = Jsoup.connect(WOLFF + \"/bioscopen/cinestar/\").get();\n\t\tElements movies = doc.select(\".table_agenda td[width=245] a\");\n\t\t\n\t\tSet<String> urls = new HashSet<String>();\n\t\tfor(Element movie : movies) {\n\t\t\turls.add(movie.attr(\"href\"));\n\t\t}\n\t\t\n\t\tfor(String url: urls) {\n\t\t\tparseMovie(url);\n\t\t}\n\t}", "private void cargarNotasEnfermeria() {\r\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\tparametros.put(\"admision_seleccionada\", admision_seleccionada);\r\n\t\tparametros.put(\"rol_medico\", \"S\");\r\n\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\"/pages/notas_enfermeria.zul\", \"NOTAS DE ENFERMERIA\",\r\n\t\t\t\tparametros);\r\n\t}", "private void GotoGraficos(String data){\n Intent intent = new Intent(this, Graficos_Sesion.class);\n intent.putExtra(\"url\", data);\n startActivity(intent);\n }", "public static String cargarPreguntas(String fileName){\n String line = null; \n try {\n //Para lectura del archivo\n FileReader fileReader =\n new FileReader(fileName); \n \n //BufferedReader para optimización de recursos\n BufferedReader bufferedReader =\n new BufferedReader(fileReader);\n \n// Lee línea por línea, verifica que tengan algo de texto\n while(((line = bufferedReader.readLine()) != null)) {\n if ((line.length() > 0) && !(line.startsWith(\"//\"))){\n// Para ignorar las líneas de comentario en el archivo de texto\n //if (!(line.startsWith(\"//\"))){\n// Crea una lista de Strings para cada línea a evaluar\n List<String> listaLinea = new ArrayList<>(Arrays.asList(line.split(\";\")));\n// Impresión de prueba del ArrayList(descomentar)\n// System.out.println(listaLinea);\n \n //Obtiene lista de Respuestas, en tipo String\n List <String >resp = listaLinea.subList(1,listaLinea.size());\n //Creación de Respuestas (bajo el debido constructor) en un HashSet\n HashSet<Respuesta> respuestas = new HashSet(); \n for (int i = 0; i < resp.size();i++){\n if (i == 0){\n //Identifica la respuesta correcta\n respuestas.add(new Respuesta(resp.get(i), true));\n }\n else{\n //Identifica las respuestas incorrectas\n respuestas.add(new Respuesta(resp.get(i), false));\n } \n }\n //System.out.println(resp); Impresión de prueba (descomentar)\n \n //Agrega Preguntas y Respuestas a nuestro HashSet y HashMap\n Almacenamiento.getPreguntas().add(new Pregunta(listaLinea.get(0)));\n Almacenamiento.getMapaPR().put(new Pregunta(listaLinea.get(0)), respuestas); \n //}\n }\n }\n //Impresiones de prueba, descomentar.\n// for(Pregunta p: Almacenamiento.getPreguntas()){\n// System.out.println(p.toString()); \n// } \n// Almacenamiento.getMapaPR().forEach((k,v)-> System.out.println(k+\", \"+v));\n \n // Siempre cerrar archivo, para optimizar recursos\n bufferedReader.close(); \n }\n //Detalle de exception impreso en consola\n catch(FileNotFoundException ex) {\n System.out.println(\n \"No se pudo abrir archivo '\" +\n fileName + \"'\"); \n }\n //Detalle de exception impreso en consola\n catch(IOException ex) {\n System.out.println(\n \"Error leyendo archivo '\"\n + fileName + \"'\"); \n }\n return null;\n }", "public void lerDados(String dadosInstituicao)\n {\n if (dadosInstituicao == null)\n {\n //AxellIO.println(\"[Instituicao]: Parametro dadosInstituicao nulo - funcao lerDados(String)\");\n }\n \n else\n {\n MyString dados = new MyString(dadosInstituicao);\n String[] splitedData = dados.split('\\t');\n int cursor = 0;\n \n try\n {\n setCodigo( AxellIO.isSpecificString(splitedData[cursor], 'd') ? AxellIO.getInt(splitedData[cursor++]) : null );\n setNome( !AxellIO.isSpecificString(splitedData[cursor], 'f') ? splitedData[cursor++] : null );\n setSigla( !AxellIO.isSpecificString(splitedData[cursor], 'f') ? splitedData[cursor++] : null );\n setCodigoMantenedora( AxellIO.isSpecificString(splitedData[cursor], 'd') ? AxellIO.getInt(splitedData[cursor++]) : null );\n setMantenedora( !AxellIO.isSpecificString(splitedData[cursor], 'f') ? splitedData[cursor++] : null );\n setCategoria( AxellIO.isSpecificString(splitedData[cursor], 'd') ? AxellIO.getInt(splitedData[cursor++]) : null );\n setOrganizacao( AxellIO.isSpecificString(splitedData[cursor], 'd') ? AxellIO.getInt(splitedData[cursor++]) : null );\n setCodigoMunicipio( AxellIO.isSpecificString(splitedData[cursor], 'd') ? AxellIO.getInt(splitedData[cursor++]) : null );\n setMunicipio( !AxellIO.isSpecificString(splitedData[cursor], 'f') ? splitedData[cursor++] : null );\n setUf( !AxellIO.isSpecificString(splitedData[cursor], 'f') ? splitedData[cursor++] : null );\n setRegiao( !AxellIO.isSpecificString(splitedData[cursor], 'f') ? splitedData[cursor++] : null );\n setTecnico( AxellIO.isSpecificString(splitedData[cursor], 'd') ? AxellIO.getInt(splitedData[cursor++]) : null );\n setPeriodico( AxellIO.isSpecificString(splitedData[cursor], 'd') ? AxellIO.getInt(splitedData[cursor++]) : null );\n setLivro( AxellIO.isSpecificString(splitedData[cursor], 'd') ? AxellIO.getInt(splitedData[cursor++]) : null );\n setReceita( AxellIO.isSpecificString(splitedData[cursor], 'f') ? AxellIO.getDouble(splitedData[cursor++]) : null );\n setTransferencia( AxellIO.isSpecificString(splitedData[cursor], 'f') ? AxellIO.getDouble(splitedData[cursor++]) : null );\n setOutraReceita( AxellIO.isSpecificString(splitedData[cursor], 'f') ? AxellIO.getDouble(splitedData[cursor++]) : null );\n setDespesaDocente( AxellIO.isSpecificString(splitedData[cursor], 'f') ? AxellIO.getDouble(splitedData[cursor++]) : null );\n setDespesaTecnico( AxellIO.isSpecificString(splitedData[cursor], 'f') ? AxellIO.getDouble(splitedData[cursor++]) : null );\n setDespesaEncargo( AxellIO.isSpecificString(splitedData[cursor], 'f') ? AxellIO.getDouble(splitedData[cursor++]) : null );\n setDespesaCusteio( AxellIO.isSpecificString(splitedData[cursor], 'f') ? AxellIO.getDouble(splitedData[cursor++]) : null );\n setDespesaInvestimento( AxellIO.isSpecificString(splitedData[cursor], 'f') ? AxellIO.getDouble(splitedData[cursor++]) : null );\n setDespesaPesquisa( AxellIO.isSpecificString(splitedData[cursor], 'f') ? AxellIO.getDouble(splitedData[cursor++]) : null );\n setDespesaOutras( AxellIO.isSpecificString(splitedData[cursor], 'f') ? AxellIO.getDouble(splitedData[cursor++]) : null );\n }\n\n catch (ArrayIndexOutOfBoundsException exception)\n {\n //AxellIO.println(\"[Instituicao]: Dados da instituicao incompletos - funcao lerDados(String)\");\n }\n \n setDadosInstituicaoTabulado( dados.toString() );\n setDadosInstituicao( concatFields() );\n }\n }", "public static void main(String[] args) throws Exception {\n\tPhishTankBlackList.main(args);\n\tstr=PhishTankBlackList.url();\n\tString mstr=str;\n\tmstr = mstr.replaceAll(\"http://www.\",\"\");\n\tmstr = mstr.replaceAll(\"http://\",\"\");\n\tmstr = mstr.replaceAll(\"https://www.\", \"\");\n\tmstr = mstr.split(\".com\")[0];\n\tmstr = mstr.split(\".in\")[0];\n\tmstr = mstr.split(\".net\")[0];\n\tmstr = mstr.split(\".org\")[0];\n\tmstr = mstr.split(\".uk\")[0];\n\tmstr = mstr.split(\".eu\")[0];\n\tmstr = mstr.split(\".ac.in\")[0];\n\tSystem.out.println(mstr);\n\tint fullLength = mstr.length();\n\tString modifiedString = mstr.replaceAll(\"\\\\p{Punct}\",\"\");\n\tint modStringLength = modifiedString.length();\n\tint numberOfSpecialChars = fullLength - modStringLength;\n\t//number of tokens in domain\n\tSystem.out.println(\"The number of tokens in the domain are\");\n\t\n\tSystem.out.println(numberOfSpecialChars);\n\tSystem.out.println(\"\");\n\tif(numberOfSpecialChars>3)\n\tSystem.out.println(\"Probably Phishing site\");\n\t\n\t\n\t\n\t\n\t//number of dots in domain\n\t\n int ctr=0;\n\tString newstr=mstr;\n\t\t\tfor(int i=0;i<newstr.length();i++)\n\t\t\t{ if(newstr.charAt(i)=='.')\n\t\t\t {ctr = ctr+1;}}\n\t\t\tSystem.out.println(\"number of dots in the domain of the URL\");\n\t\t\tSystem.out.println(ctr);\n\t\t\tif(ctr>=4)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Probably Phishing\");\n\t\t\t}\n\t\t\t/*ctr=0;\nmstr=mstr.replaceAll(\".\", \"\");\n\t\t String sb=mstr;\n\t\t \n\t\t sb.toCharArray();\n\t\t for(int i=0;i<sb.length();i++)\n\t\t {\n\t\t \n\t\t ctr=ctr+1;\n\t\t }\n\t\t System.out.println(\"The digits present in the domain\");\n\t\t System.out.println(ctr);\n\t\t \n\t\t \n\t\t if(ctr>4)\n\t\t {\n\t\t \tSystem.out.println(\"Probably Phishing\");\n\t\t }}\n\t\t \n\n\n\t\t\t */\n\t\t\t}", "public static String getWebsiteBase( String url, IOntologyModel universitiesOntologyModel ) {\r\n if( url == null ) {\r\n return null;\r\n }; // if\r\n \r\n // the url would have to be at least 8 chars long (because it would have \"http://\" or \"https://\")\r\n int httpPosition = url.startsWith( \"http://\" ) ? 7 : -1;\r\n httpPosition = url.startsWith( \"https://\" ) ? 8 : httpPosition;\r\n if( httpPosition == -1 ) {\r\n System.out.println( \"WHATISTHIS--url(1),getWebsiteBase: \" + url );\r\n return null;\r\n }; // if\r\n \r\n int slashPosition = url.indexOf( \"/\", httpPosition );\r\n if( slashPosition == -1 ) {\r\n if( url.endsWith( \"/\" ) == false ) { \r\n url += \"/\";\r\n }; // if\r\n slashPosition = url.indexOf( \"/\", httpPosition );\r\n if( slashPosition == -1 ) {\r\n System.out.println( \"WHATISTHIS--url(2),getWebsiteBase: \" + url );\r\n return null;\r\n }; // if\r\n }; // if\r\n \r\n int pos = 0;\r\n String ret = url.substring( 0, slashPosition );\r\n String portEnding[] = { \":8080\", \":8000\" };\r\n IInstanceNode instanceNode = null;\r\n \r\n // fix any url with useless port ending\r\n for( String port : portEnding ) {\r\n if( ret.endsWith( port ) ) {\r\n ret = ret.substring( 0, ret.length() - port.length() );\r\n }; // if\r\n }; // for\r\n \r\n // handle \".edu\" ending\r\n String eduCases[] = { \".edu\", \".edu.ar\", \".edu.au\", \".edu.br\", \".edu.cn\", \".edu.eg\", \r\n \".edu.hk\", \".edu.kw\", \".edu.lb\", \".edu.my\", \r\n \".edu.ng\", \".edu.om\", \".edu.pl\", \".edu.sg\", \".edu.tr\", \".edu.tw\", \".edu.uy\", \r\n \r\n \".ac.ae\", \".ac.at\", \".ac.bd\", \".ac.be\", \".ac.cn\", \".ac.cr\", \".ac.cy\", \r\n \".ac.il\", \".ac.in\", \".ac.jp\", \".ac.kr\", \".ac.nz\", \".ac.ru\", \".ac.th\", \".ac.uk\", \".ac.yu\", \".ac.za\" };\r\n \r\n // search for possible 'edu/ac' match\r\n for( String edu : eduCases ) {\r\n if( ret.endsWith( edu ) ) {\r\n pos = ret.lastIndexOf( \".\", ret.length() - edu.length() - 1 );\r\n pos = pos == -1 ? httpPosition : pos + 1; // for cases such as http://uga.edu/~ana\r\n ret = \"http://www.\" + ret.substring( pos ) + \"/\";\r\n \r\n // now, look it up in the universities\r\n instanceNode = universitiesOntologyModel.getInstanceNode( ret );\r\n if( instanceNode != null ) {\r\n return ret;\r\n }; // if\r\n //TODO\r\n //System.out.println( \"WHATISTHIS--url(3),getWebsiteBase: \" + ret );\r\n return null;\r\n }; // if\r\n }; // for\r\n \r\n // maybe there's a match on universitiesOntology\r\n String pieces[] = ret.substring( httpPosition ).split( \"\\\\.\" );\r\n if( pieces != null && pieces.length >= 2 ) {\r\n String tmp = \"http://www.\" + pieces[ pieces.length - 2 ] + \".\" + pieces[ pieces.length - 1 ] + \"/\";\r\n instanceNode = universitiesOntologyModel.getInstanceNode( tmp );\r\n if( instanceNode != null ) {\r\n return tmp;\r\n }; // if\r\n }; // if\r\n \r\n //TODO\r\n //System.out.println( \"WHATISTHIS--url(4),getWebsiteBase: \" + ret );\r\n return null;\r\n }", "private void pageContent( String url) {\n\t\t\n\t\tif ( !url.matches(URL)) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tList<String> outlinks = null; // out link urls\n\t\tUrlBean bean = null; // basic info of the url\n\t\t\n\t\tbean = new UrlBean();\n\t\ttry {\n\t\t\t\n\t\t\tconn = Jsoup.connect(url).timeout(5000);\n\t\t\tif ( conn == null) {\n\t\t\t\treturn ;\n\t\t\t}\n\t\t\t\n\t\t\tdocument = conn.get(); // 得到网页源代码,超时时间是5秒\n\t\t\t\n\t\t\t/*\n\t\t\t * 文章基本信息\n\t\t\t */\n\t\t\telements = document.getElementsByTag(\"title\");\n\t\t\tif ( elements!= null && elements.size() != 0) {\n\t\t\t\telement = elements.get(0);\n\t\t\t}\n\t\t\tString title = element.text();\n\t\t\tbean.setTitle(title);\n\t\t\tbean.setKeywords(title);\n\t\t\t\n\t\t\telements = document.getElementsByTag(\"a\");\n\t\t\tif ( elements != null) {\n\t\t\t\tString linkUrl = null;\n\t\t\t\toutlinks = new ArrayList<String>();\n\t\t\t\tfor ( int i = 0; i < elements.size(); i++) {\n\t\t\t\t\tlinkUrl = elements.get(i).attr(\"href\");\n\t\t\t\t\tif ( linkUrl.matches(URL)) {\n\t\t\t\t\t\toutlinks.add(linkUrl);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t} \n\t\t\n\t\tbean.setUrl(url);\n\t\tbean.setId(urlId++);\n\t\tbean.setRank(1);\n\t\tif ( outlinks != null) {\n\t\t\tint count = outlinks.size();\n\t\t\tbean.setOutlinks(count);\n\t\t\tfor ( int i = 0; i < count; i++) {\n\t\t\t\turlsSet.add(outlinks.get(i));\n\t\t\t}\n\t\t\tif ( new AllInterface().addOneUrlInfo(bean, outlinks)) {\n\t\t\t\tSystem.out.println(\"Add to database successfully, url is '\" + url + \"'.\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Fail to add to database, maybe url exists. Url is '\" + url + \"'.\");\n\t\t\t}\n\t\t\tSystem.out.println(\"[\" + count + \" urls remain...]\");\n\t\t\tSystem.out.println();\n\t\t} else {\n\t\t\tSystem.out.println(\"Error occurs in crawl, url is '\" + url + \"'.\");\n\t\t\tSystem.out.println(\"[[FINISHED]]\");\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t}", "public java.lang.String getReferenciado();", "@Override\r\n\tpublic String getDataUrl(boolean isRecomment, boolean isDuanzi, String mid, int page,\r\n\t\t\tString postChannel) {\n\t\tString tableName = getTableName();\r\n\t\t\r\n\t\t\r\n//\t\tif (tableName.equals(ArticleHistoryUtils.Tablename_Photo) ) {\r\n//\t\t\tif (isRecomment) {\r\n//\t\t\t\treturn NetUtils.getDiscoverList( mid, page);\r\n//\t\t\t} else {\r\n//\t\t\t\treturn NetUtils.getDiscoverToChannelId(postChannel, page);\r\n//\t\t\t}\r\n//\r\n//\t\t}\r\n\t\t\r\n//\t\tif (tableName.equals(ArticleHistoryUtils.Tablename_Video) ) {\r\n//\t\t\tif (isRecomment) {\r\n//\t\t\t\treturn NetUtils.getVideoList( mid, page);\r\n//\t\t\t} else {\r\n//\t\t\t\treturn NetUtils.getVideoToChannelList(postChannel, page);\r\n//\t\t\t}\r\n//\t\t}\r\n\t\t\r\n//\t\tif (tableName.equals(ArticleHistoryUtils.Tablename_Photo_SheY) ||\r\n//\t\t\t\ttableName.equals(ArticleHistoryUtils.Tablename_Photo_ShiJ)) {\r\n//\t\t\ttableName = ArticleHistoryUtils.Tablename_Photo;\r\n//\t\t}\r\n\t\tif(isRecomment)\r\n\t\t{\r\n\t\t\t//Log.e(\"home\",\"---\"+NetUtils.getHomeNewsList(tableName));\r\n\t\t\treturn NetUtils.getHomeNewsList(tableName);\r\n\t\t\t\r\n\t\t}else\r\n\t\t{\r\n//\t\t\tif (isDuanzi) {\r\n//\t\t\t\treturn NetUtils.getInterestByDate(ListItemBaseNews.ChannelId_DZ, getDateType(), page, 10);\r\n//\t\t\t}else {\r\n\t\t\t\treturn NetUtils.getNewsToChannelId(tableName);\r\n//\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "public interface API {\n\n String ZHIHU_DAILY_BEFORE = \"http://news.at.zhihu.com/api/4/news/before/\";\n String ZHIHU_DAILY_OFFLINE_NEWS = \"http://news-at.zhihu.com/api/4/news/\";\n String SEARCH = \"http://zhihudailypurify.herokuapp.com/search/\";\n\n}", "public Collection<Map<String, String>> getLinks();", "private void buscarCampos() throws MalformedURLException {\n ConnectivityManager connMgr = (ConnectivityManager)\n getSystemService(Context.CONNECTIVITY_SERVICE);\n\n NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();\n\n if (networkInfo != null && networkInfo.isConnected()) {\n // Iniciar Tarea asícrona\n\n new buscarRegistros().//Crear método\n execute(\n new URL(\"http://jmonzon.eu5.org/juego/consulta_puntuaciones.php\"));\n\n\n } else {\n Toast.makeText(this, \"Error de conexión\", Toast.LENGTH_LONG).show();\n }\n\n }", "public void imprimirDescripcionDominio(Pila url){\n\t\tmodCons.imprimirDescripcionDominio(url);\n\t\t\n\t}", "@Test\n public void verifyLinksFromWebsite() throws InterruptedException {\n System.setProperty(\"webdriver.chrome.driver\", \"C://seleniumdrivers//chromedriver.exe\");\n WebDriver driver = new ChromeDriver();\n driver.navigate().to(\"http://www.trafic.ro/\");\n\n //initializare pagina\n TestarePage testarePage = PageFactory.initElements(driver, TestarePage.class);\n\n int categorySize = testarePage.getCategoryEntity().size();\n System.out.print(\"Numarul de categoirii: \" + categorySize + \"\\n\");\n List<WebElement> categoriesNameFromWebsite = testarePage.getCategoryEntity();\n for (int i = 0; i < categorySize; i++) {\n String categoryNameFromWebsite = testarePage.getCategoryNameFromWebsite(categoriesNameFromWebsite.get(i));\n System.out.print(\"Category name: \" + categoryNameFromWebsite + \"\\n\");\n }\n driver.close();\n driver.quit();\n }", "public void getPhotoLinks() {\n try {\n image = Jsoup.connect(link + \"/+images/\").get();\n } catch (IOException e) {\n e.printStackTrace();\n }\n Elements elements = image.getElementsByClass(\"image-list-item\");\n photosLinks = new String[elements.size()];\n for (int i = 0; i < elements.size(); i++) {\n String element = elements.get(i).attr(\"href\");\n photosLinks[i] = element;\n }\n }", "public Map<String, URLValue> loadAllURLs()\n\t{\n\t\tEntityCursor<URLEntity> results = this.env.getEntityStore().getPrimaryIndex(String.class, URLEntity.class).entities();\n\t\tMap<String, URLValue> urls = new HashMap<String, URLValue>();\n\t\tURLValue url;\n\t\tfor (URLEntity entity : results)\n\t\t{\n\t\t\turl = new URLValue(entity.getKey(), entity.getURL(), entity.getUpdatingPeriod());\n\t\t\turls.put(url.getKey(), url);\n\t\t}\n\t\tresults.close();\n\t\treturn urls;\n\t}", "public List<String> scrapDipartimenti() {\n return null;\n }", "private void urlMethods(String URL, final String intUrls) {\n Utils.get(URL, null, new JsonHttpResponseHandler() {\n @Override\n public void onStart() {\n progressDialog.show();\n progressDialog.setMessage(\"Connecting to Server ...\");\n\n }\n\n\n @Override\n public void onSuccess(int statusCode, Header[] headers, JSONArray timeline) {\n // Pull out the first event on the public timeline\n try {\n\n if (timeline == null && timeline.length() <= 0) {\n filMthd();\n return;\n\n } else if (intUrls.equalsIgnoreCase(Utils.URL_POSCLIENT)) {\n whID = timeline.getJSONObject(0).getString(\"wh_id\");\n groupCode = timeline.getJSONObject(0).getString(\"group_code\");\n Utils.saveString(BackgrodBaseActivity.this, timeline.getJSONObject(0).getString(\"wh_id\").toString(), \"wh_id\");\n\n // String[] xyz = {\"company_name\", \"wh_name\", \"wh_id\", \"group_code\", \"tax_type\",\"tax_per\", \"curr_code\", \"pymt_code\", \"header_info\", \"footer_info\", \"absorb_tax\"};\n Utils.saveJSONArray(BackgrodBaseActivity.this, \"server\", \"key\", timeline);\n\n Utils.saveMap(getApplicationContext(), Utils.jsonToMap(timeline.getJSONObject(0)), \"getPOSClient\");\n Log.d(\"saved\", \"\" + whID);\n\n } else if (intUrls.equalsIgnoreCase(\"woImg\")) {\n jsBtnWoimg = new JSONArray();\n jsBtnWoimg = timeline;\n\n //Utils.saveJSONArray(getApplicationContext(), \"pages\", \"1\", timeline);\n\n }\n\n\n } catch (Exception exception) {\n Log.d(\"this error\", \"\" + exception);\n\n }\n\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, Throwable throwable, JSONObject errorResponse) {\n // Utils.alertDialogShow(getApplicationContext(), \"Error\", \" Connection refused\", 0);\n }\n\n\n @Override\n public void onFinish() {\n progressDialog.dismiss();\n if (intUrls.equalsIgnoreCase(Utils.URL_POSCLIENT)) {\n\n String urlMtds = Utils.INTIALSTRI + Utils._MEALGROUP + Utils.COMPCODE + \"&whid=\" + Utils.getString(BackgrodBaseActivity.this, \"wh_id\") + \"&mealid=\" + MealID + \"&regcode=\" + tsdArr.get(4) + \"&date=\" + Utils.currenDate();\n Log.d(\"urrrl2\", urlMtds);\n frstUrl(urlMtds, \"Meal GROUP\");\n } else if (intUrls.equalsIgnoreCase(\"woImg\")) {\n String urlMtds = Utils.INTIALSTRI + Utils._FULLDETAILS + Utils.COMPCODE + \"&paramgroup_code=\" + MealGroup;\n frstUrl(urlMtds, \"FULL DETAILS\");\n Log.d(\"urrrl3\", urlMtds);\n }\n\n\n }\n });\n\n\n }", "static final /* synthetic */ void m50994c(ane ane, Map map) {\n String str = (String) map.get(\"urls\");\n if (TextUtils.isEmpty(str)) {\n acd.m45783e(\"URLs missing in canOpenURLs GMSG.\");\n return;\n }\n String[] split = str.split(\",\");\n HashMap hashMap = new HashMap();\n PackageManager packageManager = ane.getContext().getPackageManager();\n for (String str2 : split) {\n String[] split2 = str2.split(\";\", 2);\n boolean z = true;\n if (packageManager.resolveActivity(new Intent(split2.length > 1 ? split2[1].trim() : \"android.intent.action.VIEW\", Uri.parse(split2[0].trim())), 65536) == null) {\n z = false;\n }\n hashMap.put(str2, Boolean.valueOf(z));\n }\n ((C15836lc) ane).mo39809a(\"openableURLs\", (Map<String, ?>) hashMap);\n }", "public void Mini_Parser(){\n Lista_ER Nuevo=null;\n String Nombre=\"\";\n String Contenido=\"\";\n ArrayList<String> tem = new ArrayList<String>();\n //este boleano sirve para concatenar la expresion regular\n int Estado=0;\n for (int x = 0; x < L_Tokens.size(); x++) {\n switch(Estado){\n //ESTADO 0\n case 0:\n //Conjuntos\n if(L_Tokens.get(x).getLexema().equals(\"CONJ\")){\n if(L_Tokens.get(x+1).getLexema().equals(\":\")){\n if(L_Tokens.get(x+2).getDescripcion().equals(\"Identificador\")){\n //Son conjuntos \n Nombre=L_Tokens.get(x+2).getLexema();\n Estado=1;\n x=x+4;\n }\n }\n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Identificador\")){\n //pasaa estado de expresion regular\n Nombre=L_Tokens.get(x).getLexema();\n Estado=2;\n }\n break;\n \n case 1:\n //ESTADO 1\n //Concatena los conjuntos\n if(L_Tokens.get(x).getDescripcion().equals(\"Identificador\")){\n if(L_Tokens.get(x+1).getDescripcion().equals(\"Tilde\")){\n Contenido=L_Tokens.get(x).getLexema()+L_Tokens.get(x+1).getLexema()+L_Tokens.get(x+2).getLexema();\n L_Tokens_Conj.add(new Lista_Conjuntos(Nombre, Contenido));\n x=x+2;\n Estado=0;\n }\n \n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Digito\")){\n if(L_Tokens.get(x+1).getDescripcion().equals(\"Tilde\")){\n Contenido=L_Tokens.get(x).getLexema()+L_Tokens.get(x+1).getLexema()+L_Tokens.get(x+2).getLexema();\n L_Tokens_Conj.add(new Lista_Conjuntos(Nombre, Contenido));\n x=x+2;\n Estado=0;\n }\n \n }\n for(int i=6;i<=37;i++){\n if(L_Tokens.get(x).getID()==i){\n if(L_Tokens.get(x+1).getDescripcion().equals(\"Tilde\")){\n Contenido=L_Tokens.get(x).getLexema()+L_Tokens.get(x+1).getLexema()+L_Tokens.get(x+2).getLexema();\n L_Tokens_Conj.add(new Lista_Conjuntos(Nombre, Contenido));\n x=x+2;\n Estado=0;\n }\n \n }\n }\n //conjunto sin llaves\n if(L_Tokens.get(x).getLexema().equals(\";\")){\n if(L_Tokens.get(x-1).getLexema().equals(\",\")){\n }else{\n L_Tokens_Conj.add(new Lista_Conjuntos(Nombre, Contenido));\n Estado=0;\n Contenido=\"\";\n\n }\n }else{\n Contenido+=L_Tokens.get(x).getLexema();\n }\n \n\n break;\n case 2:\n //ESTADO 2\n if(L_Tokens.get(x).getLexema().equals(\"-\")){\n if(L_Tokens.get(x+1).getLexema().equals(\">\")){\n //se mira que es expresion regular\n \n Lista_ER nuevo=new Lista_ER(L_Tokens.get(x-1).getLexema());\n Nuevo=nuevo;\n L_Tokens_ER.add(nuevo);\n x++;\n Estado=3;\n }\n }\n if(L_Tokens.get(x).getLexema().equals(\":\")){\n //se mira que es lexema\n Estado=4;\n }\n break;\n case 3: \n //ESTADO 3\n //Concatenacion de Expresion Regular\n \n //System.out.println(\"---------------------------------\"+ L_Tokens.get(x).getLexema());\n if(L_Tokens.get(x).getDescripcion().equals(\"Punto\")){\n Nuevo.setER(L_Tokens.get(x).getLexema());\n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Barra Vetical\")){\n Nuevo.setER(L_Tokens.get(x).getLexema());\n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Interrogacion\")){\n Nuevo.setER(L_Tokens.get(x).getLexema());\n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Asterisco\")){\n Nuevo.setER(L_Tokens.get(x).getLexema());\n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Signo Mas\")){\n Nuevo.setER(L_Tokens.get(x).getLexema());\n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Lexema de Entrada\")){ \n String tem1='\"'+L_Tokens.get(x).getLexema()+'\"';\n Nuevo.setER(tem1);\n \n }\n if(L_Tokens.get(x).getLexema().equals(\"{\")){ \n String tem1=\"\";\n if(L_Tokens.get(x+2).getLexema().equals(\"}\")){\n tem1=L_Tokens.get(x).getLexema()+L_Tokens.get(x+1).getLexema()+L_Tokens.get(x+2).getLexema();\n Nuevo.setER(tem1);\n }\n }\n if(L_Tokens.get(x).getLexema().equals(\";\")){\n Estado=0;\n }\n break;\n case 4:\n// System.out.println(L_Tokens.get(x).getLexema());\n Contenido=L_Tokens.get(x+1).getLexema();\n L_Tokens_Lex.add(new Lista_LexemasE(L_Tokens.get(x-2).getLexema(), Contenido));\n Estado=0;\n \n break;\n }//fin switch\n }//Fin for\n }", "public void AltaCurso(String nombre, String descripcion, String duracion, int cantHoras, int creditos, Date fechaR, String url, String instituto, ArrayList<String> previas, ArrayList<String> categorias, String imagen) throws CursoExcepcion, InstitutoExcepcion;", "public void pullResources(String domainURL){\n URLResource page = new URLResource(\"https://www.dukelearntoprogram.com//course2/data/manylinks.html\");\n \n int startIndex;\n int endIndex;\n // loop through pages\n for (String s : page.lines()){\n \n //System.out.println(s);\n int pose = s.indexOf(domainURL);\n \n // if the url is in the line\n if (-1 != pose) {\n \n startIndex = s.lastIndexOf(\"\\\"\",pose); // find actual start\n endIndex = s.indexOf(\"\\\"\",pose+1); // find end\n \n System.out.println( s.substring(startIndex, endIndex));\n \n \n \n }\n \n \n }\n}", "private static String[] AddCorsa(int i) {\r\n Scanner scanner = new Scanner(System.in);\r\n String[] Corsa;\r\n String orari = \"\";\r\n System.out.println(\"Inserisci gli orari della corsa \" + i + \"(:ogni orario deve essere diviso da una ,)\");\r\n orari = scanner.nextLine();\r\n orari+=\", \";\r\n Corsa = orari.split(\",\");\r\n return Corsa;\r\n }", "@Override\n\tpublic void rotiereNachLinks() {\n\n\t}", "public List<String> getUris()\r\n/* 125: */ {\r\n/* 126:129 */ return this.uris;\r\n/* 127: */ }", "public static List<String> getRequestUrl(Document doc,String currenturl){\n\t\tList<String> urls = new ArrayList<String>();\n\t\tElements eles = doc.select(\".clsTRSNavigatorDIV a\");\n\t\tfor(Element e:eles){\n\t\t\tif(NewsUtils.ifNumbers(e.ownText().trim()) && !e.ownText().trim().equals(\"1\")){\n\t\t\t\turls.add(currenturl.substring(0, currenturl.lastIndexOf('.'))\n\t\t\t\t\t\t+\"_\"+(Integer.valueOf(e.ownText().trim())-1)\n\t\t\t\t\t\t+currenturl.substring(currenturl.lastIndexOf('.')));\n\t\t\t}\n\t\t}\n\t\treturn urls;\n\t}", "public static void list_1_get() throws IOException{ \n\t\tlong current=0;\n\t\tlong start=System.currentTimeMillis();\n\t\tDocument doc=doc_get(\"http://www.yihaodian.com/product/listAll.do\"); \n\t\tif(doc!=null){\n\t\t\t\t\t\t\t\t\t //div>.allsort.sortwidth>div.fl>\n\t\t\t\t\t\t\t\t\t //div>.allsort.sortwidth>div.fr>\t\t\t\t\t\t\t\t\t\n\t\t\tElements links=doc.select(\"div>.allsort.sortwidth>div>div.alonesort\"); \n\t\t\tSystem.out.println(\"==========BEGIN================\");\n \n\t\t\tfor(Element link_alonesort:links){//get first class panel\n\t\t\t\tElements link_mt= link_alonesort.select(\"div.mt\");//first class property\n\t\t\t\t\n\t\t\t\t//----------\n\t\t\t\tSystem.out.println(\"-------------------------------------------------------------FIRST CLASS----------------------------------------------------------------------------\"); \n\t\t\t\tSystem.out.println(link_mt.text());\n\t\t\t\tTxtWriter.appendToFile(\"-------------------------------------------------------------FIRST CLASS----------------------------------------------------------------------------\",new File(\"File/idlist.txt\"));\n\t\t\t\tTxtWriter.appendToFile(link_mt.text(),new File(\"File/idlist.txt\"));\n\t\t\t\t//----------\n\t\t\t\t\n\t\t\t\tElements link_fores= link_alonesort.select(\"div.mc>dl\");\n\t\t\t\t/**BEGIN*******get second class panel**/\n\t\t\t\tfor(Element link_fore:link_fores){ \n\n\t\t\t\t\tElements link_dds=link_fore.select(\"dd\");\n\t\t\t\t\t/**BEGIN*******get second class panel**/\n\t\t\t\t\tfor(Element link_dd:link_dds){ \n\t\t\t\t\t\t\n\t\t\t\t\t\tElement link_dt=link_dd.parent().select(\"dt>a\").first();//second class property\n\t\t\t\t\t\t\n\t\t\t\t\t\t//----------\n\t\t\t\t\t\tSystem.out.println(\"---------------------------SECOND CLASS-------------------\");\n\t\t\t\t\t\tSystem.out.println(link_dt.text()); \n\t\t\t\t\t\tTxtWriter.appendToFile(\"---------------------------SECOND CLASS-------------------\",new File(\"File/idlist.txt\"));\n\t\t\t\t\t\tTxtWriter.appendToFile(link_dt.text()+\"---\"+link_dt.absUrl(\"href\"),new File(\"File/idlist.txt\"));\n\t\t\t\t\t\t//----------\n\t\t\t\t\t\t\n\t\t\t\t\t\tElements link_as=link_dd.select(\"em>span>a\"); //third class property \n\t\t\t\t\t\t/**BEGIN*******get third class panel**/\n\t\t\t\t\t\tfor(Element link_a:link_as){//get forth class panel\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//----------\n\t\t\t\t\t\t\tSystem.out.println(\"-------------------------------CLASS THREE BEGIN -------------------\"); \n\t\t\t\t\t\t\tSystem.out.println(link_a.text()+\"---\"+link_a.absUrl(\"href\")); //third class property \n\t\t\t\t\t\t\tTxtWriter.appendToFile(\"-------------------------------CLASS THREE BEGIN -------------------\",new File(\"File/idlist.txt\"));\n\t\t\t\t\t\t\tTxtWriter.appendToFile(link_a.text()+\"---\"+link_a.absUrl(\"href\"),new File(\"File/idlist.txt\"));\n\t\t\t\t\t\t\t//----------\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint count=1;//count of page\n\t\t\t\t\t\t\tint repeat=0;//count of repeat items\n//\t\t\t\t\t\t\t/**版本三*/\n//\t\t\t\t\t\t\tString [] strListBackup = {};\n\t\t\t\t\t\t\tList<String> list=new ArrayList<String>();\n\t\t\t\t\t\t\twhile(true){ \n\t\t\t\t\t\t\t\tSystem.out.println(link_a.absUrl(\"href\")+\"b0/a-s1-v0-p\"+String.valueOf(count)+\"-price-d0-f04-m1-rt0-pid-k/\");\n\t\t\t\t\t\t\t\tString [] strList=productsIdList_get(\n\t\t\t\t\t\t\t\t\t\tlink_a.absUrl(\"href\")+\"b0/a-s1-v0-p\"\n\t\t\t\t\t\t\t\t\t\t+String.valueOf(count++)+\"-price-d0-f04-m1-rt0-pid-k/\"); \n\t\t\t\t\t\t\t\tSystem.out.println(list);//输出列表\n\t\t\t\t\t\t\t\tfor(int i=0;i<strList.length;i++){\n\t\t\t\t\t\t\t\t\tif(list.contains(String.valueOf(strList[i]))==false){\n\t\t\t\t\t\t\t\t\t\tlist.add(String.valueOf(strList[i]));\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\trepeat++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif(repeat>=50) //临界值\n\t\t\t\t\t\t\t\t\trepeat=0;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//写入文件\n\t\t\t\t\t\t\t\tfor(int i=0;i<list.size()&&list.size()>0;i++){\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tTxtWriter.appendToFile(list.get(i),new File(\"File/idlist.txt\"));\n\t\t\t\t\t\t\t\t\t\tcurrent++;\n\t\t\t\t\t\t\t\t\t} catch (IOException e) { \n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\tcurrent+=list.size();\n\t\t\t\t\t\t\t\tlist.clear();\n\t\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\tSet<String> set=new HashSet<String>();\n//\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\twhile(true){ \n//\t\t\t\t\t\t\t\t\n////\t\t\t\t\t\t\t\tSystem.out.println(link_a.absUrl(\"href\")+\"/b0/a-s1-v0-p\"\n////\t\t\t\t\t\t\t\t\t\t+String.valueOf(count)+\"-price-d0-f04-m1-rt0-pid-k/\"); \n////\t\t\t\t\t\t\t\thttp://www.yihaodian.com/ctg/s2/c5228-%E9%A5%AE%E7%94%A8%E6%B0%B4/b0/a-s1-v0-p2-price-d0-f04-m1-rt0-pid-k/\n//\t\t\t\t\t\t\t\tString [] strList=productsIdList_get( link_a.absUrl(\"href\")\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+\"b0/a-s1-v0-p\"\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+String.valueOf(count)\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+\"-price-d0-f04-m1-rt0-pid-k/\");\n//\t\t\t\t\t\t\t\tSystem.out.println(Arrays.toString(strList));\n//\t\t\t\t\t\t\t\tfor(int i=0;i<strList.length;i++){\n//\t\t\t\t\t\t\t\t\tif(set.contains(strList[i])==false){\n//\t\t\t\t\t\t\t\t\t\tset.add(strList[i]);\n//\t\t\t\t\t\t\t\t\t}else{ \n//\t\t\t\t\t\t\t\t\t\trepeat++;\n//\t\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t} \n//\t\t\t\t\t\t\t\tif(repeat>=10){\n//\t\t\t\t\t\t\t\t\tbreak;\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t} \n//\t\t\t\t\t\t\tIterator<String> iterator=set.iterator();\n\n//\t\t\t\t\t\t\twhile(iterator.hasNext()){ \n//\t\t\t\t\t\t\t\t\ttry {\n//\t\t\t\t\t\t\t\t\t\tTxtWriter.appendToFile(iterator.next(),new File(\"File/idlist.txt\"));\n//\t\t\t\t\t\t\t\t\t} catch (IOException e) {\n//\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n//\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n//\t\t\t\t\t\t\t\t\t} \n//\t\t\t\t\t\t\t \n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\tSystem.out.println(\"写入完成\");\n//\t\t\t\t\t\t\tset.clear();\n//\t\t\t\t\t\t\t\n//\n//\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\t/**版本一\n//\t\t\t\t\t\t\tfor(int i=1;i<50;i++){\n//\t\t\t\t\t\t\t\tSystem.out.println(\n//\t\t\t\t\t\t\t\t\t\tlink_a.absUrl(\"href\")+\"b0/a-s1-v0-p\"\n//\t\t\t\t\t\t\t\t\t\t+String.valueOf(i)+\"-price-d0-f04-m1-rt0-pid-k/\");\n//\t\t\t\t\t\t\t\tString [] strList=productsIdList_get(\n//\t\t\t\t\t\t\t\t\t\tlink_a.absUrl(\"href\")+\"b0/a-s1-v0-p\"\n//\t\t\t\t\t\t\t\t\t\t+String.valueOf(i)+\"-price-d0-f04-m1-rt0-pid-k/\");\n//\t\t\t\t\t\t\t\tfor(int j=0;j< strList.length;j++){\n//\t\t\t\t\t\t\t\t\ttry {\n//\t\t\t\t\t\t\t\t\t\tTxtWriter.appendToFile(strList[j],new File(\"File/idlist.txt\"));\n//\t\t\t\t\t\t\t\t\t} catch (IOException e) { \n//\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n//\t\t\t\t\t\t\t\t\t} \n//\t\t\t\t\t\t\t\t} \n//\t\t\t\t\t\t\t\ttry {\n//\t\t\t\t\t\t\t\t\tThread.sleep(2000);\n//\t\t\t\t\t\t\t\t} catch (InterruptedException e) {\n//\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n//\t\t\t\t\t\t\t\t\te.printStackTrace();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t}*/\n//\t\t\t\t\t\t\t/**\n//\t\t\t\t\t\t\t * 版本二*/ \n//\t\t\t\t\t\t\tString [] strListBackup = {};\n//\t\t\t\t\t\t\twhile(true){ \n//\t\t\t\t\t\t\t\tSystem.out.println(link_a.absUrl(\"href\")+\"b0/a-s1-v0-p\"+String.valueOf(count)+\"-price-d0-f04-m1-rt0-pid-k/\");\n//\t\t\t\t\t\t\t\tString [] strList=productsIdList_get(\n//\t\t\t\t\t\t\t\t\t\tlink_a.absUrl(\"href\")+\"b0/a-s1-v0-p\"\n//\t\t\t\t\t\t\t\t\t\t+String.valueOf(count)+\"-price-d0-f04-m1-rt0-pid-k/\");\n//\t\t\t\t\t\t\t\tcount++;\n//\t\t\t\t\t\t\t\tif(compareTo(strListBackup,strList)==false){//不相似\n//\t\t\t\t\t\t\t\t\tstrListBackup=strList;\n//\t\t\t\t\t\t\t\t}else{//相似\n//\t\t\t\t\t\t\t\t\tbreak;\n//\t\t\t\t\t\t\t\t} \n//\t\t\t\t\t\t\t\t//写入文件\n//\t\t\t\t\t\t\t\tfor(int i=0;i< strList.length;i++){\n//\t\t\t\t\t\t\t\t\ttry {\n//\t\t\t\t\t\t\t\t\t\tTxtWriter.appendToFile(strList[i],new File(\"File/idlist.txt\"));\n//\t\t\t\t\t\t\t\t\t\tcurrent++;\n//\t\t\t\t\t\t\t\t\t} catch (IOException e) { \n//\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n//\t\t\t\t\t\t\t\t\t} \n//\t\t\t\t\t\t\t\t} \n//\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\n//\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t/**BEGIN*******get third class panel**/\n//\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t/**END********get second class panel*************/ \n//\t\t\t\t\tbreak;\n\t\t\t\t} \n\t\t\t\t/**END********get first class panel*************/ \n\t\t\t\tSystem.out.println(\"++++++++++++++++++++++++++++++++++++++++++\");\n//\t\t\t\tbreak;\n\t\t\t} \n\t\t\t//总数\n\t\t\tSystem.out.println(\"总数\"+current);\n\t\t\tTxtWriter.appendToFile(String.valueOf(current),new File(\"File/idlist.txt\"));\n\t\t\t//耗时\n\t\t\tlong end=System.currentTimeMillis();\n\t\t\tTxtWriter.appendToFile(\"耗时:\"+(end-start)+\"ms\",new File(\"File/idlist.txt\"));\n\t\t\tSystem.out.println(\"===========END==================\");\n\t\t}else{\n\t\t\tSystem.out.println(\"Error\");\n\t\t}\n\t}", "public static String leerJSONDesdeUrl(String urlALeer) {\n URL url = null;\n StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();\n StrictMode.setThreadPolicy(policy);\n BufferedReader br_delaurl = null;\n String todo = \"\";\n try {\n url = new URL(urlALeer);\n br_delaurl = new BufferedReader(new InputStreamReader(url.openStream()));\n String linea;\n while ((linea = br_delaurl.readLine()) != null) {\n todo += linea;\n }\n } catch (Exception e) {\n e.printStackTrace();\n todo = null;\n } finally {\n if (br_delaurl != null) {\n try {\n br_delaurl.close();\n } catch (IOException e) {\n e.printStackTrace();\n todo = null;\n }\n }\n return todo;\n }\n }", "List<DownloadInfo> mo54404a(String str);", "public ArrayList<DataRestaurante> listarRestaurantes(String patron) throws Exception;", "@Override\n public HashSet<String> findPostIds() throws IOException {\n HashSet<String> postId = new HashSet();\n Document document = Jsoup.connect(\"https://www.bd-pratidin.com/\").userAgent(\"Opera\").get();\n Element body = document.body();\n\n Elements posts = body.getElementsByClass(\"home-latest-news\").first().getElementsByTag(\"a\");\n for (int i=0;i<20;i++) {\n String link = posts.get(i).attr(\"href\");\n postId.add(link);\n }\n return postId;\n }", "public String getUrl(){\n return urlsText;\n }", "protected String cargarEnfermedadCronica(String url, String username,\n String password) throws Exception {\n try {\n if(mEnfermedades.size()>0){\n // La URL de la solicitud POST\n final String urlRequest = url + \"/movil/enfermedadescro\";\n EnfermedadCronica[] envio = mEnfermedades.toArray(new EnfermedadCronica[mEnfermedades.size()]);\n HttpHeaders requestHeaders = new HttpHeaders();\n HttpAuthentication authHeader = new HttpBasicAuthentication(username, password);\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n requestHeaders.setAuthorization(authHeader);\n HttpEntity<EnfermedadCronica[]> requestEntity =\n new HttpEntity<EnfermedadCronica[]>(envio, requestHeaders);\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.getMessageConverters().add(new StringHttpMessageConverter());\n restTemplate.getMessageConverters().add(new MappingJacksonHttpMessageConverter());\n // Hace la solicitud a la red, pone la vivienda y espera un mensaje de respuesta del servidor\n ResponseEntity<String> response = restTemplate.exchange(urlRequest, HttpMethod.POST, requestEntity,\n String.class);\n return response.getBody();\n }\n else{\n return \"Datos recibidos!\";\n }\n } catch (Exception e) {\n Log.e(TAG, e.getMessage(), e);\n return e.getMessage();\n }\n }", "static Collection<Pair<String, String>> getUrlMethodArgs(String... value) {\n\t\tList<Pair<String, String>> pairs = new ArrayList<Pair<String, String>>();\n\t\tfor (String p : value) {\n\t\t\tpairs.add(Pair.p(hashOrUrl(p), p));\n\t\t}\n\t\treturn pairs;\n\t}", "private static URL buildURL(List<String> args) throws MalformedURLException {\n\n\t\tfinal String IDList = args.stream().map(id -> id.toString() + \",\").reduce(\"\", String::concat);\n\n\t\treturn new URL(String.format(BASE_URL, IDList));\n\t}", "List<Videogioco> retriveByPiattaforma(String piattaforma);", "private void ListarFilmes(String sURL, String classMovie) throws IOException {\n\t\tURL url = new URL(sURL);\n\t\tURLConnection json = url.openConnection();\n\t\tjson.connect();\n\n\t\t// Convert to a JSON object to print data\n\t\tJsonParser jp = new JsonParser();\n\t\tJsonElement root = jp.parse(new InputStreamReader((InputStream) json.getContent()));// {\"items\":[{\"id\":\"tt0111161\"\n\t\tJsonObject rootobj = root.getAsJsonObject();\n\t\tJsonElement code = rootobj;\n\t\tGson gson = new GsonBuilder().create();\n\t\tJsonArray jsonArray = rootobj.getAsJsonArray(\"results\");\n\n\t\t// Array de filmes convertido para Array\n\t\tTmdbRecomendados[] arrayFilmes = gson.fromJson(jsonArray, TmdbRecomendados[].class);\n\n\t\t// Lista para comparar cadastros no banco\n//\t\tArrayList<TmdbRecomendados> listaVerifica = recDao.selectAllrecs();\n\n\t\tif (classMovie == \"recomendados\") {\n\t\t\tlistaFilmes.LimparLista();\n\t\t} else if (classMovie == \"emAlta\") {\n\t\t\tlistaEmAlta.LimparLista();\n\t\t} else if (classMovie == \"originais\") {\n\t\t\tlistaOriginais.LimparLista();\n\t\t}\n\n\t\t// Adicionando filmes para uma lista e salvando no banco\n\t\tfor (int i = 0; i < arrayFilmes.length; i++) {\n\t\t\tTmdbRecomendados rec = new TmdbRecomendados();\n\t\t\trec.setId(arrayFilmes[i].getId());\n\t\t\trec.setMedia_type(arrayFilmes[i].getMedia_type());\n\t\t\trec.setOriginal_language(arrayFilmes[i].getOriginal_language());\n//\t\t\tif (arrayFilmes[i].getOriginal_title() == null || arrayFilmes[i].getOriginal_title() == \"\") {\n//\t\t\t\trec.setOriginal_title(arrayFilmes[i].getOriginal_name());\n//\t\t\t} else {\n//\t\t\t\trec.setOriginal_title(arrayFilmes[i].getOriginal_title());\n//\t\t\t}\n\t\t\trec.setOriginal_title(arrayFilmes[i].getOriginal_title());\n\t\t\trec.setOverview(arrayFilmes[i].getOverview());\n\t\t\trec.setPoster_path(arrayFilmes[i].getPoster_path());\n\t\t\trec.setRelease_date(arrayFilmes[i].getRelease_date());\n\t\t\trec.setVote_average(arrayFilmes[i].getVote_average());\n//\t\t\tif (arrayFilmes[i].getOriginal_name() == null || arrayFilmes[i].getOriginal_name() == \"\") {\n//\t\t\t\trec.setOriginal_name(arrayFilmes[i].getOriginal_title());\n//\t\t\t} else {\n//\t\t\t\trec.setOriginal_name(arrayFilmes[i].getOriginal_name());\n//\t\t\t}\n\t\t\trec.setOriginal_name(arrayFilmes[i].getOriginal_name());\n\n\t\t\tif (classMovie == \"recomendados\") {\n\t\t\t\tlistaFilmes.AddListaFilmes(rec);\n\t\t\t} else if (classMovie == \"emAlta\") {\n\t\t\t\tlistaEmAlta.AddListaFilmes(rec);\n\t\t\t} else if (classMovie == \"originais\") {\n\t\t\t\tlistaOriginais.AddListaFilmes(rec);\n\t\t\t}\n\n\t\t}\n\t}", "public void getTheDiaries() {\r\n\t\t// Future DiaryParser class for permanent Storage\r\n\t\t// /Demo///\r\n\r\n\t\t// Diary d1 = new Diary(diaryName, diaryBasicUrl, displayType,\r\n\t\t// commentsPage, showComments, nextButton, titleRegEx, subtitleRegEx,\r\n\t\t// authorRegEx, dateRegEx, diaryNameRegEx, commentaryRegEx,\r\n\t\t// commentNumberRegEx, commentAuthorRegEx, commentTimeRegEx,\r\n\t\t// commentTextRegEx);\r\n\r\n\t\tDiary elMundo = new Diary(\"El Mundo\", \"www.elmundo.es\", null, null,\r\n\t\t\t\t\"//ul[@id='subNavComentarios']//li//a[@id='botonMas']\",\r\n\t\t\t\t\"//h1[@itemprop='headline']\", \"//h3[@itemprop='alternativeHeadline']\",\r\n\t\t\t\t\"//footer/address//span[@itemprop='name']\", \"//footer/time\",\r\n\t\t\t\t\"//div[@id='listado_comentarios']/section/article\",\r\n\t\t\t\t\"header/h1/a[text()]\",\r\n\t\t\t\t\"header/div[@class='autor']/span[text()]\", \"header/time\",\r\n\t\t\t\t\"div[@class='texto-comentario']/p[text()]\");\r\n\r\n\t\t// Diary d = new Diary(diaryName, diaryBasicUrl, commentsPage,\r\n\t\t// showComments, nextButton, titleRegEx, subtitleRegEx, authorRegEx,\r\n\t\t// dateRegEx, commentaryRegEx, commentNumberRegEx, commentAuthorRegEx,\r\n\t\t// commentTimeRegEx, commentTextRegEx)\r\n\r\n\t\t//OLD EL PAIS\r\n//\t\tDiary elPais = new Diary(\"El Pais\", \"elpais.com\",\r\n//\t\t\t\t\"//div[@class='encabezado estirar']/a[@class='conversacion']\",\r\n//\t\t\t\tnull, null,\r\n//\t\t\t\t\"//h1[@id='titulo_noticia']\",\r\n//\t\t\t\t\"//div[@id='subtitulo_noticia']/h2\",\r\n//\t\t\t\t\"//span[@class='firma']/span[@class='autor']/a\",\r\n//\t\t\t\t\"//span[@class='firma']/a[@class='actualizado']\",\r\n//\t\t\t\t\"//div[@class='mensajes']/div\", \"\", // Provisional\r\n//\t\t\t\t\"div/div/div//p\", \"div//span[@class='fecha']\", \r\n//\t\t\t\t\"div//div[@class='contenedorcolumnas']/div[@class='comentario']/p\");\r\n\t\t\r\n\t\tDiary elPais = new Diary(\r\n\t\t\t\t\"El Pais\", \r\n\t\t\t\t\"elpais.com\",\r\n\t\t\t\t\"//div[@class='contenido']/iframe\",\r\n\t\t\t\tnull, \r\n\t\t\t\t\"//a[@class='flecha'][contains(@title,' siguiente')]\",\r\n\t\t\t\t\"//h1[@id='titulo_noticia']\",\r\n\t\t\t\t\"//div[@id='subtitulo_noticia']/h2\",\r\n\t\t\t\t\"//span[@class='firma']/span[@class='autor']/a\",\r\n\t\t\t\t\"//span[@class='firma']/a[@class='actualizado']\",\r\n\t\t\t\t\"//div[@class='comentario']\", \r\n\t\t\t\t\"\", // Provisional\r\n\t\t\t\t\"p[@class='autor']\", \r\n\t\t\t\t\"div//span[@class='fecha']\", \r\n\t\t\t\t\"p[contains(@id,'contenidomensaje_')]\");\r\n\r\n\t\tDiary veinteMinutos = new Diary(\r\n\t\t\t\t\"20 Minutos\",\r\n\t\t\t\t\"20minutos.es\",\r\n\t\t\t\tnull,\r\n\t\t\t\tnull,\r\n\t\t\t\t\"//div[@class='fyre-stream-more-container']\",\r\n\t\t\t\t\"//div[@id='content']/div[@class='article inner']/h1\",\r\n\t\t\t\t\"//div[@id='content']/div[@class='article inner']/div[@class='lead']/ul/li[1]\",\r\n\t\t\t\t\"//div[@id='content']/div[@class='article inner']/ul[@class='article-author']/li\",\r\n\t\t\t\t\"//div[@id='content']/div[@class='article inner']/ul[@class='article-author']/li/a\",\r\n\t\t\t\t\"//div[@class='fyre-comment-wrapper' and not(contains(@style, 'display: none;'))]\",\r\n\t\t\t\t\"\",\r\n\t\t\t\t\"header//span[@itemprop='author']\",\r\n\t\t\t\t\"header//time[@class='fyre-comment-date']\",\r\n\t\t\t\t\"section//div[@class='fyre-comment']/p\");\r\n\t\t\r\n\r\n\t\tthis.diaries.add(elMundo);\r\n\t\tthis.diaries.add(elPais);\r\n\t\tthis.diaries.add(veinteMinutos);\r\n\t}", "@Override\n\tpublic Collection<URL> getUrlsToFilter() {\n\t\tSet<URL> filterSet = new HashSet<URL>();\n\t\tString url=\"http://www.infoq.com/news/2012/11/Panel-WinRT-Answers;jsessionid=91AB81A159E85692E6F1199644E2053C \";\n\t\tfilterSet.add(URL.valueOf(url));\n\t\treturn filterSet;\n\t}", "private String getJiaoDaUrl(MesItemHolder holder) {\n StringBuilder url = new StringBuilder(holder.getBaseUrl());\n if(holder.isPull()){\n url.append(\"?modcode=jygl_xjhxxck&subsyscode=zpfw&type=searchXjhxx&xjhType=all\");\n }else{\n\n url.append(\"?ype=goPager&requestPager=pager&pageMethod=next&currentPage=\"+(holder.getPager()-1));\n }\n return url.toString();\n }", "private List<URL> getJsonUrls(\n TreeLogger treeLogger,\n URL[] urls\n ) throws UnableToCompleteException {\n List<URL> jsonUrls = new ArrayList<>();\n for (URL url : urls) {\n\n jsonUrls.add(url);\n\n /**\n * check if filename is in format that could indicate that we have\n * url series <resourceName>_0.json\n */\n final RegExp compile = RegExp.compile(\"(.+)_(\\\\d+)\\\\.(\\\\w+)\");\n final MatchResult exec = compile.exec(url.getPath().substring(url.getPath().lastIndexOf(\"/\") + 1));\n if (exec != null) {\n final String filePrefix = exec.getGroup(1);\n int fileSequenceIndex = Integer.valueOf(exec.getGroup(2));\n final String fileExtension = exec.getGroup(3);\n URL siblingUrl = null;\n\n try {\n while (true) {\n String siblingUri = filePrefix + \"_\" + (++fileSequenceIndex) + \".\" + fileExtension;\n siblingUrl = new URL(url, siblingUri);\n siblingUrl.openStream();\n if (!jsonUrls.contains(siblingUrl)) {\n jsonUrls.add(siblingUrl);\n }\n }\n } catch (MalformedURLException e) {\n treeLogger.log(TreeLogger.ERROR, \"Reading of sibling texture atlas failed \", e);\n throw new UnableToCompleteException();\n } catch (IOException e) {\n if (Objects.equals(siblingUrl, url)) {\n treeLogger.log(TreeLogger.ERROR, \"Reading of sibling texture atlas failed \", e);\n throw new UnableToCompleteException();\n } else {\n // all siblings found process is finished\n }\n }\n }\n }\n return jsonUrls;\n }", "public void listarAlunosNaDisciplina(){\r\n for(int i = 0;i<alunos.size();i++){\r\n System.out.println(alunos.get(i).getNome());\r\n }\r\n }", "private String creaElenco() {\n String testoTabella ;\n String riga = CostBio.VUOTO;\n ArrayList listaPagine = new ArrayList();\n ArrayList listaRiga;\n HashMap mappaTavola = new HashMap();\n String cognomeText;\n int num;\n int taglioPagine = Pref.getInt(CostBio.TAGLIO_COGNOMI_PAGINA);\n String tag = \"Persone di cognome \";\n ArrayList titoli = new ArrayList();\n titoli.add(LibWiki.setBold(\"Cognome\"));\n titoli.add(LibWiki.setBold(\"Voci\"));\n\n for (Map.Entry<String, Integer> mappa: mappaCognomi.entrySet()) {\n\n cognomeText = mappa.getKey();\n num = mappa.getValue();\n if (num >= taglioPagine) {\n cognomeText = tag + cognomeText + CostBio.PIPE + cognomeText;\n cognomeText = LibWiki.setQuadre(cognomeText);\n cognomeText = LibWiki.setBold(cognomeText);\n }// end of if cycle\n\n listaRiga = new ArrayList();\n listaRiga.add(cognomeText);\n listaRiga.add(num);\n listaPagine.add(listaRiga);\n\n }// end of for cycle\n mappaTavola.put(Cost.KEY_MAPPA_SORTABLE_BOOLEAN, true);\n mappaTavola.put(Cost.KEY_MAPPA_TITOLI, titoli);\n mappaTavola.put(Cost.KEY_MAPPA_RIGHE_LISTA, listaPagine);\n testoTabella = LibWiki.creaTable(mappaTavola);\n\n return testoTabella;\n }", "private String urlShort(String url){\n\n\t\treturn null;\n\t}", "private IDictionary<URI, ISet<URI>> makeGraph(ISet<Webpage> webpages) {\n IDictionary<URI, ISet<URI>> graph = new ArrayDictionary<URI, ISet<URI>>();\n ISet<URI> webpageUris = new ChainedHashSet<URI>();\n for (Webpage webpage : webpages) {\n \twebpageUris.add(webpage.getUri());\n }\n for (Webpage webpage : webpages) {\n \tURI pageUri = webpage.getUri();\n \tISet<URI> links = new ChainedHashSet<URI>();\n \tfor (URI uri : webpage.getLinks()) {\n \t\tif (!uri.equals(pageUri) && !links.contains(uri) && webpageUris.contains(uri)) {\n \t\t\tlinks.add(uri);\n \t\t}\n \t}\n \tgraph.put(pageUri, links);\n }\n return graph;\n }", "public Boolean validatorURL(final Collection<String> lista) {\n\t\tBoolean res = false;\n\t\tif (!lista.isEmpty()) {\n\t\t\tfor (final String aux : lista)\n\t\t\t\tif (aux.length() > 11) {\n\t\t\t\t\tif ((aux.subSequence(0, 11).equals(\"http://www.\") || (aux.subSequence(0, 12).equals(\"https://www.\"))))\n\t\t\t\t\t\tres = true;\n\t\t\t\t\telse {\n\t\t\t\t\t\tres = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tres = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t} else\n\t\t\tres = true;\n\n\t\treturn res;\n\t}", "protected String cargarLactanciasMaternas(String url, String username,\n String password) throws Exception {\n try {\n getLactanciasMaternas();\n if(mLactanciasMaternas.size()>0){\n // La URL de la solicitud POST\n saveEncLactancias(Constants.STATUS_SUBMITTED);\n final String urlRequest = url + \"/movil/lactmaterna\";\n LactanciaMaterna[] envio = mLactanciasMaternas.toArray(new LactanciaMaterna[mLactanciasMaternas.size()]);\n HttpHeaders requestHeaders = new HttpHeaders();\n HttpAuthentication authHeader = new HttpBasicAuthentication(username, password);\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n requestHeaders.setAuthorization(authHeader);\n HttpEntity<LactanciaMaterna[]> requestEntity =\n new HttpEntity<LactanciaMaterna[]>(envio, requestHeaders);\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.getMessageConverters().add(new StringHttpMessageConverter());\n restTemplate.getMessageConverters().add(new MappingJacksonHttpMessageConverter());\n // Hace la solicitud a la red, pone la vivienda y espera un mensaje de respuesta del servidor\n ResponseEntity<String> response = restTemplate.exchange(urlRequest, HttpMethod.POST, requestEntity,\n String.class);\n // Regresa la respuesta a mostrar al usuario\n if (!response.getBody().matches(\"Datos recibidos!\")) {\n saveEncLactancias(Constants.STATUS_NOT_SUBMITTED);\n }\n return response.getBody();\n }\n else{\n return \"Datos recibidos!\";\n }\n } catch (Exception e) {\n Log.e(TAG, e.getMessage(), e);\n saveEncLactancias(Constants.STATUS_NOT_SUBMITTED);\n return e.getMessage();\n }\n\n }", "public Recurso(int nNivel, String nDescripcion, String nUrl, String nimgUrl){\n\t\ttipo = IMAGEN;\n\t\tdescripcion = nDescripcion;\n\t\turl = nUrl;\n\t\timgUrl = nimgUrl;\n\t\tnivel = nNivel;\n\t}", "void countPaths (int inicio) {\r\n\t\tint n = lisAdy.keySet().size();\r\n\t\tint paths[] = new int[n];\r\n\t\tvisitados = new boolean[n];\r\n\t\tcola = new ArrayDeque<> ();\r\n\t\t\r\n\t\ttoposort(inicio);\r\n\t\tpaths[inicio] = 1;\r\n\t\tfor (int i : cola) {\r\n\t\t\tfor (int v : lisAdy.get(i)) \r\n\t\t\t\tpaths[v] += paths[i];\r\n\t\t}\r\n\t}", "public ArrayList<String> webCrawling(){\n\t\t\tfor(i=780100; i<790000; i++){\r\n\t\t\t\ttry{\r\n\t\t\t\tdoc = insertPage(i);\r\n\t\t\t\t//Thread.sleep(1000);\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\tif(doc != null){\r\n\t\t\t\t\tElement ele = doc.select(\"div.more_comment a\").first();\r\n\t\t\t\t\t//System.out.println(ele.attr(\"href\"));\r\n\t\t\t\t\tcommentCrawling(ele.attr(\"href\"));//��۸�� ���� ��ũ\r\n\t\t\t\t\tcommentCrawlingList(commentURList);\r\n\t\t\t\t\tcommentURList = new ArrayList<String>();//��ũ ����� �ߺ��ǰ� ���̴� �� �����ϱ� ���� �ʱ�ȭ �۾�\r\n\t\t\t\t\tSystem.out.println(i+\"��° ������\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn replyComment;\r\n\t\t//return urlList.get(0);\r\n\t}", "public void fetcherLesEo() {\r\n\t\r\n\t// Commence par fetcher les params ... et si Ok, fetche les EO !\r\n\tif (recupererValParams() && valParams != null) {\r\n\r\n\t NSArray bindings = new NSArray(valParams);\r\n\t EOQualifier qualifier = EOQualifier.qualifierWithQualifierFormat(chaineQualif, bindings);\r\n\t EOFetchSpecification fetchSpec = new EOFetchSpecification(nomEntite,qualifier, eoSortOrderings);\r\n\r\n\t fetchSpec.setRefreshesRefetchedObjects(true);\r\n\r\n\t NSArray res = null;\r\n\t res = monEc.objectsWithFetchSpecification(fetchSpec);\r\n\t listeEOFetches = res;\r\n\t \r\n\t // si on demande � ce qu'� l'init il n'y ait pas de ligne s�lectionn�e par d�faut, alors pas d'Item choisi (en cascade)\r\n\t if (noSelectionPossible) setItemChoisi(null);\r\n\t else {\r\n\t\tif (listeEOFetches != null && listeEOFetches.count() > 0)\r\n\t\t setItemChoisi((EOGenericRecord)listeEOFetches.objectAtIndex(0));\r\n\t\telse setItemChoisi(null);\r\n\t }\r\n\t}\r\n\t// les parametres n'ont pu être récupérés : vider le popUp...\r\n\telse {\r\n listeEOFetches = null;\r\n // pas d'Item choisi (en cascade)\r\n setItemChoisi(null);\r\n\t}\r\n }" ]
[ "0.58445", "0.5714065", "0.56856585", "0.56728715", "0.55616397", "0.5555791", "0.5554998", "0.55035305", "0.54921913", "0.5464617", "0.5455104", "0.5453652", "0.54475725", "0.54015994", "0.53238183", "0.5307859", "0.5289496", "0.52794755", "0.52603483", "0.5257261", "0.52352726", "0.5228486", "0.522719", "0.52270514", "0.52093685", "0.5204878", "0.5191005", "0.51858634", "0.51501626", "0.5147743", "0.5139515", "0.5133706", "0.51257277", "0.5120668", "0.5112632", "0.5106697", "0.51058966", "0.51021904", "0.5099411", "0.50836354", "0.50828266", "0.5076337", "0.5074366", "0.5070932", "0.50510174", "0.504712", "0.50242686", "0.50198036", "0.5017429", "0.5011857", "0.5003993", "0.5003428", "0.49934405", "0.49922597", "0.49892193", "0.4976993", "0.49764192", "0.49695635", "0.4969421", "0.49636894", "0.49628362", "0.49583766", "0.49566498", "0.4955029", "0.49517637", "0.49451932", "0.494039", "0.49319744", "0.49259752", "0.49237528", "0.49222687", "0.4919026", "0.49167487", "0.4915091", "0.4913131", "0.49071103", "0.48988652", "0.4898117", "0.48961484", "0.48937958", "0.48921937", "0.48912445", "0.48894697", "0.48872197", "0.48861378", "0.48840967", "0.48833182", "0.48798296", "0.48723236", "0.48689926", "0.48579574", "0.48577982", "0.48517653", "0.48512307", "0.48507863", "0.48506907", "0.48476982", "0.4847082", "0.48468843", "0.4844023" ]
0.5133079
32
>modulo de consultas >>>>>> Imprime el nivel superior
public void imprimirNivelSuperior(){ modCons.imprimirNivelSuperior(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void subida(){\n // si es mayor a la eperiencia maxima sube de lo contrario no\n if (experiencia>(100*nivel)){\n System.out.println(\"Acabas de subir de nivel\");\n nivel++;\n System.out.println(\"Nievel: \"+nivel);\n }else {\n\n }\n }", "protected void subirDeNivel(int n) //A cada 100 de xp, sobe de nivel\n {\n this.nivel = nivel + n;\n }", "public int cargarCombustible(){ //creamos metodo cargarCombustible\r\n return this.getNivel();//retornara el nivel de ese mecanico\r\n }", "public void exibeMenu() {\n System.out.println(\"Digite o valor referente a operação desejada\");\r\n System.out.println(\"1. Busca Simples\");\r\n System.out.println(\"2. Busca Combinada\");\r\n System.out.println(\"3. Adicionar Personagem Manualmente\");\r\n System.out.println(\"4. Excluir Personagem\");\r\n System.out.println(\"5. Exibir Personagens\");\r\n int opcao = teclado.nextInt();\r\n if(opcao >= 7){\r\n do\r\n {\r\n System.out.println(\"Digite um numero valido\");\r\n opcao = teclado.nextInt();\r\n }while (opcao>=6);\r\n }\r\n ctrlPrincipal.opcaoMenu(opcao);\r\n }", "public void subirNivelAtaque(){\n\tif(contadorNivel==5){\n\t nivelAtaque++;\n\t System.out.println(\"El ataque \"+obtenerNombreAtaque()+\" ha subido de nivel\");\n\t contadorNivel=0;\n\t dano+=5;\n\t} else {\n\t nivelAtaque=nivelAtaque;\n\t}\n }", "public void verificarNivel (int nivel) {\n this.nivelUsuario = nivel;\n }", "public void PagarConsulta() {\n\t\tSystem.out.println(\"el patronato es gratiuto y no necesita pagar \");\r\n\t}", "public void ingresaAdministrativo() {\n\tEstableceDatosAdministrativos();\n\tint cambio=0;\n\tdo {\n\t\t\n\t\ttry {\n\t\t\tsetMontoCredito(Double.parseDouble(JOptionPane.showInputDialog(\"Ingrese el monto del credito (�3 600 000 maximo)\")));\n\t\t\tcambio=1;\n\t\t\tif(getMontoCredito()<0||getMontoCredito()>3600000) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"El monto debe ir de �0 a �3600000\");\n\t\t\t}\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Ingrese solo numeros\");\n\t\t}\n\t}while(getMontoCredito()<0||getMontoCredito()>3600000||cambio==0);\n\tsetInteres(12);\n\tsetPlazo(60);\n\tsetCuotaPagar(calculoCuotaEspecialOrdinario());\n\testableceEquipoComputo();\n}", "@Override\n public int nivel() {\n return this.altura() - 1;\n }", "private void revisaOtorgaPermisos(ResultSet rs) {\n try {\n if(rs.last()){\n if((Integer.parseInt(rs.getString(\"otorgaPermisosConfig\"))==(0))){\n desHabilita(jcbConf, hijos.get(0));\n }\n if((Integer.parseInt(rs.getString(\"otorgaPermisosSistema\"))==(0))){\n desHabilita(jcbSistema,hijos.get(1));\n }\n if((Integer.parseInt(rs.getString(\"otorgaPermisosModulos\"))==(0))){\n desHabilita(jcbModulos, hijos.get(2));\n }\n if((Integer.parseInt(rs.getString(\"otorgaPermisosCompras\"))==(0))){\n desHabilita(jcbCompras,hijos.get(3));\n }\n if((Integer.parseInt(rs.getString(\"otorgaPermisosProvee\"))==(0))){\n desHabilita(jcbProve, hijos.get(4));\n }\n if((Integer.parseInt(rs.getString(\"otorgaPermisosPrevio\"))==(0))){\n desHabilita(jcbPrevioCompra, hijos.get(5));\n }\n if((Integer.parseInt(rs.getString(\"otorgaPermisosInventario\"))==(0))){\n desHabilita(jcbInventario, hijos.get(6));\n }\n if((Integer.parseInt(rs.getString(\"otorgaPermisosClientes\"))==(0))){\n desHabilita(jcbClientes, hijos.get(7));\n }\n if((Integer.parseInt(rs.getString(\"otorgaPermisosVentas\"))==(0))){\n desHabilita(jcbVentas, hijos.get(8));\n }\n if((Integer.parseInt(rs.getString(\"otorgaPermisosCotiza\"))==(0))){\n desHabilita(jcbCotizaciones, hijos.get(9));\n }\n }\n } catch (SQLException ex) {\n Logger.getLogger(PermsEstacs.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Override\n\tpublic List<UserRole> buscarUserRoleSemPermissoes() {\n\t\t// TODO Auto-generated method stub\n\t\tQuery query = getCurrentSession().createQuery(\"select ur from UserRole ur where ur.permissions\");\n\t\treturn query.list();\n\t}", "@Override\n public RspPermiso getPermisoPorIdPermiso(int idPermiso) {\n ConectorBDMySQL conectorBD = new ConectorBDMySQL();\n RspPermiso rspPermiso = new RspPermiso();\n //INICIALIZAR VARIABLES\n rspPermiso.setEsConexionAbiertaExitosamente(false);\n rspPermiso.setEsConexionCerradaExitosamente(false);\n rspPermiso.setEsSentenciaSqlEjecutadaExitosamente(false);\n //INTENTA ESTABLECER LA CONEXIÓN CON LA BASE DE DATOS\n if (conectorBD.iniciarConexion()) {\n rspPermiso.setEsConexionAbiertaExitosamente(true);\n rspPermiso.setRespuestaInicioDeConexion(conectorBD.getAtributosConector().getRespuestaInicioConexion());\n String consultaSQL = \"SELECT * FROM permiso WHERE estado = 1 AND id_permiso = '\" + idPermiso + \"'\";\n try {\n Statement sentencia = conectorBD.getConnection().createStatement();\n boolean bandera = sentencia.execute(consultaSQL);\n if (bandera) {\n ResultSet rs = sentencia.getResultSet();\n rspPermiso.setEsSentenciaSqlEjecutadaExitosamente(true);\n rspPermiso.setRespuestaServicio(utilidadSistema.imprimirConsulta(sentencia.toString(), \"getPermisoPorIdPermiso(int idPermiso)\", this.getClass().toString()));\n if (rs.next()) {\n Permiso permiso = new Permiso();\n permiso = rsPermiso(rs, permiso);\n rspPermiso.setPermiso(permiso);\n }\n }\n } catch (SQLException e) {\n rspPermiso.setRespuestaServicio(utilidadSistema.imprimirExcepcion(e, \"getPermisoPorIdPermiso(int idPermiso)\", this.getClass().toString()));\n } finally {\n if (conectorBD.cerrarConexion()) {\n rspPermiso.setEsConexionCerradaExitosamente(true);\n }\n rspPermiso.setRespuestaCierreDeConexion(conectorBD.getAtributosConector().getRespuestaCierreDeConexion());\n return rspPermiso;\n }\n } else {\n rspPermiso.setRespuestaInicioDeConexion(conectorBD.getAtributosConector().getRespuestaInicioConexion());\n return rspPermiso;\n }\n }", "@Override\n public RspPermiso listPermiso() {\n ConectorBDMySQL conectorBD = new ConectorBDMySQL();\n RspPermiso rspPermiso = new RspPermiso();\n List<Permiso> todosLosPermisos = new ArrayList<Permiso>();\n //INICIALIZAR VARIABLES\n rspPermiso.setEsConexionAbiertaExitosamente(false);\n rspPermiso.setEsConexionCerradaExitosamente(false);\n rspPermiso.setEsSentenciaSqlEjecutadaExitosamente(false);\n //INTENTA ESTABLECER LA CONEXIÓN CON LA BASE DE DATOS\n if (conectorBD.iniciarConexion()) {\n rspPermiso.setEsConexionAbiertaExitosamente(true);\n rspPermiso.setRespuestaInicioDeConexion(conectorBD.getAtributosConector().getRespuestaInicioConexion());\n String consultaSQL = \"SELECT * FROM permiso WHERE estado = 1\";\n try {\n Statement sentencia = conectorBD.getConnection().createStatement();\n boolean bandera = sentencia.execute(consultaSQL);\n if (bandera) {\n ResultSet rs = sentencia.getResultSet();\n rspPermiso.setEsSentenciaSqlEjecutadaExitosamente(true);\n rspPermiso.setRespuestaServicio(utilidadSistema.imprimirConsulta(sentencia.toString(), \"listPermiso()\", this.getClass().toString()));\n while (rs.next()) {\n Permiso permiso = new Permiso();\n permiso = rsPermiso(rs, permiso);\n todosLosPermisos.add(permiso);\n }\n }\n } catch (SQLException e) {\n rspPermiso.setRespuestaServicio(utilidadSistema.imprimirExcepcion(e, \"listPermiso()\", this.getClass().toString()));\n } finally {\n if (conectorBD.cerrarConexion()) {\n rspPermiso.setEsConexionCerradaExitosamente(true);\n }\n rspPermiso.setRespuestaCierreDeConexion(conectorBD.getAtributosConector().getRespuestaCierreDeConexion());\n rspPermiso.setAllPermisos(todosLosPermisos);\n return rspPermiso;\n }\n } else {\n rspPermiso.setRespuestaInicioDeConexion(conectorBD.getAtributosConector().getRespuestaInicioConexion());\n return rspPermiso;\n }\n }", "public void carregarRegistroDoPrimeiroAno() {\n\t\tlimpar();\n\t\t\n\t\tlistaAlunos = repository.encontrarComQueryNomeada(AlunosMilitaresOMDS.class, \"alunosMilitaresOMDS.listarPorOMEPeriodo\",\n\t\t\t\tnew Object[]{\"periodo\", periodo},\n\t\t\t\tnew Object[]{\"organizacao\", subordinado},\n\t\t\t\tnew Object[]{\"ano\", Ano.PRIMEIRO});\n\t\t\n\t\tif (listaAlunos.size() > 0) {\n\t\t\tlistaAlunos.forEach(efetivo ->{\n\t\t\t\tif (efetivo.getTipoAlunosMilitaresOMDS().equals(TipoAlunosMilitaresOMDS.OFICIAL))\n\t\t\t\t\tsetAlunosMilitarOficial(listaAlunos.get(0));\n\t\t\t\tif(efetivo.getTipoAlunosMilitaresOMDS().equals(TipoAlunosMilitaresOMDS.PRACA))\n\t\t\t\t\tsetAlunosMilitarPraca(listaAlunos.get(0));;\n\t\t\t});\n\t\t\thabilitaBotao=false;\n\t\t}\n\t\torganizarValores();\n\t}", "public Page<RoleUtilisateur> quelRole(String pseudo, int p, int s);", "public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }", "public principal() {\n initComponents();\n \n // Verificando si se completó el nivel\n verificar_niveles();\n \n \n }", "private void consultadadosUtilizador(String username){\n Scanner s = new Scanner(System.in); int opcao = 0;\n try{\n do{\n System.out.println(\"Informações de Conta \");\n System.out.println(b_dados.getUtilizadores().get(username).toString());\n System.out.println(\"1-Mudar localizacao\");\n System.out.println(\"0 - Retroceder\");\n\n opcao = s.nextInt();\n System.out.print(\"\\n\");\n\n switch(opcao){\n case 1:\n mudarLocalizacaoUtilizador(username);\n break;\n default:\n System.out.print(\"Opção inválida\\n\\n\");\n break;\n\n }\n }while(opcao != 0);\n }\n catch(InputMismatchException e){\n System.out.println(\"Entrada inválida\");\n menuCliente(username);\n\n }\n }", "private static void privilegio(int tipo) {\n String nome;\r\n Scanner sc = new Scanner(System.in);\r\n if (tipo == 1)\r\n System.out.println(\"Qual o utilizador a quem quer dar privilégios de editor?\");\r\n else\r\n System.out.println(\"Qual o utilizador a quem quer dar privilégios de editor?\");\r\n nome = sc.nextLine();\r\n PreparedStatement stmt;\r\n if (verificaUser(nome)) {\r\n try {\r\n c.setAutoCommit(false);\r\n if (tipo == 1)\r\n stmt = c.prepareStatement(\"UPDATE utilizador SET utilizador_tipo = true WHERE nome=?\");\r\n else\r\n stmt = c.prepareStatement(\"UPDATE utilizador SET utilizador_tipo = false WHERE nome=?\");\r\n stmt.setString(1, nome);\r\n stmt.executeUpdate();\r\n\r\n stmt.close();\r\n c.commit();\r\n } catch (SQLException e) {\r\n System.out.println(e);\r\n }\r\n System.out.println(\"Privilégios atualizados\");\r\n } else {\r\n System.out.println(\"Utilizador não encontrado\");\r\n }\r\n }", "public static boolean modif(Forma form, String tipo, String operador) {\n if(operador.equals(\"resta\")){\n String disp = \"\";\n String tabla = tipo;\n String query = \"\";\n \n switch (tipo) {\n case \"alumnoMaterial\":\n case \"profeMaterial\":\n tabla = \"material\";\n break;\n case \"profeEquipo\":\n case \"alumnoEquipo\":\n tabla = \"equipo\";\n break;\n case \"profeConsumible\":\n tabla = \"consumible\";\n break;\n case \"profeReactivo\":\n tabla = \"reactivo\";\n break;\n default:\n break;\n }\n try {\n Statement statement = connection.createStatement();\n query = \"SELECT Disponibilidad FROM \" + tabla +\n \" WHERE Nombre = '\" + form.getDesc() + \"'\";\n ResultSet result = statement.executeQuery(query);\n while (result.next()) {\n disp = result.getString(1);\n }\n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n return false;\n }\n //checo que haya suficientes\n int iDisp = Integer.parseInt(disp);\n int iCant = Integer.parseInt(form.getCant());\n iDisp = iDisp - iCant;\n //si no hay, regreso falso para fallar\n if(iDisp < 0) {\n return false;\n } else {\n //si si hay, inserto la nueva dipobilidad en el inventario\n try {\n query = \"UPDATE \" + tabla + \" SET Disponibilidad = ? WHERE Nombre = ?\";\n PreparedStatement preparedStmt = connection.prepareStatement(query);\n preparedStmt.setInt (1, iDisp);\n preparedStmt.setString(2, form.getDesc());\n preparedStmt.executeUpdate();\n \n if (preparedStmt.executeUpdate() == 1) {\n return true;\n }\n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n return false;\n }\n }\n return false;\n } else {\n String disp = \"\";\n String tabla = tipo;\n String query = \"\";\n \n try {\n Statement statement = connection.createStatement();\n query = \"SELECT Disponibilidad FROM \" + tabla +\n \" WHERE Nombre = '\" + form.getDesc() + \"'\";\n ResultSet result = statement.executeQuery(query);\n while (result.next()) {\n disp = result.getString(1);\n }\n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n return false;\n }\n //checo que haya suficientes\n int iDisp = Integer.parseInt(disp);\n int iCant = Integer.parseInt(form.getCant());\n iDisp = iDisp + iCant;\n //si no hay, regreso falso para fallar\n \n //si si hay, inserto la nueva dipobilidad en el inventario\n try {\n query = \"UPDATE \" + tabla + \" SET Disponibilidad = ? WHERE Nombre = ?\";\n PreparedStatement preparedStmt = connection.prepareStatement(query);\n preparedStmt.setInt (1, iDisp);\n preparedStmt.setString(2, form.getDesc());\n preparedStmt.executeUpdate();\n \n if (preparedStmt.executeUpdate() == 1) {\n return true;\n }\n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n return false;\n }\n }\n return false;\n }", "@Test\r\n\tpublic void CT03ConsultarLivroComRaNulo() {\r\n\t\ttry {\r\n\t\t\t// cenario\r\n\t\t\t@SuppressWarnings(\"unused\")\r\n\t\t\tUsuario usuario;\r\n\t\t\t// acao\r\n\t\t\tusuario = ObtemUsuario.comRA_nulo();\r\n\t\t} catch (RuntimeException e) {\r\n\t\t\t// verificacao\r\n\t\t\tassertEquals(\"RA inválido\", e.getMessage());\r\n\t\t}\r\n\t}", "protected void accionUsuario() {\n\t\t\r\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 }", "private void habilitarCamposModif() {\n\n listarPromotoresModif();\n //limpiarListaCrear();\n }", "@Override\n public void cantidad_Defensa(){\n defensa=2+nivel+aumentoD;\n }", "public int getNivel() {\n return this.nivel;\n }", "private static void menuAdmin(){\n int opcao = 0;\n Scanner teclado = new Scanner(System.in);\n\n System.out.println(\"Administrador\");\n System.out.println(\"1 - Novo Utilizador\");\n System.out.println(\"2 - Nova Aplicação\");\n System.out.println(\"3 - Visualizar Utilizadores por ordem de registo\");\n System.out.println(\"4 - Visualizar Utilizadores por ordem de valor pago\");\n System.out.println(\"5 - Visualizar Aplicações\");\n System.out.println(\"6 - Valor acumulado pela AppStore\");\n System.out.println(\"7 - Valor acumulado por Programador\");\n System.out.println(\"8 - Gravar dados\");\n System.out.println(\"9 - Voltar atrás\");\n System.out.print(\"Opção: \");\n\n try{\n opcao = teclado.nextInt();\n System.out.println(\"\");\n switch(opcao){\n case 1: utilizadorProgramador();\n menuAdmin();\n break;\n case 2: lerIDProgramador();\n menuAdmin();\n break;\n case 3: escreverDadosUtilizador();\n menuAdmin();\n break;\n case 4: listUserValue();\n menuAdmin();\n break;\n case 5: verApps();\n break;\n case 6: System.out.println(totalAppStore()+\" euros\");\n menuAdmin();\n break;\n case 7: valorAcumuladoProgramador();\n menuAdmin();\n break;\n case 8: gravar();\n menuAdmin();\n break;\n case 9: modoVisualizacao();\n break;\n default: throw new InputMismatchException();\n }\n }catch(InputMismatchException ime){\n System.out.println(\"Opção Inválida, tente novamente!\");\n System.out.println(\"\");\n menuAdmin();\n }catch(FileNotFoundException e){\n e.printStackTrace();\n }catch(UnsupportedEncodingException e){\n e.printStackTrace();\n }\n }", "public static void menuPrincicipal() {\n\t\tSystem.out.println(\"+---------------------------+\");\n\t\tSystem.out.println(\"| Elige una opcion |\");\n\t\tSystem.out.println(\"+---------------------------+\");\n\t\tSystem.out.println(\"| 1-Modificar Orden |\");\n\t\tSystem.out.println(\"+---------------------------+\");\n\t\tSystem.out.println(\"| 2-Eliminar orden |\");\n\t\tSystem.out.println(\"+---------------------------+\");\n\t\tSystem.out.println(\"| 3-Ver todas las ordenes |\");\n\t\tSystem.out.println(\"+---------------------------+\");\n\t\tSystem.out.println(\"| 0-Salir |\");\n\t\tSystem.out.println(\"+---------------------------+\");\n\t}", "public void imprimirNivelMedio(){\n\t\tmodCons.imprimirNivelMedio();\n\t}", "private void executeRicercaAccertamentoPerOrdinativo() {\n \tif (model.getGestioneOrdinativoStep1Model().getAnnoAccertamento() == null || model.getGestioneOrdinativoStep1Model().getNumeroAccertamento() == null) {\n\n \t\tif(!sonoInAggiornamento()){\n \t\t\t\n \t\t\tmodel.getGestioneOrdinativoStep2Model().setListaAccertamento(new ArrayList<Accertamento>());\n \t\t\tmodel.getGestioneOrdinativoStep2Model().setListaAccertamentoOriginale(new ArrayList<Accertamento>());\n \t\t\tmodel.getGestioneOrdinativoStep2Model().setResultSize(0);\n\n \t\t\tRicercaAccertamentiSubAccertamenti request= new RicercaAccertamentiSubAccertamenti();\n \t\t\trequest.setEnte(sessionHandler.getEnte());\n \t\t\trequest.setRichiedente(sessionHandler.getRichiedente());\n\n\n \t\t\tParametroRicercaAccSubAcc param= new ParametroRicercaAccSubAcc();\n \t\t\tparam.setAnnoEsercizio(Integer.parseInt(sessionHandler.getAnnoEsercizio()));\n \t\t\tparam.setAnnoAccertamento(Integer.parseInt(sessionHandler.getAnnoEsercizio()));\n \t\t\tparam.setDisponibilitaAdIncassare(true);\n\n \t\t\t// Capitolo\n \t\t\tif (model.getGestioneOrdinativoStep1Model().getCapitolo() != null) {\n \t\t\t\tparam.setNumeroCapitolo(model.getGestioneOrdinativoStep1Model().getCapitolo().getNumCapitolo());\n \t\t\t\tparam.setNumeroArticolo(model.getGestioneOrdinativoStep1Model().getCapitolo().getArticolo());\n \t\t\t\tif(null!=model.getGestioneOrdinativoStep1Model().getCapitolo().getUeb()){\n \t\t\t\t\tparam.setNumeroUEB(model.getGestioneOrdinativoStep1Model().getCapitolo().getUeb().intValue());\n \t\t\t\t}\n \t\t\t}\n\n\n \t\t\tparam.setCodiceDebitore(model.getGestioneOrdinativoStep1Model().getSoggetto().getCodCreditore());\n \t\t\tparam.setIsRicercaDaAccertamento(false);\n \t\t\trequest.setParametroRicercaAccSubAcc(param);\n\n\n \t\t\taddNumAndPageSize(request, \"listaAccertamentoOrdinativoId\");\n\n \t\t\tRicercaAccertamentiSubAccertamentiResponse response= movimentoGestionService.ricercaAccertamentiSubAccertamentiPerOrdinativoIncasso(request);\n\n \t\t\tif(response.isFallimento() || !response.getErrori().isEmpty()){\n\n \t\t\t\t//setto gli errori cosi che siano segnalati lato app!\n \t\t\t\taddErrori(response.getErrori());\n\n \t\t\t}else{\n\n \t\t\t\tif (response.getListaAccertamenti() != null && response.getListaAccertamenti().size() > 0) {\n \t\t\t\t\tfor (Accertamento currentAccetamento : response.getListaAccertamenti()) {\n \t\t\t\t\t\taddAccertamentiESubAccertamentiInUnicaLista(currentAccetamento);\n \t\t\t\t\t}\n\n \t\t\t\t\tmodel.getGestioneOrdinativoStep2Model().setResultSize(response.getNumRisultati());\n \t\t\t\t\t\n \t\t\t\t\tif(model.getGestioneOrdinativoStep2Model().getListaAccertamento()==null || model.getGestioneOrdinativoStep2Model().getListaAccertamento().size()==0){\n \t\t\t\t\t\taddPersistentActionWarning(ErroreFin.CRU_WAR_1003.getErrore().getCodice()+\" : \"+ErroreFin.CRU_WAR_1003.getErrore(\" accertamenti o subaccertamenti\").getDescrizione());\n \t\t\t\t\t}\n \t\t\t\t} else {\n \t\t\t\t\taddPersistentActionWarning(ErroreFin.CRU_WAR_1003.getErrore().getCodice()+\" : \"+ErroreFin.CRU_WAR_1003.getErrore(\" accertamenti o subaccertamenti\").getDescrizione());\n \t\t\t\t}\n \t\t\t}\n\n \t\t}\n \t}\n }", "public void 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 }", "public void Nivel(Nodo nodo){\r\n\t\tif(cont<(int)Math.pow(2,base)){\r\n\t\t\tnodo.setNivel(nivel);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tnivel++;\r\n\t\t\tbase++;\r\n\t\t\tnodo.setNivel(nivel);\r\n\t\t}\r\n\t}", "public void setNivel (int nivel)\r\n\t{\r\n\t\tthis.nivel = nivel;\r\n\t}", "@Query(\"select pu from ProcesoUsuario pu join pu.proceso p where p.estado = true\")\r\n\tPage<ProcesoUsuario> findAllBySuperAdmin(Pageable pageable);", "public String getNivel()\r\n/* 249: */ {\r\n/* 250:278 */ return this.nivel;\r\n/* 251: */ }", "public void contarEfectosPorGrupo()\n\t{\n\t\ttry\n\t\t{\n\t\t\tString strEstado = JOptionPane.showInputDialog( this, \"Introduzca el grupo\" );\n\t\t\tJOptionPane.showMessageDialog(this,\t\"La cantidad de efectos encontrados del grupo \"+strEstado+\" es \"+mundo.contarEfectosPorGrupo(strEstado), \"Contar efectos por grupo\",JOptionPane.INFORMATION_MESSAGE);\n\t\t} \n\t\tcatch (Exception e) \n\t\t{\n\t\t\t// TODO Auto-generated catch block\n\t\t\tJOptionPane.showMessageDialog(this, e.getMessage(), \"Contar efectos por grupo\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t\n\t}", "public void PrepararBaseDatos() { \r\n try{ \r\n conexion=DriverManager.getConnection(\"jdbc:ucanaccess://\"+this.NOMBRE_BASE_DE_DATOS,this.USUARIO_BASE_DE_DATOS,this.CLAVE_BASE_DE_DATOS);\r\n \r\n } \r\n catch (Exception e) { \r\n JOptionPane.showMessageDialog(null,\"Error al realizar la conexion \"+e);\r\n } \r\n try { \r\n sentencia=conexion.createStatement( \r\n ResultSet.TYPE_SCROLL_INSENSITIVE, \r\n ResultSet.CONCUR_READ_ONLY); \r\n \r\n System.out.println(\"Se ha establecido la conexión correctamente\");\r\n } \r\n catch (Exception e) { \r\n JOptionPane.showMessageDialog(null,\"Error al crear el objeto sentencia \"+e);\r\n } \r\n }", "@Override\n\tpublic void emprestimo(Livros livro, Aluno usuario) {\n\t\t\n\t}", "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 }", "public List<EUsuario> findByNivelAcesso(int nivelAcesso);", "public String consultPermissionPersonCompany() {\r\n\t\tResourceBundle bundle = ControladorContexto.getBundle(\"mensaje\");\r\n\t\tResourceBundle bundleSecurity = ControladorContexto\r\n\t\t\t\t.getBundle(\"messageSecurity\");\r\n\t\tlistPermissionPersonBusiness = new ArrayList<PermissionPersonBusiness>();\r\n\t\tList<SelectItem> parameters = new ArrayList<SelectItem>();\r\n\t\tStringBuilder consult = new StringBuilder();\r\n\t\tStringBuilder unionMessagesSearch = new StringBuilder();\r\n\t\tString messageSearch = \"\";\r\n\t\tString panelId = \"frmGestionarPermisosEmpresa:panelEmpresaPermiso\";\r\n\t\ttry {\r\n\t\t\tif (person != null) {\r\n\t\t\t\tadvanceSearch(consult, parameters, bundle, unionMessagesSearch);\r\n\t\t\t\tpagination.paginar(permissionPersonBusinessDao\r\n\t\t\t\t\t\t.amountBusinessAccessPerson(consult, parameters));\r\n\t\t\t\tList<PermissionPersonBusiness> listPermissionPersonBusinessTemp = permissionPersonBusinessDao\r\n\t\t\t\t\t\t.consultBusinessAccessPerson(consult, parameters,\r\n\t\t\t\t\t\t\t\tpagination.getInicio(), pagination.getRango());\r\n\t\t\t\tif ((listPermissionPersonBusinessTemp == null || listPermissionPersonBusinessTemp\r\n\t\t\t\t\t\t.size() <= 0)\r\n\t\t\t\t\t\t&& !\"\".equals(unionMessagesSearch.toString())) {\r\n\t\t\t\t\tmessageSearch = MessageFormat\r\n\t\t\t\t\t\t\t.format(bundle\r\n\t\t\t\t\t\t\t\t\t.getString(\"message_no_existen_registros_criterio_busqueda\"),\r\n\t\t\t\t\t\t\t\t\tunionMessagesSearch);\r\n\t\t\t\t} else if (listPermissionPersonBusinessTemp == null\r\n\t\t\t\t\t\t|| listPermissionPersonBusinessTemp.size() <= 0) {\r\n\t\t\t\t\tControladorContexto.mensajeInformacion(panelId,\r\n\t\t\t\t\t\t\tbundle.getString(\"message_no_existen_registros\"));\r\n\t\t\t\t} else if (!\"\".equals(unionMessagesSearch.toString())) {\r\n\t\t\t\t\tmessageSearch = MessageFormat\r\n\t\t\t\t\t\t\t.format(bundle\r\n\t\t\t\t\t\t\t\t\t.getString(\"message_existen_registros_criterio_busqueda\"),\r\n\t\t\t\t\t\t\t\t\tbundleSecurity\r\n\t\t\t\t\t\t\t\t\t\t\t.getString(\"person_permission_company_label\"),\r\n\t\t\t\t\t\t\t\t\tunionMessagesSearch);\r\n\t\t\t\t}\r\n\t\t\t\tif (!\"\".equals(messageSearch)) {\r\n\t\t\t\t\tControladorContexto.mensajeInformacion(panelId,\r\n\t\t\t\t\t\t\tmessageSearch);\r\n\t\t\t\t}\r\n\t\t\t\tdetailsPermissionPersonCompany(listPermissionPersonBusinessTemp);\r\n\t\t\t\tloadCombos();\r\n\t\t\t} else {\r\n\t\t\t\tControladorContexto\r\n\t\t\t\t\t\t.mensajeError(bundleSecurity\r\n\t\t\t\t\t\t\t\t.getString(\"person_permission_company_message_validate_select_user\"));\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tControladorContexto.mensajeError(e);\r\n\t\t}\r\n\t\treturn \"gesPermissionPersonBusiness\";\r\n\t}", "public Usuario[] findWhereNivelEquals(long nivel) throws SQLException;", "Jugador consultarGanador();", "public int menuPrincipal() {\n lector = new Scanner(System.in);\n\n int opcion = -1;\n do {\n Lib.limpiarPantalla();\n System.out.println(\"************************************\");\n System.out.println(\"* MENU PRINCIPAL *\");\n System.out.println(\"************************************\");\n System.out.println(\"1. Altas\");\n System.out.println(\"2. Alquilar multimedia socio\");\n System.out.println(\"3 Devolver multimedia ESTO FALLA\");\n System.out.println(\"4 Listados\");\n System.out.println(\"---------------------\");\n System.out.println(\"0. Cancelar\\n\");\n System.out.println(\"Elija una opción: \");\n try {\n opcion = Integer.parseInt(Lib.lector.nextLine());\n if (opcion < 0 || opcion > 4) {\n System.out.println(\"Elija una opción del menú [0-4]\");\n Lib.pausa();\n }\n } catch (NumberFormatException nfe) {\n System.out.println(\"Solo números por favor\");\n Lib.pausa();\n }\n } while (opcion < 0 || opcion > 4);\n return opcion;\n\n }", "public static void affichageDuMenuPrincipal() {\n\t\tSystem.out.println(\"\\n\\nMENU PRINCIPAL\");\n\t\tSystem.out.println(\"==============\");\n\t\tSystem.out.println(\"Choix 1 : Affichez les noms et prénoms de tous les apprenant(e)s.\");\n\t\tSystem.out.println(\"Choix 2 : Affichez la liste des apprenants pour chaque région.\");\n\t\tSystem.out.println(\n\t\t\t\t\"Choix 3 : Recherchez un apprenant(e) (par son nom) et afficher la liste des activités qu’il ou qu’elle pratique.\");\n\t\tSystem.out.println(\n\t\t\t\t\"Choix 4 : Recherchez les apprenants qui pratiquent une activité passée en paramètre d’une méthode.\");\n\t\tSystem.out.println(\"Choix 5 : Ajoutez un(e) nouvel(le) apprenant(e) à la base de données.\");\n\t\tSystem.out.println(\"Choix 6 : Affectez une activité à un(e) apprenant(e)\");\n\t\tSystem.out.println(\"Choix 7 : Affichez la liste des activités que personne ne fait.\");\n\t\tSystem.out.println(\"Choix 8 : Modifiez le nom d’un(e) apprenant(e).\");\n\t\tSystem.out.println(\"Choix 9 : Supprimez un(e) apprenant(e).\");\n\t\tSystem.out.println(\"Choix 10 : Quitter\");\n\t\tSystem.out.println(\n\t\t\t\t\"================================================================================================================\");\n\t}", "private boolean askForSuperviser(Person p) throws Exception {\n\n\t\treturn p.isResearcher() && (p.getInstitutionalRoleId() > 1);\n\t}", "public int leerSeleccionDelUsuario() {\n\t\tint seleccion;\n\t\tboolean valido = false;\n\t\tint intentos = intentosMaximos;\n\t\tint intentos1 = 0;\n\t\tSystem.out.println(\"Enter you selection:\");\n\t\tseleccion = Herramientas.leerEntero();\n\t\tif (seleccion >= 1 && seleccion <= numeroDeOpciones)\n\t\t\tvalido = true;\n\t\tintentos--;\n\t\tintentos1++;\n\n\t\twhile (!valido && intentos1 < intentosMaximos) {\n\t\t\tHerramientas.println(intentos + \" more tries\");\n\t\t\tHerramientas.println(\"\\nEnter a valid selection for this menu:\");\n\t\t\tseleccion = Herramientas.leerEntero();\n\t\t\tif (seleccion >= 1 && seleccion <= numeroDeOpciones)\n\t\t\t\tvalido = true;\n\t\t\tintentos--;\n\t\t\tintentos1++;\n\t\t}\n\t\tif (!valido)\n\t\t\treturn 0;\n\t\telse\n\t\t\treturn seleccion;\n\t}", "public int getNivelDanio() {\n return this.nivelDanio;\n }", "@Override\n\tpublic double percentualeUtentiDisabilitati () throws DAOException{\n\t\tConnection connection = null;\n\t\tPreparedStatement statement = null;\n\t\tResultSet resultSet = null;\n\t\tdouble numeroUtenti = 0.0;\n\t\ttry {\n\t\t\tconnection = DataSource.getInstance().getConnection();\n\t\t\tstatement = connection.prepareStatement(\"SELECT COUNT (UTENTE.ID)*100/(SELECT COUNT(ID) FROM UTENTE) FROM UTENTE WHERE ABILITATO = 0 GROUP BY(UTENTE.ABILITATO)\");\n\t\t\tresultSet = statement.executeQuery();\n\t\t\tif (resultSet.next()) {\n\t\t\t\tnumeroUtenti = BigDecimal.valueOf(resultSet.getDouble(1)).setScale(2, RoundingMode.HALF_UP).doubleValue();\n\t\t\t\t\n\t\t\t\tSystem.out.println(numeroUtenti);\n\t\t\t}\n\t\t} catch (SQLException | DAOException e) {\n\t\t\tthrow new DAOException(\"ERRORE percentualeUtentiAbilitati utenteAdmin\" + e.getMessage(), e);\n\t\t} finally {\n\t\t\tDataSource.getInstance().close(resultSet);\n\t\t\tDataSource.getInstance().close(statement);\n\t\t\tDataSource.getInstance().close(connection);\n\t\t}\n\t\treturn numeroUtenti;\n\t}", "public int getNivel() {\n\t\treturn nivel;\n\t}", "public int getNivel() {\n\t\treturn nivel;\n\t}", "public static void ulogujSeKaoAdmin() {\r\n\t\tprikazIProveraSifre(-2, 'a');\r\n\t}", "public void siguienteNivel(){ \n\t\tnivel++;\n\t\tcontador = 0;\n\t\tcontadorE = 0;\n\t\treiniciar = false;\n\t\t\n\t\tnumDisparos=0; \n\t\tpausa=false;\n\t\tdisparando=false;\n\t\t\n\t\tif(nivel<9){\n\t\t\tasteroides =new Asteroide [(2+(nivel*2)) *(int)Math.pow(astNumDivision,astNumDisparos-1)+1];\n\t\t\tnumAsteroides = 2+(nivel*2);\n\t\t}\n\t\telse{\n\t\t\tasteroides =new Asteroide [12 *(int)Math.pow(astNumDivision,astNumDisparos-1)+1];\n\t\t\tnumAsteroides = 12;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<numAsteroides;i++){\n\t\t\tasteroides[i]=new Asteroide(this, Math.random()*this.getWidth(), Math.random()*this.getHeight(), \n\t\t\t\t\tastRadio,minAstVel, maxAstVel, astNumDisparos, astNumDivision, 1);\n\t\t}\n\t}", "public void Nouvelleligne() {\n int maxEleve = retourneMaxNumber() + 1;\n try {\n Connector1.statement.executeUpdate(\"Insert INTO eleve(id_el) VALUES (\" + maxEleve + \")\");\n Object[] val = {maxEleve, \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\"};\n effaceTable(jTable2, mode);\n mode.addRow(val);\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"ERROR \\n\" + e.getMessage());\n\n }\n\n }", "public static void menuPrincipal() throws ClienteException, PersistenciaException, DniException, EmpleadoException, VehiculoException, BastidorException, DireccionException, VentaException, PersonaException {\n teclado = new Scanner(System.in);\n boolean salir = false;\n int opcion;\n\n while (!salir) {\n System.out.println(\"\\n1. Acceso Gerente\");\n System.out.println(\"2. Acceso Empleado\");\n System.out.println(\"3. Salir\\n\");\n\n try {\n System.out.print(\"Introduzca una de las opciones: \");\n opcion = teclado.nextInt();\n teclado.nextLine();\n System.out.println(\"\");\n\n switch (opcion) {\n case 1:\n pedirCredenciales(1);\n menuGerente();\n break;\n case 2:\n pedirCredenciales(2);\n menuEmpleado();\n break;\n case 3:\n salir = true;\n System.out.println(\"Usted a salido correctamente del programa\");\n break;\n default:\n System.out.println(\"Solo numeros entre 1 y 3\");\n }\n } catch (InputMismatchException e) {\n System.out.println(\"Debe insertar una opcion correcta\");\n teclado.next();\n }\n }\n }", "@Override\r\n public Resultado consultar(EntidadeDominio entidade) {\n String nmClass = entidade.getClass().getName();\r\n // instanciando DAO de acordo com a classe\r\n IDAO dao = daos.get(nmClass);\r\n //executando validações de regras de negocio \r\n String msg = executarRegras(entidade, \"PESQUISAR\");\r\n if (msg.isEmpty()) {\r\n if (dao.consultar(entidade).isEmpty()) {\r\n //caso dados não foram encontrados\r\n resultado.setMsg(\"dados nao encontrados\");\r\n } else {\r\n //caso dados foram encontrados \r\n resultado.setMsg(\"pesquisa feita com sucesso\");\r\n }\r\n resultado.setEntidades(dao.consultar(entidade));\r\n } else {\r\n resultado.setMsg(msg.toString());\r\n }\r\n return resultado;\r\n }", "public void setNivel(int nivel) {\n this.nivel = nivel;\n }", "private void setearPermisosMenu()\r\n\t{\r\n\t\t/*Permisos del usuario para los mantenimientos*/\r\n\t\tthis.setearOpcionesMenuMantenimientos();\r\n\t\tthis.setearOpcionesMenuFacturacion();\r\n\t\tthis.setearOpcionesMenuCobros();\r\n\t\tthis.setearOpcionesMenuProcesos();\r\n\t\tthis.setearOpcionesReportes();\r\n\t\tthis.setearOpcionesMenuAdministracion();\r\n\t}", "@Name(\"creditoDisponivel\")\n public Integer limiteCredito(@Source Usuario u) {\n return u.nome.length();\n }", "@Override\n\tpublic void emprestimo(Livros livro, Usuarios usuario) {\n\t\t\n\t}", "@Override\n public void cantidad_Ataque(){\n ataque=5+2*nivel+aumentoT;\n }", "public static void menuEmpleado() throws ClienteException, PersistenciaException, DniException, VehiculoException, DireccionException, VentaException, PersonaException {\n boolean salir = false;\n int opcion;\n\n while (!salir) {\n System.out.println(\"\\n1. Realizar ventas\");\n System.out.println(\"2. Gestionar clientes\");\n System.out.println(\"3. Salir\\n\");\n\n try {\n System.out.print(\"Introduzca una de las opciones: \");\n opcion = teclado.nextInt();\n teclado.nextLine();\n System.out.println(\"\");\n\n switch (opcion) {\n case 1:\n menuVentas();\n break;\n case 2:\n menuClientes();\n break;\n case 3:\n salir = true;\n break;\n default:\n System.out.println(\"Solo numeros entre 1 y 3\");\n }\n } catch (InputMismatchException e) {\n System.out.println(\"Debe insertar una opcion correcta\");\n teclado.next();\n }\n }\n }", "private void cargaPermisos() {\n habilitaCampos();\n \n //Abre la conexion\n Connection con = Star.conAbrBas(true, false);\n \n //Declara variables de la base de datos \n java.sql.Statement st;\n java.sql.ResultSet rs; \n String sQ;\n \n try {\n /*Obtiene todos los datos del usuario*/\n sQ = \"SELECT * FROM er_permisos WHERE FKIdUsuario = (SELECT id_id FROM estacs WHERE estac = '\"+jcmbUsuarios.getSelectedItem().toString()+\"')\";\n st = con.createStatement();\n rs = st.executeQuery(sQ);\n /*Si hay datos*/\n if(rs.next())\n {\n /*Obtiene los datos y cargalos en sus campos*/\n llenaPermisos(rs,jcbConf,jcbConfCorreos,jcbConfDatos,jcbconfSeries,jcbConfImpresoras,jcbConfCambiarIcono,jcbConfConfiguraciones, jcbConfiguracionesPermiso,\n jcbUsuarios, jcbDefinirUsr, jcbUsrConectados, jcbPermisosUsr,jcbClaves, jcbReparar, jcbReparador, jcbRestaurar, jcbBaseDatos, jcbConexionesBD, jcbArchivoConf,jcbReportes, jcbRepUsuarios, jcbRepRespaldos, jcbRepLog, jcbRepEstadisticas, jcbRevocacion, jcbActivar,jcbSistemaPermiso,\n jcbContabilidad, jcbConceptos, jcbCatalogo, jcbZonas, jcbGiros, jcbMonedas, jcbImpuestos, jcbModulosPermiso,\n jcbCompras, jcbCancelarCompra, jcbDevolCompra, jcbParcialCompra, jcbNuevoCompra,jcbNotCompra, jcbVerCompra,jcbCargarArchivoCompra, jcbBorrarArchivoCompra, jcbRecibirCompra, jcbComprasPermiso,\n jcbProve, jcbProveNuevo, jcbProveModificar, jcbProveVer, jcbProveBorrar, jcbProveePermiso,\n jcbPrevioCompra, jcbNuevaPrevio, jcbAbrirPrevio, jcbVerPrevio, jcbCancelarPrevio, jcbSeriesPrevio,jcbCompraPrevio,jcbPrevioPermiso,\n jcbInventario, jcbProductos, jcbNuevoProd, jcbModificarProd, jcbBorrarProd, jcbInventarioPermiso,\n jcbClientes, jcbClieNuevo, jcbClieModificar, jcbClieVer, jcbClieBorrar, jcbClieEnviar, jcbClientesPermiso,\n jcbVentas, jcbCancelarVentas, jcbDevolVentas, jcbParcialVentas, jcbNuevaVentas, jcbNotVentas, jcbVerVentas, jcbEnviarVentas, jcbTimbrarVentas, jcbEntregarVentas, jcbComprobarVentas, jcbAcuseVentas, jcbObtenerXmlVentas, jcbFacturarVentas, jcbCargarArchivoVentas, jcbBorrarArchivoVentas, jcbVentasPermiso,\n jcbCotizaciones, jcbNuevaCotiza, jcbAbrirCotiza, jcbVerCotiza, jcbCancelarCotiza, jcbReenviarCotiza, jcbVentaCotiza, jcbCotizaPermiso);\n \n }\n } catch (SQLException ex) {\n Logger.getLogger(PermsEstacs.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n try {\n /*Obtiene todos los datos del usuario*/\n sQ = \"SELECT otorgaPermisosConfig, otorgaPermisosSistema, otorgaPermisosModulos, otorgaPermisosCompras, otorgaPermisosProvee, otorgaPermisosPrevio, otorgaPermisosInventario, otorgaPermisosClientes, otorgaPermisosVentas, otorgaPermisosCotiza FROM er_permisos WHERE FKIdUsuario = (SELECT id_id FROM estacs WHERE estac = '\"+Login.sUsrG+\"')\";\n st = con.createStatement();\n rs = st.executeQuery(sQ);\n /*Si hay datos*/\n if(rs.last())\n {\n //Desactiva los permisos a los cuales no tiene permiso el usuario actual\n revisaOtorgaPermisos(rs);\n \n }\n } catch (SQLException ex) {\n Logger.getLogger(PermsEstacs.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private static void compraSubscricao(int idUser){\n int opcao = 0;\n Scanner teclado = new Scanner(System.in);\n System.out.println(\"Deseja\");\n System.out.println(\"1 - Comprar\");\n System.out.println(\"2 - Subscrever\");\n System.out.print(\"Opção: \");\n \n try{\n opcao = teclado.nextInt();\n System.out.println(\"\");\n switch(opcao){\n case 1: menuCategorias(idUser, false, true); break; //Escolheu comprar\n case 2: menuCategorias(idUser, true, false); break; //Escolheu subscrever\n default: throw new InputMismatchException();\n }\n \n }catch(InputMismatchException ime){\n System.out.println(\"Opção Inválida, tente novamente!\");\n System.out.println(\"\");\n compraSubscricao(idUser);\n }\n }", "public void recibeOrden() {\r\n\t\tSystem.out.println(\"Ordene mi General\");\r\n\t}", "public static int menu()\n {\n \n int choix;\n System.out.println(\"MENU PRINCIPAL\");\n System.out.println(\"--------------\");\n System.out.println(\"1. Operation sur les membres\");\n System.out.println(\"2. Operation sur les taches\");\n System.out.println(\"3. Assignation de tache\");\n System.out.println(\"4. Rechercher les taches assigne a un membre\");\n System.out.println(\"5. Rechercher les taches en fonction de leur status\");\n System.out.println(\"6. Afficher la liste des taches assignees\");\n System.out.println(\"7. Sortir\");\n System.out.println(\"--------------\");\n System.out.print(\"votre choix : \");\n choix = Keyboard.getEntier();\n System.out.println();\n return choix;\n }", "@Override\n public void buildNivel(int nivel) {\n \n if(nivel < 6)\n this.personaje.setNivel(nivel);\n }", "public void gerarReceitaLiquidaIndiretaDeAgua() \n\t\t\tthrows ErroRepositorioException;", "public static int BuscarPorcentajeConvenio(int pac, int idempresa, int idservicio, Session sesion) {\n String hql;\n int porc = 0;\n try{ \n //sesion = NewHibernateUtil.getSessionFactory().openSession();\n //tr = sesion.beginTransaction();\n hql = \"SELECT porcentaje FROM Convenio WHERE estado = 'Activo' AND paciente = \"+pac+\" AND empresa = \"+idempresa+\" AND servicio = \"+idservicio;\n Query query = sesion.createQuery(hql); \n Iterator it = query.iterate();\n if(it.hasNext()){\n porc = (int)it.next();\n }\n }catch(HibernateException ex){\n JOptionPane.showMessageDialog(null, \"Error al conectarse con Base de Datos\", \"Convenio Controlador\", JOptionPane.INFORMATION_MESSAGE);\n }\n return porc;\n }", "private int cantFantasmasRestantes() {\n // TODO implement here\n return 0;\n }", "private void inicializarPartida(int nivel) {\r\n\t\tif(nivel == PRINCIPIANTE) {\r\n\t\t\tcasillas = new Casilla [FILAS_PRINCIPIANTE] [COLUMNAS_PRINCIPIANTE];\r\n\t\t\tcantidadMinas = CANTIDAD_MINAS_PRINCIPANTE;\r\n\t\t\t\r\n\t\t}\r\n\t\tif(nivel == INTERMEDIO) {\r\n\t\t\tcasillas = new Casilla [FILAS_INTERMEDIO] [COLUMNAS_INTERMEDIO];\r\n\t\t\tcantidadMinas = CANTIDAD_MINAS_INTERMEDIO;\r\n\t\t}\r\n\t\tif(nivel == EXPERTO) {\r\n\t\t\tcasillas = new Casilla [FILAS_EXPERTO] [COLUMNAS_EXPERTO] ;\r\n\t\t\tcantidadMinas = CANTIDAD_MINAS_EXPERTO;\r\n\t\t\t\r\n\t\t}\r\n\t}", "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}", "private void setearOpcionesMenuAdministracion()\r\n\t{\r\n\t\tArrayList<FormularioVO> lstFormsMenuAdmin = new ArrayList<FormularioVO>();\r\n\t\t\r\n\t\t/*Buscamos los Formulairos correspondientes a este TAB*/\r\n\t\tfor (FormularioVO formularioVO : this.permisos.getLstPermisos().values()) {\r\n\t\t\t\r\n\t\t\tif(formularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_USUARIO)\r\n\t\t\t\t|| formularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_GRUPO))\r\n\t\t\t{\r\n\t\t\t\tlstFormsMenuAdmin.add(formularioVO);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t/*Si hay formularios para el tab*/\r\n\t\tif(lstFormsMenuAdmin.size()> 0)\r\n\t\t{\r\n\t\t\t//TODO\r\n\t\t\t//this.tabAdministracion = new VerticalLayout();\r\n\t\t\t//this.tabAdministracion.setMargin(true);\r\n\t\t\t\r\n\t\t\tthis.lbAdministracion.setVisible(true);\r\n\t\t\tthis.layoutMenu.addComponent(this.lbAdministracion);\r\n\t\t\t\r\n\t\t\tfor (FormularioVO formularioVO : lstFormsMenuAdmin) {\r\n\t\t\t\t\r\n\t\t\t\tswitch(formularioVO.getCodigo())\r\n\t\t\t\t{\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_USUARIO : \r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_USUARIO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarUserButton();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.userButton);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_GRUPO :\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_GRUPO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarGrupoButton();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.gruposButton);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\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\t\r\n\t\t\t//TODO\r\n\t\t\t//this.acordion.addTab(tabAdministracion, \"Administración\", null);\r\n\t\t\t\r\n\t\t}\r\n\t\t//TODO\r\n\t\t//acordion.setHeight(\"75%\"); /*Seteamos alto del accordion*/\r\n\t}", "public void buscarEstudiante(String codEstudiante){\n estudianteModificar=new Estudiante();\n estudianteGradoModificar=new EstudianteGrado();\n StringBuilder query=new StringBuilder();\n query.append(\"select e.idestudiante,e.nombre,e.apellido,e.ci,e.cod_est,e.idgrado,e.idcurso,g.grado,c.nombre_curso \" );\n query.append(\" from estudiante e \");\n query.append(\" inner join grado g on e.idgrado=g.idgrado \");\n query.append(\" inner join cursos c on e.idcurso=c.idcurso \");\n query.append(\" where idestudiante=? \");\n try {\n PreparedStatement pst=connection.prepareStatement(query.toString());\n pst.setInt(1, Integer.parseInt(codEstudiante));\n ResultSet resultado=pst.executeQuery();\n //utilizamos una condicion porque la busqueda nos devuelve 1 registro\n if(resultado.next()){\n //cargando la informacion a nuestro objeto categoriaModificarde tipo categoria\n estudianteModificar.setCodEstudiante(resultado.getInt(1));\n estudianteModificar.setNomEstudiante(resultado.getString(2));\n estudianteModificar.setApEstudiante(resultado.getString(3));\n estudianteModificar.setCiEstudiante(resultado.getInt(4));\n estudianteModificar.setCodigoEstudiante(resultado.getString(5));\n estudianteModificar.setIdgradoEstudiante(resultado.getInt(6));\n estudianteModificar.setIdCursoEstudiante(resultado.getInt(7));\n estudianteGradoModificar.setNomGrado(resultado.getString(8));\n estudianteGradoModificar.setNomCurso(resultado.getString(9));\n }\n } catch (SQLException e) {\n System.out.println(\"Error de conexion\");\n e.printStackTrace();\n }\n }", "public String consultarRol() throws Exception\n {\n this.setMsg(\"\");\n String vst_mensaje=\"\";\n if(this.getIdRol() == 0)\n this.setMsg(\"Debe ingresar un número de rol mayor que cero.\");\n else\n Servicio.rolConsultar(this);\n\n return vst_mensaje;\n }", "public void regolaOrdineInMenu(int codRiga) {\n\n /** variabili e costanti locali di lavoro */\n Modulo moduloPiatto = null;\n Modulo moduloRighe = null;\n\n Campo campoOrdineRiga = null;\n\n int codPiatto = 0;\n int codiceMenu = 0;\n int codiceCategoria = 0;\n\n Filtro filtro = null;\n\n int ordineMassimo = 0;\n Integer nuovoOrdine = null;\n int valoreOrdine = 0;\n Integer valoreNuovo = null;\n\n Object valore = null;\n int[] chiavi = null;\n int chiave = 0;\n\n try { // prova ad eseguire il codice\n\n /* regolazione variabili di lavoro */\n moduloRighe = this.getModulo();\n moduloPiatto = this.getModuloPiatto();\n campoOrdineRiga = this.getModulo().getCampoOrdine();\n\n /* recupera il codice del piatto dalla riga */\n valore = moduloRighe.query().valoreCampo(RMP.CAMPO_PIATTO, codRiga);\n codPiatto = Libreria.objToInt(valore);\n\n /* recupera il codice del menu dalla riga */\n valore = moduloRighe.query().valoreCampo(RMP.CAMPO_MENU, codRiga);\n codiceMenu = Libreria.objToInt(valore);\n\n /* recupera il codice categoria dal piatto */\n valore = moduloPiatto.query().valoreCampo(Piatto.CAMPO_CATEGORIA, codPiatto);\n codiceCategoria = Libreria.objToInt(valore);\n\n /* crea un filtro per ottenere tutte le righe comandabili di\n * questa categoria esistenti nel menu */\n filtro = this.filtroRigheCategoriaComandabili(codiceMenu, codiceCategoria);\n\n /* aggiunge un filtro per escludere la riga corrente */\n filtro.add(this.filtroEscludiRiga(codRiga));\n\n /* determina il massimo numero d'ordine tra le righe selezionate dal filtro */\n ordineMassimo = this.getModulo().query().valoreMassimo(campoOrdineRiga, filtro);\n\n /* determina il nuovo numero d'ordine da assegnare alla riga */\n if (ordineMassimo != 0) {\n nuovoOrdine = new Integer(ordineMassimo + 1);\n } else {\n nuovoOrdine = new Integer(1);\n } /* fine del blocco if-else */\n\n /* apre un \"buco\" nella categoria spostando verso il basso di una\n * posizione tutte le righe di questa categoria che hanno un numero\n * d'ordine uguale o superiore al numero d'ordine della nuova riga\n * (sono le righe non comandabili) */\n\n /* crea un filtro per selezionare le righe non comandabili della categoria */\n filtro = filtroRigheCategoriaNonComandabili(codiceMenu, codiceCategoria);\n\n /* aggiunge un filtro per escludere la riga corrente */\n filtro.add(this.filtroEscludiRiga(codRiga));\n\n /* recupera le chiavi dei record selezionati dal filtro */\n chiavi = this.getModulo().query().valoriChiave(filtro);\n\n /* spazzola le chiavi */\n for (int k = 0; k < chiavi.length; k++) {\n chiave = chiavi[k];\n valore = this.getModulo().query().valoreCampo(campoOrdineRiga, chiave);\n valoreOrdine = Libreria.objToInt(valore);\n valoreNuovo = new Integer(valoreOrdine + 1);\n this.getModulo().query().registraRecordValore(chiave, campoOrdineRiga, valoreNuovo);\n } // fine del ciclo for\n\n /* assegna il nuovo ordine alla riga mettendola nel buco */\n this.getModulo().query().registraRecordValore(codRiga, campoOrdineRiga, nuovoOrdine);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "@Override\r\n\tprotected void verificaUtentePrivilegiato() {\n\r\n\t}", "public void setNomNiveles (String IdNivel, String Contador, String IdCategoria){\n nivelesId = getNivelId( IdNivel );\n if ( nivelesId.moveToFirst() ){//Muestra los valores encontrados en la consulta\n labelNivel.setText( nivelesId.getString(1) + \" - Preguntas : \" + Contador + \" / \" + getPreguntasTotal(IdCategoria, IdNivel ) );\n }\n\n }", "public void setNivel(String nivel)\r\n/* 254: */ {\r\n/* 255:282 */ this.nivel = nivel;\r\n/* 256: */ }", "private static void menuno(int menuno2) {\n\t\t\r\n\t}", "public PermisosPyS obtenerPermisos(String user)\n {\n try\n {\n PreparedStatement pstm = null; \n ResultSet rs = null;\n String query = \"SELECT * FROM permisos WHERE ID_permiso IN (SELECT ID_permisos FROM Roles as r INNER JOIN Usuario as u ON r.ID_Rol = u.ID_Rol WHERE u.username = ?);\";\n pstm = con.prepareStatement(query);\n pstm.setString(1, user);\n rs = pstm.executeQuery();\n if(rs.next())\n {\n PermisosPyS p = new PermisosPyS();\n p.setPySSelect(rs.getBoolean(\"PyS_select\"));\n p.setPySUpdate(rs.getBoolean(\"PyS_update\"));\n p.setPySInsert(rs.getBoolean(\"PyS_insert\"));\n p.setPySDelete(rs.getBoolean(\"PyS_delete\"));\n p.setAdmin(rs.getBoolean(\"isAdmin\"));\n p.setUser(rs.getBoolean(\"isUser\"));\n \n return p; //regresar el objeto con los permisos almacenados\n }else{\n return null;\n }\n }catch(Exception ex){\n ex.printStackTrace();\n return null;\n }\n }", "@Override\n public int cantAlumnosXidCurso(int curso) throws Exception {\n Connection c = null;\n PreparedStatement pstmt = null;\n ResultSet rs = null;\n int cantAlumnos = 0;\n try {\n c = DBUtils.getConnection();\n pstmt = c.prepareStatement(\"select count(a.id) as cant from alumno a, curso cu \"\n + \"where a.idCurso = cu.idcurso \"\n + \"and cu.idcurso = ?\");\n pstmt.setInt(1, curso); \n rs = pstmt.executeQuery();\n\n while (rs.next()) { \n cantAlumnos = rs.getInt(\"cant\");\n } \n return cantAlumnos;\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 cantAlumnos;\n }", "public void NopagaImpuestos(){\n\t\tif(sueldoBruto<BASE_MINIMA_IMPUESTOS){\n\t\tsueldoNeto=sueldoBruto;\n\t\ttipoImpuesto=\"En esta ocasión no paga impuestos\";\n\t\t}\n\t}", "public static int imprimirMenu(){\n Scanner keyboard = new Scanner(System.in);\n System.out.println(\"1 – Alta de usuario\\n\" +\n \"2 – Alta de objeto\\n\" +\n \"3 – Alquiler de objeto\\n\" +\n \"4 – Listar todos los objetos\\n\" +\n \"5 – Baja de objeto\\n\" +\n \"6 – Mostrar saldos\\n\" +\n \"7 - Modificar importe de un objeto\\n\" +\n \"8 - Guardar Saldos en fichero\\n\" +\n \"9 - Eliminar Usuario\\n\" +\n \"10 - Listar mas asiduos\\n\" +\n \"11 – Salir\\n\");\n int opcion = keyboard.nextInt();\n return opcion;\n }", "public void ultimo(){//executa metodo para ultima pagina de registro de funcionarios\r\n\t\tdao.ultimo();\r\n\t}", "public int obtenerRegistrosBusqueda(String nombre){\n int registros = 0;\n //SE INTENTA HACE LA CONEXION Y OBTENER LOS RSULTDOS\n try{\n //METODOS DE CONEXION\n Connection connect = getConnection();\n PreparedStatement ps;\n ResultSet res;\n \n //QUERY PARA OBTENER LOS VALORES\n ps = connect.prepareStatement(\"SELECT COUNT(*) AS registros FROM personal WHERE nombre = ?\");\n ps.setString(1, nombre);\n res = ps.executeQuery();\n \n while(res.next()){\n System.out.println(\"numero de registros en tabla personal\"+res.getInt(\"registros\"));\n registros = res.getInt(\"registros\");\n if (registros == 0) {\n JOptionPane.showMessageDialog(null,\"No hay registro con ese nombre\"); \n }\n } \n }\n catch(Exception e){\n System.out.println(\"No fue posible obtener el numero de registros de personal error\"+e);\n JOptionPane.showMessageDialog(null, \"Hubo un error:\"+e); \n }\n return registros;\n }", "@Override\n\tpublic int contaGruppi () throws DAOException{\n\t\tConnection connection = null;\n\t\tPreparedStatement statement = null;\n\t\tResultSet resultSet = null;\n\t\tint numeroGruppi = 0;\n\t\ttry {\n\t\t\tconnection = DataSource.getInstance().getConnection();\n\t\t\tstatement = connection.prepareStatement(\"SELECT COUNT(ID) FROM GRUPPO\");\n\t\t\tresultSet = statement.executeQuery();\n\t\t\tif (resultSet.next()) {\n\t\t\t\tnumeroGruppi = resultSet.getInt(1);\n\t\t\t}\n\t\t} catch (SQLException | DAOException e) {\n\t\t\tthrow new DAOException(\"ERRORE contaGruppi utenteAdmin\" + e.getMessage(), e);\n\t\t} finally {\n\t\t\tDataSource.getInstance().close(resultSet);\n\t\t\tDataSource.getInstance().close(statement);\n\t\t\tDataSource.getInstance().close(connection);\n\t\t}\n\t\treturn numeroGruppi;\n\t}", "public int getUserNumber() throws AdminPersistenceException {\n return getCount(\"ST_User\", \"id\", \"accessLevel <> ?\", \"R\");\n }", "@Override\r\n public String toString() {\r\n return \"(\" + idn + \",\" + this.n + \")\"; //il y avait un rpobleme avec id -> me disait que acces privé dans noeud\r\n }", "public Asignacion_usuario_Perfil1() {\n int CodigoAplicacion = 120;\n initComponents();\n llenadoDeCombos();\n llenadoDeTablas();\n \n\n \n }", "public static void menuGerente() throws ClienteException, PersistenciaException, DniException, EmpleadoException, VehiculoException, BastidorException, DireccionException, VentaException, PersonaException {\n boolean salir = false;\n int opcion;\n\n while (!salir) {\n System.out.println(\"\\n1. Realizar ventas\");\n System.out.println(\"2. Gestionar clientes\");\n System.out.println(\"3. Gestionar empleados\");\n System.out.println(\"4. Gestionar vehiculos\");\n System.out.println(\"5. Salir\\n\");\n\n try {\n System.out.print(\"Introduzca una de las opciones: \");\n opcion = teclado.nextInt();\n teclado.nextLine();\n System.out.println(\"\");\n\n switch (opcion) {\n case 1:\n menuVentas();\n break;\n case 2:\n menuClientes();\n break;\n case 3:\n menuEmpleados();\n break;\n case 4:\n menuVehiculos();\n break;\n case 5:\n salir = true;\n break;\n default:\n System.out.println(\"Solo numeros entre 1 y 5\");\n }\n } catch (InputMismatchException e) {\n System.out.println(\"Debe insertar una opcion correcta\");\n teclado.next();\n }\n }\n }", "public int getAccessLevel() {\n return 0;\r\n }", "public static void menuEmpleados() throws EmpleadoException, PersistenciaException, DniException, DireccionException, PersonaException {\n boolean salir = false;\n int opcion;\n Empleado empleado;\n String dni=null;\n\n while (!salir) {\n System.out.println(\"\\n1. Insertar empleado\");\n System.out.println(\"2. Modificar empleado\");\n System.out.println(\"3. Eliminar empleado\");\n System.out.println(\"4. Listado de empleados\");\n System.out.println(\"5. Obtener datos empleado\");\n System.out.println(\"6. Salir\\n\");\n empleado = null;\n\n try {\n\n System.out.print(\"Introduzca una de las opciones: \");\n opcion = teclado.nextInt();\n teclado.nextLine();\n System.out.println(\"\");\n\n switch (opcion) {\n case 1:\n empleado = generarDatosEmpleado(true);\n empleadoController.insertar(empleado);\n System.out.println(\"\\nEmpleado insertado\");\n break;\n case 2:\n System.out.println(\"Proceda a introducir los datos, el DNI debe mantenerse igual\");\n empleado = generarDatosEmpleado(false);\n empleadoController.modificar(empleado);\n System.out.println(\"\\nCliente modificado\");\n break;\n case 3:\n System.out.print(\"Introduzca el dni del empleado: \");\n dni = teclado.next();\n validarDni(dni);\n empleadoController.eliminar(empleadoController.buscar(dni));\n System.out.println(\"\\nEmpleado eliminado\");\n break;\n case 4:\n System.out.println(\"Lista de empleados: \");\n ArrayList<Empleado> empleados = empleadoController.listadoEmpleados();\n for (Empleado empleado2 : empleados) {\n System.out.println(empleado2.toString());\n }\n break;\n case 5:\n System.out.print(\"Introduzca el dni del empleado: \");\n dni = teclado.next();\n validarDni(dni);\n empleado = empleadoController.buscar(dni);\n System.out.println(empleado.toString());\n break;\n case 6:\n salir = true;\n break;\n default:\n System.out.println(\"Solo numeros entre 1 y 6\");\n }\n } catch (InputMismatchException e) {\n System.out.println(\"Debe insertar una opcion correcta\");\n teclado.next();\n }\n }\n }", "public int executarIr(int direcao) {\r\n //@todo T1 - invocar metodo do Model - atuar no ambiente\r\n model.ir(direcao);\r\n return 1; // deu certo\r\n }", "public int executarIr(int direcao) {\r\n //@todo T1 - invocar metodo do Model - atuar no ambiente\r\n model.ir(direcao);\r\n return 1; // deu certo\r\n }", "private void registroProcesado(InterfazParams interfazParams) {\n\t\tLong registrosProcesados = (Long) interfazParams.getQueryParams().get(\n\t\t\t\t\"registrosProcesados\");\n\t\tregistrosProcesados = new Long(registrosProcesados.longValue() + 1);\n\t\tinterfazParams.getQueryParams().put(\"registrosProcesados\",\n\t\t\t\tregistrosProcesados);\n\t}", "public void menuListados() {\n\t\tSystem.out.println(\"MENU LISTADOS\");\n\t\tSystem.out.println(\"1. Personas con la misma actividad\");\n\t\tSystem.out.println(\"2. Cantidad de personas con la misma actividad\");\n\t\tSystem.out.println(\"0. Salir\");\n\t}", "public void imprimeDados() {\n System.out.println(\"Banco: \" + nome + \"\\tNumero do banco \" + numero);\n }", "public void setPerfil(int perfil){\n this.perfil = perfil;\n }", "public void CobrarImpuestosReducidos(){\n\t\tif(sueldoBruto>=BASE_MINIMA_IMPUESTOS && sueldoBruto<IMPUESTO_SUP){\n\t\t\tsueldoNeto=sueldoBruto-(sueldoBruto*PAGA_IMPUESTOS_MIN);\n\t\t\ttipoImpuesto=\"Ha pagado el 20% de impuestos\";\n\t\t}\n\t}" ]
[ "0.6326817", "0.6181833", "0.5950897", "0.59037787", "0.5851465", "0.5752699", "0.56355286", "0.55263096", "0.5521838", "0.54948723", "0.5424817", "0.54179126", "0.5416104", "0.5396027", "0.5378028", "0.5373488", "0.53695565", "0.5322549", "0.5316897", "0.5314434", "0.53064805", "0.52960396", "0.5284591", "0.5275846", "0.52742434", "0.5252648", "0.5227416", "0.52161777", "0.52151024", "0.5201879", "0.52000594", "0.5198068", "0.5197245", "0.5186534", "0.5182215", "0.51749724", "0.5173193", "0.51625407", "0.5161632", "0.51547235", "0.51526797", "0.5149579", "0.514942", "0.51493806", "0.5142896", "0.5138442", "0.51269007", "0.5112053", "0.5106625", "0.51049346", "0.51049346", "0.5102611", "0.50984305", "0.50978523", "0.5096864", "0.5090179", "0.5087976", "0.5087805", "0.5086362", "0.50805867", "0.50784135", "0.5078288", "0.5066317", "0.50658023", "0.5064143", "0.5058659", "0.50582397", "0.50486267", "0.5044795", "0.50437856", "0.5042254", "0.5037654", "0.5035667", "0.5027643", "0.50031877", "0.49979466", "0.49973887", "0.4993103", "0.49871868", "0.49843413", "0.4983084", "0.4981954", "0.4980532", "0.49785945", "0.49752027", "0.49663943", "0.4962571", "0.49530986", "0.49494386", "0.49482036", "0.49416444", "0.49387786", "0.49376112", "0.4937219", "0.4937219", "0.4933267", "0.49290517", "0.49284652", "0.49262816", "0.4923288" ]
0.6726973
0
Imprime el nivel medio
public void imprimirNivelMedio(){ modCons.imprimirNivelMedio(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void imprimirNivelSuperior(){\n\t\tmodCons.imprimirNivelSuperior();\n\t}", "public void diminuiInSitu(){\n if(quantidade_in_situ>0)\n quantidade_in_situ--;\n else\n return;\n }", "public void siguienteNivel(){ \n\t\tnivel++;\n\t\tcontador = 0;\n\t\tcontadorE = 0;\n\t\treiniciar = false;\n\t\t\n\t\tnumDisparos=0; \n\t\tpausa=false;\n\t\tdisparando=false;\n\t\t\n\t\tif(nivel<9){\n\t\t\tasteroides =new Asteroide [(2+(nivel*2)) *(int)Math.pow(astNumDivision,astNumDisparos-1)+1];\n\t\t\tnumAsteroides = 2+(nivel*2);\n\t\t}\n\t\telse{\n\t\t\tasteroides =new Asteroide [12 *(int)Math.pow(astNumDivision,astNumDisparos-1)+1];\n\t\t\tnumAsteroides = 12;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<numAsteroides;i++){\n\t\t\tasteroides[i]=new Asteroide(this, Math.random()*this.getWidth(), Math.random()*this.getHeight(), \n\t\t\t\t\tastRadio,minAstVel, maxAstVel, astNumDisparos, astNumDivision, 1);\n\t\t}\n\t}", "@Override\n public void subida(){\n // si es mayor a la eperiencia maxima sube de lo contrario no\n if (experiencia>(100*nivel)){\n System.out.println(\"Acabas de subir de nivel\");\n nivel++;\n System.out.println(\"Nievel: \"+nivel);\n }else {\n\n }\n }", "public void subirNivelAtaque(){\n\tif(contadorNivel==5){\n\t nivelAtaque++;\n\t System.out.println(\"El ataque \"+obtenerNombreAtaque()+\" ha subido de nivel\");\n\t contadorNivel=0;\n\t dano+=5;\n\t} else {\n\t nivelAtaque=nivelAtaque;\n\t}\n }", "@Override\n public int nivel() {\n return this.altura() - 1;\n }", "public void imprimir() {\n\t\r\n\tSystem.out.println(\"El circulo tiene un perimetro de \"+ this.perimetro + \" y un area de \"+ this.area);\r\n\t\r\n\t}", "protected void subirDeNivel(int n) //A cada 100 de xp, sobe de nivel\n {\n this.nivel = nivel + n;\n }", "@Override\n public void cantidad_Defensa(){\n defensa=2+nivel+aumentoD;\n }", "@Override\n\tpublic int volumeMenos() {\n\t\treturn 0;\n\t}", "void unsetMaximum();", "public void pierdeUnaVida() {\n numeroDeVidas--;\n }", "public void CobrarImpuestosReducidos(){\n\t\tif(sueldoBruto>=BASE_MINIMA_IMPUESTOS && sueldoBruto<IMPUESTO_SUP){\n\t\t\tsueldoNeto=sueldoBruto-(sueldoBruto*PAGA_IMPUESTOS_MIN);\n\t\t\ttipoImpuesto=\"Ha pagado el 20% de impuestos\";\n\t\t}\n\t}", "@Override\n public void cantidad_Ataque(){\n ataque=5+2*nivel+aumentoT;\n }", "public void UnDia()\n {\n int i = 0;\n for (i = 0; i < 6; i++) {\n for (int j = animales.get(i).size() - 1; j >= 0; j--) {\n\n if (!procesoComer(i, j)) {\n animales.get(i).get(j).destruir();\n animales.get(i).remove(j);\n } else {\n if (animales.get(i).size() > 0 && j < animales.get(i).size()) {\n\n if (animales.get(i).get(j).reproducirse()) {\n ProcesoReproducirse(i, j);\n }\n if (j < animales.get(i).size()) {\n if (animales.get(i).get(j).morir()) {\n animales.get(i).get(j).destruir();\n animales.get(i).remove(j);\n }\n }\n }\n }\n\n }\n }\n if (krill == 0) {\n Utilidades.MostrarExtincion(0, dia);\n }\n modificarKrill();\n modificarTemperatura();\n ejecutarDesastres();\n for (i = 1; i < animales.size(); i++) {\n if (animales.get(i).size() == 0 && !extintos.get(i)) {\n extintos.set(i, true);\n Utilidades.MostrarExtincion(i, dia);\n }\n }\n dia++;\n System.out.println(dia + \":\" + krill + \",\" + animales.get(1).size() + \",\" + animales.get(2).size() + \",\" + animales.get(3).size() + \",\" + animales.get(4).size() + \",\" + animales.get(5).size());\n }", "public void cambioNivel(int nivel) {\n\t\tthis.reDimensionar(fondoJuego, new ImageIcon(Gui.class.getResource(\"/RecursosGraficosNiveles/FONDO-LVL0\"+nivel+\".png\")));\n\t\tpanelJuego.moveToBack(fondoJuego);\n\t\tpanelJuego.pantallaNivel(nivel - 1);\n\t\tjuego.pausa();\n\t\tpanelJuego.CambioDeLvl();\n\t\tpanelJuego.repaint();\n\t}", "public void anterior() {\n canalAtual--;\n televisao.mudarCanal(canalAtual);\n }", "public void descontarUnidad() {\r\n\t\tcantidad--;\r\n\t}", "@Override\n public void cantidad_Punteria(){\n punteria=69.5+05*nivel+aumentoP;\n }", "public void diminueVies() {\n\n nbVies_restantes.set(nbVies_restantes.get()-1);\n\n }", "@Override\n\tpublic void imprime() {\n\t\t\n\t}", "public int cargarCombustible(){ //creamos metodo cargarCombustible\r\n return this.getNivel();//retornara el nivel de ese mecanico\r\n }", "public void moverIzquierda() {\n estado = EstadosPersonaje.IZQUIERDA;\n mover(new Vector2(-1, 0));\n }", "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 }", "@Override\n public void setExperiencia(){\n experiencia1=Math.random()*50*nivel;\n experiencia=experiencia+experiencia1;\n subida();\n }", "public void Dios()\r\n {\r\n \tif(!dios)\r\n \t\tgrafico.cambiarA(0);\r\n \telse\r\n \t\tgrafico.cambiarA(1);\r\n dios=!dios;\r\n }", "@Override\n\tpublic double perimetro() {\n\t\treturn 0;\n\t}", "public static void DeterminarArregloDeMisiles() {\n\t\tVectorDeMisilesCrucerosPorNivel[3] = true;\n\t\tVectorDeMisilesCrucerosPorNivel[4] = true;\n\t\tVectorDeMisilesCrucerosPorNivel[7] = true;\n\t\tVectorDeMisilesCrucerosPorNivel[8] = true;\n\t\tVectorDeMisilesCrucerosPorNivel[11] = true;\n\t\tVectorDeMisilesCrucerosPorNivel[12] = true;\n\t\tVectorDeMisilesCrucerosPorNivel[15] = true;\n\t\tVectorDeMisilesCrucerosPorNivel[16] = true;\n\t}", "public static void miedo(){\n int aleatorio; //variables locales a utilizar\n Random numeroAleatorio = new Random(); //declarando variables tipo random para aleatoriedad\n aleatorio = (numeroAleatorio.nextInt(10-5+1)+5);\n \n if(oro>aleatorio){//condicion de finalizar battalla y sus acciones\n oroPerdido= (nivel*2)+aleatorio;\n oro= oro-oroPerdido;\n System.out.println(\"Huiste de la batalla!!!\");\n\t\t System.out.println(\"oro perdido:\"+oroPerdido);\n opcionMiedo=1; //finalizando battalla por huida del jugador \n }\n else{\n System.out.println(\"No pudes huir de la batalla\");\n } \n }", "public void NopagaImpuestos(){\n\t\tif(sueldoBruto<BASE_MINIMA_IMPUESTOS){\n\t\tsueldoNeto=sueldoBruto;\n\t\ttipoImpuesto=\"En esta ocasión no paga impuestos\";\n\t\t}\n\t}", "public final void diminuerNbVie() {\n this.nbVie--;\n }", "public int EliminarNodo() {\r\n int auxiliar = UltimoValorIngresado.informacion;\r\n UltimoValorIngresado = UltimoValorIngresado.siguiente;\r\n tamaño--;\r\n return auxiliar;\r\n }", "public void reset()\n {\n cantidad = 0;\n suma = 0;\n maximo = 0; \n minimo = 0; \n \n }", "public static void imprimirCamino(int dimension, int nodoFuente, int nodoDestino){\n if (dimension < 1){\n System.out.println(\"Se ha llamado al programa con una dimension invalida\");\n System.out.println(\"Ejecute el programa con el parametro \\\"--help\\\" para obtener mas informacion acerca de como llamar correctamente al programa. \");\n }\n else{\n if (((0 > nodoFuente) || (nodoFuente >= (Math.pow(2,dimension)))) || ((0 > nodoDestino) || (nodoDestino >= (Math.pow(2,dimension))))){\n System.out.println(\"Se ha llamado al programa con valores de nodos fuente y/o destino incorrecto\");\n System.out.println(\"Ejecute el programa con el parametro \\\"--help\\\" para obtener mas informacion acerca de como llamar correctamente al programa. \");\n }\n else{\n // Los parametros ingresados son validos\n int nodoVecinoTemporario = nodoFuente;\n int dimensionActual = dimension;\n \n int xorEntreNodos = nodoFuente ^ nodoDestino; // xorEntreNodos mantiene el resultado de la operacion a nivel de bit XOR entre nodoFuente y nodoDestino\n \n System.out.printf(\"A continuacion se muestra el camino realizado por un paquete desde el nodo fuente %d al nodo destino %d\\n\", nodoFuente, nodoDestino);\n \n System.out.printf(\"[ %d \", nodoFuente);\n \n // Para determinar por cuales nodos viaja el mensaje para ir desde el nodo fuente al nodo destino trabajamos con la representacion binaria de los nodos.\n // Al realizar la operacion a nivel de bit XOR entre el nodo fuente y el nodo destino obtenemos un numero que en su representacion binaria indica los distintos movimientos que debemos hacer.\n // Asi, sea \"nm ... n3 n2 n1\" el valor de la operacion XOR con m el valor de la dimension del hypercubo, si nm (esto es el digito en la posicion m del resultado) es uno indica que en ese nivel el mensaje debe viajar al vecino en dicha dimension.\n // Si dicho digito es cero entonces en dicha dimension el mensaje no debe viajar a ningun vecino.\n \n // Asi lo que hacemos es iterar sobre las dimensiones, comenzando en la mayor.\n // Si en dicha dimension el resultado del XOR indica que se debe mover a un nodo vecino realizamos una operacion para que el nodo actual se convierta en el nodo vecino destino temporal.\n // Asi hasta llegar al nodo destino (si se llega al destino antes de recorrer todas las dimensiones) o hasta que se recorran todas las dimensiones.\n while (dimensionActual != 0){\n // Si el nodo aux es igual al nodo destino cortamos el bucle\n if (nodoVecinoTemporario == nodoDestino){\n break;\n }\n \n // Controlamos si en la dimension actual debemos viajar al nodo vecino.\n // Si el resultado del XOR entre los nodos en la dimension actual es uno entramos en el cuerpo de la condicion. (Esto lo controlamos con la siguiente sentencia: (xorEntreNodos & (int)(Math.pow(2, dimensionActual - 1))) != 0)\n if ((xorEntreNodos & (int)(Math.pow(2, dimensionActual - 1))) != 0){ \n // Significa que en esa dimension debo cambiar de nodo al otro nodo de la dimension. \n \n // La operacion de XOR a nivel de bits invierte los bits del primer operando en la posiciones donde el segundo operando tiene un uno.\n // Asi logramos que viaje al nodo vecino invirtiendo los bits.\n nodoVecinoTemporario = nodoVecinoTemporario ^ (int)(Math.pow(2, dimensionActual - 1)); \n \n System.out.printf(\"-> %d \", nodoVecinoTemporario);\n }\n dimensionActual--;\n \n }\n System.out.printf(\"]\");\n }\n }\n }", "public void removerInicio() {\n switch (totalElementos()) {\n case 0:\n System.out.println(\"lista esta vazia\");\n break;\n case 1:\n this.primeiro = this.ultimo = null;\n this.total--;\n break;\n default:\n this.primeiro = this.primeiro.irParaProximo();\n this.total--;\n break;\n }\n }", "public void moverAbajo() {\n estado = EstadosPersonaje.QUIETO;\n mover(new Vector2(0, -1));\n }", "public void restarPunto ( ) {\n\t\tif ( vida > 0 )\n\t\t\tvida--;\n\t}", "public void morir()\r\n\t{\r\n\t\tif(this.grafico != null)\t\r\n\t\t\tthis.mover(4);\r\n\t}", "private static void afisareSubsecventaMaxima() {\n afisareSir(citireSir().SecvMax());\n }", "public void Nivel(Nodo nodo){\r\n\t\tif(cont<(int)Math.pow(2,base)){\r\n\t\t\tnodo.setNivel(nivel);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tnivel++;\r\n\t\t\tbase++;\r\n\t\t\tnodo.setNivel(nivel);\r\n\t\t}\r\n\t}", "public void restarAlInventario(int cantidad) {\n\t\tint aux=this.cantidad - cantidad;\n\t\tif(aux>=0) {\n\t\t\tthis.cantidad = aux;\n\t\t}else {\n\t\t\tthis.cantidad = 0;\n\t\t}\n\t}", "public void gastarDinero(double cantidad){\r\n\t\t\r\n\t}", "@Override\n public String toString() {\n return \"IrNivelMedio\";\n }", "@Override\n\tpublic int canalMenos() {\n\t\treturn 0;\n\t}", "public void kurangIsi(){\n status();\n //kondisi jika air kurang atau sama dengan level 0\n if(level==0){Toast.makeText(this,\"Air Sedikit\",Toast.LENGTH_SHORT).show();return;}\n progress.setImageLevel(--level);\n }", "public int masVendido(int cantidad){\r\n \r\n return cantidad;\r\n }", "private void populaUnidadeMedida()\n {\n UnidadeMedida u = new UnidadeMedida(\"Gramas\", \"g\");\n unidadeMedidaDAO.insert(u);\n u = new UnidadeMedida(\"Quilo\", \"kg\");\n unidadeMedidaDAO.insert(u);\n u = new UnidadeMedida(\"Quilo\", \"kg\");\n unidadeMedidaDAO.insert(u);\n u = new UnidadeMedida(\"Unidade\", \"unidade\");\n unidadeMedidaDAO.insert(u);\n u = new UnidadeMedida(\"Colher de Sopa\", \"col. sopa\");\n unidadeMedidaDAO.insert(u);\n u = new UnidadeMedida(\"Colher de Sobremesa\", \"col. sobremesa\");\n unidadeMedidaDAO.insert(u);\n u = new UnidadeMedida(\"Colher de Chá\", \"col. chá\");\n unidadeMedidaDAO.insert(u);\n u = new UnidadeMedida(\"Copo\", \"copo\");\n unidadeMedidaDAO.insert(u);\n\n }", "public int disminuir(int contador){\nSystem.out.println(\"Escoge la cantidad a disminuir\");\nnum=teclado.nextInt();\nfor(int i=0 ; i<num ; i++){\ncontador=contador-1;}\nreturn contador;}", "public Nodo_m_ario(Nodo_m_ario padre, int val, int m) {\n\t\tchiave = val;\n\t\tgrado = m;\n\t\tthis.padre = padre;\n\t\tfigli = new Nodo_m_ario[grado];\n\t\tradice = false;\n\t}", "@Override\n public void buildNivel(int nivel) {\n \n if(nivel < 6)\n this.personaje.setNivel(nivel);\n }", "void imprimeExtrato(){\n\t\tthis.imprimeExtrato(15);\n\t}", "public static Nivel getNivel(Mapa m) {\n\t\tif(INSTANCE == null)\n\t\t\tINSTANCE = new Nivel(m);\n\t\t\n\t\treturn INSTANCE;\n\t}", "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 static void imprimeCambio(float total){\r\n System.out.println(\"imprime el cambio devuelto\");\r\n }", "void imprimeExtrato(int dias){\n\t\tSystem.out.println(\"Imprime extrato para \" + dias + \" dias.\");\n\t}", "private void añadirEnemigo() {\n\t\t\n\t\tif(enemigo.isVivo()==false){\n\t\t\tint k;\n\t\t\tk = (int)(Math.random()*1000)+1;\n\t\t\tif(k<=200){\n\t\t\t\tif(this.puntuacion<10000){\n\t\t\t\t\tenemigo.setTipo(0);\n\t\t\t\t\tenemigo.setVivo(true);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tenemigo.setTipo(1);\n\t\t\t\t\tenemigo.setVivo(true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private int[][] llenarAsignacion(int asignacion[][], int maximos[][], int disponibles[])\r\n {\r\n \r\n //Variables para llenar la matriz asignacion\r\n int max, disp, random;\r\n int asignados[][] = asignacion;\r\n int maxarr[][] = maximos;\r\n int disparr[] = disponibles;\r\n \r\n for(int j = 0; j < asignacion[0].length; j++){\r\n //Extraer la cantidad de tipo de recurso disponible\r\n disp = disparr[j];\r\n for(int i = 0; i < asignacion.length; i++){\r\n \r\n if(disp > 0){ //Si la cantidad de tipo recurso disponibles es 0, asignar 0\r\n \r\n //Extraer valor maximo de tipo de recurso que requiere el proceso\r\n max = maxarr[i][j];\r\n \r\n //Si el proceso requiere mas recursos de los disponibles, limitar los recursos asignables a los disponibles\r\n if(max > disp)\r\n {\r\n max = disp;\r\n }\r\n \r\n //Asignar una cantidad aleatoria del tipo de recurso, entre 0 y la cantidad maxima posible\r\n random = ThreadLocalRandom.current().nextInt(0, max + 1);\r\n asignados[i][j] = random;\r\n \r\n //System.out.println(\"as \"+asignados[i][j]);\r\n \r\n //Actualizar la cantidad de tipo de recurso disponible\r\n disp = disp - random;\r\n } \r\n else \r\n {\r\n asignados[i][j] = disp;\r\n }\r\n }\r\n }\r\n return asignados;\r\n }", "public void novaIgra() {\r\n\t\tbroj_slobodnih = 16;\r\n\t\tfor(int i = 0 ; i < 4 ; i++)\r\n\t\t\tfor(int j = 0 ; j < 4 ; j++)\r\n\t\t\t\ttabela[i][j] = 0;\r\n\t\tpobjeda = false;\r\n\t\tigrajPoslijePobjede = false;\r\n\t\tgenerisiPolje();\r\n\t\tgenerisiPolje();\r\n\t}", "@Override\n\tpublic int vanish() {\n\t\treturn 1;\n\t}", "public void agregarVidaLogica(){\n int numvida = tam * tam;\n numvida*=0.05;\n System.out.println(numvida);\n for(int i=0;i<numvida;i++){\n int x= (int)(Math.random()*tam);\n int y= (int)(Math.random()*tam);\n if(matriz[y][x]!=2 && matriz[y][x]!=1){\n matriz[y][x]=4;\n }\n }\n }", "abstract int getMaxLevel();", "public void removeLevel()\n {\n clearLevelAndDecreaseCount();\n }", "public void setNivel (int nivel)\r\n\t{\r\n\t\tthis.nivel = nivel;\r\n\t}", "public void ponerFichaOrdenador(){\n\t\tif (verificaGana() == -1){\n\t\t\t\n\t\t\tint nx = (int) Math.floor(Math.random()*3);\n\t\t\tint ny = (int) Math.floor(Math.random()*3);\n\t\t\tint res=0;\n\t\t\tfor (int i=nx;i<3;i++){\n\t\t\t\tfor (int j=ny;j<3;j++){\n\t\t\t\t\tif (m[i][j]==0){\n\t\t\t\t\t\tm[i][j]=2;\n\t\t\t\t\t\tres = 1;\n\t\t\t\t\t\ti=3;j=3;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (res==0) {\n\t\t\t\tfor (int i=0;i<3;i++){\n\t\t\t\t\tfor (int j=0;j<3;j++){\n\t\t\t\t\t\tif (m[i][j]==0){\n\t\t\t\t\t\t\tm[i][j]=2;\n\t\t\t\t\t\t\tres = 1;\n\t\t\t\t\t\t\ti=3;j=3;\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\n\t}", "public void imprimeDados() {\n System.out.println(\"Banco: \" + nome + \"\\tNumero do banco \" + numero);\n }", "public void ganarDineroPorAutomoviles() {\n for (Persona p : super.getMundo().getListaDoctores()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaAlbaniles()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaHerreros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n }", "public PrimerNivel() {\n initComponents();\n }", "public void clearLevel() {\n super.clearLevel();\n }", "public void moverElementoAnterior() {\n\t\tif(indiceElementoMenuActual>0) {\n\t\t\tindiceElementoMenuActual--;\n\t\t}\n\t\tsetElementoMenuActual();\n\t}", "public void limitarCantidad(int cantidad) {\n int cantidadAnterior = nodos.size();\n \n nodos = nodos.subList(0, cantidad);\n \n fireIntervalRemoved(this, cantidad, cantidadAnterior);\n }", "public void disminuirCantidad(Libro libro){\n libro.setCantidadCopias(libro.getCantidadCopias()-1);\n manejadorArchivoLibro.crearArchivo(libro, LIBRO, libro.getCodigo(), \".lib\");\n }", "public static void atacar(){\n int aleatorio; //variables locales a utilizar\n Random numeroAleatorio = new Random(); //declarando variables tipo random para aleatoriedad\n int ataqueJugador;\n //acciones de la funcion atacar sobre vida del enemigo\n aleatorio = (numeroAleatorio.nextInt(20-10+1)+10);\n ataqueJugador= ((nivel+1)*10)+aleatorio;\n puntosDeVidaEnemigo= puntosDeVidaEnemigo-ataqueJugador;\n \n }", "@Override\n public void pp(){\n PP=3+2*nivel;\n }", "public int getNivel() {\n\t\treturn nivel;\n\t}", "public int getNivel() {\n\t\treturn nivel;\n\t}", "public void resetLevel() {\n\t\tguiManager.getGameController().clearGrid();\n\t\tguiManager.getGameController().setSlider(new Slider(0, 0, COMP_WIDTH, COMP_HEIGHT));\n\t\tguiManager.getGameController().setGridSize(DEFAULT_GRID_SIZE, DEFAULT_GRID_SIZE);\n\t}", "@Override\n\tpublic void aumentar(int cantidad) {\n\t\t\n\t}", "public void imprime(){\n imprimeP();\n }", "@Override\n\tpublic double getMassaInterna()\n\t{\n\t\treturn 0.0;\n\t}", "public void setNivel(int nivel) {\n this.nivel = nivel;\n }", "public static void poder(){\n System.out.print(\"\\033[H\\033[2J\");//limpia pantalla\n System.out.flush();\n if(experiencia>=100){ //condicion de aumento de nivel\n nivel=nivel+1;\n System.out.println(\"Aumento de nivel exitoso\");\n }\n else{\n System.out.println(\"carece de experiencia para subir su nivel\");\n }\n }", "public void visMedlemskabsMenu ()\r\n {\r\n System.out.println(\"Du har valgt medlemskab.\");\r\n System.out.println(\"Hvad Oensker du at foretage dig?\");\r\n System.out.println(\"1: Oprette et nyt medlem\");\r\n System.out.println(\"2: Opdatere oplysninger paa et eksisterende medlem\");\r\n System.out.println(\"0: Afslut\");\r\n\r\n }", "public void aumentarMinas(){\n\r\n if(espM==false){\r\n minascerca++;\r\n }\r\n }", "public void VaciarPila()\n {\n this.tope = 0;\n }", "public void setCantAnulacion(java.lang.Integer cantAnulacion) {\r\n this.cantAnulacion = cantAnulacion;\r\n }", "public void eliminarMedico(Integer id_medico) {\n\t\tmedicoMapper.eliminarMedico(id_medico);\n\t}", "private void antiguedad() {\n\t\tint anti1, anti2, anti3;\n\t\tanti1 = socio1.antiguedad();\n\t\tanti2 = socio2.antiguedad();\n\t\tanti3 = socio3.antiguedad();\n\n\t\tif (anti1 > anti2 && anti1 > anti3) {\n\t\t\tSystem.out.println(\"El socio con mayor antiguedad es: \" + socio1.socio());\n\t\t} else {\n\t\t\tif (anti2 > anti3) {\n\t\t\t\tSystem.out.println(\"El socio con mayor antiguedad es: \" + socio2.socio());\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"El socio con mayor antiguedad es: \" + socio3.socio());\n\t\t\t}\n\n\t\t}\n\n\t}", "@Override\n\tpublic void manejoVida(int cantVida, int tipCambio) {\n\t\t\n\t}", "public void moverArriba() {\n estado = EstadosPersonaje.QUIETO;\n mover(new Vector2(0, 1));\n }", "public int getNivel() {\n return this.nivel;\n }", "public void normaliza() {\n switch (o) {\n case SurEste:\n setPos(getX()+1, getY());\n o = OrientacionArista.NorOeste;\n break;\n case SurOeste: \n setPos(getX(), getY()+1);\n o = OrientacionArista.NorEste;\n break;\n case Oeste: \n setPos(getX()-1, getY()+1);\n o = OrientacionArista.Este;\n break;\n }\n }", "public void calcularIndicePlasticidad(){\r\n\t\tindicePlasticidad = limiteLiquido - limitePlastico;\r\n\t}", "private void recolteNourriture() {\r\n\t\t\t//1pop recolte toute la case\r\n\t\t\tint tempNourr = 0;\r\n\t\t\tint totalPop = population + populationColoniale;\r\n\t\t\tint limite = (totalPop < caseOwned.size()) ? totalPop : caseOwned.size();\r\n\t\t\tfor(int id = 0; id < limite; id++) {\r\n\t\t\t\ttempNourr += caseOwned.get(id).getFood();\r\n\t\t\t}\r\n\t\t\t//animaux\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Bétail) * 10; //Ca mange de l'herbe, ça se tente.\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Cervidés) * 7.5; //CARIBOUUUUUUUUU !!\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Crabe) * 2; //ca pique les pied, a mort!!\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Elephants) * 30; //polution sonore\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Moutons) * 5; //kébab landais\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Poissons) * 5; //croustibat\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Chevaux) * 7; //lasagnes\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Baleines) * 50; //*bruit de baleine virile*\r\n\t\t\t//aplication des bonus\r\n\t\t\ttempNourr *= (1 + (0.15 * scienceLvl) + (0.05 * (bonheur - baseBonheur))); // +15% par scienceLvl +5% par bonheur excedentaire, -5% par bonheur négatif\r\n\t\t\t\r\n\t\t\tnourriture += tempNourr;\r\n\t\t\t//bonus de conservation grâce au sel\r\n\t\t\tif(howManyRessource(StrategicRessource.Sel) > 0 && nourriture > 0) nourriture *= 1.10;\r\n\t\t\t//limitation de stockage\r\n\t\t\tint stockageMax = caseOwned.size() * 100 * scienceLvl;\r\n\t\t\tif(nourriture > stockageMax) nourriture = stockageMax;\r\n\t\t}", "public void removerFinal() {\n switch (totalElementos()) {\n case 0:\n System.out.println(\"lista esta vazia\");\n break;\n case 1:\n this.primeiro = this.ultimo = null;\n this.total--;\n break;\n default:\n ElementoLista elementoTemporarioAnteriorAtual = this.primeiro;\n ElementoLista elementoTemporarioAtual = this.primeiro.irParaProximo();\n for (int i = 1; i < totalElementos(); i++) {\n elementoTemporarioAnteriorAtual = elementoTemporarioAtual;\n elementoTemporarioAtual = elementoTemporarioAtual.irParaProximo();\n }\n\n this.ultimo = elementoTemporarioAnteriorAtual;\n this.ultimo.definirProximo(null);\n this.total--;\n }\n //this.ultimo = this.ultimo.irParaAnterior();\n //this.ultimo.definirProximo(null);\n }", "public int eliminardelInicio(){\n int elemento = inicio.dato;\n if(inicio == fin){\n inicio=fin=null;\n }else{\n inicio = inicio.sig;\n inicio.ant = null;\n }\n return elemento;\n \n \n }", "private boolean temMunicao() {\n\t\t\n\t\tif (round<1) {\n\t\t\tsetSemMunicao(true);\n\t\t\treturn false;\n\t\t\t\n\t\t}else \n\t\t\tsetSemMunicao(false);\n\t\t\n\t\t\n\t\treturn true;\n\t}", "public void hallarPerimetroEscaleno() {\r\n this.perimetro = this.ladoA+this.ladoB+this.ladoC;\r\n }", "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 }", "private void imprimirMatriz(int[][] m) {\n\n\t\tSystem.out.println(\"-------------------------------------------\");\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tSystem.out.println(\"M[\" + i + \"][\" + j + \"] = \" + m[i][j]);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"-------------------------------------------\");\n\t}", "private void imprimirProgresso(AtualizacaoUI.Comunicado comunicado){\n\n if(comunicado.obterLimite() != Sintaxe.SEM_REGISTO){\n if(activityUploadBinding.progressBarProgresso.getMax() != comunicado.obterLimite()){\n activityUploadBinding.progressBarProgresso.setMax(comunicado.obterLimite());\n }\n }\n\n activityUploadBinding.txtProgresso.setText(comunicado.obterPosicao() + \"/\" + comunicado.obterLimite());\n activityUploadBinding.txtTituloProgresso.setText(comunicado.obterMensagem());\n activityUploadBinding.progressBarProgresso.setProgress(comunicado.obterPosicao());\n }" ]
[ "0.70904845", "0.6112289", "0.607931", "0.6015198", "0.5887958", "0.58664066", "0.5866032", "0.56945676", "0.56643826", "0.5634124", "0.5597457", "0.55872124", "0.55821043", "0.5496604", "0.54643863", "0.5462328", "0.5461544", "0.5458903", "0.54258144", "0.5395214", "0.5363742", "0.5360683", "0.5358996", "0.5343877", "0.53432286", "0.53427607", "0.53311837", "0.5305612", "0.5303833", "0.52941954", "0.5280362", "0.5280204", "0.52695286", "0.52582693", "0.52530503", "0.5250374", "0.5242971", "0.5241599", "0.52189195", "0.5204249", "0.520409", "0.5183939", "0.5179375", "0.5175965", "0.51624024", "0.5160919", "0.5139064", "0.51330864", "0.5126799", "0.51087695", "0.51084167", "0.5106691", "0.5094511", "0.5093849", "0.50921434", "0.50747734", "0.5074411", "0.50681895", "0.5065173", "0.50638336", "0.50588185", "0.50574064", "0.50511473", "0.50486267", "0.5040953", "0.503981", "0.5025409", "0.5017377", "0.50160915", "0.5010698", "0.5006438", "0.5006057", "0.5005659", "0.5002631", "0.5002631", "0.49881816", "0.49872807", "0.4986203", "0.4986093", "0.49825388", "0.49822813", "0.4978856", "0.49587852", "0.4958301", "0.49568158", "0.49563017", "0.49560463", "0.4954322", "0.4952494", "0.49518958", "0.49479225", "0.4942195", "0.49371213", "0.4935384", "0.49351686", "0.49324027", "0.49295637", "0.4924391", "0.49199432", "0.49195826" ]
0.8312871
0
Usado por los metodos que imprimen
public void imprimirHijos(){ modCons.imprimirHijos(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mostrarTareasEnPosicionImpar(){}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\tvoid geraDados() {\n\n\t}", "private void limpiarDatos() {\n\t\t\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tpublic void imprimir() {\n\t\t\n\t}", "@Override\n public void memoria() {\n \n }", "private void habilitarCamposModif() {\n\n listarPromotoresModif();\n //limpiarListaCrear();\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void Ordenamiento() {\n\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void horario() {\n\t\t\r\n\t}", "@Override\n\tpublic void recreo() {\n\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void iniciar() {\n\t\t\n\t}", "public void limpiarCampos() {\n\t\ttema = new Tema();\n\t\ttemaSeleccionado = new Tema();\n\t\tmultimedia = new Multimedia();\n\t}", "@Override\n protected void adicionarLetrasErradas() {\n }", "protected void agregarUbicacion(){\n\n\n\n }", "private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public void imprimir(){\n for(int i = 0;i < this.listaEtiquetas.size();i++){\n System.out.println(\"- \"+(i+1)+this.listaEtiquetas.get(i).getEtiqueta()+\" descripcion\"+this.listaEtiquetas.get(i).getDescripcion());\n }\n }", "@Override\n protected void getExras() {\n }", "private ControleurAcceuil(){ }", "public void generTirarDados() {\n\r\n\t}", "public final void nonRedefinissableParEnfant(){\n\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void trabajar() {\n\n\t}", "@Override\n\tpublic void mostrarDados() {\n\t\t\n\t}", "private DittaAutonoleggio(){\n \n }", "public void inizializza() {\n\n /* invoca il metodo sovrascritto della superclasse */\n super.inizializza();\n\n }", "protected abstract void iniciarModo();", "private void remplirUtiliseData() {\n\t}", "public void limpiar()\n {\n nombre = null;\n descripcion = null;\n estado = null;\n primerNivel = true;\n }", "public Listas_simplemente_enlazada(){\r\n inicio=null; // este constructor me va servir para apuntar el elemento\r\n fin=null;\r\n }", "private UsineJoueur() {}", "@Override\n protected void adicionar(Funcionario funcionario) {\n\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "protected abstract List<OpcionMenu> inicializarOpcionesMenu();", "public void aplicarDescuento();", "@Override\n\tpublic void aumentar(int cantidad) {\n\t\t\n\t}", "@Override\n\tpublic void alterar() {\n\t\t\n\t}", "@Override\n\tpublic void iniciarLabores() {\n\t\t\n\t}", "@Override\n\tpublic void iniciarLabores() {\n\t\t\n\t}", "public void inicializaEntradas(){\n\t\tentrada = TipoMotivoEntradaEnum.getList();\n\t\tentrada.remove(0);\n\t}", "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}", "@Override\n\tpublic void darMasaje() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "private void doNovo() {\n contato = new ContatoDTO();\n popularTela();\n }", "private void limparComponentes() {\n textCodigo.setText(\"0\");\n textDescricao.setText(\"\");\n tableCategorias.clearSelection();\n }", "private void limpa() {\n\t\t// limpa Alfabeto\n\t\tsimbolos.limpar();\n\t\t// limpa conjunto de estados\n\t\testados.limpar();\n\t\t// limpa Funcao Programa\n\t\tfuncaoPrograma.limpar();\n\t\t// Limpa estados finais\n\t\testadosFinais.limpar();\n\t}", "private void inizia() throws Exception {\n this.setClasse((new ArrayList<Boolean>()).getClass());\n this.setValoreVuoto(null);\n }", "@Override\n\tpublic void nuevo() {\n\n\t}", "public ListaDuplamenteEncadeada(){\r\n\t\t\r\n\t}", "@Override\n\tpublic void pausaParaComer() {\n\n\t}", "@Override\n public void perish() {\n \n }", "public void inicializarListaMascotas()\n {\n //creamos un arreglo de objetos y le cargamos datos\n mascotas = new ArrayList<>();\n mascotas.add(new Mascota(R.drawable.elefante,\"Elefantin\",0));\n mascotas.add(new Mascota(R.drawable.conejo,\"Conejo\",0));\n mascotas.add(new Mascota(R.drawable.tortuga,\"Tortuga\",0));\n mascotas.add(new Mascota(R.drawable.caballo,\"Caballo\",0));\n mascotas.add(new Mascota(R.drawable.rana,\"Rana\",0));\n }", "public void onAdicionarItemTroca()\n\t{\n\t\t\n\t}", "protected FanisamBato(){\n\t}", "@Override\n\tpublic void coba() {\n\t\t\n\t}", "public void ouvrirListe(){\n\t\n}", "public void limpiar() {\r\n\t\t\t\tid.setText(\"\");\r\n\t\t\t\ttitulo.setText(\"\");\r\n\t\t\t\tdirector.setText(\"\");\r\n\t\t\t\tidCliente.setText(\"\");\r\n\t\t\t}", "public void Lista(){\n\t\tcabeza = null;\n\t\ttamanio = 0;\n\t}", "@Override\n\tpublic void preparar() {\n\t\tSystem.out.println(\"massa, presunto, queijo, calabreza e cebola\");\n\t\t\n\t}", "@Override\r\n\tprotected void agregarObjeto() {\r\n\t\t// opcion 1 es agregar nuevo justificativo\r\n\t\tthis.setTitle(\"PROCESOS - PERMISOS INDIVIDUALES (AGREGANDO)\");\r\n\t\tthis.opcion = 1;\r\n\t\tactivarFormulario();\r\n\t\tlimpiarTabla();\r\n\t\tthis.panelBotones.habilitar();\r\n\t}", "void usada() {\n mazo.habilitarCartaEspecial(this);\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private void mostrarEmenta (){\n }", "@Override\n\tpublic void anular() {\n\n\t}", "public void listar() {\n\t\t\n\t}", "public void selecao () {}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "public void MieiOrdini()\r\n {\r\n getOrdini();\r\n\r\n }", "@Override\r\n\tpublic void hacerSonido() {\n\t\tSystem.out.print(\"miau,miau -- o depende\");\r\n\t\t\r\n\t}", "public void buscarGestor(){\r\n\t\t\r\n\t}", "private void guardarEstadoObjetosUsados() {\n }", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "public void inicializar();", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "public void limpiar() {\n\t\taut_empleado.limpiar();\n\t\tutilitario.addUpdate(\"aut_empleado\");// limpia y refresca el autocompletar\n\n\n\t}", "protected Asignatura()\r\n\t{}", "private void reposicionarPersonajes() {\n // TODO implement here\n }", "public Artefato() {\r\n\t\tthis.membros = new ArrayList<Membro>();\r\n\t\tthis.servicos = new ArrayList<IServico>();\r\n\t}", "@Override\r\n\tprotected void initVentajas() {\n\r\n\t}", "@Override\n protected void elaboraMappaBiografie() {\n if (mappaCognomi == null) {\n mappaCognomi = Cognome.findMappaTaglioListe();\n }// end of if cycle\n }", "void salirDelMazo() {\n mazo.inhabilitarCartaEspecial(this);\n }", "private void procedureBasePrDessin(){\n if(courante == null){\n reset();\n courante = new Tortue(simpleLogo.getFeuille(), true);\n simpleLogo.setBarreOutilsVisible(true);\n }\n }", "@Override\n public String cualquierMetodo2() {\n return \"Método implementado en la clase hija viaje de incentivo\";\n }", "void inicializarDiccionarioMultiple();", "@Override\n\tvoid postarComentario() {\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}", "@Override\n\tpublic void dibuja() {\n\t\t\n\t}", "public void chocoContraMunicion(IMunicion municion){}", "private void Mueve() {\n\t\tpaleta1.Mueve_paletas();\n\t\tpaleta2.Mueve_paletas();\n\t\tpelota.Mueve_pelota();\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\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 }", "@Override\n\tpublic void emiteExtrato() {\n\t\t\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}" ]
[ "0.6682481", "0.6620993", "0.6589672", "0.65833205", "0.6511006", "0.64948833", "0.6475694", "0.6465494", "0.64430225", "0.63799155", "0.6357228", "0.63332355", "0.62988985", "0.62804383", "0.6279946", "0.6279677", "0.6249977", "0.6244514", "0.62438065", "0.6233356", "0.62059045", "0.6203978", "0.6167876", "0.61403173", "0.6136905", "0.6126056", "0.61250544", "0.61147213", "0.611374", "0.61069846", "0.6101632", "0.60892534", "0.6081738", "0.6076722", "0.60721314", "0.60713834", "0.6055521", "0.6050163", "0.6030952", "0.6029697", "0.6029088", "0.6020161", "0.6020161", "0.6020149", "0.60020703", "0.5992751", "0.59866655", "0.59779423", "0.59719884", "0.59693706", "0.59633434", "0.59633255", "0.5963264", "0.5953414", "0.5952022", "0.59372514", "0.59290814", "0.59281844", "0.5927786", "0.59266853", "0.5922832", "0.5920605", "0.59188503", "0.5916017", "0.59073156", "0.58995676", "0.5898543", "0.5893182", "0.58858436", "0.58851624", "0.5882624", "0.58726007", "0.58719766", "0.58681005", "0.5866802", "0.586554", "0.58624107", "0.5856329", "0.58472633", "0.5845871", "0.5834143", "0.58322453", "0.5828602", "0.5822239", "0.5816216", "0.58150566", "0.5807948", "0.5803267", "0.58021754", "0.5800892", "0.5798466", "0.5798225", "0.5793213", "0.5793213", "0.5790551", "0.5786305", "0.5784775", "0.5783952", "0.5781815", "0.578089", "0.5780882" ]
0.0
-1
Dado un nodo(subdominio) imprime todos nombres de dominio que dependen de el
public void imprimirSubdominios(String dominio,Pila pila){ modCons.imprimirSubdominios(dominio,pila); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void incluirDescendiente(INodo INodo) {\n\t\tif (this.getDescendientes().size() > numArg) {\n\t\t\treturn;\n\t\t}\n\t\tsuper.incluirDescendiente(INodo);\n\t}", "private Nodo eliminarNodo(Nodo aux, int dato) {\n\t\tif(aux == null) { \r\n\t\t\tSystem.out.println(\"El nodo no se encontro\");\r\n\t\t}else if(dato < aux.getDato()) { // Se busca el dato por el lado izquierdo.\r\n\t\t\tNodo izq = eliminarNodo(aux.getHijoIzq(), dato);\r\n\t\t\taux.setHijoIzq(izq);\r\n\t\t}else if (dato > aux.getDato()) { // Se busca el dato por el lado derecho.\r\n\t\t\tNodo der = eliminarNodo(aux.getHijoDer(), dato);\r\n\t\t\taux.setHijoIzq(der);\r\n\t\t}else { // Un vez encontrado se ejecuta el else.\r\n\t\t\tNodo n = aux; \r\n\t\t\tif(n.getHijoDer() == null) {// si el nodo del lado derecho es igual null se captura el nodo izquierdo.\r\n\t\t\t\taux = n.getHijoIzq(); \r\n\t\t\t}else if (n.getHijoIzq() == null) {// si el nodo del lado izquierdo es igual null se captura el nodo izquierdo.\r\n\t\t\t\taux = n.getHijoDer();\r\n\t\t\t}else { // Si el nodo a eliminar tiene dos hijos entonces hacemos cambiamos los lugaresa para despues eliminarlo. \r\n\t\t\t\tn = cambiar(n);\r\n\t\t\t}\r\n\t\t\tn = null; // ELiminamos el nodo.\r\n\t\t}\r\n\t\treturn aux;\r\n\t}", "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 LinkedList<Nodo> eliminarNodoNotExec(Nodo nodoElim){\n LinkedList<Nodo> nodoNotExec=new LinkedList<>();\n \n for(Nodo n:nodoElim.getHermanos().values()){\n //if((n.getParent()==nodoElim.getParent())&&(n.getSimbolo().equals(nodoElim.getSimbolo()))){\n nodoNotExec.add(n);\n \n //}\n }\n if(!nodoNotExec.isEmpty()){\n for(Nodo n:nodoNotExec){\n panelPadre.getChildren().removeAll(n.getRectangle(),n.getLabel());\n //nodos.remove(n);\n } \n \n } \n return nodoNotExec;\n }", "public NodoDoble(NodoDoble<E> anterior, E elemento, NodoDoble<E> siguiente){//a ver si no te da problema el nodo por no estar especigicando su tipo... puesto que esta clase es genérica y aquí estas creando uno sin saber, asi que creo que debería de especificarselo\n contenido = elemento;\n nodoSiguiente = siguiente;\n nodoAnterior = anterior;\n }", "public void setNodoDerecho(Nodo nodo){\n der = nodo;\n }", "private void EliminarAristaNodo (NodoGrafo nodo ,int v){\n\t\tNodoArista aux = nodo.arista;\n\t\tif (aux != null) {\n\t\t\t// Si la arista a eliminar es la primera en\n\t\t\t// la lista de nodos adyacentes\n\t\t\tif (aux.nodoDestino.nodo == v){\n\t\t\t\tnodo.arista = aux.sigArista;\n\t\t\t}\n\t\t\telse {\n\t\t\t\twhile (aux.sigArista!= null && aux.sigArista.nodoDestino.nodo != v){\n\t\t\t\t\taux = aux.sigArista;\n\t\t\t\t}\n\t\t\t\tif (aux.sigArista!= null) {\n\t\t\t\t\t// Quita la referencia a la arista hacia v\n\t\t\t\t\taux.sigArista = aux.sigArista.sigArista;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private List<Node<T>> auxiliarRecorridoIn(Node<T> nodo, List<Node<T>> lista, Node<T> raiz) {\r\n\t\t\r\n\t\tif (nodo.getChildren() != null) {\r\n\t\t\tList<Node<T>> hijos = nodo.getChildren();\r\n\t\t\tfor (int i = 1; i <= hijos.size(); i++) {\r\n\t\t\t\t\r\n\t\t\t\tauxiliarRecorridoIn(hijos.get(i), lista, raiz);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn lista;\r\n\t}", "private List<Node<T>> auxiliarRecorridoPre(Node<T> nodo, List<Node<T>> lista) {\r\n\t\tlista.add(nodo);// Inserta en la lista\r\n\t\tif (nodo.getChildren() != null) {// Si tiene hijo\r\n\t\t\tList<Node<T>> hijos = nodo.getChildren();// Hijos\r\n\t\t\tfor (int i = 1; i <= hijos.size(); i++) {\r\n\t\t\t\tauxiliarRecorridoPre(hijos.get(i), lista);// Recursividad\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn lista;// Retorna lista\r\n\t}", "public Nodo NodoNotExec(Nodo nodo){\n if (nodo.getParent()!=null){\n Nodo hermano=nodo.getParent().getChildren().getFirst();\n Nodo n= hermano.getHermanos().get(nodo.getSimbolo());\n return n;\n }\n return null;\n }", "@Override\n\tpublic List<Nodo> obtenerNodos() {\n\t\treturn nodos;\n\t}", "public Nodo(datos libro)\n {\n this.libro=libro;//LA VARIABLE LIBRO TENDRA LOS DATOS DE LA CLASE LIBRO\n }", "@Override\n public void novo(Dependente dependente) {\n if (dependente.getUuid() <= 0) {\n dBC.nova(dependente);\n } else {\n dBC.atualizar(dependente);\n }\n }", "void depend(int parentID, int childID){\n check(parentID, childID);\n nodes_[childID].parent_ = parentID;\n nodes_[parentID].addChild(childID);\n }", "public void agregarNodo(Nodo nuevo){\n agregarNodoRec(root, nuevo);//la primera vez inicia en la raiz \n }", "private void ordenarGradoDescendente(ArrayList<Nodo> nodo, int izq, int der) {\n\t\tNodo pivote = nodos.get((izq + der) / 2);\n\t\tNodo aux;\n\t\tint i = izq, d = der;\n\t\tdo {\n\t\t\twhile (nodo.get(i).getGrado() > pivote.getGrado())\n\t\t\t\ti++;\n\t\t\twhile (nodo.get(d).getGrado() < pivote.getGrado())\n\t\t\t\td--;\n\t\t\tif (i <= d) {\n\t\t\t\taux = nodo.get(i);\n\t\t\t\tnodo.set(i, nodo.get(d));\n\t\t\t\tnodo.set(d, aux);\n\t\t\t\ti++;\n\t\t\t\td--;\n\t\t\t}\n\t\t} while (i <= d);\n\t\tif (izq < d)\n\t\t\tordenarGradoDescendente(nodo, izq, d);\n\t\tif (i < der)\n\t\t\tordenarGradoDescendente(nodo, i, der);\n\t}", "public void addNodo(String nombre) {\n\t\tNodo nodo = new Nodo();\n\t\tnodo.setNombre(nombre);\n\t\tnodos.add(nodo);\n\t}", "public void eliminarNodo(Nodo nodoElim,int number){\n \n panelPadre.getChildren().removeAll(nodoElim.getRectangle(),nodoElim.getLabel(),nodoElim.getLine());\n \n if(nodoElim.getParent()!=null){\n nodoElim.getParent().getChildren().remove(nodoElim);\n if(nodoElim.getParent().getParent()==null && nodoElim.getLeftSibling()==null)\n posXAnterior=10;\n else \n posXAnterior=nodos.get(number-1).getPosX();\n }\n \n nodos.remove(number);\n }", "public interface InterfazNodo extends VisitableNode{\n\t\tpublic void add(InterfazNodo nodo);\n\t\tpublic void remove(InterfazNodo nodo);\n\t\tpublic Codigo generarCodigo(Codigo codigo, TempManager tempManager, LabelManager labelManager);\n\t\tpublic TablaDeSimbolos acceptTSVisitor(\n\t\t\t\tTablaSimbolosVisitor tablaSimbolosVisitor);\n\t\t\n\t}", "private List<Node<T>> auxiliarRecorridoPost(Node<T> nodo, List<Node<T>> lista) {\r\n\t\tif (nodo.getChildren() != null) {// Si tiene hijos\r\n\t\t\tList<Node<T>> hijos = nodo.getChildren();// Hijos\r\n\t\t\tfor (int i = 1; i <= hijos.size(); i++) {\r\n\t\t\t\tauxiliarRecorridoPost(hijos.get(i), lista);// Recursividad\r\n\t\t\t}\r\n\t\t}\r\n\t\tlista.add(nodo);// Aņade a la lista\r\n\t\treturn lista;// Devuelve lista\r\n\t}", "public Nodo (String d, Nodo n){\n\t\tdato = d;\n\t\tsiguiente=n;\n\t}", "private int getNumberOfNodesRec(int contador, Node<T> nodo) {\r\n\t\tcontador++;// Si este metodo entra es porque entro a un nodo por lo que\r\n\t\t\t\t\t// se suma 1\r\n\t\tif (nodo.getChildren() != null) {// Si tiene hijos\r\n\t\t\tList<Node<T>> lista = nodo.getChildren();// Hijos\r\n\t\t\tfor (int i = 1; i <= lista.size(); i++) {\r\n\t\t\t\tcontador = getNumberOfNodesRec(contador, lista.get(i));// Recursividad\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn contador;\r\n\t}", "public static void criarDependentes(Funcionario fun, Scanner ler, Scanner in) {\n ArrayList<Dependentes> ListaDeptes = new ArrayList<>();\n int opcao = 0;\n do {\n Dependentes den = new Dependentes();\n System.out.println(\"Digite o nome do dependente:\");\n den.setNome(ler.nextLine());\n System.out.println(\"Digite a idade:\");\n den.setIdade(in.nextInt());\n System.out.println(\"Digite o CPF do dependente\");\n den.setCPF(in.nextLine());\n ListaDeptes.add(den);\n System.out.println(\"Deseja adicionar outro dependente?\\n 1 para Sim. \\n 2 para Não.\");\n opcao = in.nextInt();\n } while (opcao == 1);\n fun.setListaDeptes(ListaDeptes);\n\n }", "public abstract List<Subproducto> listarSubproducto(EntityManager sesion, Subproducto subproducto);", "@Override\n public List<Dependente> todosOsDepentendes() {\n return dBC.todosOsDepentendes();\n\n }", "public Nodo getNodoDerecho(){\n return der;\n }", "public void inserisci(NodoAlbero dove, String contenuto, String tipo){\n if (n_nodi == 0){\n root = new NodoAlbero(contenuto, null, tipo);\n n_nodi++;\n return;\n }\n //se il nodo padre non ha un figlio, lo creiamo\n if (dove.getFiglio() == null)\n dove.setFiglio(new NodoAlbero(contenuto, dove, tipo));\n //se ce ne ha già almeno uno, lo accodiamo agli altri figli\n else {\n NodoAlbero temp = dove.getFiglio();\n while (temp.getFratello() != null)\n temp = temp.getFratello();\n temp.setFratello(new NodoAlbero(contenuto, temp.getPadre(), tipo));\n }\n n_nodi++;\n }", "static void imprimirNodo( NodoBase raiz )\n{\n\tif(\traiz instanceof NodoRepeat\n\t\t||\traiz instanceof NodoLeer\n\t\t||\traiz instanceof NodoEscribir ){\n\t\tSystem.out.println(\"palabra reservada: \"+ raiz.getClass().getName());\n\t}\n\t\n\tif(\traiz instanceof NodoAsignacion )\n\t\tSystem.out.println(\":=\");\n\t\n\tif(\traiz instanceof NodoOperacion ){\n\t\ttipoOp sel=((NodoOperacion) raiz).getOperacion();\n\t\tif(sel==tipoOp.menor)\n\t\t\tSystem.out.println(\"<\"); \n\t\tif(sel==tipoOp.igual)\n\t\t\tSystem.out.println(\"=\");\n\t\tif(sel==tipoOp.mas)\n\t\t\tSystem.out.println(\"+\");\n\t\tif(sel==tipoOp.menos)\n\t\t\tSystem.out.println(\"-\");\n\t\tif(sel==tipoOp.por)\n\t\t\tSystem.out.println(\"*\");\n\t\tif(sel==tipoOp.entre)\n\t\t\tSystem.out.println(\"/\");\n if(sel==tipoOp.mayor)\n\t\t\tSystem.out.println(\">\");\n if(sel==tipoOp.mayorigual)\n\t\t\tSystem.out.println(\">=\");\n if(sel==tipoOp.menorigual)\n\t\t\tSystem.out.println(\"<=\");\n if(sel==tipoOp.diferente)\n\t\t\tSystem.out.println(\"!=\");\n if(sel==tipoOp.and)\n\t\t\tSystem.out.println(\"AND\");\n if(sel==tipoOp.or)\n\t\t\tSystem.out.println(\"OR\");\n \n\t}\n\n\tif(\traiz instanceof NodoValor ){\n if(((NodoValor)raiz).getVint() != null)\n System.out.println(\"NUM, val= \"+ ((NodoValor)raiz).getVint());\n if(((NodoValor)raiz).isVbol()!= null)\n System.out.println(\"BOL, val= \"+ ((NodoValor)raiz).isVbol());\n\t}\n\n\tif(\traiz instanceof NodoIdentificador ){\n\t\tSystem.out.println(\"ID, nombre= \"+ ((NodoIdentificador)raiz).getNombre());\n\t}\n\n}", "public void agregarAlInicio(String valor){\r\n // Define un nuevo nodo.\r\n Nodo nuevo = new Nodo();\r\n // Agrega al valor al nodo.\r\n nuevo.setValor(valor);\r\n // Consulta si la lista esta vacia.\r\n if (esVacia()) {\r\n // Inicializa la lista agregando como inicio al nuevo nodo.\r\n inicio = nuevo;\r\n // Caso contrario va agregando los nodos al inicio de la lista.\r\n } else{\r\n // Une el nuevo nodo con la lista existente.\r\n nuevo.setSiguiente(inicio);\r\n // Renombra al nuevo nodo como el inicio de la lista.\r\n inicio = nuevo;\r\n }\r\n // Incrementa el contador de tamaño de la lista.\r\n tamanio++;\r\n }", "public void agregarAlInicio( int elemento ) {\n\t\tif( !estaVacia() ) {\n\t\t\tinicio = new NodoDoble(elemento, inicio, null);\n\t\t\tinicio.siguiente.anterior = inicio;\n\t\t} else {\n\t\t\tinicio = fin = new NodoDoble(elemento);\n\t\t}\n\t}", "public void vincula(){\n for (Nodo n : exps)\n n.vincula();\n }", "public void removerPorReferencia(int referencia){\n if (buscar(referencia)) {\n // Consulta si el nodo a eliminar es el pirmero\n if (inicio.getEmpleado().getId() == referencia) {\n // El primer nodo apunta al siguiente.\n inicio = inicio.getSiguiente();\n // Apuntamos con el ultimo nodo de la lista al inicio.\n ultimo.setSiguiente(inicio);\n } else{\n // Crea ua copia de la lista.\n NodoEmpleado aux = inicio;\n // Recorre la lista hasta llegar al nodo anterior\n // al de referencia.\n while(aux.getSiguiente().getEmpleado().getId() != referencia){\n aux = aux.getSiguiente();\n }\n if (aux.getSiguiente() == ultimo) {\n aux.setSiguiente(inicio);\n ultimo = aux;\n } else {\n // Guarda el nodo siguiente del nodo a eliminar.\n NodoEmpleado siguiente = aux.getSiguiente();\n // Enlaza el nodo anterior al de eliminar con el\n // sguiente despues de el.\n aux.setSiguiente(siguiente.getSiguiente());\n // Actualizamos el puntero del ultimo nodo\n }\n }\n // Disminuye el contador de tama�o de la lista.\n size--;\n }\n }", "public Nodo() {\r\n this.dato = null;\r\n this.siguiente = null;\r\n }", "public void construirSegundoSetDeDominios() {\n\t\tlabeltituloSeleccionDominios = new JLabel();\n\n\t\titemsComboDominiosSet2 = new JComboBox(dominio);// creamos el primer\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// combo, y le\n\t\t// pasamos un array de cadenas\n\t\titemsComboDominiosSet2.setSelectedIndex(0);// por defecto quiero\n\t\t\t\t\t\t\t\t\t\t\t\t\t// visualizar el\n\t\t// primer item\n\t\tcomboDominiosSet2 = new JComboBox();// creamo el segundo combo, vacio\n\t\tcomboDominiosSet2.setEnabled(false);// //por defecto q aparesca\n\t\t\t\t\t\t\t\t\t\t\t// desabilidado\n\n\t\tlabeltituloSeleccionDominios.setText(\"Seleccione el segundo Dominio\");\n\t\tpanelDerecho.add(labeltituloSeleccionDominios);\n\n\t\tpanelDerecho.add(itemsComboDominiosSet2);\n\n\t\tpanelDerecho.add(comboDominiosSet2);\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\titemsComboDominiosSet2.addActionListener(controlDemoCombo);// agregamos\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// escuchas\n\n\t}", "public void eliminarNodo_Dat(int dato) {\n\t raiz = eliminarNodo(raiz, dato);\r\n\t}", "public void agregar_Alinicio(int elemento){\n inicio=new Nodo(elemento, inicio);// creando un nodo para que se inserte otro elemnto en la lista\r\n if (fin==null){ // si fin esta vacia entonces vuelve al inicio \r\n fin=inicio; // esto me sirve al agregar otro elemento al final del nodo se recorre al inicio y asi sucesivamnete\r\n \r\n }\r\n \r\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}", "public void dividirDineroGobierno() {\n\n double dineroDividible = super.getMundo().getGobierno().getCapitalEconomico() / 2;\n double dineroPorPersona = super.getMundo().contarPersonas();\n\n if (dineroDividible > 0) {\n\n super.getMundo().gobiernoDarDinero(dineroDividible);\n\n for (Persona p : super.getMundo().getListaDoctores())\n p.ganarDinero(dineroPorPersona);\n for (Persona p : super.getMundo().getListaCocineros())\n p.ganarDinero(dineroPorPersona);\n for (Persona p : super.getMundo().getListaAlbaniles())\n p.ganarDinero(dineroPorPersona);\n for (Persona p : super.getMundo().getListaHerreros())\n p.ganarDinero(dineroPorPersona);\n for (Persona p : super.getMundo().getListaCocineros())\n p.ganarDinero(dineroPorPersona);\n for (Persona p : super.getMundo().getListaDoctores())\n p.ganarDinero(dineroPorPersona);\n for (Persona p : super.getMundo().getListaCocineros())\n p.ganarDinero(dineroPorPersona);\n for (Persona p : super.getMundo().getListaAlbaniles())\n p.ganarDinero(dineroPorPersona);\n for (Persona p : super.getMundo().getListaHerreros())\n p.ganarDinero(dineroPorPersona);\n for (Persona p : super.getMundo().getListaCocineros())\n p.ganarDinero(dineroPorPersona);\n }\n }", "public Nodo (String d){\n\t\tthis.dato = d;\n\t\tthis.siguiente = null; //para que apunte el nodo creado a nulo\n\t}", "public void setDominio(String p) { this.dominio = p; }", "public void agregarElemento(NodoRuta nodo) {\n if(nodos.contains(nodo)) {\n nodos.remove(nodo);\n }\n \n nodos.add(nodo);\n fireIntervalAdded(this, nodos.size(), nodos.size());\n }", "public NodoDoble(Object valor) {\n this.valor = valor;\n }", "public Nodo() {\n this.valor = 0;\n this.proximo=null;\n\n }", "public void inserisci(String dove, String contenuto){\n if (n_nodi == 0){\n root = new NodoAlbero(contenuto, null, \"directory\");\n n_nodi++;\n return;\n }\n //troviamo il nodo che sarà il padre del nodo che dobbiamo aggiungere\n NodoAlbero cercato = ricerca(dove);\n \n //se il nodo padre non esiste, non aggiungiamo il nuovo nodo\n if (cercato == null)\n return;\n //se il nodo padre non ha un figlio, lo creiamo\n if (cercato.getFiglio() == null)\n cercato.setFiglio(new NodoAlbero(contenuto, cercato, \"directory\"));\n //se ce ne ha già almeno uno, lo accodiamo agli altri figli\n else {\n NodoAlbero temp = cercato.getFiglio();\n while (temp.getFratello() != null)\n temp = temp.getFratello();\n temp.setFratello(new NodoAlbero(contenuto, temp.getPadre(), \"directory\"));\n }\n n_nodi++;\n }", "public void setNodoIzquierdo(Nodo nodo){\n izq = nodo;\n }", "public NodoDoble(E elemento){\n this(null, elemento, null);//mando a llamar al ctrctor que recibe 2 parámetros\n }", "public void eliminarElemento(T dato) {\n\t\tNodeTabla<K, T> nodo = primerElemento;\n\n\t\t// itera los elementos hasta que se acaben o encuentre el elemento\n\t\twhile (nodo != null && !nodo.getElemento().equals(dato)) {\n\t\t\tnodo = nodo.getSiguiente();\n\t\t}\n\n\t\t// se encontro el nodo?\n\t\tif (nodo != null) {\n\t\t\tif (nodo != primerElemento) {\n\t\t\t\t// borra el nodo de la existencia\n\t\t\t\tnodo.getAnterior().setSiguiente(nodo.getSiguiente());\n\t\t\t\tnodo.getSiguiente().setAnterior(nodo.getAnterior());\n\t\t\t} else {\n\t\t\t\tprimerElemento = primerElemento.getSiguiente();\n\t\t\t}\n\t\t\t// baja en uno el tamano\n\t\t\ttamano--;\n\n\t\t} else {\n\t\t\t// Bruh, no esta el nodo\n\t\t\tSystem.out.println(\"No se encontro el elemento a eliminar.\");\n\t\t}\n\n\t}", "public void agregarElementos(List<NodoRuta> nodoNuevo) {\n if(nodoNuevo != null){\n nodos.addAll(nodoNuevo);\n fireIntervalAdded(this, nodos.size()-nodoNuevo.size(), nodos.size());\n }\n }", "private void ordenarGradoAscendente(ArrayList<Nodo> nodo, int izq, int der) {\n\t\tNodo pivote = nodos.get((izq + der) / 2), aux;\n\t\tint i = izq, d = der;\n\t\tdo {\n\t\t\twhile (nodos.get(i).getGrado() < pivote.getGrado())\n\t\t\t\ti++;\n\t\t\twhile (nodos.get(d).getGrado() > pivote.getGrado())\n\t\t\t\td--;\n\t\t\tif (i <= d) {\n\t\t\t\taux = nodo.get(i);\n\t\t\t\tnodo.set(i, nodo.get(d));\n\t\t\t\tnodo.set(d, aux);\n\t\t\t\ti++;\n\t\t\t\td--;\n\t\t\t}\n\t\t} while (i <= d);\n\n\t\tif (izq < d)\n\t\t\tordenarGradoAscendente(nodos, izq, d);\n\t\tif (i < der)\n\t\t\tordenarGradoAscendente(nodos, i, der);\n\t}", "public Elemento buscaEnDefiniciones(String nombre, String tipo)\n {\n for(int x = 0; x < this.definiciones.size(); x++)\n {\n Elemento aux = this.definiciones.get(x).busca_elemento(nombre, tipo);\n if(aux!=null)\n {\n return aux;\n }\n }\n return null;\n }", "static void PrintRecorrido(int ini, int fin) {\n\n //System.out.println(\"Recorrido de nodos para llegar de nodo \" + ini + \" a \" + fin);\n List<Integer> path = new ArrayList<Integer>();\n int total=0;\n for (;;) { //infinite loop\n\n path.add(fin);\n if (prev[fin] == -1) {//si se llegó al inicio\n break;\n }\n total+=pesos[fin];//va sumando los pesos \n fin = prev[fin]; //\n }\n\n for (int i = path.size() - 1, k = 0; i >= 0; --i) {//se recorre de atrás para adelante printing los valores\n if (k != 0) {\n System.out.print(\" \");\n }\n System.out.print(path.get(i));//muestra el valor en posicion i (ultimo)\n k = 1;\n }\n System.out.print(\" Total:\"+total);\n System.out.println();\n }", "public void remove() {\n\n\t\t\tsuprimirNodo(anterior);\n\n\t\t}", "public int eleminardelInicio(){\n int elemento=inicio.dato;\n if(inicio==fin){\n inicio=fin=null;\n }else{\n inicio=inicio.siguiente;\n inicio.anterior=null; \n }\n return elemento;\n }", "public static void llenarSoriana(){\r\n Producto naranja1 = new Producto (\"naranja\", \"el huertito\", 25, 0);\r\n Nodo<Producto> nTemp1 = new Nodo(naranja1);\r\n listaSoriana.agregarNodo(nTemp1);\r\n \r\n Producto naranja2 = new Producto (\"naranja\", \"el ranchito\", 34, 0);\r\n Nodo<Producto> nTemp2 = new Nodo (naranja2);\r\n listaSoriana.agregarNodo(nTemp2);\r\n \r\n Producto manzana3 = new Producto (\"manzana\", \"el rancho de don chuy\", 24, 0);\r\n Nodo<Producto> nTemp3 = new Nodo (manzana3);\r\n listaSoriana.agregarNodo(nTemp3);\r\n \r\n Producto manzana4 = new Producto (\"manzana\", \"la costeña\", 15, 0);\r\n Nodo<Producto> nTemp4 = new Nodo(manzana4);\r\n listaSoriana.agregarNodo(nTemp4);\r\n \r\n Producto platano5 = new Producto (\"platano\", \"el Huertito\", 26, 0);\r\n Nodo<Producto> nTemp5 = new Nodo (platano5);\r\n listaSoriana.agregarNodo(nTemp5);\r\n \r\n Producto platano6 = new Producto (\"platano\", \"granjita dorada\", 36, 0);\r\n Nodo<Producto> nTemp6 = new Nodo (platano6);\r\n listaSoriana.agregarNodo (nTemp6);\r\n \r\n Producto pera7 = new Producto (\"pera\", \"el rancho de don chuy\", 38, 0);\r\n Nodo<Producto> nTemp7 = new Nodo (pera7);\r\n listaSoriana.agregarNodo(nTemp7);\r\n \r\n Producto pera8 = new Producto (\"pera\", \"la costeña\", 8,0);\r\n Nodo<Producto> nTemp8 = new Nodo (pera8);\r\n listaSoriana.agregarNodo(nTemp8);\r\n \r\n Producto durazno9 = new Producto (\"durazno\", \"el huertito\", 12.50, 0);\r\n Nodo<Producto> nTemp9 = new Nodo (durazno9);\r\n listaSoriana.agregarNodo(nTemp9);\r\n \r\n Producto fresa10 = new Producto (\"fresa\", \"el rancho de don chuy\", 35.99,0);\r\n Nodo<Producto> nTemp10 = new Nodo (fresa10);\r\n listaSoriana.agregarNodo(nTemp10);\r\n \r\n Producto fresa11 = new Producto (\"fresa\", \"grajita dorada\", 29.99,0);\r\n Nodo<Producto> nTemp11 = new Nodo (fresa11);\r\n listaSoriana.agregarNodo(nTemp11);\r\n \r\n Producto melon12 = new Producto (\"melon\", \"la costeña\", 18.50, 0);\r\n Nodo<Producto> nTemp12 = new Nodo (melon12);\r\n listaSoriana.agregarNodo(nTemp12);\r\n \r\n Producto melon13 = new Producto (\"melon\", \"el huertito\", 8.50, 0);\r\n Nodo<Producto> nTemp13 = new Nodo (melon13);\r\n listaSoriana.agregarNodo(nTemp13);\r\n \r\n Producto elote14 = new Producto (\"elote\", \"el ranchito\", 6, 0);\r\n Nodo<Producto> nTemp14 = new Nodo (elote14);\r\n listaSoriana.agregarNodo(nTemp14);\r\n \r\n Producto elote15 = new Producto (\"elote\", \"moctezuma\", 12, 0);\r\n Nodo<Producto> nTemp15 = new Nodo (elote15);\r\n listaSoriana.agregarNodo(nTemp15);\r\n \r\n Producto aguacate16 = new Producto (\"aguacate\", \"la costeña\", 35, 0);\r\n Nodo<Producto> nTemp16 = new Nodo (aguacate16);\r\n listaSoriana.agregarNodo(nTemp16);\r\n \r\n Producto cebolla17 = new Producto (\"cebolla\", \"granjita dorada\", 8.99, 0);\r\n Nodo<Producto> nTemp17 = new Nodo (cebolla17);\r\n listaSoriana.agregarNodo(nTemp17);\r\n \r\n Producto tomate18 = new Producto (\"tomate\", \"el costeñito feliz\", 10.50, 0);\r\n Nodo<Producto> nTemp18 = new Nodo (tomate18);\r\n listaSoriana.agregarNodo(nTemp18);\r\n \r\n Producto tomate19 = new Producto (\"tomate\", \"el ranchito\", 8.99, 0);\r\n Nodo<Producto> nTemp19 = new Nodo (tomate19);\r\n listaSoriana.agregarNodo(nTemp19);\r\n \r\n Producto limon20 = new Producto (\"limon\", \"la costeña\", 3.50, 0);\r\n Nodo<Producto> nTemp20 = new Nodo (limon20);\r\n listaSoriana.agregarNodo(nTemp20);\r\n \r\n Producto limon21 = new Producto (\"limon\", \"el ranchito\", 10.99, 0);\r\n Nodo<Producto> nTemp21 = new Nodo (limon21);\r\n listaSoriana.agregarNodo(nTemp21);\r\n \r\n Producto papas22 = new Producto (\"papas\", \"la costeña\", 11, 0);\r\n Nodo<Producto> nTemp22 = new Nodo(papas22);\r\n listaSoriana.agregarNodo(nTemp22);\r\n \r\n Producto papas23 = new Producto (\"papas\", \"granjita dorada\", 4.99, 0);\r\n Nodo<Producto> nTemp23 = new Nodo(papas23);\r\n listaSoriana.agregarNodo(nTemp23);\r\n \r\n Producto chile24 = new Producto (\"chile\", \"el rancho de don chuy\", 2.99, 0);\r\n Nodo<Producto> nTemp24 = new Nodo (chile24);\r\n listaSoriana.agregarNodo(nTemp24);\r\n \r\n Producto chile25 = new Producto (\"chile\",\"la costeña\", 12, 0);\r\n Nodo<Producto> nTemp25 = new Nodo (chile25);\r\n listaSoriana.agregarNodo(nTemp25);\r\n \r\n Producto jamon26 = new Producto (\"jamon\",\"fud\", 25, 1);\r\n Nodo<Producto> nTemp26 = new Nodo(jamon26);\r\n listaSoriana.agregarNodo(nTemp26);\r\n \r\n Producto jamon27 = new Producto(\"jamon\", \"kir\", 13.99, 1);\r\n Nodo<Producto> nTemp27 = new Nodo(jamon27);\r\n listaSoriana.agregarNodo(nTemp27);\r\n \r\n Producto peperoni28 = new Producto (\"peperoni28\", \"fud\", 32, 1);\r\n Nodo<Producto> nTemp28 = new Nodo (peperoni28);\r\n listaSoriana.agregarNodo(nTemp28);\r\n \r\n Producto salchicha29 = new Producto (\"salchicha\", \" san rafael\", 23.99, 1);\r\n Nodo<Producto> nTemp29 = new Nodo (salchicha29);\r\n listaSoriana.agregarNodo(nTemp29); \r\n \r\n Producto huevos30 = new Producto (\"huevos\", \"san rafael\", 30.99, 1);\r\n Nodo<Producto> nTemp30 = new Nodo (huevos30);\r\n listaSoriana.agregarNodo(nTemp30);\r\n \r\n Producto chuletas31 = new Producto (\"chuletas\", \"la res dorada\", 55, 1);\r\n Nodo<Producto> nTemp31 = new Nodo (chuletas31);\r\n listaSoriana.agregarNodo(nTemp31);\r\n \r\n Producto carnemolida32 = new Producto (\"carne molida\", \"san rafael\", 34, 1);\r\n Nodo<Producto> nTemp32 = new Nodo (carnemolida32);\r\n listaSoriana.agregarNodo(nTemp32);\r\n \r\n Producto carnemolida33 = new Producto (\"carne molida\", \"la res dorada\", 32.99, 1);\r\n Nodo<Producto> nTemp33 = new Nodo (carnemolida33);\r\n listaSoriana.agregarNodo(nTemp33);\r\n \r\n Producto pollo34 = new Producto (\"pollo\", \"pollito feliz\", 38, 1);\r\n Nodo<Producto> nTemp34 = new Nodo (pollo34);\r\n listaSoriana.agregarNodo(nTemp34);\r\n \r\n Producto pescado35 = new Producto (\"pescado\", \"pescadito\", 32.99, 1);\r\n Nodo<Producto> nTemp35 = new Nodo (pescado35);\r\n listaSoriana.agregarNodo(nTemp35);\r\n \r\n Producto quesolaurel36 = new Producto (\"queso\", \"laurel\", 23.50, 1);\r\n Nodo<Producto> nTemp36 = new Nodo (quesolaurel36);\r\n listaSoriana.agregarNodo(nTemp36);\r\n \r\n Producto leche37 = new Producto (\"leche\", \"nutrileche\", 12.99, 1);\r\n Nodo<Producto> nTemp37 = new Nodo (leche37);\r\n listaSoriana.agregarNodo(nTemp37);\r\n \r\n Producto lechedeslactosada38 = new Producto (\"leche deslactosada\", \"lala\", 17.50, 1);\r\n Nodo<Producto> nTemp38 = new Nodo (lechedeslactosada38);\r\n listaSoriana.agregarNodo(nTemp38);\r\n \r\n Producto panblanco39 = new Producto (\"pan blanco\", \"bombo\", 23.99, 2);\r\n Nodo<Producto> nTemp39 = new Nodo (panblanco39);\r\n listaSoriana.agregarNodo(nTemp39);\r\n \r\n Producto atun40 = new Producto (\"atun\", \"la aleta feliz\", 12, 2);\r\n Nodo<Producto> nTemp40 = new Nodo (atun40);\r\n listaSoriana.agregarNodo(nTemp40);\r\n \r\n Producto atun41 = new Producto (\"atun\", \"el barco\", 10.99, 2);\r\n Nodo<Producto> nTemp41 = new Nodo (atun41);\r\n listaSoriana.agregarNodo(nTemp41);\r\n \r\n Producto arroz42 = new Producto (\"arroz\", \"mi marca\", 12.50, 2);\r\n Nodo<Producto> nTemp42 = new Nodo (arroz42);\r\n listaSoriana.agregarNodo(nTemp42);\r\n \r\n Producto arroz43 = new Producto (\"arroz\", \"soriana\", 9.99, 2);\r\n Nodo<Producto> nTemp43 = new Nodo (arroz43);\r\n listaSoriana.agregarNodo(nTemp43);\r\n \r\n Producto frijol44 = new Producto (\"frijol\", \"mi marca\", 10.99, 2);\r\n Nodo<Producto> nTemp44 = new Nodo (frijol44);\r\n listaSoriana.agregarNodo(nTemp44);\r\n \r\n Producto frijol45 = new Producto (\"frijol\", \"soriana\", 15.99, 2);\r\n Nodo<Producto> nTemp45 = new Nodo (frijol45);\r\n listaSoriana.agregarNodo(nTemp45);\r\n \r\n Producto azucar46 = new Producto (\"azucar\", \"mi marca\", 12.50, 2);\r\n Nodo<Producto> nTemp46 = new Nodo (azucar46);\r\n listaSoriana.agregarNodo(nTemp46);\r\n \r\n Producto azucar47 = new Producto (\"azucar\", \"zulka\", 15.99, 2);\r\n Nodo<Producto> nTemp47 = new Nodo (azucar47);\r\n listaSoriana.agregarNodo(nTemp47);\r\n \r\n Producto servilletas48 = new Producto (\"servilletas\", \"esponjosas\",10.50, 2);\r\n Nodo<Producto> nTemp48 = new Nodo (servilletas48);\r\n listaSoriana.agregarNodo(nTemp48);\r\n \r\n Producto sal49 = new Producto (\"sal\", \"mar azul\", 3.99, 2);\r\n Nodo<Producto> nTemp49 = new Nodo (sal49);\r\n listaSoriana.agregarNodo(nTemp49);\r\n \r\n Producto aceitedecocina50 = new Producto (\"aceite de cocina\", \"123\", 15.99, 2);\r\n Nodo<Producto> nTemp50 = new Nodo (aceitedecocina50);\r\n listaSoriana.agregarNodo(nTemp50);\r\n \r\n Producto caffe51 = new Producto (\"caffe\", \"nescafe\", 23, 2);\r\n Nodo<Producto> nTemp51 = new Nodo (caffe51);\r\n listaSoriana.agregarNodo(nTemp51);\r\n \r\n Producto puredetomate52 = new Producto (\"pure de tomate\", \" la costeña\", 12.99, 2);\r\n Nodo<Producto> nTemp52 = new Nodo (puredetomate52);\r\n listaSoriana.agregarNodo(nTemp52);\r\n \r\n Producto lentejas53 = new Producto (\"lentejas\", \"la granjita\", 8.99, 2);\r\n Nodo<Producto> nTemp53 = new Nodo (lentejas53);\r\n listaSoriana.agregarNodo(nTemp53);\r\n \r\n Producto zuko54 = new Producto (\"zuko\", \"zuko\", 2.99, 2);\r\n Nodo<Producto> nTemp54 = new Nodo (zuko54);\r\n listaSoriana.agregarNodo(nTemp54);\r\n \r\n Producto champu55 = new Producto (\"champu\", \"loreal\", 32, 3);\r\n Nodo<Producto> nTemp55 = new Nodo (champu55);\r\n listaSoriana.agregarNodo(nTemp55);\r\n \r\n Producto champu56 = new Producto (\"champu\", \"el risueño\", 29.99, 3);\r\n Nodo<Producto> nTemp56 = new Nodo (champu56);\r\n listaSoriana.agregarNodo(nTemp56);\r\n \r\n Producto desodorante57 = new Producto (\"desodorante\", \"nivea\", 23.50, 3);\r\n Nodo<Producto> nTemp57 = new Nodo (desodorante57);\r\n listaSoriana.agregarNodo(nTemp57);\r\n \r\n Producto pastadedientes58 = new Producto(\"pasta de dientes\", \"colgate\", 17.50, 3);\r\n Nodo<Producto> nTemp58 = new Nodo (pastadedientes58);\r\n listaSoriana.agregarNodo(nTemp58);\r\n \r\n Producto pastadedientes59 = new Producto (\"pasta de dientes\", \"el diente blanco\", 29, 3);\r\n Nodo<Producto> nTemp59 = new Nodo (pastadedientes59);\r\n listaSoriana.agregarNodo(nTemp59);\r\n \r\n Producto rastrillos60 = new Producto (\"rastrillos\", \"el filosito\", 33.99, 3);\r\n Nodo<Producto> nTemp60 = new Nodo (rastrillos60);\r\n listaSoriana.agregarNodo(nTemp60);\r\n \r\n Producto rastrillos61 = new Producto (\"rastrillos\", \"barba de oro\", 23.99, 3);\r\n Nodo<Producto> nTemp61 = new Nodo (rastrillos61);\r\n listaSoriana.agregarNodo(nTemp61);\r\n \r\n Producto hilodental62 = new Producto (\"hilo dental\", \"el diente blanco\", 32.99, 3);\r\n Nodo<Producto> nTemp62 = new Nodo (hilodental62);\r\n listaSoriana.agregarNodo(nTemp62);\r\n \r\n Producto cepillodedientes63 = new Producto (\"cepillo de dientes\", \"OBBM\", 17.99, 3);\r\n Nodo<Producto> nTemp63 = new Nodo (cepillodedientes63);\r\n listaSoriana.agregarNodo(nTemp63);\r\n \r\n Producto cloro64 = new Producto (\"cloro\", \"cloralex\", 23.50, 3);\r\n Nodo<Producto> nTemp64 = new Nodo (cloro64);\r\n listaSoriana.agregarNodo(nTemp64);\r\n \r\n Producto acondicionador65 = new Producto (\"acondicionador\", \"sedal\", 28.99, 3);\r\n Nodo<Producto> nTemp65 = new Nodo (acondicionador65);\r\n listaSoriana.agregarNodo(nTemp65);\r\n \r\n Producto acondicionador66 = new Producto (\"acondicionador\", \"pantene\", 23.99, 3);\r\n Nodo<Producto> nTemp66 = new Nodo (acondicionador66);\r\n listaSoriana.agregarNodo(nTemp66);\r\n \r\n Producto pinol67 = new Producto(\"pinol\", \"mi piso limpio\", 15, 3);\r\n Nodo<Producto> nTemp67 = new Nodo (pinol67);\r\n listaSoriana.agregarNodo(nTemp67);\r\n \r\n Producto pinol68 = new Producto (\"pinol\", \"eficaz\", 18.99, 3);\r\n Nodo<Producto> nTemp68 = new Nodo (pinol68);\r\n listaSoriana.agregarNodo(nTemp68);\r\n \r\n Producto tortillas69 = new Producto (\"tortillas\", \"maizena\", 8.99, 2);\r\n Nodo<Producto> nTemp69 = new Nodo (tortillas69);\r\n listaSoriana.agregarNodo(nTemp69);\r\n \r\n Producto cremaparacuerpo70 = new Producto (\"crema para cuerpo\", \"dove\", 13.50, 3);\r\n Nodo<Producto> nTemp70 = new Nodo (cremaparacuerpo70);\r\n listaSoriana.agregarNodo(nTemp70);\r\n \r\n Producto maizoro71 = new Producto (\"maizoro\", \"special k\", 35.99, 2);\r\n Nodo<Producto> nTemp71 = new Nodo (maizoro71);\r\n listaSoriana.agregarNodo(nTemp71);\r\n \r\n Producto maizoro72 = new Producto (\"maizoro\",\"azucaradas\", 43, 2);\r\n Nodo<Producto> nTemp72 = new Nodo (maizoro72);\r\n listaSoriana.agregarNodo(nTemp72);\r\n \r\n Producto zanahoria73 = new Producto (\"zanahoria\", \"el huertito\", 12.99, 0);\r\n Nodo<Producto> nTemp73 = new Nodo (zanahoria73);\r\n listaSoriana.agregarNodo(nTemp73);\r\n \r\n Producto maizoro74 = new Producto (\"maizoro\", \"cherrios\", 45, 2);\r\n Nodo<Producto> nTemp74 = new Nodo (maizoro74);\r\n listaSoriana.agregarNodo(nTemp74);\r\n \r\n Producto mayonesa75 = new Producto (\"mayonesa\", \"helmans\", 23, 2);\r\n Nodo<Producto> nTemp75 = new Nodo (mayonesa75);\r\n listaSoriana.agregarNodo(nTemp75);\r\n }", "public void recorrer(){\r\n \r\n NodoJugador temporal = primero;\r\n while(temporal != null){\r\n System.out.println(temporal.getDato());\r\n temporal = temporal.getSiguiente();\r\n \r\n }\r\n \r\n }", "public void crearNodos()\n\t{\n\t\tfor(List<String> renglon: listaDeDatos)\n\t\t{\n\t\t\tPersona persona = new Persona(Integer.parseInt(renglon.get(1)), Integer.parseInt(renglon.get(2))); //crea la persona\n\t\t\t\n\t\t\tNodo nodo = new Nodo(Integer.parseInt(renglon.get(0)), 0, 0, false); //crea el nodo con id en posicion 1\n\t\t\t\n\t\t\tnodo.agregarPersona(persona);\n\t\t\tlistaNodos.add(nodo);\n\t\t}\n\t\t\n\t}", "public final void setDominio() {\r\n this.limite[0] = BigInteger.ZERO;\r\n this.limite[1] = this.primoGrande;\r\n }", "Etudiant(String prenom, String nom, double note) {\n this.prenom = prenom;\n this.nom = nom;\n this.note = note;\n\n addNote(note);\n addEtudiant();\n\n }", "public static void main(String[] args) {\n Node n[] = new Node[7];\n n[0] = null;\n n[1]=new Node(1);n[2] = new Node(2);n[3] = new Node(3);n[4] = new Node(4);\n n[5] = new Node(5);n[6] = new Node(6);\n n[1].next = new Node[1];n[2].next = new Node[1];\n n[3].next = new Node[1];n[4].next = new Node[2];\n n[1].next[0] = n[6];n[2].next[0]=n[6];n[3].next[0]=n[4];\n n[4].next[0]=n[1];n[4].next[1]=n[2];\n n[1].count=1; n[2].count=1;\n n[3].count=1; n[4].count=2;\n n[6].next = new Node[1];\n n[6].next[0]=n[1];\n n[6].count=1;\n chkDependency(n);\n \n \n }", "public void listar(){\r\n // Verifica si la lista contiene elementoa.\r\n if (!esVacia()) {\r\n // Crea una copia de la lista.\r\n Nodo aux = inicio;\r\n // Posicion de los elementos de la lista.\r\n int i = 0;\r\n // Recorre la lista hasta el final.\r\n while(aux != null){\r\n // Imprime en pantalla el valor del nodo.\r\n System.out.print(i + \".[ \" + aux.getValor() + \" ]\" + \" -> \");\r\n // Avanza al siguiente nodo.\r\n aux = aux.getSiguiente();\r\n // Incrementa el contador de la posión.\r\n i++;\r\n }\r\n }\r\n }", "public GrafoNPonderados(int pCantNodos, double densidad) {\n\t\tcantNodos = pCantNodos;\n\t\tpesoNodos = new int[cantNodos+1];\n\t\t\n\t\tadyacencias = new LinkedList[cantNodos+1];\n\t\tfor (int i = 1; i <= cantNodos; i++) { \n\t\t\tadyacencias[i] = new LinkedList();\n\t\t\tpesoNodos[i] = (int)(Math.random()*(cantNodos)+1)*10;\n\t\t}\n\n\t\tfor (int i = 1; i <= cantNodos; i++) {\n\t\t\tfor(int j = 0; j < (int)(Math.random()*((cantNodos-1)+1)*densidad); j++) {\n\t\t\t\tint nodo = (int)(Math.random()*(cantNodos));\n\t\t\t\tif(!adyacencias[i].contains(Integer.valueOf(nodo)) && nodo != i && nodo != 0) {\n\t\t\t\t\tadyacencias[i].add(Integer.valueOf(nodo));\n\t\t\t\t\tif(!adyacencias[nodo].contains(Integer.valueOf(i))) {\n\t\t\t\t\t\tadyacencias[nodo].add(Integer.valueOf(i));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tarmarMatrizAdyacencias();\n\t}", "public abstract void eliminarSubproducto(EntityManager sesion, Subproducto subproducto);", "public void addNodo(int s) {\n\t\tNodo tmp = new Nodo(s);\n\t\ttmp.setNext(first);\n\t\tfirst = tmp;\n\t\tcontador++;\n\t}", "public ContribuintesIndividuais() {\n super();\n this.dependentes=0;\n this.nifs = new ArrayList<String>();\n this.coeffiscal=0;\n this.codigos = new ArrayList<String>();\n this.numFilhos = 0;\n }", "public static void llenarAlsuper(){\r\n Producto huevos = new Producto(\"huevos\", \"bachoco\", 56.90, 1);\r\n Nodo<Producto> ATemp = new Nodo(huevos);\r\n listaAlsuper.agregarNodo(ATemp);\r\n \r\n Producto chuletas = new Producto(\"chuletas\", \"Del Cero\", 84.90, 1);\r\n Nodo<Producto> ATemp2 = new Nodo(chuletas);\r\n listaAlsuper.agregarNodo(ATemp2);\r\n \r\n Producto carnemolida = new Producto(\"carne molida\", \"premium\", 79.90, 1);\r\n Nodo<Producto> ATemp3 = new Nodo(carnemolida);\r\n listaAlsuper.agregarNodo(ATemp3);\r\n \r\n Producto pollo = new Producto(\"pollo\", \"super pollo\", 59.90, 1);\r\n Nodo<Producto> ATemp4 = new Nodo(pollo);\r\n listaAlsuper.agregarNodo(ATemp4);\r\n \r\n Producto pescado = new Producto(\"pescado\", \"el pecesito\", 63.90, 1);\r\n Nodo<Producto> ATemp5 = new Nodo(pescado);\r\n listaAlsuper.agregarNodo(ATemp5);\r\n \r\n Producto atunagua = new Producto(\"atun en agua\", \"en agua\", 9.90, 1);\r\n Nodo<Producto> ATemp6 = new Nodo(atunagua);\r\n listaAlsuper.agregarNodo(ATemp6);\r\n \r\n Producto atunaceite = new Producto(\"atun en aceite\", \"en aceite\", 9.90, 1);\r\n Nodo<Producto> ATemp7 = new Nodo(atunaceite);\r\n listaAlsuper.agregarNodo(ATemp7);\r\n \r\n Producto leche = new Producto(\"leche\", \"nutri leche\", 14.90, 1);\r\n Nodo<Producto> ATemp8 = new Nodo(leche);\r\n listaAlsuper.agregarNodo(ATemp8);\r\n \r\n Producto arroz = new Producto(\"arroz\", \"mimarca\", 13.90, 1);\r\n Nodo<Producto> ATemp9 = new Nodo(arroz);\r\n listaAlsuper.agregarNodo(ATemp9);\r\n \r\n Producto frijol= new Producto(\"frijol\", \"pinto\", 16.90, 1);\r\n Nodo<Producto> ATemp10 = new Nodo(frijol);\r\n listaAlsuper.agregarNodo(ATemp10);\r\n \r\n Producto azucar = new Producto(\"azucar\", \"mimarca\", 17.90, 1);\r\n Nodo<Producto> ATemp11 = new Nodo(azucar);\r\n listaAlsuper.agregarNodo(ATemp11);\r\n \r\n Producto sal = new Producto(\"sal\", \"salada\", 10.90, 1);\r\n Nodo<Producto> ATemp12 = new Nodo(sal);\r\n listaAlsuper.agregarNodo(ATemp12);\r\n \r\n Producto pimienta = new Producto(\"pimienta\", \"pimi\", 3.90, 2);\r\n Nodo<Producto> ATemp13 = new Nodo(pimienta);\r\n listaAlsuper.agregarNodo(ATemp13);\r\n \r\n Producto limon = new Producto(\"limon\", \"verde\", 5.90, 0);\r\n Nodo<Producto> ATemp14 = new Nodo(limon);\r\n listaAlsuper.agregarNodo(ATemp14);\r\n \r\n Producto tomate = new Producto(\"tomate\", \"rojo\", 13.90, 0);\r\n Nodo<Producto> ATemp15 = new Nodo(tomate);\r\n listaAlsuper.agregarNodo(ATemp15);\r\n \r\n Producto zanahoria = new Producto(\"zanahoria\", \"goku\", 8.90, 0);\r\n Nodo<Producto> ATemp16 = new Nodo(zanahoria);\r\n listaAlsuper.agregarNodo(ATemp16);\r\n \r\n Producto papas = new Producto(\"papas\", \"ochoa\", 8.90, 0);\r\n Nodo<Producto> ATemp17 = new Nodo(papas);\r\n listaAlsuper.agregarNodo(ATemp17);\r\n \r\n Producto cebolla = new Producto(\"cebolla\", \"blanca\", 17.90, 1);\r\n Nodo<Producto> ATemp18 = new Nodo(cebolla);\r\n listaAlsuper.agregarNodo(ATemp18);\r\n \r\n Producto aceitecocina = new Producto(\"aceite de cocina\", \"123\", 29.90, 1);\r\n Nodo<Producto> ATemp19 = new Nodo(aceitecocina);\r\n listaAlsuper.agregarNodo(ATemp19);\r\n \r\n Producto panblanco = new Producto(\"pan blanco\", \"blanco\", 2.90, 1);\r\n Nodo<Producto> ATemp20 = new Nodo(panblanco);\r\n listaAlsuper.agregarNodo(ATemp20);\r\n \r\n Producto pan = new Producto(\"pan\", \"bimbo\", 39.90, 1);\r\n Nodo<Producto> ATemp21 = new Nodo(pan);\r\n listaAlsuper.agregarNodo(ATemp21);\r\n \r\n Producto zuko = new Producto(\"zuko\", \"zuko\", 4.90, 1);\r\n Nodo<Producto> ATemp22 = new Nodo(zuko);\r\n listaAlsuper.agregarNodo(ATemp22);\r\n \r\n Producto consome = new Producto(\"consome\", \"panchi\", 10.90, 2);\r\n Nodo<Producto> ATemp23 = new Nodo(consome);\r\n listaAlsuper.agregarNodo(ATemp23);\r\n \r\n Producto cereal = new Producto(\"cereal\", \"nesquik\", 40.90, 2);\r\n Nodo<Producto> ATemp24 = new Nodo(cereal);\r\n listaAlsuper.agregarNodo(ATemp24);\r\n \r\n Producto cereal2 = new Producto(\"cereal\", \"zucaritas\", 50.90, 2);\r\n Nodo<Producto> ATemp25 = new Nodo(cereal2);\r\n listaAlsuper.agregarNodo(ATemp25);\r\n \r\n Producto cereal3 = new Producto(\"cereal\", \"kellogs\", 35.90, 2);\r\n Nodo<Producto> ATemp26 = new Nodo(cereal3);\r\n listaAlsuper.agregarNodo(ATemp26);\r\n \r\n Producto chocomilk = new Producto(\"chocomilk\", \"pancho pantera\", 60.90, 2);\r\n Nodo<Producto> ATemp27 = new Nodo(chocomilk);\r\n listaAlsuper.agregarNodo(ATemp27);\r\n \r\n Producto apio = new Producto(\"apio\", \"pa el clamato\", 1.90, 0);\r\n Nodo<Producto> ATemp28 = new Nodo(cereal);\r\n listaAlsuper.agregarNodo(ATemp28);\r\n \r\n Producto chocomilk2 = new Producto(\"chocomilk\", \"el dinosaurio\", 15.90, 2);\r\n Nodo<Producto> ATemp29 = new Nodo(chocomilk2);\r\n listaAlsuper.agregarNodo(ATemp29);\r\n \r\n Producto chile = new Producto(\"chile\", \"amor\", 7.90, 0);\r\n Nodo<Producto> ATemp30 = new Nodo(chile);\r\n listaAlsuper.agregarNodo(ATemp30);\r\n \r\n Producto chilaca = new Producto(\"chilaca\", \"chihuahua\", 8.80, 0);\r\n Nodo<Producto> ATemp31 = new Nodo(chilaca);\r\n listaAlsuper.agregarNodo(ATemp30);\r\n \r\n Producto cafe= new Producto(\"cafe\", \"nescafe\",.90, 2);\r\n Nodo<Producto> ATemp32 = new Nodo(cafe);\r\n listaAlsuper.agregarNodo(ATemp32);\r\n \r\n Producto sopa = new Producto(\"sopa\", \"de coditos\", 4.90, 2);\r\n Nodo<Producto> ATemp33 = new Nodo(sopa);\r\n listaAlsuper.agregarNodo(ATemp33);\r\n \r\n Producto sopa2 = new Producto(\"sopa\", \"estrellas\", 3.90, 2);\r\n Nodo<Producto> ATemp34 = new Nodo(sopa2);\r\n listaAlsuper.agregarNodo(ATemp34);\r\n \r\n Producto sopa3 = new Producto(\"sopa\", \"moñitos\", 3.90, 2);\r\n Nodo<Producto> ATemp35 = new Nodo(sopa3);\r\n listaAlsuper.agregarNodo(ATemp35);\r\n \r\n Producto sopa4 = new Producto(\"sopa\", \"letras\", 3.90, 2);\r\n Nodo<Producto> ATemp36 = new Nodo(sopa4);\r\n listaAlsuper.agregarNodo(ATemp36);\r\n \r\n Producto pasta = new Producto(\"pasta\", \"spaguetti\", 15.90, 2);\r\n Nodo<Producto> ATemp37 = new Nodo(pasta);\r\n listaAlsuper.agregarNodo(ATemp37);\r\n \r\n Producto shampoo = new Producto(\"champu\", \"palmolive\", 36.90, 3);\r\n Nodo<Producto> ATemp38 = new Nodo(shampoo);\r\n listaAlsuper.agregarNodo(ATemp38);\r\n \r\n Producto desodorante = new Producto(\"desodorante\", \"old spice\", 50.90, 3);\r\n Nodo<Producto> ATemp39 = new Nodo(desodorante);\r\n listaAlsuper.agregarNodo(ATemp39);\r\n \r\n Producto jabontrastes = new Producto(\"jabon para los trastes\", \"salvo\", 40.90, 3);\r\n Nodo<Producto> ATemp40 = new Nodo(jabontrastes);\r\n listaAlsuper.agregarNodo(ATemp40);\r\n \r\n Producto jaboncuerpo = new Producto(\"jabon para el cuerpo\", \"jabonzote\", 6.90, 3);\r\n Nodo<Producto> ATemp41 = new Nodo(jaboncuerpo);\r\n listaAlsuper.agregarNodo(ATemp41);\r\n \r\n Producto rastrillo = new Producto(\"rastrillo\", \"gillette\", 60.90, 3);\r\n Nodo<Producto> ATemp42 = new Nodo(rastrillo);\r\n listaAlsuper.agregarNodo(ATemp42);\r\n \r\n Producto detergente = new Producto(\"detergente\", \"downy\", 38.90, 3);\r\n Nodo<Producto> ATemp43 = new Nodo(detergente);\r\n listaAlsuper.agregarNodo(ATemp43);\r\n \r\n Producto puredetomate = new Producto(\"pure de tomate\", \"tomax\", 9.90, 3);\r\n Nodo<Producto> ATemp44 = new Nodo(puredetomate);\r\n listaAlsuper.agregarNodo(ATemp44);\r\n \r\n Producto mole = new Producto(\"mole\", \"doña maria\", 25.90, 3);\r\n Nodo<Producto> ATemp45 = new Nodo(mole);\r\n listaAlsuper.agregarNodo(ATemp45);\r\n \r\n Producto papel = new Producto(\"papel\", \"petalo\", 6.90, 3);\r\n Nodo<Producto> ATemp46 = new Nodo(papel);\r\n listaAlsuper.agregarNodo(ATemp46);\r\n \r\n Producto servilletas = new Producto(\"servilletas\", \"mimarca\", 12.90, 3);\r\n Nodo<Producto> ATemp47 = new Nodo(servilletas);\r\n listaAlsuper.agregarNodo(ATemp47);\r\n \r\n Producto manzana = new Producto(\"manzanas\", \"roja\", 20.90, 0);\r\n Nodo<Producto> ATemp48 = new Nodo(manzana);\r\n listaAlsuper.agregarNodo(ATemp48);\r\n \r\n Producto platano = new Producto(\"platano\", \"meagarras\", 19.90, 0);\r\n Nodo<Producto> ATemp50 = new Nodo(platano);\r\n listaAlsuper.agregarNodo(ATemp50);\r\n \r\n Producto papaya = new Producto(\"papaya\", \"naranja\", 0.90, 0);\r\n Nodo<Producto> ATemp51 = new Nodo(papaya);\r\n listaAlsuper.agregarNodo(ATemp51);\r\n \r\n Producto pastadedientes = new Producto(\"pasta de dientes\", \"colgate\", 30.90, 0);\r\n Nodo<Producto> ATemp52 = new Nodo(pastadedientes);\r\n listaAlsuper.agregarNodo(ATemp52);\r\n \r\n Producto desodorante2 = new Producto(\"desodorante\", \"axe\", 50.90, 3);\r\n Nodo<Producto> ATemp53 = new Nodo(desodorante2);\r\n listaAlsuper.agregarNodo(ATemp53);\r\n \r\n Producto cremacuerpo = new Producto(\"crema\", \"real\", 30.90, 3);\r\n Nodo<Producto> ATemp54 = new Nodo(cremacuerpo);\r\n listaAlsuper.agregarNodo(ATemp54);\r\n \r\n Producto cremacomer = new Producto(\"crema\", \"lala\", 29.90, 2);\r\n Nodo<Producto> ATemp55 = new Nodo(cremacomer);\r\n listaAlsuper.agregarNodo(ATemp55);\r\n \r\n Producto cloro = new Producto(\"cloro\", \"cloralex\", 9.90, 3);\r\n Nodo<Producto> ATemp56 = new Nodo(cloro);\r\n listaAlsuper.agregarNodo(ATemp56);\r\n \r\n Producto pinol = new Producto(\"pinol\", \"pinol\", 28.90, 0);\r\n Nodo<Producto> ATemp57 = new Nodo(pinol);\r\n listaAlsuper.agregarNodo(ATemp57);\r\n \r\n Producto amonia = new Producto(\"amonia\", \"amonio\", 666.66, 3);\r\n Nodo<Producto> ATemp58 = new Nodo(amonia);\r\n listaAlsuper.agregarNodo(ATemp58);\r\n \r\n Producto tortillas = new Producto(\"tortillas\", \"caseras\", 18.90, 2);\r\n Nodo<Producto> ATemp59 = new Nodo(tortillas);\r\n listaAlsuper.agregarNodo(ATemp59);\r\n \r\n Producto winni = new Producto(\"winni\", \"chimex\", 30.90, 1);\r\n Nodo<Producto> ATemp60 = new Nodo(winni);\r\n listaAlsuper.agregarNodo(ATemp60);\r\n \r\n Producto salchicha = new Producto(\"salchicha\", \"chimex\", 60.90, 1);\r\n Nodo<Producto> ATemp61 = new Nodo(salchicha);\r\n listaAlsuper.agregarNodo(ATemp61);\r\n \r\n Producto jamon = new Producto(\"jamon\", \"chimex\", 70.90, 1);\r\n Nodo<Producto> ATemp63 = new Nodo(jamon);\r\n listaAlsuper.agregarNodo(ATemp63);\r\n \r\n Producto queso = new Producto(\"queso\", \"camargo\", 90.90, 1);\r\n Nodo<Producto> ATemp64 = new Nodo(queso);\r\n listaAlsuper.agregarNodo(ATemp64);\r\n \r\n Producto saladas = new Producto(\"saladas\", \"saladitas\", 15.90, 2);\r\n Nodo<Producto> ATemp65 = new Nodo(saladas);\r\n listaAlsuper.agregarNodo(ATemp65);\r\n \r\n Producto galletas = new Producto(\"galletas\", \"emperador\", 18.90, 2);\r\n Nodo<Producto> ATemp66 = new Nodo(galletas);\r\n listaAlsuper.agregarNodo(ATemp66);\r\n \r\n Producto lentejas = new Producto(\"lentejas\", \"mimarca\", 10.90, 2);\r\n Nodo<Producto> ATemp67 = new Nodo(lentejas);\r\n listaAlsuper.agregarNodo(ATemp67);\r\n \r\n Producto puredepapa = new Producto(\"pure de papa\", \"mi marca\", 20.90, 2);\r\n Nodo<Producto> ATemp68 = new Nodo(puredepapa);\r\n listaAlsuper.agregarNodo(ATemp68);\r\n \r\n Producto trapos = new Producto(\"trapos\", \"trapitos\", 15.90, 3);\r\n Nodo<Producto> ATemp69 = new Nodo(trapos);\r\n listaAlsuper.agregarNodo(ATemp69);\r\n \r\n Producto soda = new Producto(\"soda\", \"cocacola\", 31.90, 2);\r\n Nodo<Producto> ATemp70 = new Nodo(soda);\r\n listaAlsuper.agregarNodo(ATemp70);\r\n \r\n Producto jugo = new Producto(\"jugo\", \"jumex\",19.90, 2);\r\n Nodo<Producto> ATemp71 = new Nodo(jugo);\r\n listaAlsuper.agregarNodo(ATemp71);\r\n \r\n Producto cerbeza = new Producto(\"cerbeza\", \"indio\", 11.90, 2);\r\n Nodo<Producto> ATemp72 = new Nodo(cerbeza);\r\n listaAlsuper.agregarNodo(ATemp72);\r\n \r\n Producto hielo = new Producto(\"hielo\", \"pinguino\", 10.90, 2);\r\n Nodo<Producto> ATemp73 = new Nodo(hielo);\r\n listaAlsuper.agregarNodo(ATemp73);\r\n \r\n Producto salsa = new Producto(\"salsa\", \"maggi\", 60.90, 2);\r\n Nodo<Producto> ATemp74 = new Nodo(salsa);\r\n listaAlsuper.agregarNodo(ATemp74);\r\n \r\n Producto desechables = new Producto(\"desechables\", \"mimarca\", 10.90, 2);\r\n Nodo<Producto> ATemp75 = new Nodo(desechables);\r\n listaAlsuper.agregarNodo(ATemp75);\r\n \r\n Producto chicharo = new Producto(\"chicharo\", \"chicharo\", 10.90, 2);\r\n Nodo<Producto> ATemp76 = new Nodo(chicharo);\r\n listaAlsuper.agregarNodo(ATemp76);\r\n \r\n Producto elotes = new Producto(\"elotes\", \"elotin\", 2.90, 2);\r\n Nodo<Producto> ATemp77 = new Nodo(elotes);\r\n listaAlsuper.agregarNodo(ATemp77);\r\n \r\n Producto champiñones = new Producto(\"champiñones\", \"toat\", 14.90, 2);\r\n Nodo<Producto> ATemp78 = new Nodo(champiñones);\r\n listaAlsuper.agregarNodo(ATemp78);\r\n \r\n Producto sardina = new Producto(\"sardina\", \"sardinota\", 31.90, 2);\r\n Nodo<Producto> ATemp79 = new Nodo(sardina);\r\n listaAlsuper.agregarNodo(ATemp79);\r\n \r\n Producto hilodental = new Producto(\"hilo dental\", \"colgate\", 40.90, 3);\r\n Nodo<Producto> ATemp80 = new Nodo(hilodental);\r\n listaAlsuper.agregarNodo(ATemp80);\r\n \r\n Producto cepillodedientes = new Producto(\"cepillo de dientes\", \"colgate\", 25.90, 3);\r\n Nodo<Producto> ATemp81 = new Nodo(cepillodedientes);\r\n listaAlsuper.agregarNodo(ATemp81);\r\n \r\n Producto gel = new Producto(\"gel para el cabello\", \"ego\", 16.90, 3);\r\n Nodo<Producto> ATemp82 = new Nodo(gel);\r\n listaAlsuper.agregarNodo(ATemp82);\r\n \r\n Producto cera = new Producto(\"cera\", \"ego\", 47.90, 3);\r\n Nodo<Producto> ATemp83 = new Nodo(cera);\r\n listaAlsuper.agregarNodo(ATemp83);\r\n \r\n Producto aerosol = new Producto(\"aerosol\", \"paris\", 75.90, 3);\r\n Nodo<Producto> ATemp84 = new Nodo(aerosol);\r\n listaAlsuper.agregarNodo(ATemp84);\r\n \r\n Producto acondicionador = new Producto(\"acondicionador\", \"loreal paris\", 70.90, 3);\r\n Nodo<Producto> ATemp85 = new Nodo(acondicionador);\r\n listaAlsuper.agregarNodo(ATemp85);\r\n \r\n Producto cremaafeitar = new Producto(\"crema para afeitar\", \"yilet\", 40.90, 3);\r\n Nodo<Producto> ATemp86 = new Nodo(cremaafeitar);\r\n listaAlsuper.agregarNodo(ATemp86);\r\n }", "public static void expandirNodo(Nodo nodoAexp , ArrayList<Nodo>frontera ,\n \t\t HeuristicaInterf heur, HashMap <String, String> mapaEstadosgen ){ \n //listado de nodos posibles al expandir\n ArrayList <Accion> acciones = nodoAexp.estado.accionesPosibles(null);\n Iterator<Accion> itrAcciones = acciones.iterator();\n\n \n int mejorCosto = -1 ;\n \n ArrayList<Nodo> mejoresNodos = new ArrayList<Nodo>();\n \n int costoTotalNodo = 0 ;\n \n \twhile (itrAcciones.hasNext()) {\n \t\t\n Accion accion = itrAcciones.next();\n \n Tablero nuevoEstado = nodoAexp.estado.clonar();\n nuevoEstado.mover( accion ); \n \n //control para evitar evaluar heuristicas para estados ya generados\n String hashmatriz = nuevoEstado.toStrHash();\n \n if ( mapaEstadosgen.containsKey( hashmatriz )){\n \tcontinue ;\n }\n \n mapaEstadosgen.put(hashmatriz, hashmatriz);\n \n \n // se obtine el costo del posible nodo a expandir y se crea un tablero con el estado correspóndiente\n int costoH = heur.heuristica (nuevoEstado.matriz, Problema.MATRIZ_META );\n \n Nodo nuevoNodo = new Nodo(nodoAexp,nuevoEstado,accion,costoH );\n \n costoTotalNodo = nuevoNodo.getCosto();\n \n if ( mejorCosto < 0 ) mejorCosto = costoTotalNodo ;\n \n if (costoTotalNodo <= mejorCosto ){\n\t\t\n \tmejorCosto = costoTotalNodo ;\n \t\n \tmejoresNodos.add( nuevoNodo );\n } \n \n //System.out.println(nuevoNodo.getAccion()+\" queda \"+nuevoEstado.toString()+\" costo \"+nuevoNodo.getCosto());\n \n \t}\n \tint tam = mejoresNodos.size();\n \t\n \tfor(int i = 0 ; i <tam ; i++){\n \t\tif( mejoresNodos.get(i).getCosto() <= mejorCosto )\n \t\t\t\n \t\t\tfrontera.add(mejoresNodos.get( i ));\n \t}\n }", "public BigDecimal calcolaImportoTotaleSubdoumenti(){\n\t\tBigDecimal result = BigDecimal.ZERO;\n\t\tfor(SD ds : getListaSubdocumenti()){\n\t\t\tresult = result.add(ds.getImporto());\n\t\t}\n\t\treturn result;\n\t}", "public void agregarAlFinal(String valor){\r\n // Define un nuevo nodo.\r\n Nodo nuevo = new Nodo();\r\n // Agrega al valor al nodo.\r\n nuevo.setValor(valor);\r\n // Consulta si la lista esta vacia.\r\n if (esVacia()) {\r\n // Inicializa la lista agregando como inicio al nuevo nodo.\r\n inicio = nuevo;\r\n // Caso contrario recorre la lista hasta llegar al ultimo nodo\r\n //y agrega el nuevo.\r\n } else{\r\n // Crea ua copia de la lista.\r\n Nodo aux = inicio;\r\n // Recorre la lista hasta llegar al ultimo nodo.\r\n while(aux.getSiguiente() != null){\r\n aux = aux.getSiguiente();\r\n }\r\n // Agrega el nuevo nodo al final de la lista.\r\n aux.setSiguiente(nuevo);\r\n }\r\n // Incrementa el contador de tamaño de la lista\r\n tamanio++;\r\n }", "@Override\n\tpublic Double addDinero(double monto) {\n\t\treturn null;\n\t}", "private void SubMatRemove(double valor, double sub) {\n double result = 0;\n result = sub - valor;\n if (result <= 0) {\n result = 0;\n }\n jTxtSubTotal.setText(String.valueOf(result));\n }", "public void addend(int dato) {\n //agrega nuevo nodo \n NodoEnteroSimple nodo = new NodoEnteroSimple();\n\n nodo.setValor(dato);\n\n if (vacia()) {\n\n head = nodo;\n } else {\n //un temporal de la lista \n NodoEnteroSimple temp = head;\n\n while (temp.getSiguiente() != null) {\n temp = temp.getSiguiente();\n\n }\n temp.getSiguiente();\n }\n size++;\n }", "public int eliminardelInicio(){\n int elemento = inicio.dato;\n if(inicio == fin){\n inicio=fin=null;\n }else{\n inicio = inicio.sig;\n inicio.ant = null;\n }\n return elemento;\n \n \n }", "public void removerPorReferencia(String referencia){\n if (buscar(referencia)) {\r\n // Consulta si el nodo a eliminar es el pirmero\r\n if (inicio.getValor() == referencia) {\r\n // El primer nodo apunta al siguiente.\r\n inicio = inicio.getSiguiente();\r\n } else{\r\n // Crea ua copia de la lista.\r\n Nodo aux = inicio;\r\n // Recorre la lista hasta llegar al nodo anterior \r\n // al de referencia.\r\n while(aux.getSiguiente().getValor() != referencia){\r\n aux = aux.getSiguiente();\r\n }\r\n // Guarda el nodo siguiente del nodo a eliminar.\r\n Nodo siguiente = aux.getSiguiente().getSiguiente();\r\n // Enlaza el nodo anterior al de eliminar con el \r\n // sguiente despues de el.\r\n aux.setSiguiente(siguiente); \r\n }\r\n // Disminuye el contador de tamaño de la lista.\r\n tamanio--;\r\n }\r\n }", "public void Nodo(){\r\n this.valor = \"\";\r\n this.siguiente = null;\r\n }", "public void inOrden(Nodo r){\n if(r != null){\n inOrden(r.hijoIzquierdo);\n System.out.println(r.valor);\n inOrden(r.hijoDerecho);\n }\n }", "public NodoArbol buscarNodo(int d){\n\t\tNodoArbol aux= raiz;\n\t\twhile(aux.dato!=d){\n\t\t\tif(d<aux.dato){\n\t\t\t\taux=aux.hijoizq;\n\t\t\t}else{\n\t\t\t\taux=aux.hijoder;\n\t\t\t}\n\t\t\tif(aux==null){\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\treturn aux;\n\t}", "public void insertarOrden(Object dato) {\n Nodo nuevo = new Nodo(dato);\n int res = 0;\n // System.out.println(\"esxa\"+res);\n if (primero == null) {\n nuevo.setReferencia(primero);\n primero = nuevo;\n // System.out.println(\"Es nulo\");\n// System.out.println(\"sss\"+primero.getDato());\n } else {\n res = comp.evaluar(dato, primero.getDato());\n // System.out.println(\"\"+res);\n if (res == -1) {\n nuevo.setReferencia(primero);\n primero = nuevo;\n } else {\n int auxres = 0;\n Nodo anterior, actual;\n anterior = actual = primero;\n auxres = comp.evaluar(dato, actual.getDato());\n while ((actual.getReferencia() != null) && (auxres == 1)) {\n anterior = actual;\n actual = actual.getReferencia();\n auxres = comp.evaluar(dato, actual.getDato());\n }\n if (auxres == 1) {\n anterior = actual;\n }\n nuevo.setReferencia(anterior.getReferencia());\n anterior.setReferencia(nuevo);\n\n }\n }\n\n }", "public Nodo(Elemento e, Nodo<Elemento> p) {\n\t\tthis.proximo = p;\n\t\tthis.elemento = e;\n\t}", "public void insertarInicio(E dato) {\n\t\tprimero=new Nodo<E>(dato,primero);\n\t\tif (estaVacia()) {\n\t\t\tultimo=primero;\n\t\t}\n\t\tcantidad++;\n\t}", "public void setNomDistrito(String nomDistrito);", "public void listar(){\n if (!esVacia()) {\n // Crea una copia de la lista.\n NodoEmpleado aux = inicio;\n // Posicion de los elementos de la lista.\n int i = 0;\n System.out.print(\"-> \");\n // Recorre la lista hasta llegar nuevamente al incio de la lista.\n do{\n // Imprime en pantalla el valor del nodo.\n System.out.print(i + \".[ \" + aux.getEmpleado() + \" ]\" + \" -> \");\n // Avanza al siguiente nodo.\n aux = aux.getSiguiente();\n // Incrementa el contador de la posi�n.\n i++;\n }while(aux != inicio);\n }\n }", "public void InsertarNodo(int nodo) {\r\n Nodo nuevo_nodo = new Nodo(nodo);\r\n nuevo_nodo.siguiente = UltimoValorIngresado;\r\n UltimoValorIngresado = nuevo_nodo;\r\n tamaño++;\r\n }", "public void cambiarNombreDepartamento(String NombreAntiguo, String NombreNuevo) {\r\n\t\t// TODO Auto-generated method stub\r\n//se modifica el nombre del Dpto. en las 3 tablas de Departamentos\r\n\t\t\r\n//\t\tthis.controlador.cambiaNombreDpto(NombreAntiguo, NombreNuevo);\r\n//\t\t//this.controlador.cambiaNombreDepartamentoUsuario(NombreAntiguo, NombreNuevo);\r\n//\t\t//this.controlador.cambiaNombreNumerosDEPARTAMENTOs(NombreAntiguo, NombreNuevo);\r\n\t\tboolean esta=false;\r\n\t\tArrayList <String> aux=new ArrayList<String>();//Aqui meto los dos nombres que necesito, de esta forma no hace falta \r\n\t\taux.add(NombreAntiguo);\r\n\t\taux.add(NombreNuevo);\r\n\t\tint i=0;\r\n\t\twhile (i<departamentosJefe.size() && !esta){\r\n\t\t\tif (departamentosJefe.get(i).getNombreDepartamento().equals(NombreAntiguo)){\r\n\t\t\t\tdepartamentosJefe.get(i).setNombreDepartamento(NombreNuevo);\r\n\t\t\t\tmodifyCache(aux,\"NombreDepartamento\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t\tif (getEmpleadoActual().getRango() == 0){\r\n\t\t\tcontrolador.cambiaNombreDpto(NombreAntiguo, NombreNuevo);\r\n\t\t}\r\n\t}", "public void AgregarDeMayorAMenor(int el) throws Exception{\n if(repetido(el)){\n throw new Exception(\"El dato ya existe en la lista!!!\");\n }else{\n /*\n Crear un nodo para el nuevo dato.\n Si la lista esta vacía, o el valor del primer elemento de la lista \n es mayor que el nuevo, insertar el nuevo nodo en la primera posición \n de la lista y modificar la cabecera respectivamente.\n \n */\n NodoDoble newNode = new NodoDoble(el);\n if (estVacia() || inicio.GetDato() == el) {\n newNode.SetSiguiente(inicio);\n inicio = newNode;\n } else {\n /* \n Si no se cumple el caso anterior, buscar el lugar adecuado \n para la inserción: recorrer la lista conservando el nodo actual. \n Inicializar nodo actual con el valor de primera posición, \n y avanzar mientras el siguiente nodo no sea nulo y el dato \n que contiene la siguiente posición sea mayor o igual que \n el dato a insertar.\n */\n NodoDoble current = inicio;//\n while (current.GetSiguiente() != null\n && current.siguiente.GetDato() >= el) {\n current = current.GetSiguiente();\n }\n /*\n Con esto se señala al nodo adecuado, \n a continuación insertar el nuevo nodo a continuación de él.\n */\n newNode.SetSiguiente(current.GetSiguiente());\n current.SetSiguiente(newNode);\n }\n } \n }", "private Lista listarAux(NodoABB nodo, Lista listaAux) {\n if (nodo.getIzquierdo() != null) {\r\n listarAux(nodo.getIzquierdo(), listaAux);\r\n }\r\n //almacena el elemento\r\n listaAux.insertar(nodo.getElem(), listaAux.longitud() + 1);\r\n //Recorre todos los hijos derechos a la vuelta del hijo izquierdo\r\n if (nodo.getDerecho() != null) {\r\n listarAux(nodo.getDerecho(), listaAux);\r\n }\r\n return listaAux;\r\n }", "public Node buscarElemento(String x){\r\n\t\t//verifica se a arvore é vazia\r\n\t\tif (raiz == null){\r\n\t\t\tpos = 0;\r\n\t\t\treturn raiz;\r\n\t\t}\t\t\r\n if(pr == nil){\r\n pr = raiz;\r\n }\r\n\t\t//testa se o no é vazio\r\n\t\tif(pr == null)return null;\t\t\r\n\t\t//achou o no\r\n\t\telse if (pr.conteudoNo.equals(x)){\r\n Node aux=pr;\r\n pr=raiz;\r\n return aux; \r\n } \r\n\t\t//no a esquerda\r\n\t\telse if((compare(x, pr.conteudoNo)) < 0){ // faz comparação, se palavra menor que nó\r\n\t\t\taux = pr;\r\n\t\t\tpr = pr.esq;\r\n\t\t\taux.esq = pr;\r\n\t\t\tpos = 1; //posicao indica a insersao na esquerda - valor definido 1(esquerda) e 2(direita)\r\n\t\t\treturn buscarElemento(x);\r\n\t\t}\t\t\r\n\t\telse { \r\n\t\t\taux = pr;\r\n\t\t\tpr= pr.dir;\r\n\t\t\taux.dir = pr;\r\n\t\t\tpos = 2;//posicao indica a insercao na direita - valor definido 1(esquerda) e 2(direita)\r\n\t\t\treturn buscarElemento(x);\r\n }\r\n }", "public void mostrarLista(){\n Nodo recorrer = inicio;\n while(recorrer!=null){\n System.out.print(\"[\"+recorrer.edad+\"]-->\");\n recorrer=recorrer.siguiente;\n }\n System.out.println(recorrer);\n }", "public void agregarAlinicio(int el){\n if(!estVacia()){\n inicio=new NodoDoble(el, inicio, null);\n inicio.siguiente.anterior=inicio;\n }else{\n inicio=fin=new NodoDoble(el);\n }\n }", "private String directores(Proyecto proyecto) {\r\n String resultado = \"\";\r\n Item estadoRenunciado = itemService.buscarPorCatalogoCodigo(CatalogoEnum.ESTADODIRECTOR.getTipo(), EstadoDirectorEnum.RENUNCIADO.getTipo());\r\n if (proyecto.getDirectorProyectoList() == null) {\r\n return \"\";\r\n }\r\n int contador = 0;\r\n for (DirectorProyecto directorProyecto : proyecto.getDirectorProyectoList()) {\r\n if (estadoRenunciado.getId().equals(directorProyecto.getEstadoDirectorId())) {\r\n continue;\r\n }\r\n DocenteCarrera docenteCarrera = docenteCarreraService.buscarPorId(new DocenteCarrera(directorProyecto.getDirectorId().getId()));\r\n Persona persona = personaService.buscarPorId(new Persona(docenteCarrera.getDocenteId().getId()));\r\n if (contador == 0) {\r\n resultado = (persona.getApellidos() + \" \" + persona.getNombres());\r\n } else {\r\n resultado = (resultado + \", \" + persona.getApellidos() + \" \" + persona.getNombres());\r\n }\r\n contador++;\r\n }\r\n return resultado;\r\n }", "public void agregarinicio(int el){\n if(!estavacia()){\n fin=new nododoble(el, inicio,null);\n inicio.siguiente.anterior=inicio;\n }else{\n inicio=fin=new nododoble(el);\n }}", "public void agregarAlFinal(T v){\n\t\tNodo<T> nuevo = new Nodo<T>();\r\n\t\tnuevo.setInfo(v);\r\n\t\tnuevo.setRef(null);\r\n\t\t\r\n\t\t//si la lista aun no tiene elementos\r\n\t\tif(p == null){\r\n\t\t\t//el nuevo nodo sera el primero\r\n\t\t\tp=nuevo;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t//retorno la lista hasta que aux apunte al ultimo nodo\r\n\t\tNodo<T> aux;\r\n\t\tfor(aux=p; aux.getRef() != null; aux=aux.getRef()){\r\n\t\t\t//enlazo el nuevo nodo como el siguiente del ultimo\r\n\t\t\taux.setRef(nuevo);\r\n\t\t}\r\n\t\t\r\n\t}", "public void onDocumentoSubidoEventListener(DocumentoSubidoEvent event){}", "public BigDecimal calcolaImportoTotaleDaDedurreSobdocumenti(){\n\t\tBigDecimal result = BigDecimal.ZERO;\n\t\tfor(SD ds : getListaSubdocumenti()){\n\t\t\tresult = result.add(ds.getImportoDaDedurreNotNull());\n\t\t}\n\t\treturn result;\n\t}", "public static void main(String[] args) {\n\n\t\tDepartamento dep40= new Departamento ( 40, \"Formacion\", null );\n\t\t\n\t\t\n\t\tEmpleado emp1 =new Empleado(1,\"paco\",\"perez\",\"h\", 5000, 28, 5, dep40) ;\n\t\t\n\t\t// para introducir el departaementp \n\t\t\n\t\t//primer metodo\n\t\t\n\t\t\n\t\t\t\t\n\t\tEmpleado emp2 =new Empleado(2,\"luis\",\"sanchez\",\"h\", 4000, 45, 2, dep40) ;\t\n\t\tEmpleado emp3 =new Empleado(4, \"javi\", \"perez\", \"h\", 8000, 54, 0.2, dep40);\n\t\t\t\t\n\t\t\n\t\t\t\t\n\t\t\n\t\tSystem.out.println(emp1);\n\t\tSystem.out.println(emp2);\t\n\t\tSystem.out.println(emp3);\n\t\t\n\t\tdep40.setJefe(emp1); // adjudico el Jefe al departamento 40\n\t\t\n\t\t\n\t\t// creo un departaemnto nuevo adjudicado a un empleado ade un departamento inicial ( no tienen por que ser el departamento del que ahora le reclama) usando el constructoe directamente ne vez de la variable que alude a la clase\n\t\t//departamento= new Departamento(120, \"formacion\", jefe)\n\t\tDepartamento dep120 = new Departamento (120, \"formacion\", new Empleado(5, \"luisa\", \"sanchez\", \"M\", 14000, 35, 2, dep40)); //he creado un empleado del depto 30 y luego le hago jefe del 120\n\t\t dep120.getJefe().setDepartamento(dep120); /* actuando con dos variables. como ese new empleado no tiene variable adjudicada \n\t\t *y tengo que hacer alusion a Úl para cambiaer en el empleado su departaemento , me valgo del un metodo dep120.getJefe()que averigua qcual es la direccion de ese empleado en la tabla departamento y con un set le ingerso el departaento nuievo\n\t\t \n\t\t \n\t\t */\n\t\t System.out.println (\"departaqmento 120\" + dep120.getJefe().getNombre());\n\t\t\n\t/* SALIDA POR CONSOLA :\n\t * el niombre del emp2, su salario y el nombre del departamento al que pertenence.\t// \n\t\t* como el nombre departamento no es un atributo normal sino que es NDE una clase relacionada .SE INVOCA AL GET DE LL ATRIBUTO INCLUIDO CONN LA CLASE Y TRAS EL LOS METODOS GET DE LA CLASE DEPARTAMENTO EN ESTE CLASO EL DEL CAMPO NOMBRE DEL DEPARTAMENTO\n\t*/\t\n\t\tSystem.out.println(\" nombre emp2:\"+emp2.getNombre()+ \" su salalrio es\"+ emp2.getSalario()+\" , su departamento es: \"+emp2.getDepartamento().getNombre().toUpperCase());\n\t\t/*\n\t\t * el empleado \n\t\t * \n\t\t * */\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(\" nombre emp2:\"+emp2.getNombre()+ \" su salalrio es\"+ emp2.getSalario()+\" , su departamento es: \"+emp2.getDepartamento().getNombre());\n\tSystem.out.println(dep120);\n\t// OJO SE BUCLA POR QUE LOS TO STRING DE DEPARTAEMNTO Y CLIENTE SE CRIUZARIAN DEBORDANDO LA MEMORIA. PUEDO HACER VARIAS COSAS\n\t/* PUEDO QUITAR DEUNO DE LOS TO STRING DE UNA CLASE O DE LA OTRA SEGUN ME INTERESE EL CAMPO QUE LAS LIGA ( PEJ DEPARTAMENTO EN EMPLEADO)\n\t * PUEDO CREAR UN METODO QUE SALVE LA CONDICION DE NULL SI ALGUNA VARIABLE ESTA VACICA.\n\t * \n\t * \n\t */\n\t//SALIDA DEL NOMBRE DEL JEFE DEL DEAPARTAEMENTO QUE SEA POR EJEMPLO DE UN EMPLEADO ()\n\t\n\tSystem.out.println ( dep120.getJefe().getNombre()); //get jefe me dedevuelve el monbre de jefe dela tabala departaemnto. get Nombre me devuelve de la tabla empleados el nombre que estaba como jefe en departamento.\n\tSystem.out.println (\"el jefe de emp2 luis: \"+ emp2.getDepartamento().getJefe().getNombre());\n\tSystem.out.println(dep120);\n\t\n\t\n\t\n\t\n\t}", "void deleteSub();", "public void resetNodo()\r\n {\r\n this.nodo = null;\r\n }", "public NodoP(Productos _prod) {\n\t\t\tthis.producto = _prod;\n\t\t\tthis.siguiente = null;\n\t\t}", "private void depurarElementos() {\n\t\tfor(int i=0; i<JuegoListener.elementos.size();i++){\n\t\t\tif (!JuegoListener.elementos.get(i).estaVivo())\n\t\t\t\tJuegoListener.elementos.remove(i);\n\t\t}\n\t\t\n\t}", "public Nodo dosNoSeguidos(Nodo nodo) throws IOException{\n System.out.println(\"----------------inicio heuristica dosnoseguidos--------------\");\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 \n while(cambio!=0){\n cambio=0;\n \n nodo.setCambio(0);\n for(int i = 0;i<numFilas;i++){\n if(operadores.isFilaVacia(nodo.getMatriz(), i) == true){\n //filas\n auxListFila = (ArrayListFila)filas.get(i);\n\n int contadorColores = 0;\n for(int j=0;j<numColores;j++){\n Color auxColor = new Color();\n auxColor = auxListFila.getColor(j);\n if(auxColor.getNumero() > 0){\n contadorColores++;\n }\n }//fin color\n\n\n if(contadorColores == 2){//esto quiere decir que hay dos colores disponibles para usar en la matriz\n //ahora hay que ver si uno de los dos es igual a 2 y false\n for(int j1=0;j1<numColores;j1++){\n Color auxColor1 = new Color();\n auxColor1 = auxListFila.getColor(j1);\n\n if(auxColor1.getNumero() == 2 && auxColor1.isSeguido() == false){\n for(int j2=0;j2<numColores;j2++){\n Color auxColor2 = new Color();\n auxColor2 = auxListFila.getColor(j2);\n\n if(auxColor2.isSeguido() == true){\n cambio=1;\n nodo.setCambio(1);\n //pinta los extremos de la fila\n matriz = operadores.pintarPosicion(matriz,i, (numColumnas-1), auxColor1.getColor());\n \n matriz = operadores.pintarPosicion(matriz, i, 0, auxColor1.getColor());\n \n //pinta el resto de la fila\n matriz = operadores.pintarFilaCompleta(matriz, auxColor2.getColor(), i);\n //descuenta los colores en las filas\n auxColor1.setNumero(0);\n auxColor2.setNumero(0);\n \n //descontar colores en las columnas\n for(int c=0;c<numColumnas;c++){\n auxListColumna = (ArrayListColumna)columnas.get(c);\n \n if(c == 0){\n for(int c1=0;c1<numColores;c1++){\n Color auxColorc1 = new Color();\n auxColorc1 = auxListColumna.getColor(c1);\n \n if(auxColorc1.getColor().equals(auxColor1.getColor())){\n auxColorc1.setNumero(auxColorc1.getNumero()-1);\n }\n \n }\n }else if(c == (numColumnas-1)){\n for(int c1=0;c1<numColores;c1++){\n Color auxColorc1 = new Color();\n auxColorc1 = auxListColumna.getColor(c1);\n \n if(auxColorc1.getColor().equals(auxColor1.getColor())){\n auxColorc1.setNumero(auxColorc1.getNumero()-1);\n }\n }\n }else{\n for(int c1=0;c1<numColores;c1++){\n Color auxColorc1 = new Color();\n auxColorc1 = auxListColumna.getColor(c1);\n \n if(auxColorc1.getColor().equals(auxColor2.getColor())){\n auxColorc1.setNumero(auxColorc1.getNumero()-1);\n }\n }\n \n }\n \n }\n \n nodo.setMatriz(matriz.clone());\n System.out.println(\"-----\");\n operadores.imprimirMatriz(nodo.getMatriz());\n System.out.println(\"-----\");\n }\n }\n }\n }//fin color\n }\n }//fin isfilaVacia\n }//fin filas\n \n \n //---------columnas\n for(int i = 0;i<numColumnas;i++){\n if(operadores.isColumnaVacia(nodo.getMatriz(), i) == true){ \n //columnas\n auxListColumna = (ArrayListColumna)columnas.get(i);\n\n int contadorColores = 0;\n for(int j=0;j<numColores;j++){\n Color auxColor = new Color();\n auxColor = auxListColumna.getColor(j);\n if(auxColor.getNumero() > 0){\n contadorColores++;\n } \n }//fin color\n if(contadorColores == 2){//esto quiere decir que hay dos colores disponibles para usar en la matriz\n //ahora hay que ver si uno de los dos es igual a 2 y false\n for(int j1=0;j1<numColores;j1++){\n Color auxColor1 = new Color();\n auxColor1 = auxListColumna.getColor(j1);\n\n if(auxColor1.getNumero() == 2 && auxColor1.isSeguido() == false){\n for(int j2=0;j2<numColores;j2++){\n Color auxColor2 = new Color();\n auxColor2 = auxListColumna.getColor(j2);\n if(auxColor2.isSeguido() == true){\n cambio=1;\n nodo.setCambio(1);\n matriz = operadores.pintarPosicion(matriz,(numFilas-1), i, auxColor1.getColor());\n matriz = operadores.pintarPosicion(matriz, 0, i, auxColor1.getColor());\n \n matriz = operadores.pintarColumnaCompleta(matriz, auxColor2.getColor(), i);\n \n auxColor1.setNumero(0);\n auxColor2.setNumero(0);\n \n \n //descontar colores en las columnas\n for(int f=0;f<numFilas;f++){\n auxListFila = (ArrayListFila)filas.get(f);\n \n if(f == 0){\n for(int f1=0;f1<numColores;f1++){\n Color auxColorf1 = new Color();\n auxColorf1 = auxListFila.getColor(f1);\n \n if(auxColorf1.getColor().equals(auxColor1.getColor())){\n auxColorf1.setNumero(auxColorf1.getNumero()-1);\n }\n \n }\n }else if(f == (numColumnas-1)){\n for(int f1=0;f1<numColores;f1++){\n Color auxColorf1 = new Color();\n auxColorf1 = auxListFila.getColor(f1);\n \n if(auxColorf1.getColor().equals(auxColor1.getColor())){\n auxColorf1.setNumero(auxColorf1.getNumero()-1);\n }\n \n }\n }else{\n for(int f1=0;f1<numColores;f1++){\n Color auxColorf1 = new Color();\n auxColorf1 = auxListFila.getColor(f1);\n \n if(auxColorf1.getColor().equals(auxColor2.getColor())){\n auxColorf1.setNumero(auxColorf1.getNumero()-1);\n }\n }\n \n }\n \n }\n \n nodo.setMatriz(matriz.clone());\n System.out.println(\"-----\");\n operadores.imprimirMatriz(nodo.getMatriz());\n System.out.println(\"-----\");\n }\n }\n }\n }//fin color\n }\n }\n }//fin columnas\n }//fin while principal\n \n System.out.println(\"---------------final heuristica dosnoseguidos---------------\");\n return nodo;\n }", "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}" ]
[ "0.6021883", "0.57252496", "0.57078546", "0.56570303", "0.5642139", "0.56130964", "0.5496485", "0.54828143", "0.54529715", "0.5394353", "0.5390722", "0.538884", "0.53786975", "0.53780997", "0.53473204", "0.5323859", "0.5270783", "0.5265222", "0.5254027", "0.5252808", "0.524802", "0.52464974", "0.52430755", "0.5224307", "0.51995057", "0.51978505", "0.5191287", "0.5183916", "0.51789916", "0.5160762", "0.5158831", "0.51534265", "0.5140834", "0.51375943", "0.512694", "0.5124393", "0.5124145", "0.51229966", "0.5120904", "0.5115197", "0.51150423", "0.51121503", "0.50956446", "0.5083544", "0.5082518", "0.5072342", "0.50703436", "0.5060364", "0.50504375", "0.50437164", "0.50325745", "0.5016224", "0.5001226", "0.4996916", "0.4991511", "0.49837172", "0.4970578", "0.49614498", "0.4960728", "0.49603426", "0.49438098", "0.49347246", "0.4933915", "0.49191564", "0.49126574", "0.49045542", "0.4902014", "0.4896007", "0.48796684", "0.48729092", "0.48618945", "0.48435527", "0.48422793", "0.4841975", "0.48405135", "0.48395154", "0.48273715", "0.4818804", "0.4812624", "0.48104516", "0.4807619", "0.4802316", "0.48017386", "0.4799616", "0.47951505", "0.47902378", "0.4789056", "0.47803316", "0.47702956", "0.47701064", "0.47688577", "0.4765638", "0.47590092", "0.47546363", "0.475223", "0.47491336", "0.47491083", "0.47418034", "0.47412515", "0.4740764" ]
0.6689306
0
Imprime los datos de la maquina de un dominio
public void imprimirDescripcionDominio(Pila url){ modCons.imprimirDescripcionDominio(url); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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 final void setDominio() {\r\n this.limite[0] = BigInteger.ZERO;\r\n this.limite[1] = this.primoGrande;\r\n }", "public void afegirPosicio() {\n\t\tfor(int i=0; i<cal.length; ++i){\n\t\t\tcal[i] = new Dia(false);\n\t\t\tfor(int j=0; j<3; ++j) cal[i].getTorns()[j].setPosicio(i);\n\t\t}\n\t}", "private void obtenerGastosDiariosMes() {\n\t\t// Obtenemos las fechas actuales inicial y final\n\t\tCalendar calendar = Calendar.getInstance();\n calendar.setTime(new Date());\n int diaFinalMes = calendar.getActualMaximum(Calendar.DAY_OF_MONTH);\n\n\t\tList<Movimiento> movimientos = this.movimientoService.obtenerMovimientosFechaUsuario(idUsuario, LocalDate.of(LocalDate.now().getYear(),LocalDate.now().getMonthValue(),1),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tLocalDate.of(LocalDate.now().getYear(),LocalDate.now().getMonthValue(), diaFinalMes));\n\t\tList<Double> listaGastos = new ArrayList<Double>();\n\t\tList<String> listaFechas = new ArrayList<String>();\n\t\t\n\t\tDate fechaUtilizadaActual = null;\n\t\tdouble gastoDiario = 0;\n\t\t\n\t\tfor (Iterator iterator = movimientos.iterator(); iterator.hasNext();) {\n\t\t\tMovimiento movimiento = (Movimiento) iterator.next();\n\t\t\tif(fechaUtilizadaActual == null) { //Comprobamos si se acaba de entrar en el bucle para inicializar la fecha del movimiento\n\t\t\t\tfechaUtilizadaActual = movimiento.getFecha();\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// Si hemos cambiado de fecha del movimiento se procede a guardar los datos recogidos\n\t\t\tif(!fechaUtilizadaActual.equals(movimiento.getFecha())) {\n\t\t\t\tlistaGastos.add(gastoDiario);\n\t\t\t\tlistaFechas.add(fechaUtilizadaActual.getDate()+\"/\"+Utils.getMonthForInt(fechaUtilizadaActual.getMonth()).substring(0, 3));\n\t\t\t\tgastoDiario = 0; // Reiniciamos el contador del gasto\n\t\t\t\tfechaUtilizadaActual = movimiento.getFecha(); // Almacenemos la fecha del nuevo gasto\n\t\t\t}\n\t\t\t\n\t\t\t// Si el movimiento que se ha realizado es un gasto lo sumamos al contador de gasto\n\t\t\tif(movimiento.getTipo().equals(TipoMovimiento.GASTO)) {\n\t\t\t\tgastoDiario += movimiento.getCantidad();\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// Comprobamos si es el ultimo item del iterador y almacenamos sus datos\n\t\t\tif(!iterator.hasNext()) {\n\t\t\t\tlistaGastos.add(gastoDiario);\n\t\t\t\tlistaFechas.add(fechaUtilizadaActual.getDate()+\"/\"+Utils.getMonthForInt(fechaUtilizadaActual.getMonth()).substring(0, 3));\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\tthis.listadoGastosDiariosDiagrama = new Double[listaGastos.size()];\n\t\tthis.listadoGastosDiariosDiagrama = listaGastos.toArray(this.listadoGastosDiariosDiagrama);\n\t\tthis.fechasDiagrama = new String[listaFechas.size()];\n\t\tthis.fechasDiagrama = listaFechas.toArray(this.fechasDiagrama);\n\t\t\n\t}", "public void inicialAleatorio() {\n //aqui adiciona naquele vetor que de auxilio\n alocacao.add(Estados.ELETRICISTAS);\n alocacao.add(Estados.ELETRICISTAS2);\n alocacao.add(Estados.QUALIDADE);\n alocacao.add(Estados.QUALIDADE2);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL2);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL3);\n alocacao.add(Estados.PLANEJAMENTO);\n\n //biblioteca que sorteia aleatoriamente os departamentos\n Collections.shuffle(alocacao);\n\n for (int i = 0; i < 4; i++) {\n matrix[1][i] = alocacao.get(i);\n\n }\n\n for (int i = 0; i < 4; i++) {\n matrix[3][i] = alocacao.get(i + 4);\n }\n\n }", "public Maquina() {\n savia = 0;\n reflejosLagrimas = 0;\n estado = false;\n }", "public int eleminardelInicio(){\n int elemento=inicio.dato;\n if(inicio==fin){\n inicio=fin=null;\n }else{\n inicio=inicio.siguiente;\n inicio.anterior=null; \n }\n return elemento;\n }", "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 }", "public void reset()\n {\n cantidad = 0;\n suma = 0;\n maximo = 0; \n minimo = 0; \n \n }", "public void insertarInicio(E dato) {\n\t\tprimero=new Nodo<E>(dato,primero);\n\t\tif (estaVacia()) {\n\t\t\tultimo=primero;\n\t\t}\n\t\tcantidad++;\n\t}", "private void populaAluno()\n {\n Calendar nasc = Calendar.getInstance();\n nasc.set(Calendar.DAY_OF_MONTH, 24);\n nasc.set(Calendar.MONTH, 03);\n nasc.set(Calendar.YEAR, 1989);\n Aluno c = new Aluno();\n c.setNome(\"Christian \");\n c.setEmail(\"[email protected]\");\n c.setCpf(\"33342523501\");\n c.setAltura(1.76);\n c.setPeso(70);\n c.setSenha(CriptografiaLogic.encriptar(\"r\"));\n c.setRg(\"22233344401\");\n c.setDataNascimento(nasc);\n c.setNumSolicitacao(0);\n alunoDAO.insert(c);\n\n for (int i = 1; i < 500; i++)\n {\n nasc.set(Calendar.DAY_OF_MONTH, NumberLogic.randomInteger(1, 28));\n nasc.set(Calendar.MONTH, NumberLogic.randomInteger(1, 12));\n nasc.set(Calendar.YEAR, NumberLogic.randomInteger(1940, 1995));\n Aluno a = new Aluno();\n a.setNome(\"Aluno \" + i);\n a.setEmail(\"aluno\" + i + \"@gmail.com\");\n a.setCpf(String.valueOf(NumberLogic.randomInteger(100000000, 999999999)));\n a.setAltura(NumberLogic.randomDouble(1.60d, 1.99d));\n a.setPeso(NumberLogic.randomInteger(60, 100));\n a.setSenha(CriptografiaLogic.encriptar(\"123\"));\n a.setRg(String.valueOf(NumberLogic.randomInteger(100000000, 999999999)));\n a.setDataNascimento(nasc);\n a.setNumSolicitacao(0);\n alunoDAO.insert(a);\n }\n }", "public void setupDays() {\n\n //if(days.isEmpty()) {\n days.clear();\n int day_number = today.getActualMaximum(Calendar.DAY_OF_MONTH);\n SimpleDateFormat sdf = new SimpleDateFormat(\"EEEE\");\n SimpleDateFormat sdfMonth = new SimpleDateFormat(\"MMM\");\n today.set(Calendar.DATE, 1);\n for (int i = 1; i <= day_number; i++) {\n OrariAttivita data = new OrariAttivita();\n data.setId_utente(mActualUser.getID());\n\n //Trasformare in sql date\n java.sql.Date sqldate = new java.sql.Date(today.getTimeInMillis());\n data.setGiorno(sqldate.toString());\n\n data.setDay(i);\n data.setMonth(today.get(Calendar.MONTH) + 1);\n\n data.setDay_of_week(today.get(Calendar.DAY_OF_WEEK));\n Date date = today.getTime();\n String day_name = sdf.format(date);\n data.setDay_name(day_name);\n data.setMonth_name(sdfMonth.format(date));\n\n int indice;\n\n if (!attivitaMensili.isEmpty()) {\n if ((indice = attivitaMensili.indexOf(data)) > -1) {\n OrariAttivita temp = attivitaMensili.get(indice);\n if (temp.getOre_totali() == 0.5) {\n int occurence = Collections.frequency(attivitaMensili, temp);\n if (occurence == 2) {\n for (OrariAttivita other : attivitaMensili) {\n if (other.equals(temp) && other.getCommessa() != temp.getCommessa()) {\n data.setOtherHalf(other);\n data.getOtherHalf().setModifica(true);\n }\n }\n\n }\n }\n data.setFromOld(temp);\n data.setModifica(true);\n }\n }\n isFerie(data);\n\n\n //Aggiungi la data alla lista\n days.add(data);\n\n //Aggiugni un giorno alla data attuale\n today.add(Calendar.DATE, 1);\n }\n\n today.setTime(actualDate);\n\n mCalendarAdapter.notifyDataSetChanged();\n mCalendarList.setAdapter(mCalendarAdapter);\n showProgress(false);\n }", "@Override\n public void imprimir() {\n System.out.println(\"Vehiculos ordenados por precio mayor a menor:\");\n if(a1.precio>a2.precio && a1.precio >m1.precio && a1.precio >m2.precio){\n System.out.println(a1.marca+\"\"+a1.modelo);\n if(a2.precio >m1.precio && a2.precio >m2.precio){\n System.out.println(a2.marca+\"\"+a2.modelo);\n if(m1.precio >m2.precio){\n System.out.println(m1.marca+\"\"+m1.modelo);\n System.out.println(m2.marca+\"\"+m2.modelo);\n }else{\n System.out.println(m2.marca+\"\"+m1.modelo);\n System.out.println(m1.marca+\"\"+m1.modelo);\n \n }\n }else{\n if(m1.precio >a2.precio && m1.precio >m2.precio){\n System.out.println(m1.marca+\"\"+m1.modelo);\n if(a2.precio >m2.precio){\n System.out.println(a2.marca+\"\"+a2.modelo);\n System.out.println(m2.marca+\"\"+m2.modelo);\n }else{\n System.out.println(m2.marca+\"\"+m2.modelo);\n System.out.println(a2.marca+\"\"+a2.modelo);\n \n }\n }else{\n if(m2.precio >a2.precio && m2.precio >m1.precio){\n System.out.println(m2.marca+\"\"+m2.modelo);\n if(m1.precio >a2.precio){\n System.out.println(m1.marca+\"\"+m1.modelo);\n System.out.println(a2.marca+\"\"+a2.modelo);\n }else{\n System.out.println(a2.marca+\"\"+a2.modelo);\n System.out.println(m1.marca+\"\"+m1.modelo);\n }\n }\n }\n }\n }else{\n if(a2.precio>a1.precio && a2.precio >m1.precio && a2.precio >m2.precio){\n System.out.println(a2.marca+\" \"+a2.modelo);\n if(a1.precio >m1.precio && a1.precio >m2.precio){\n System.out.println(a1.marca+\" \"+a1.modelo);\n if(m1.precio >m2.precio){\n System.out.println(m1.marca+\" \"+m1.modelo);\n System.out.println(m2.marca+\" \"+m2.modelo);\n }else{\n System.out.println(m2.marca+\" \"+m2.modelo);\n System.out.println(m1.marca+\" \"+m1.modelo);\n \n }\n }else{\n if(m1.precio >a1.precio && m1.precio >m2.precio){\n System.out.println(m1.marca+\" \"+m1.modelo);\n if(a1.precio >m2.precio){\n System.out.println(a1.marca+\" \"+a1.modelo);\n System.out.println(m2.marca+\" \"+m2.modelo);\n }else{\n System.out.println(m2.marca+\" \"+m2.modelo);\n System.out.println(a1.marca+\" \"+a1.modelo);\n \n }\n }else{\n if(m2.precio >a1.precio && m2.precio >m1.precio){\n System.out.println(m2.marca+\" \"+m2.modelo);\n if(m1.precio >a1.precio){\n System.out.println(m1.marca+\" \"+m1.modelo);\n System.out.println(a1.marca+\" \"+a1.modelo);\n }else{\n System.out.println(a1.marca+\" \"+a1.modelo);\n System.out.println(m1.marca+\" \"+m1.modelo);\n }\n }\n }\n }\n }else{\n if(m1.precio>a2.precio && m1.precio >a1.precio && m1.precio >m2.precio){\n System.out.println(m1.marca+\" \"+m1.modelo);\n if(a2.precio >a1.precio && a2.precio >m2.precio){\n System.out.println(a2.marca+\" \"+a2.modelo);\n if(a1.precio >m2.precio){\n System.out.println(a1.marca+\" \"+a1.modelo);\n System.out.println(m2.marca+\" \"+m2.modelo);\n }else{\n System.out.println(m2.marca+\" \"+m2.modelo);\n System.out.println(a1.marca+\" \"+a1.modelo);\n \n }\n }else{\n if(a1.precio >a2.precio && a1.precio >m2.precio){\n System.out.println(a1.marca+\"\"+a1.modelo);\n if(a2.precio >m2.precio){\n System.out.println(a2.marca+\" \"+a2.modelo);\n System.out.println(m2.marca+\" \"+m2.modelo);\n }else{\n System.out.println(m2.marca+\" \"+m2.modelo);\n System.out.println(a2.marca+\" \"+a2.modelo);\n \n }\n }else{\n if(m2.precio >a2.precio && m2.precio >a1.precio){\n System.out.println(m2.marca+\" \"+m2.modelo);\n if(a1.precio >a2.precio){\n System.out.println(a1.marca+\" \"+a1.modelo);\n System.out.println(a2.marca+\" \"+a2.modelo);\n }else{\n System.out.println(a2.marca+\" \"+a2.modelo);\n System.out.println(a1.marca+\" \"+a1.modelo);\n }\n }\n }\n }\n }else{ \n if(m2.precio>a2.precio && m2.precio >a1.precio && m2.precio >m1.precio){\n System.out.println(m2.marca+\" \"+m2.modelo);\n if(a2.precio >a1.precio && a2.precio >m1.precio){\n System.out.println(a2.marca+\" \"+a2.modelo);\n if(a1.precio >m1.precio){\n System.out.println(a1.marca+\" \"+a1.modelo);\n System.out.println(m1.marca+\" \"+m1.modelo);\n }else{\n System.out.println(m1.marca+\" \"+m1.modelo);\n System.out.println(a1.marca+\" \"+a1.modelo);\n \n }\n }else{\n if(a1.precio >a2.precio && a1.precio >m1.precio){\n System.out.println(a1.marca+\"\"+a1.modelo);\n if(a2.precio >m1.precio){\n System.out.println(a2.marca+\" \"+a2.modelo);\n System.out.println(m1.marca+\" \"+m1.modelo);\n }else{\n System.out.println(m1.marca+\" \"+m1.modelo);\n System.out.println(a2.marca+\" \"+a2.modelo);\n \n }\n }else{\n if(m1.precio >a2.precio && m1.precio >a1.precio){\n System.out.println(m1.marca+\" \"+m1.modelo);\n if(a1.precio >a2.precio){\n System.out.println(a1.marca+\" \"+a1.modelo);\n System.out.println(a2.marca+\" \"+a2.modelo);\n }else{\n System.out.println(a2.marca+\" \"+a2.modelo);\n System.out.println(a1.marca+\" \"+a1.modelo);\n }\n }\n }\n }\n } \n \n }\n\n }\n }\n }", "private 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 Dios()\r\n {\r\n \tif(!dios)\r\n \t\tgrafico.cambiarA(0);\r\n \telse\r\n \t\tgrafico.cambiarA(1);\r\n dios=!dios;\r\n }", "public void AgregarDeMayorAMenor(int el) throws Exception{\n if(repetido(el)){\n throw new Exception(\"El dato ya existe en la lista!!!\");\n }else{\n /*\n Crear un nodo para el nuevo dato.\n Si la lista esta vacía, o el valor del primer elemento de la lista \n es mayor que el nuevo, insertar el nuevo nodo en la primera posición \n de la lista y modificar la cabecera respectivamente.\n \n */\n NodoDoble newNode = new NodoDoble(el);\n if (estVacia() || inicio.GetDato() == el) {\n newNode.SetSiguiente(inicio);\n inicio = newNode;\n } else {\n /* \n Si no se cumple el caso anterior, buscar el lugar adecuado \n para la inserción: recorrer la lista conservando el nodo actual. \n Inicializar nodo actual con el valor de primera posición, \n y avanzar mientras el siguiente nodo no sea nulo y el dato \n que contiene la siguiente posición sea mayor o igual que \n el dato a insertar.\n */\n NodoDoble current = inicio;//\n while (current.GetSiguiente() != null\n && current.siguiente.GetDato() >= el) {\n current = current.GetSiguiente();\n }\n /*\n Con esto se señala al nodo adecuado, \n a continuación insertar el nuevo nodo a continuación de él.\n */\n newNode.SetSiguiente(current.GetSiguiente());\n current.SetSiguiente(newNode);\n }\n } \n }", "public int eliminardelInicio(){\n int elemento = inicio.dato;\n if(inicio == fin){\n inicio=fin=null;\n }else{\n inicio = inicio.sig;\n inicio.ant = null;\n }\n return elemento;\n \n \n }", "public void dataPadrao() {\n Calendar c = Calendar.getInstance();\n SimpleDateFormat s = new SimpleDateFormat(\"dd/MM/yyyy\");\n String dataAtual = s.format(c.getTime());\n c.add(c.MONTH, 1);\n String dataAtualMaisUm = s.format(c.getTime());\n dataInicial.setText(dataAtual);\n dataFinal.setText(dataAtualMaisUm);\n }", "void MontaValores(){\r\n // 0;0;-23,3154166666667;-51,1447783333333;0 // Extrai os valores e coloca no objetos\r\n // Dis;Dir;Lat;Long;Velocidade\r\n // Quebra de Rota lat=-999.999 long=-999.999 ==> Marca ...\r\n \r\n int ind=0;\r\n NMEAS=NMEA.replace(\",\" , \".\");\r\n \r\n //1)\r\n dists=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind));\r\n Distancia=Double.valueOf(dists);\r\n ind=ind+dists.length()+1;\r\n \r\n //2)\r\n dirs=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Direcao=Double.valueOf(dirs);\r\n ind=ind+dirs.length()+1;\r\n \r\n //3)\r\n lats=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Lat=Double.valueOf(lats);\r\n ind=ind+lats.length()+1;\r\n \r\n //4)\r\n longs=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Long=Double.valueOf(longs);\r\n ind=ind+longs.length()+1;\r\n \r\n //5)\r\n vels=NMEAS.substring(ind,NMEAS.length());\r\n // Transforma de Knots para Km/h\r\n Velocidade=Double.valueOf(vels)/100*1.15152*1.60934;\r\n vels=String.valueOf(Velocidade);\r\n ind=ind+vels.length()+1;\r\n \r\n }", "public 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 zeraEmpates() {\r\n contaEmpates = 0;\r\n }", "public void ganarDineroPorAutomoviles() {\n for (Persona p : super.getMundo().getListaDoctores()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaAlbaniles()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaHerreros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n }", "public Calculadora(){\n this.operador1 = 0.0;\n this.operador2 = 0.0;\n this.resultado = 0.0;\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 }", "public void imprimeAgencias() {\n System.out.println(\"\\n\\n=============== RELATORIO DE AGENCIAS DO BANCO ==================\\n\");\n System.out.println(\"Numero de agencias abertas: \" + numAgenciasAbertas);\n for (int i = 0; i < numAgenciasAbertas; i++) {\n agencias[i].imprimeDados();\n }\n System.out.println(\"===============================================\");\n }", "public DatosIteracion mejorIteracionOptimizada(\r\n\t\t\tArrayList<DatosIteracion> datos) {\r\n\t\tDatosIteracion d = new DatosIteracion(\"auxiliar\");\r\n\t\tLectura l = new Lectura(999999, 0, 0);\r\n\t\td.getValoresLecturas().add(l);\r\n\r\n\t\tfor (int i = 0; i < datos.size(); i++) {\r\n\r\n\t\t\tif ((d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados() / (d.getValoresLecturas(\r\n\t\t\t\t\td.getValoresLecturas().size() - 1).getTiempo() + 1)) < (datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados() / (datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getTiempo() + 1))) {\r\n\r\n\t\t\t\td = datos.get(i);\r\n\t\t\t}\r\n\r\n\t\t\tif ((d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados() / (d.getValoresLecturas(\r\n\t\t\t\t\td.getValoresLecturas().size() - 1).getTiempo() + 1)) == (datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados() / (datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getTiempo() + 1))) {\r\n\r\n\t\t\t\tif (d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t\t.getTiempo() > datos\r\n\t\t\t\t\t\t.get(i)\r\n\t\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t\t.getTiempo()) {\r\n\r\n\t\t\t\t\td = datos.get(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn d;\r\n\t}", "public void UnDia()\n {\n int i = 0;\n for (i = 0; i < 6; i++) {\n for (int j = animales.get(i).size() - 1; j >= 0; j--) {\n\n if (!procesoComer(i, j)) {\n animales.get(i).get(j).destruir();\n animales.get(i).remove(j);\n } else {\n if (animales.get(i).size() > 0 && j < animales.get(i).size()) {\n\n if (animales.get(i).get(j).reproducirse()) {\n ProcesoReproducirse(i, j);\n }\n if (j < animales.get(i).size()) {\n if (animales.get(i).get(j).morir()) {\n animales.get(i).get(j).destruir();\n animales.get(i).remove(j);\n }\n }\n }\n }\n\n }\n }\n if (krill == 0) {\n Utilidades.MostrarExtincion(0, dia);\n }\n modificarKrill();\n modificarTemperatura();\n ejecutarDesastres();\n for (i = 1; i < animales.size(); i++) {\n if (animales.get(i).size() == 0 && !extintos.get(i)) {\n extintos.set(i, true);\n Utilidades.MostrarExtincion(i, dia);\n }\n }\n dia++;\n System.out.println(dia + \":\" + krill + \",\" + animales.get(1).size() + \",\" + animales.get(2).size() + \",\" + animales.get(3).size() + \",\" + animales.get(4).size() + \",\" + animales.get(5).size());\n }", "private void resetaPadraoEFundo() {\r\n\t\tdiferencaDeFundoATopo = new BigDecimal(0);\r\n\t\t\r\n\t\tif (!isNovoFundo) {\r\n\t\t\tvalorDoFundoAnterior = new BigDecimal(0);\r\n\t\t}\r\n\r\n\t\tvalorDoTopo = new BigDecimal(0);\r\n\t\tultimoFoiTopo = false;\r\n\t\t\r\n\t\tvalorDoFundo = valorCorrente;\r\n\t\tultimoFoiFundo = true;\r\n\t\t\r\n\t\tcorrecaoCorrente = new BigDecimal(0);\r\n\t\tformouPivoDeCompra = false;\r\n\t\tentrouNoRangeDeInicio = false;\r\n\t\testaNoRangeDeLimite = false;\r\n\t\tformadoSegundoTopo = false;\r\n\t\tformadoTopoRelevante = false;\r\n\t\tformouSegundoFundo = false;\r\n\t}", "public void ultimo(){//executa metodo para ultima pagina de registro de funcionarios\r\n\t\tdao.ultimo();\r\n\t}", "public Map<String, MonthDay> dataFeriadosNacionais(int ano);", "public void recorrer(){\r\n \r\n NodoJugador temporal = primero;\r\n while(temporal != null){\r\n System.out.println(temporal.getDato());\r\n temporal = temporal.getSiguiente();\r\n \r\n }\r\n \r\n }", "public void actualizarPodio() {\r\n\t\tordenarXPuntaje();\r\n\t\tint tam = datos.size();\r\n\t\traizPodio = datos.get(tam-1);\r\n\t\traizPodio.setIzq(datos.get(tam-2));\r\n\t\traizPodio.setDer(datos.get(tam-3));\r\n\t}", "private Map<Vertice<T>, Integer> caminosMinimoDikstra(Vertice<T> origen) {\n \tMap<Vertice<T>, Integer> distancias = new HashMap<Vertice<T>, Integer>();\n \tfor(Vertice<T> unVertice : this.vertices) {\n \t\tdistancias.put(unVertice, Integer.MAX_VALUE);\n \t}\n \tdistancias.put(origen, 0);\n \t\n \t// guardo visitados y pendientes de visitar\n \tSet<Vertice<T>> visitados = new HashSet<Vertice<T>>();\n \tTreeMap<Integer,Vertice<T>> aVisitar= new TreeMap<Integer,Vertice<T>>();\n\n \taVisitar.put(0,origen);\n \t \n \twhile (!aVisitar.isEmpty()) {\n \t\tEntry<Integer, Vertice<T>> nodo = aVisitar.pollFirstEntry();\n \t\tvisitados.add(nodo.getValue());\n \t\t\n \tint nuevaDistancia = Integer.MIN_VALUE;\n \tList<Vertice<T>> adyacentes = this.getAdyacentes(nodo.getValue());\n \t\n \tfor(Vertice<T> unAdy : adyacentes) {\n if(!visitados.contains(unAdy)) {\n Arista<T> enlace = this.buscarArista(nodo.getValue(), unAdy);\n if(enlace !=null) {\n nuevaDistancia = enlace.getValor().intValue();\n }\n int distanciaHastaAdy = distancias.get(nodo.getValue()).intValue();\n int distanciaAnterior = distancias.get(unAdy).intValue();\n if(distanciaHastaAdy + nuevaDistancia < distanciaAnterior ) {\n distancias.put(unAdy, distanciaHastaAdy + nuevaDistancia);\n aVisitar.put(distanciaHastaAdy + nuevaDistancia,unAdy);\n }\n }\n } \t\t\n \t}\n \tSystem.out.println(\"DISTANCIAS DESDE \"+origen);\n \tSystem.out.println(\"Resultado: \"+distancias);\n \treturn distancias;\n }", "public int eliminardelfinal(){\n int elemento=fin.dato;\n if(inicio==fin){\n inicio=fin=null;\n }else{\n fin=fin.anterior;\n fin.siguiente=null;}\n return elemento;\n }", "public Summalista()\r\n\t{\r\n\t\tthis.summa = 0;\r\n\t\tthis.alkiot = 0;\r\n\t}", "public Dinamica(){\n\t\tprimer=null;\n\t\tanterior=null;\n\t\tn_equips = 0;\n\t\t\n\t}", "static int [] GerarAleatorio()\n {\n Random gerar = new Random();\n int [] Aleatorio = new int [pergu]; // Cria um Vetor com o tamanho de quantidade de perguntas\n \n \n int pos1, pos2, auxilio; \n \n for (int i = 0; i < Aleatorio.length; i++) \n {\n Aleatorio[i] = i ; // preenche o vetor\n }\n \n for (int i = 0; i < 1000; i++) //Quantidade de vezes que as perguntas serão embaralhadas \n {\n pos1 = gerar.nextInt(Aleatorio.length);\n pos2 = gerar.nextInt(Aleatorio.length);\n //troca \n auxilio = Aleatorio[pos1]; //guarda o valor da posição 1\n \n Aleatorio [pos1] = Aleatorio[pos2]; //troca o valor de 1 para 2\n Aleatorio[pos2] = auxilio; //troca o valor de 2 para o valor que estava na 1\n }\n \n \n return Aleatorio; \n }", "private ArrayList<Integer> fillDomain() {\n ArrayList<Integer> elements = new ArrayList<>();\n\n for (int i = 1; i <= 10; i++) {\n elements.add(i);\n }\n\n return elements;\n }", "void imprimeCalculos(){\n int a,b;\n a=calculaX();\n b=calculaY();\n System.out.println(\"Valor de X=\"+a);\n System.out.println(\"Valor de Y=\"+b);\n if(a==0){\n proporcion=0;\n }else{\n proporcion=(b/a);\n System.out.println(\"Valor de proporcion es: \"+proporcion);\n }\n }", "public void muovi() {\n\n for (int i = punti; i > 0; i--) {\n x[i] = x[(i - 1)];\n y[i] = y[(i - 1)];\n }\n\n if (sinistra) {\n x[0] -= DIMENSIONE_PUNTO;\n }\n\n if (destra) {\n x[0] += DIMENSIONE_PUNTO;\n }\n\n if (su) {\n y[0] -= DIMENSIONE_PUNTO;\n }\n\n if (giu) {\n y[0] += DIMENSIONE_PUNTO;\n }\n }", "public void vaciar() {\n\t\tprimero = ultimo = null;\n\t\ttotal = 0;\n\t}", "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 }", "public void iniciarValores(){\r\n //Numero de campos da linha, do arquivo de saida filtrado\r\n this.NUM_CAMPOS = 106;\r\n this.ID = 0; //numero da ficha\r\n this.NUM_ARQUIVOS = 2070;\r\n\r\n this.MIN_INDICE = 1; //indice do cadastro inicial\r\n this.MAX_INDICE = 90; //indice do cadastro final\r\n this.NUM_INDICES = 90; //quantidade de cadastros lidos em cada arquivo\r\n }", "public Data() {\n\t\tCalendar now = new GregorianCalendar();\n\t\tthis.anno = now.get(Calendar.YEAR);\n\t\tthis.giorno = now.get(Calendar.DAY_OF_MONTH);\n\t\tthis.mese = Data.MESI[now.get(Calendar.MONTH)];\n\t}", "private void populaDiasTreinoCat()\n {\n DiasTreinoCat dias1 = new DiasTreinoCat(\"1 vez por semana\", 1);\n diasTreinoCatDAO.insert(dias1);\n DiasTreinoCat dias2 = new DiasTreinoCat(\"2 vez por semana\", 2);\n diasTreinoCatDAO.insert(dias2);\n DiasTreinoCat dias3 = new DiasTreinoCat(\"3 vez por semana\", 3);\n diasTreinoCatDAO.insert(dias3);\n DiasTreinoCat dias4 = new DiasTreinoCat(\"4 vez por semana\", 4);\n diasTreinoCatDAO.insert(dias4);\n DiasTreinoCat dias5 = new DiasTreinoCat(\"5 vez por semana\", 5);\n diasTreinoCatDAO.insert(dias5);\n DiasTreinoCat dias6 = new DiasTreinoCat(\"6 vez por semana\", 6);\n diasTreinoCatDAO.insert(dias6);\n DiasTreinoCat dias7 = new DiasTreinoCat(\"7 vez por semana\", 7);\n diasTreinoCatDAO.insert(dias7);\n\n }", "public void aumentarAciertos() {\r\n this.aciertos += 1;\r\n this.intentos += 1; \r\n }", "@Test\n public void testAnalisarPeriodo() throws Exception {\n System.out.println(\"analisarPeriodo\");\n int[][] dadosFicheiro = null;\n int lowerLimit = 0;\n int upperLimit = 0;\n int linhas = 0;\n int[] expResult = null;\n int[] result = ProjetoV1.analisarPeriodo(dadosFicheiro, lowerLimit, upperLimit, linhas);\n assertArrayEquals(expResult, result);\n\n }", "public void agregar_Alinicio(int elemento){\n inicio=new Nodo(elemento, inicio);// creando un nodo para que se inserte otro elemnto en la lista\r\n if (fin==null){ // si fin esta vacia entonces vuelve al inicio \r\n fin=inicio; // esto me sirve al agregar otro elemento al final del nodo se recorre al inicio y asi sucesivamnete\r\n \r\n }\r\n \r\n }", "public void limpiarMesa() {\n for (int i = 0; i < mesa.length; i++) {\n mesa[i][1] = 0;\n }\n }", "public void obtener() {\r\n \t\r\n \tif (raiz!=null)\r\n {\r\n int informacion = raiz.dato;\r\n raiz = raiz.sig;\r\n end = raiz;\r\n System.out.println(\"Obtenemos el dato de la cima: \"+informacion);\r\n }\r\n else\r\n {\r\n System.out.println(\"No hay datos en la pila\");\r\n }\r\n }", "public static void calcularPromedioSemanal() {\n }", "private void init() {\n for (Node n : reader.getNodes().values()) {\n da_collegare.add(n);\n valori.put(n, Double.MAX_VALUE);\n precedenti.put(n, null);\n }\n valori.put(start_node, 0.0);\n da_collegare.remove(start_node);\n }", "public void gastarDinero(double cantidad){\r\n\t\t\r\n\t}", "public void ImprimirDatos(){\n\t\tSystem.out.println(\"Número de elises: \"+NoElises);\n\t\tSystem.out.println(\"Número de alas: \"+NoAlas);\n\t\tSystem.out.println(\"Número de pasajeros: \"+NoPasajeros);\n\t}", "public Double getTotalOliDOdeEnvasadoresEntreDates(Long temporadaId, Date dataInici, Date dataFi, Integer idAutorizada) throws InfrastructureException {\r\n\t\tlogger.debug(\"getTotalOliDOdeEnvasadoresEntreDates ini\");\r\n//\t\tCollection listaTrasllat = getEntradaTrasladosEntreDiasoTemporadas(temporadaId, dataInici, dataFi);\r\n\t\tCollection listaTrasllat = null;\r\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\tdouble litros = 0;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tString q = \"from Trasllat tdi where tdi.retornatEstablimentOrigen = true \";\r\n\t\t\tif(dataInici != null){\r\n\t\t\t\tString fi = df.format(dataInici);\r\n\t\t\t\tq = q+ \" and tdi.data >= '\"+fi+\"' \";\r\n\t\t\t}\r\n\t\t\tif(dataFi != null){\r\n\t\t\t\tString ff = df.format(dataFi);\r\n\t\t\t\tq = q+ \" and tdi.data <= '\"+ff+\"' \";\r\n\t\t\t}\r\n\t\t\tlistaTrasllat = getHibernateTemplate().find(q);\t\r\n\t\t} catch (HibernateException ex) {\r\n\t\t\tlogger.error(\"getTotalOliDOdeEnvasadoresEntreDates failed\", ex);\r\n\t\t\tthrow new InfrastructureException(ex);\r\n\t\t}\r\n\t\t\r\n\t\t//Para cada uno de lor registro Trasllat separamos los depositos y devolvemos un objeto rasllatDipositCommand\r\n\t\tif (listaTrasllat != null){\r\n\t\t\tfor(Iterator it=listaTrasllat.iterator();it.hasNext();){\r\n\t\t\t\tTrasllat trasllat = (Trasllat)it.next();\r\n\t\t\t\tif(trasllat.getDiposits()!= null){\r\n\t\t\t\t\tfor(Iterator itDip=trasllat.getDiposits().iterator();itDip.hasNext();){\r\n\t\t\t\t\t\tDiposit diposit = (Diposit)itDip.next();\r\n\t\t\t\t\t\tif(idAutorizada!= null && diposit.getPartidaOli() != null && diposit.getPartidaOli().getCategoriaOli() !=null && diposit.getPartidaOli().getCategoriaOli()!= null){\r\n\t\t\t\t\t\t\tif(diposit.getPartidaOli().getCategoriaOli().getId().intValue() == idAutorizada.intValue() && diposit.getVolumActual()!= null){\r\n\t\t\t\t\t\t\t\tlitros+= diposit.getVolumActual().doubleValue();\r\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\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\tlogger.debug(\"getTotalOliDOdeEnvasadoresEntreDates fin\");\r\n\t\treturn Double.valueOf(String.valueOf(litros));\r\n\t}", "public void calcularQuinA(){\n sueldoQuinAd = sueldoMensual /2;\n\n }", "public static void aggiornaDatiGioco(String query, Utente utente) throws SQLException{\n\t\t\tConnection con = connectToDB();\n\t\t\tStatement cmd = con.createStatement();\n\t\t\t\n\t\t\tResultSet res = cmd.executeQuery(query);\n\t\t\t\n\t\t\twhile(res.next()){\n\t\t\t\tutente.setPuntiXP(res.getInt(\"puntixp\"));\n\t\t\t\t//System.out.println(res.getInt(\"puntixp\"));\n\t\t\t}\t\n\t\t\t\n\t\t\tcloseConnectionToDB(con);\n\t\t}", "public void nourrir() {\n if (!autoriseOperation()) {\n return;\n }\n\n incrFaim(-2);\n incrPoids(1);\n incrHumeur(1);\n incrXp(1);\n\n System.out.println(tamagoStats.getXp());\n setChanged();\n notifyObservers();\n\n }", "private void populaUnidadeMedida()\n {\n UnidadeMedida u = new UnidadeMedida(\"Gramas\", \"g\");\n unidadeMedidaDAO.insert(u);\n u = new UnidadeMedida(\"Quilo\", \"kg\");\n unidadeMedidaDAO.insert(u);\n u = new UnidadeMedida(\"Quilo\", \"kg\");\n unidadeMedidaDAO.insert(u);\n u = new UnidadeMedida(\"Unidade\", \"unidade\");\n unidadeMedidaDAO.insert(u);\n u = new UnidadeMedida(\"Colher de Sopa\", \"col. sopa\");\n unidadeMedidaDAO.insert(u);\n u = new UnidadeMedida(\"Colher de Sobremesa\", \"col. sobremesa\");\n unidadeMedidaDAO.insert(u);\n u = new UnidadeMedida(\"Colher de Chá\", \"col. chá\");\n unidadeMedidaDAO.insert(u);\n u = new UnidadeMedida(\"Copo\", \"copo\");\n unidadeMedidaDAO.insert(u);\n\n }", "public void Millas_M(){\r\n System.out.println(\"Cálcular Metros o Kilometros de Millas Marinas\");\r\n System.out.println(\"Ingrese un valor en Millas Marinas\");\r\n cadena =numero.next(); \r\n valor = metodo.Doble(cadena);\r\n valor = metodo.NegativoD(valor);\r\n totalM = valor * 1852 ;\r\n Millas_KM(totalM);\r\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 }", "void establecerPuntoAM(int pos){\n this.emisoraAMActual = pos;\n }", "@Override\n\tpublic ArregloDinamico<V> valueSet() {\n\t\tArregloDinamico<V> respuesta = new ArregloDinamico<V>(N);\n\t\tfor(int i = 0; i<M ; i++)\n\t\t{\n\t\t\tArregloDinamico<NodoTabla<K,V>> temporal = map.darElemento(i).getAll();\n\t\t\tfor(int j=0 ; j < temporal.size() ; j++)\n\t\t\t{\n\t\t\t\tNodoTabla<K,V> elemento = temporal.darElemento(j);\n\t\t\t\tif(elemento != null && elemento.darLlave() != null)\n\t\t\t\t\trespuesta.addLast(elemento.darValor());\t\n\t\t\t}\n\t\t}\n\t\treturn respuesta;\n\t}", "public void ordenarXPuntajeInsercion() {\r\n\t\tfor (int i = 1; i < datos.size(); i++) {\r\n\t\t\tfor (int j = i; j>0 && ( datos.get(j-1).getPuntaje() > datos.get(j).getPuntaje()); j--) {\r\n\t\t\t\tJugador temp = datos.get(j);\r\n\t\t\t\tdatos.set(j, datos.get(j-1));\r\n\t\t\t\tdatos.set(j-1, temp);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public FrecuenciaPorSemana(){\n super(new Hora(0,0));\n dias = new boolean[7];\n for (int i = 0;i<7;i++)\n dias[i] = true;\n }", "public void anterior() {\n canalAtual--;\n televisao.mudarCanal(canalAtual);\n }", "@Override\n\tpublic double getMassaInterna()\n\t{\n\t\treturn 0.0;\n\t}", "private void inicializarConexoesDaSegundaCamada() {\n conexoesSegundaCamada = new double[numeroNeuroniosPrimeiraCamada + 1];\n for (int i = 0; i < conexoesSegundaCamada.length; i++) {\n conexoesSegundaCamada[i] = Math.random();\n //conexoesSegundaCamada[i] = 1.0;\n }\n }", "private void Limpiar() {\n txtEnunciado.setText(\"\");\n txtOpcionNumerica.setText(\"\");\n txtOpcionNominal.setText(\"\");\n controladorAgrePreguntas.limpiarArray();\n x = 0;\n }", "public void calcularIndicePlasticidad(){\r\n\t\tindicePlasticidad = limiteLiquido - limitePlastico;\r\n\t}", "public void agregarAlinicio(int el){\n if(!estVacia()){\n inicio=new NodoDoble(el, inicio, null);\n inicio.siguiente.anterior=inicio;\n }else{\n inicio=fin=new NodoDoble(el);\n }\n }", "public void obterDados() {\r\n\r\n\t\tidade = Integer.parseInt(JOptionPane.showInputDialog(\"Informe a idade\"));\r\n\t\taltura = Double.parseDouble(JOptionPane.showInputDialog(\"Informe a altura\"));\r\n\t\tpeso = Double.parseDouble(JOptionPane.showInputDialog(\"Informe o peso\"));\r\n\t\t\r\n\t\tjogCadastrados ++;\r\n totalaltura += altura;\r\n\r\n\t}", "public AgendaMB() {\n GregorianCalendar dtMax = new GregorianCalendar(); \n Date dt = new Date();\n dtMax.setTime(dt); \n GregorianCalendar dtMin = new GregorianCalendar(); \n dtMin.setTime(dt);\n dtMin.add(Calendar.DAY_OF_MONTH, 1);\n dtMax.add(Calendar.DAY_OF_MONTH, 40);\n dataMax = dtMax.getTime();\n dataMin = dtMin.getTime(); \n }", "public Materia getMateriaTeorica() throws IOException,ParseException{\n Elements tabla0=doc.getElementsByClass(\"hdrtop\");\n Elements tablaDatosMateria0=tabla0.select(\"tr\");\n Elements tablaDatosMateria1=tablaDatosMateria0.select(\"td\");\n \n if(tablaDatosMateria1.get(0).text().split(\":\").length==2){\n nombreMateria=\n tablaDatosMateria1.get(0).text().split(\":\")[1].trim();\n }else if(tablaDatosMateria1.get(0).text().split(\":\").length==3){\n nombreMateria=\n tablaDatosMateria1.get(0).text().split(\":\")[2].trim();\n }\n \n int paraleloMateriaTeorico=Integer.parseInt(tablaDatosMateria1.get(1).text().split(\":\")[1].trim());\n Profesor profesorTeorico=new Profesor\n (tablaDatosMateria0.get(1).text().split(\":\")[1].trim());\n Materia materiaTeorico=new Materia(nombreMateria, paraleloMateriaTeorico, profesorTeorico);\n \n \n //En el documento existe mas de un elemento con el nombre de clase display\n //Por lo que se buscan todas con getElementsByClass\n //La primera hace referencia a toda la tabla con la informacion de los examenes\n Element tabla1=doc.getElementsByClass(\"display\").get(0);\n Elements tablaDatosExamenes=tabla1.select(\"td:nth-of-type(2)\");\n \n //String del cupo maximo de la materia\n String cupoMaximo=tablaDatosExamenes.get(0).text();\n //String del cupo disponible\n Elements tablaDatosCupoD=tabla1.select(\"td:nth-of-type(4)\");\n String cupoDisponible=tablaDatosCupoD.get(0).text();\n \n \n //Se crea el arreglo de examenes\n ArrayList<Examen> examenes=new ArrayList<>();\n int indicadorCategoria=0;\n for (Element e:tablaDatosExamenes.subList(1, 4)){\n ExamenCategoria cat=ExamenCategoria.values()[indicadorCategoria];\n indicadorCategoria++;\n String[] detallesEx1=e.text().split(\"-\");\n \n String fechaS=detallesEx1[0].trim();\n \n String horaIS=detallesEx1[1].split(\"a\")[0].trim();\n \n String horaFS=detallesEx1[1].split(\"a\")[1].trim();\n \n Date fecha=dateFormat.parse(fechaS+\"-\"+horaIS);\n Date horaI=dateFormatClases.parse(horaIS);\n Date horaF=dateFormatClases.parse(horaFS);\n //System.out.println(dateFormat.format(fecha));\n //System.out.println(dateFormat.format(horaF));\n \n Examen ex=new Examen(fecha,horaI,horaF,cat);\n examenes.add(ex);\n //System.out.println(ex);\n }\n \n \n //Se extrae la 2da tabla que tiene la informacion de las clases\n //Crea un arreglo con las clases de la tabla 2\n ArrayList<Clase> clases=new ArrayList<>();\n Element tabla2=doc.getElementsByClass(\"display\").get(1);\n Elements fila=tabla2.select(\"tr\");\n for(Element elemento:fila.subList(1, fila.size())){\n Elements subFila=elemento.select(\"td\");\n \n String dia=subFila.get(0).text();\n String horaI=subFila.get(1).text();\n String horaF=subFila.get(2).text();\n String aula=subFila.get(3).text();\n String aulaDetalle=subFila.get(4).text();\n Date horaIn=dateFormatClases.parse(horaI);\n Date horaFi=dateFormatClases.parse(horaF);\n Dias diaS=Dias.valueOf(dia.toUpperCase());\n //System.out.println(dateFormatClases.format(horaFi));\n Clase clase=new Clase(diaS,horaIn,horaFi,aula,aulaDetalle);\n //System.out.println(clase);\n clases.add(clase);\n }\n materiaTeorico.setExamenes(examenes);\n materiaTeorico.setClases(clases);\n \n return materiaTeorico;\n }", "private static void estadisticaClase() {\n int numeroAlumnos;\n int aprobados = 0, suspensos = 0; // definición e instanciación de varias a la vez\n int suficentes = 0, bienes = 0, notables = 0, sobresalientes = 0;\n float totalNotas = 0;\n float media;\n Scanner in = new Scanner(System.in);\n\n // Salismos del bucle sólo si nos introduce un número positivo\n do {\n System.out.println(\"Introduzca el número de alumnos/as: \");\n numeroAlumnos = in.nextInt();\n } while (numeroAlumnos <= 0);\n\n // Como sabemos el número de alumnos es un bucle definido\n for (int i = 1; i <= numeroAlumnos; i++) {\n float nota = 0;\n\n // nota solo existe dentro de este for, por eso la definimos aquí.\n do {\n System.out.println(\"Nota del alumno \" + i + \" [0-10]: \");\n nota = in.nextFloat();\n } while (nota < 0 || nota > 10);\n\n // Sumamos el total de notas\n totalNotas += nota;\n\n if (nota < 5) {\n suspensos++;\n } else if (nota >= 5 && nota < 6) {\n aprobados++;\n suficentes++;\n } else if (nota >= 6 && nota < 7) {\n aprobados++;\n bienes++;\n } else if (nota >= 7 && nota < 9) {\n aprobados++;\n notables++;\n } else if (nota >= 9) {\n aprobados++;\n sobresalientes++;\n }\n }\n // De esta manera redondeo a dos decimales. Tengo que hacer un casting porque de Double quiero float\n // Si no debería trabajar con double siempre.\n media = (float) (Math.round((totalNotas / numeroAlumnos) * 100.0) / 100.0);\n\n // Sacamos las estadísticas\n System.out.println(\"Número de alumnos/as: \" + numeroAlumnos);\n System.out.println(\"Número de aprobados/as: \" + aprobados);\n System.out.println(\"Número de suspensos: \" + suspensos);\n System.out.println(\"Nota media: \" + media);\n System.out.println(\"Nº Suficientes: \" + suficentes);\n System.out.println(\"Nº Bienes: \" + bienes);\n System.out.println(\"Nº Notables: \" + notables);\n System.out.println(\"Nº Sobresalientes: \" + sobresalientes);\n\n\n }", "private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}", "public void OrdenarIndividuos(int izq, int der) {\n Individuo pivote = (Individuo) individuos.get(izq); // tomamos primer elemento como pivote\r\n int i = izq; // i realiza la búsqueda de izquierda a derecha\r\n int j = der; // j realiza la búsqueda de derecha a izquierda\r\n Individuo ind;\r\n int aux;\r\n\r\n while (i < j) { // mientras no se crucen las búsquedas\r\n while (individuos.get(i).getEvaluacion() <= pivote.getEvaluacion() && i < j) {\r\n i++; // busca elemento mayor que pivote\r\n }\r\n while (individuos.get(j).getEvaluacion() > pivote.getEvaluacion()) {\r\n j--; // busca elemento menor que pivote\r\n }\r\n if (i < j) {\r\n ind = (Individuo) individuos.get(i); // si no se han cruzado \r\n //aux= A[i]; // los intercambia\r\n individuos.set(i, individuos.get(j));\r\n //A[i]=A[j];\r\n individuos.set(j, ind);\r\n //A[j]=aux;\r\n }\r\n }\r\n individuos.set(izq, individuos.get(j));\r\n //A[izq]=A[j]; // se coloca el pivote en su lugar de forma que tendremos\r\n individuos.set(j, pivote);\r\n //A[j]=pivote; // los menores a su izquierda y los mayores a su derecha\r\n if (izq < j - 1) {\r\n OrdenarIndividuos(izq, j - 1); // ordenamos subarray izquierdo\r\n }\r\n if (j + 1 < der) {\r\n OrdenarIndividuos(j + 1, der); // ordenamos subarray derecho\r\n } \r\n }", "public void ponerDinero(double platita){\r\n if (platita > 0)\r\n setMonto(getMonto() + platita);\r\n }", "public int eliminardelFinal(){\n int elemento = fin.dato;\n if(inicio == fin){\n inicio=fin=null;\n }else{\n fin = fin.ant;\n fin.sig = null;\n }\n return elemento;\n \n \n }", "public void notaFinal() {\n\n for (int i = 0; i <= (nombres.size() - 1); i++) {\n\n notaFinal.add((notas.get(0) + notas.get(1) + notas.get(2)) / 3);\n\n }\n\n }", "public Agnello prelevaMontone() {\n\t\tfor (int i=0; i<pecore.size(); i++)\n\t\t\tif ((pecore.get(i) instanceof PecoraAdulta)\n\t\t\t\t\t&& (((PecoraAdulta) pecore.get(i)).isMaschio())) {\n\t\t\t\tnumMontoni--;\n\t\t\t\treturn pecore.remove(i);\n\t\t\t}\n\t\treturn null;\n\t}", "public ArrayList<Elemento> getPosicionesAdyacentes(){\n ArrayList <Elemento> result = new ArrayList<>();\n int[] coordenada_i = {0,1,1,1,0,-1,-1,-1};\n int[] coordenada_j = {1,1,0,-1,-1,-1,0,1};\n int nueva_posicion_fila = 0;\n int nueva_posicion_columna = 0;\n for(int k=0; k<8; k++){\n nueva_posicion_fila = fila + coordenada_i[k];\n nueva_posicion_columna = columna + coordenada_j[k];\n \n if((0 <= nueva_posicion_fila) && (nueva_posicion_fila < automata.getAutomata().length) && \n (0<= nueva_posicion_columna) && (nueva_posicion_columna < automata.getAutomata()[0].length)){\n result.add(automata.getElemento(nueva_posicion_fila,nueva_posicion_columna));\n \n }\n \n }\n return result;\n }", "@Override\n\tpublic void frenar() {\n\t\tvelocidadActual = 0;\n\t}", "@Test\n\tvoid calcularSalarioSinVentasPagoPositivoTest() {\n\t\tEmpleadoPorComision empleadoPorComision = new EmpleadoPorComision(\"Hiromu Arakawa\", \"p24\", 400000, 0);\n\t\tdouble salarioEsperado = 400000;\n\t\tdouble salarioEmpleadoPorComision = empleadoPorComision.calcularSalario();\n\t\tassertEquals(salarioEsperado, salarioEmpleadoPorComision);\n\n\t}", "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 inativarMovimentacoes() {\n\n\t\ttry {\n\n\t\t\tif (((auxMovimentacao.getDataMovimentacao())\n\t\t\t\t\t.before(permitirCadastrarMovimentacao(movimentacao.getAlunoTurma()).getDataMovimentacao()))\n\t\t\t\t\t|| (auxMovimentacao.getDataMovimentacao()).equals(\n\t\t\t\t\t\t\tpermitirCadastrarMovimentacao(movimentacao.getAlunoTurma()).getDataMovimentacao())\n\t\t\t\t\t) {\n\t\t\t\tExibirMensagem.exibirMensagem(Mensagem.MOVIMENTACOES_ANTERIORES);\n\t\t\t} else {\n\n\t\t\t\tDate dataFinal = auxMovimentacao.getDataMovimentacao();\n\t\t\t\tCalendar calendarData = Calendar.getInstance();\n\t\t\t\tcalendarData.setTime(dataFinal);\n\t\t\t\tcalendarData.add(Calendar.DATE, -1);\n\t\t\t\tDate dataInicial = calendarData.getTime();\n\n\t\t\t\tMovimentacao mov = new Movimentacao();\n\t\t\t\tmov = (Movimentacao) movimentacaoAlunoDAO.listarTodos(Movimentacao.class,\n\t\t\t\t\t\t\" a.dataMovimentacao = (select max(b.dataMovimentacao) \"\n\t\t\t\t\t\t\t\t+ \" from Movimentacao b where b.alunoTurma = a.alunoTurma) \"\n\t\t\t\t\t\t\t\t+ \" and a.status is true and a.alunoTurma.status = true and dataMovimentacaoFim = null and a.alunoTurma = \"\n\t\t\t\t\t\t\t\t+ movimentacao.getAlunoTurma().getId())\n\t\t\t\t\t\t.get(0);\n\n\t\t\t\tmov.setControle(false);\n\t\t\t\tmov.setDataMovimentacaoFim(dataInicial);\n\t\t\t\tmovimentacaoService.inserirAlterar(mov);\n\n\t\t\t\tAlunoTurma aluno = new AlunoTurma();\n\t\t\t\taluno = daoAlunoTurma.buscarPorId(AlunoTurma.class, movimentacao.getAlunoTurma().getId());\n\t\t\t\taluno.setControle(0);\n\t\t\t\t\n\n\t\t\t\tauxMovimentacao.setAlunoTurma(movimentacao.getAlunoTurma());\n\t\t\t\tauxMovimentacao.setStatus(true);\n\t\t\t\tauxMovimentacao.setControle(false);\n\n\t\t\t\tmovimentacaoService.inserirAlterar(auxMovimentacao);\n\t\t\t\t\n\t\t\t\tif(auxMovimentacao.getSituacao()==5){\n//\t\t\t\t\t\n//\t\t\t\t\tCurso cursoAluno = new Curso();\n//\t\t\t\t\tcursoAluno = daoCurso.buscarPorId(Curso.class, auxMovimentacao.getAlunoTurma().getTurma().getCurso().getId());\n\t\t\t\t\t\n\t\t\t\t\taluno.setSituacao(5);\n\t\t\t\t\taluno.setLiberado(false);\n\t\t\t\t\talunoTurmaService.inserirAlterar(aluno);\n\t\t\t\t\t\n\t\t\t\t\t//liberar para responder o questionário\n\t\t\t\t\tAluno alunoResponde = new Aluno(); \n\t\t\t\t\talunoResponde = daoAluno.buscarPorId(Aluno.class, aluno.getAluno().getId());\n\t\t\t\t\t \n\t\t\t\t // email.setCursos(auxMovimentacao.getAlunoTurma().getTurma().getCurso());\n\t\t\t\t\t//email.setTurma(auxMovimentacao.getAlunoTurma().getTurma());\n\t\t\t\t\temail.setEnviado(false);\n\t\t\t\t\temail.setStatus(true);\n\t\t\t\t\temail.setAlunoTurma(auxMovimentacao.getAlunoTurma());\n\t\t\t\t\t\n\t\t\t\t\t//email.setAluno(alunoResponde);\n\t\t\t\t\temailService.inserirAlterar(email);\n\t\t\t\t\t//enviar o email para responder \n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\taluno.setSituacao(0);\n\t\t\t\t\talunoTurmaService.inserirAlterar(aluno);\n\t\t\t\t}\n\t\t\t\taluno = new AlunoTurma();\n\t\t\t\temail = new Email();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tFecharDialog.fecharDialogAlunoCursoEditar();\n\t\t\t\tFecharDialog.fecharDialogAlunoEditarCurso();\n\t\t\t\tFecharDialog.fecharDialogAlunoTrancamento();\n\t\t\t\talterar(movimentacao);\n\n\t\t\t\tExibirMensagem.exibirMensagem(Mensagem.SUCESSO);\n\t\t\t\tauxMovimentacao = new Movimentacao();\n\n\t\t\t\talunoTurmaService.update(\" AlunoTurma set permiteCadastroCertificado = 2 where id = \"\n\t\t\t\t\t\t+ movimentacao.getAlunoTurma().getId());\n\n\t\t\t\n\t\t\t\tcriarNovoObjetoAluno();\n\t\t\t\tatualizarListas();\n\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tExibirMensagem.exibirMensagem(Mensagem.ERRO);\n\t\t}\n\n\t}", "public void normalize(){\r\n /*//cambios 30 de agosto\r\n if (firstExtreme<0&&secondExtreme<0){\r\n firstExtreme=-firstExtreme;\r\n secondExtreme=-secondExtreme;\r\n }\r\n //fin cambios 30 de agosto*/\r\n if (firstExtreme>secondExtreme){\r\n double auxExtreme = firstExtreme;\r\n char auxLimit = feIncluded;\r\n firstExtreme = secondExtreme;\r\n secondExtreme = auxExtreme;\r\n feIncluded = seIncluded==']'?'[':'(';\r\n seIncluded = auxLimit=='['?']':')';\r\n }\r\n }", "public void agregarinicio(int el){\n if(!estavacia()){\n fin=new nododoble(el, inicio,null);\n inicio.siguiente.anterior=inicio;\n }else{\n inicio=fin=new nododoble(el);\n }}", "public void carregarRegistroDoPrimeiroAno() {\n\t\tlimpar();\n\t\t\n\t\tlistaAlunos = repository.encontrarComQueryNomeada(AlunosMilitaresOMDS.class, \"alunosMilitaresOMDS.listarPorOMEPeriodo\",\n\t\t\t\tnew Object[]{\"periodo\", periodo},\n\t\t\t\tnew Object[]{\"organizacao\", subordinado},\n\t\t\t\tnew Object[]{\"ano\", Ano.PRIMEIRO});\n\t\t\n\t\tif (listaAlunos.size() > 0) {\n\t\t\tlistaAlunos.forEach(efetivo ->{\n\t\t\t\tif (efetivo.getTipoAlunosMilitaresOMDS().equals(TipoAlunosMilitaresOMDS.OFICIAL))\n\t\t\t\t\tsetAlunosMilitarOficial(listaAlunos.get(0));\n\t\t\t\tif(efetivo.getTipoAlunosMilitaresOMDS().equals(TipoAlunosMilitaresOMDS.PRACA))\n\t\t\t\t\tsetAlunosMilitarPraca(listaAlunos.get(0));;\n\t\t\t});\n\t\t\thabilitaBotao=false;\n\t\t}\n\t\torganizarValores();\n\t}", "public static void main(String[] args) {\n\t\tLocalDate hoje = LocalDate.now();\n\t\tSystem.out.println(hoje);\n\t\t\n\t\t//Criando nova data\n\t\tLocalDate olimpiadas = LocalDate.of(2016, Month.JUNE, 5);\n\t\tSystem.out.println(olimpiadas);\n\t\t\n\t\t//Calculando diferenca de anos\n\t\tint anos = olimpiadas.getYear() - hoje.getYear();\n\t\tSystem.out.println(anos);\n\n\t\t//Demonstracao de imutabilidade\n\t\tolimpiadas.plusYears(4);\n\t\tSystem.out.println(olimpiadas);\n\t\t\n\t\tLocalDate proximasOlimpiadas = olimpiadas.plusYears(4);\n\t\tSystem.out.println(proximasOlimpiadas);\n\t\t\n\t\t//Periodo entre data de inicio e fim \n\t\tPeriod periodo = Period.between(hoje, olimpiadas);\n\t\tSystem.out.println(periodo);\n\n\t\t//Formata data \n\t\tDateTimeFormatter formataData = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n\t\tSystem.out.println(proximasOlimpiadas.format(formataData));\n\t\t\n\t\t//Craindo data e hora\n\t\tLocalDateTime agora = LocalDateTime.now();\n\t\tSystem.out.println(agora);\n\t\t\n\t\t//Formatando data e hora\n\t\t//Obs.: O formatado de data e hora nao pode ser usado para formata data.\n\t\tDateTimeFormatter formataDataComHoras = DateTimeFormatter.ofPattern(\"dd/MM/yyyy hh:mm\");\n\t\tSystem.out.println(agora.format(formataDataComHoras ));\n\t\t\n\t\tLocalTime intervalo = LocalTime.of(15, 30);\n\t\tSystem.out.println(intervalo);\n\t\t\n\t\t \n\t\t\n\t}", "private void fillCalimiteiten()\n\t{\n\n\t\t_Calimiteiten[0] = new Calimiteit(new Brand(false), 80, 108, new actBlussen(true));\n\t\t_Calimiteiten[1] = new Calimiteit(new Brand(false), 557, 284, new actBlussen(true));\n\t\t_Calimiteiten[2] = new Calimiteit(new Brand(false), 557, 284, new actBlussen(true));\n\t\t_Calimiteiten[3] = new Calimiteit(new Brand(false), 557, 284, new actBlussen(true));\n\t\t_Calimiteiten[4] = new Calimiteit(new Brand(false), 415, 86, new actBlussen(true));\n\t\t_Calimiteiten[5] = new Calimiteit(new Evacuatie(false), 201, 590, new actZorg(true));\n\t\t_Calimiteiten[6] = new Calimiteit(new Evacuatie(false), 47, 669, new actZorg(true));\n\t\t_Calimiteiten[7] = new Calimiteit(new Evacuatie(false), 128, 666, new actZorg(true));\n\t\t_Calimiteiten[8] = new Calimiteit(new Evacuatie(false), 145, 601, new actZorg(true));\n\t\t_Calimiteiten[9] = new Calimiteit(new Evacuatie(false), 507, 540, new actZorg(true));\n\t\t_Calimiteiten[10] = new Calimiteit(new Autoongeluk(false), 280, 140, new actEhbo(true));\n\t\t_Calimiteiten[11] = new Calimiteit(new Autoongeluk(false), 395, 375, new actEhbo(true));\n\t\t_Calimiteiten[12] = new Calimiteit(new Autoongeluk(false), 305, 615, new actEhbo(true));\n\t\t_Calimiteiten[13] = new Calimiteit(new Elek_Brand(false), 275, 185, new actElectraBrand(true));\n\t\t_Calimiteiten[14] = new Calimiteit(new Elek_Brand(false), 460, 390, new actElectraBrand(true));\n\t\t_Calimiteiten[15] = new Calimiteit(new Elek_Brand(false), 155, 530, new actElectraBrand(true));\n\t\t_Calimiteiten[16] = new Calimiteit(new Overstroming(false), 240, 465, new actWaterpomp(true));\n\t\t_Calimiteiten[17] = new Calimiteit(new Overstroming(false), 425, 575, new actWaterpomp(true));\n\t\t_Calimiteiten[18] = new Calimiteit(new Overstroming(false), 415, 415, new actWaterpomp(true));\n\t\t_Calimiteiten[19] = new Calimiteit(new Rellen(false), 300, 115, new actStuurME(true));\n\t\t_Calimiteiten[20] = new Calimiteit(new Rellen(false), 265, 420, new actStuurME(true));\n\t\t_Calimiteiten[21] = new Calimiteit(new Rellen(false), 420, 635, new actStuurME(true));\n\t\t_Calimiteiten[22] = new Calimiteit(new Overval(false), 300, 350, new actArrest(true));\n\t\t_Calimiteiten[23] = new Calimiteit(new Overval(false), 450, 230, new actArrest(true));\n\t\t_Calimiteiten[24] = new Calimiteit(new Overval(false), 210, 200, new actArrest(true));\n\n\t\t/*\n\t\t * Hier zorgt hij ervoor dat er in de Actor class ook de gemaakte\n\t\t * calimiteit mee geeft.\n\t\t */\n\t\tfor (Calimiteit calimiteit : _Calimiteiten) {\n\t\t\tString actorStr = calimiteit.getActor().toString();\n\t\t\tactorStr = actorStr.substring(0, actorStr.indexOf(\"@\"));\n\n\t\t\tif (actorStr.equals(\"Brand\")) {\n\t\t\t\tBrand actor = (Brand) calimiteit.getActor();\n\t\t\t\tactor.setCalimiteit(calimiteit);\n\t\t\t}\n\t\t\telse if (actorStr.equals(\"Evacuatie\")) {\n\t\t\t\tEvacuatie actor = (Evacuatie) calimiteit.getActor();\n\t\t\t\tactor.setCalimiteit(calimiteit);\n\t\t\t}\n\t\t\telse if (actorStr.equals(\"Autoongeluk\")) {\n\t\t\t\tAutoongeluk actor = (Autoongeluk) calimiteit.getActor();\n\t\t\t\tactor.setCalimiteit(calimiteit);\n\t\t\t}\n\t\t\telse if (actorStr.equals(\"Elek_Brand\")) {\n\t\t\t\tElek_Brand actor = (Elek_Brand) calimiteit.getActor();\n\t\t\t\tactor.setCalimiteit(calimiteit);\n\t\t\t}\n\t\t\telse if (actorStr.equals(\"Overstroming\")) {\n\t\t\t\tOverstroming actor = (Overstroming) calimiteit.getActor();\n\t\t\t\tactor.setCalimiteit(calimiteit);\n\t\t\t}\n\t\t\telse if (actorStr.equals(\"Rellen\")) {\n\t\t\t\tRellen actor = (Rellen) calimiteit.getActor();\n\t\t\t\tactor.setCalimiteit(calimiteit);\n\t\t\t}\n\t\t\telse if (actorStr.equals(\"Overval\")) {\n\t\t\t\tOverval actor = (Overval) calimiteit.getActor();\n\t\t\t\tactor.setCalimiteit(calimiteit);\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tdouble [] [] notasAlunos = new double[2][4];\r\n\t\t\r\n\t\tnotasAlunos [0][0]= 10;\r\n\t\tnotasAlunos [0][1]= 4;\r\n\t\tnotasAlunos [0][2]= 6.9;\r\n\t\tnotasAlunos [0][3]= 8;\r\n\t\t\r\n\r\n\t\tnotasAlunos [1][0]= 9.7;\r\n\t\tnotasAlunos [1][1]= 4;\r\n\t\tnotasAlunos [1][2]= 5;\r\n\t\tnotasAlunos [1][3]= 10;\r\n\r\n\t\tdouble soma = 0;\r\n\t\t\r\n\t\t\r\n\t\tfor (int i = 0; i < notasAlunos.length; i++) {\r\n\t\t\t//System.out.print(notasAlunos[i]+\" \");\r\n\t\t\t\r\n\t\t\tfor (int j = 0; j < notasAlunos[i].length; j++) {\r\n\t\t\t\tSystem.out.print(notasAlunos[i][j]+ \" - \");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\tSystem.out.println(\"Caluclando a media: \");\r\n\t\t\r\n\t\tfor (int i = 0; i < notasAlunos.length; i++) {\r\n\t\t\tsoma = 0;//inicializando a soma para a proxima iteração\r\n\t\t\tfor (int j = 0; j < notasAlunos[i].length; j++) {\r\n\t\t\t//\tSystem.out.print(notasAlunos[i][j]+ \" - \");\r\n\t\t\t\tsoma += notasAlunos[i][j];\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"A media do aluno \"+(i+1)+ \" é \"+ (soma/4));\r\n\t\t}\r\n\t\r\n\r\n\t}", "private Double[] obtenerMovimientos(List<Categoria> listaCategorias) {\n\t\tSeries<Double> serie = new Series<>();\n\t\tDouble[] serieData = new Double[listaCategorias.size()];\n\t\tif(idUsuario != null){\n\t\t\tfor (int i = 0; i < listaCategorias.size(); i++) {\n\t\t\t\tCategoria categoriaActual = listaCategorias.get(i);\n\t\t\t\tserieData[i] = Utils.obtenerGastos(this.movimientoService.obtenerMovimientosUsuarioByCategoria(idUsuario,new MovimientoMesFilter(String.valueOf(LocalDate.now().getMonthValue()), categoriaActual.getId())));\n\t\t\t}\n\t\t}\n\t\tserie.setData(serieData);\n\t\treturn serieData;\n\t}", "private void populaDuracaoTreinoCat()\n {\n DuracaoTreinoCat duracao = new DuracaoTreinoCat(\"Até 15 min\");\n duracaoTreinoCatDAO.insert(duracao);\n DuracaoTreinoCat duracao2 = new DuracaoTreinoCat(\"De 15 a 30 min\");\n duracaoTreinoCatDAO.insert(duracao2);\n DuracaoTreinoCat duracao3 = new DuracaoTreinoCat(\"De 30 a 45 min\");\n duracaoTreinoCatDAO.insert(duracao3);\n DuracaoTreinoCat duracao4 = new DuracaoTreinoCat(\"De 45 a 60 min\");\n duracaoTreinoCatDAO.insert(duracao4);\n DuracaoTreinoCat duracao5 = new DuracaoTreinoCat(\"De 60 a 75 min\");\n duracaoTreinoCatDAO.insert(duracao5);\n DuracaoTreinoCat duracao6 = new DuracaoTreinoCat(\"De 75 a 90 min\");\n duracaoTreinoCatDAO.insert(duracao6);\n DuracaoTreinoCat duracao7 = new DuracaoTreinoCat(\"De 90 a 120 min\");\n duracaoTreinoCatDAO.insert(duracao7);\n DuracaoTreinoCat duracao8 = new DuracaoTreinoCat(\"Mais de 120 min\");\n duracaoTreinoCatDAO.insert(duracao8);\n }", "public int esquinas(){\n int v=0;\n if (fila==0 && columna==0){\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna+1)!=null && automata.getElemento(fila+1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n }\n else if(fila==0 && columna==15){\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna-1)!=null && automata.getElemento(fila+1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n }\n else if(fila==15 && columna==0){\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna+1)!=null && automata.getElemento(fila-1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n }\n else if(fila==15 && columna==15){\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna-1)!=null && automata.getElemento(fila-1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n }\n return v;\n }", "public void imprimirResultados(){\n System.out.println(\"t (tiempo actual) \"+t);\n \n \n System.out.println(\"\\nGanancia total: $\"+R);\n System.out.println(\"Costos por mercaderia comprada: $\"+C);\n System.out.println(\"Costos por mantenimiento inventario: $\"+H);\n System.out.println(\"Ganancia promeio de la tienda por unidad de tiempo: $\"+(R-C-H)/T);\n \n }", "public double portataMassicaFumi( ){\r\n\t\treturn portatamassica;\r\n\t}", "public void agregarAlInicio( int elemento ) {\n\t\tif( !estaVacia() ) {\n\t\t\tinicio = new NodoDoble(elemento, inicio, null);\n\t\t\tinicio.siguiente.anterior = inicio;\n\t\t} else {\n\t\t\tinicio = fin = new NodoDoble(elemento);\n\t\t}\n\t}", "public static void atacar(){\n int aleatorio; //variables locales a utilizar\n Random numeroAleatorio = new Random(); //declarando variables tipo random para aleatoriedad\n int ataqueJugador;\n //acciones de la funcion atacar sobre vida del enemigo\n aleatorio = (numeroAleatorio.nextInt(20-10+1)+10);\n ataqueJugador= ((nivel+1)*10)+aleatorio;\n puntosDeVidaEnemigo= puntosDeVidaEnemigo-ataqueJugador;\n \n }", "public Materia getMateriaPractico()throws ParseException{\n Element tabla3=doc.getElementsByClass(\"display\").get(2);\n Elements elementostPractico=tabla3.select(\"td:nth-of-type(2)\");\n \n Profesor profesorPractico=new Profesor(elementostPractico.get(0).text());\n int paraleloPractico=Integer.parseInt(elementostPractico.get(1).text());\n String capacidadMaxima=elementostPractico.get(2).text();\n Materia materiaPractico=new Materia\n (nombreMateria,paraleloPractico,profesorPractico);//materia\n \n \n //Selecciona a la 4ta tabla con la informacion de las clases\n //del paralelo practico, se crea y se llena un arreglo con las clases\n Element tabla4=doc.getElementsByClass(\"display\").get(3);\n Elements clasesPractico=tabla4.select(\"tr\");\n ArrayList<Clase> clasePractico=new ArrayList<>();//arreglo de clases\n for(Element e:clasesPractico.subList(1, clasesPractico.size())){\n //System.out.println(e);\n Elements campos=e.select(\"td\");\n Dias dia=Dias.valueOf(campos.get(0).text().toUpperCase());\n Date horai=dateFormatClases.parse(campos.get(1).text());\n Date horaf=dateFormatClases.parse(campos.get(2).text());\n String aula=campos.get(3).text();\n String aulaDetalle=campos.get(4).text();\n Clase clase=new Clase(dia, horai, horaf,aula,aulaDetalle);\n //System.out.println(clase);\n clasePractico.add(clase);\n }\n \n //seteo el arreglo de clases del practico en la materiaPractico\n materiaPractico.setClases(clasePractico);\n return materiaPractico;\n }", "public void liquidarEmpleado(Fecha fechaLiquidacion) {\n //COMPLETE\n double prima=0; \n boolean antiguo=false;\n double aniosEnServicio=fechaLiquidacion.getAnio()-this.fechaIngreso.getAnio();\n if(aniosEnServicio>0&&\n fechaLiquidacion.getMes()>this.fechaIngreso.getMes())\n aniosEnServicio--; \n \n //System.out.println(\"A:\"+aniosEnServicio+\":\"+esEmpleadoLiquidable(fechaLiquidacion));\n if(esEmpleadoLiquidable(fechaLiquidacion)){\n this.descuentoSalud=salarioBase*0.04;\n this.descuentoPension=salarioBase*0.04;\n this.provisionCesantias=salarioBase/12;\n if(fechaLiquidacion.getMes()==12||fechaLiquidacion.getMes()==6)\n prima+=this.salarioBase*0.5; \n if(aniosEnServicio<6&&\n fechaLiquidacion.getMes()==this.fechaIngreso.getMes())prima+=((aniosEnServicio*5)/100)*this.salarioBase;\n if(aniosEnServicio>=6&&fechaLiquidacion.getMes()==this.fechaIngreso.getMes()) prima+=this.salarioBase*0.3;\n\n this.prima=prima;\n this.setIngresos(this.salarioBase+prima);\n \n this.setDescuentos(this.descuentoSalud+this.descuentoPension);\n this.setTotalAPagar(this.getIngresos()-this.getDescuentos());\n }\n\n }" ]
[ "0.64509773", "0.634593", "0.6069294", "0.60166633", "0.59811026", "0.59239876", "0.58811134", "0.58667266", "0.5806943", "0.5753437", "0.5697599", "0.56661683", "0.56563187", "0.5571505", "0.5541374", "0.5510678", "0.55091405", "0.55053717", "0.54686207", "0.5460655", "0.5460244", "0.5447275", "0.53446263", "0.53371614", "0.5336865", "0.5335698", "0.5326616", "0.53240174", "0.53029", "0.52861357", "0.5273436", "0.52693075", "0.52641606", "0.52604806", "0.5257266", "0.5256854", "0.52423406", "0.5238507", "0.52375036", "0.52316415", "0.52255744", "0.52254987", "0.5222241", "0.52141297", "0.520704", "0.5207001", "0.520434", "0.5199053", "0.5188851", "0.51875246", "0.51873857", "0.51829344", "0.51803565", "0.5176861", "0.5176232", "0.5175141", "0.5159151", "0.51437145", "0.51356596", "0.51355624", "0.512987", "0.512664", "0.51250833", "0.51178753", "0.51174855", "0.5108371", "0.5098803", "0.5096137", "0.5095438", "0.50896734", "0.5088705", "0.5085", "0.5082969", "0.5077897", "0.5077328", "0.5076369", "0.5074334", "0.50660753", "0.5065806", "0.5065483", "0.50533336", "0.5047609", "0.50433666", "0.50431913", "0.5039518", "0.50250524", "0.50200915", "0.5018237", "0.5018222", "0.5016287", "0.5016228", "0.50149065", "0.50143677", "0.5009712", "0.5006476", "0.5004018", "0.5001491", "0.4995417", "0.49917805", "0.49875376", "0.49794623" ]
0.0
-1
Metodo usado para imprimir las ramas que desprenden de un nodo(imprime todas sin validacion)
public Pila imprimirRamasHijas(Pila pila,ArbolGeneralDNS subdominioLimite){ modCons.imprimirRamasHijas(pila,subdominioLimite); return pila; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void imprimir() {\r\n NodoPila reco=raiz;\r\n System.out.println(\"Listado de todos los elementos de la pila:\");\r\n while (reco!=null) {\r\n System.out.print(reco.dato+\" \");\r\n reco=reco.sig;\r\n System.out.println();\r\n }\r\n System.out.println();\r\n }", "static void imprimirNodo( NodoBase raiz )\n{\n\tif(\traiz instanceof NodoRepeat\n\t\t||\traiz instanceof NodoLeer\n\t\t||\traiz instanceof NodoEscribir ){\n\t\tSystem.out.println(\"palabra reservada: \"+ raiz.getClass().getName());\n\t}\n\t\n\tif(\traiz instanceof NodoAsignacion )\n\t\tSystem.out.println(\":=\");\n\t\n\tif(\traiz instanceof NodoOperacion ){\n\t\ttipoOp sel=((NodoOperacion) raiz).getOperacion();\n\t\tif(sel==tipoOp.menor)\n\t\t\tSystem.out.println(\"<\"); \n\t\tif(sel==tipoOp.igual)\n\t\t\tSystem.out.println(\"=\");\n\t\tif(sel==tipoOp.mas)\n\t\t\tSystem.out.println(\"+\");\n\t\tif(sel==tipoOp.menos)\n\t\t\tSystem.out.println(\"-\");\n\t\tif(sel==tipoOp.por)\n\t\t\tSystem.out.println(\"*\");\n\t\tif(sel==tipoOp.entre)\n\t\t\tSystem.out.println(\"/\");\n if(sel==tipoOp.mayor)\n\t\t\tSystem.out.println(\">\");\n if(sel==tipoOp.mayorigual)\n\t\t\tSystem.out.println(\">=\");\n if(sel==tipoOp.menorigual)\n\t\t\tSystem.out.println(\"<=\");\n if(sel==tipoOp.diferente)\n\t\t\tSystem.out.println(\"!=\");\n if(sel==tipoOp.and)\n\t\t\tSystem.out.println(\"AND\");\n if(sel==tipoOp.or)\n\t\t\tSystem.out.println(\"OR\");\n \n\t}\n\n\tif(\traiz instanceof NodoValor ){\n if(((NodoValor)raiz).getVint() != null)\n System.out.println(\"NUM, val= \"+ ((NodoValor)raiz).getVint());\n if(((NodoValor)raiz).isVbol()!= null)\n System.out.println(\"BOL, val= \"+ ((NodoValor)raiz).isVbol());\n\t}\n\n\tif(\traiz instanceof NodoIdentificador ){\n\t\tSystem.out.println(\"ID, nombre= \"+ ((NodoIdentificador)raiz).getNombre());\n\t}\n\n}", "public void imprimir() {\n Nodo reco=raiz;\n System.out.println(\"Listado de todos los elementos de la pila.\");\n System.out.print(\"Raiz-\");\n while (reco!=null) {\n \tSystem.out.print(\"(\");\n System.out.print(reco.edad+\"-\");\n System.out.print(reco.nombre+\"\");\n System.out.print(\")-\");\n //System.out.print(reco.sig+\"-\");\n reco=reco.sig;\n }\n System.out.print(\"Cola\");\n System.out.println();\n }", "public void removerFinal() {\n switch (totalElementos()) {\n case 0:\n System.out.println(\"lista esta vazia\");\n break;\n case 1:\n this.primeiro = this.ultimo = null;\n this.total--;\n break;\n default:\n ElementoLista elementoTemporarioAnteriorAtual = this.primeiro;\n ElementoLista elementoTemporarioAtual = this.primeiro.irParaProximo();\n for (int i = 1; i < totalElementos(); i++) {\n elementoTemporarioAnteriorAtual = elementoTemporarioAtual;\n elementoTemporarioAtual = elementoTemporarioAtual.irParaProximo();\n }\n\n this.ultimo = elementoTemporarioAnteriorAtual;\n this.ultimo.definirProximo(null);\n this.total--;\n }\n //this.ultimo = this.ultimo.irParaAnterior();\n //this.ultimo.definirProximo(null);\n }", "public void imprimirLista() {\n NodoListaDoble<T> tmp = raiz;\n\n if (this.raiz == null) {\n System.out.println(\"Lista vacia\");\n } else {\n System.out.println(\"--------------------------\");\n while (tmp != null) {\n System.out.println(tmp.toString());\n tmp = tmp.getSiguiente();\n }\n System.out.println(\"--------------------------\");\n }\n }", "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 vaciar() {\n\t\tprimero = ultimo = null;\n\t\ttotal = 0;\n\t}", "public void removerInicio() {\n switch (totalElementos()) {\n case 0:\n System.out.println(\"lista esta vazia\");\n break;\n case 1:\n this.primeiro = this.ultimo = null;\n this.total--;\n break;\n default:\n this.primeiro = this.primeiro.irParaProximo();\n this.total--;\n break;\n }\n }", "public void arbolize() {\n //generando arbol desde nodos\n while (this.size > 1) {\n NodoCaracter smallest, smaller, ncAux;\n int aux;\n smallest = new NodoCaracter(inicio);\n smaller = new NodoCaracter(inicio.siguiente);\n aux = smallest.getFreq() + smaller.getFreq();\n this.eliminaInicio();\n this.eliminaInicio();\n ncAux = new NodoCaracter(aux, smallest, smaller);\n insertaOrdenado(ncAux);\n }\n \n //transferencia de nodo(s) a arbol\n System.out.println(\"Arbol generado\");\n System.out.println(inicio.getFreq() + \" es la frecuencia total sumada\");\n }", "private Nodo cambiar (Nodo aux) {\n\t\tNodo n = aux;\r\n\t\tNodo m = aux.getHijoIzq(); \r\n\t\twhile (m.getHijoDer() != null) {//el while sirve para recorrer el lado derecho para encotrar el dato mayor. \r\n\t\t\tn = m; // se guarda el nodo.\r\n\t\t\tm = m.getHijoDer();\r\n\t\t}\r\n\t\taux.setDato(m.getDato()); // se establece el dato del nodo mayor para que de ese nodo se hagan los cambios. \r\n\t\tif(n == aux) { // Si el nodo igual a aux entonces el dato y nodo que se van a eliminar por lo tanto se hacen los comabios. \r\n\t\t\tn.setHijoIzq(m.getHijoIzq());\r\n\t\t}else {\r\n\t\t\tn.setHijoDer(m.getHijoIzq());\r\n\t\t}\r\n\t\treturn n;\r\n\t}", "public void ToRam() {\n while (ram > 0) {\n if (HDDQ.isEmpty()) {\n break;\n }\n PCB k = HDDQ.remove();\n k.setBasedOnSize(false);\n RAMQ.add(k);\n ram -= k.getSize();\n }\n }", "public void reset()\n {\n cantidad = 0;\n suma = 0;\n maximo = 0; \n minimo = 0; \n \n }", "public static String asignarNombres() {\n Scanner escaner = new Scanner(System.in);\n String nombrePrevioArreglo;\n int contador;\n boolean nombreEncontrado = true;\n\n System.out.println(\"Bienvenido Jugador\");\n System.out.println(\"Escribe tu nombre: \\n\");\n nombrePrevioArreglo = escaner.nextLine();\n //Volvemos a construir el string que adoptara los valores del mismo pero en mayusculas\n nombrePrevioArreglo = new String((mayusculas(nombrePrevioArreglo.toCharArray())));\n\n //Empezamos desde una condicion de inicio 1 para agrandar los nombres y asignarle el nombre a la posicion 0 como al punteo\n if (nombres.length == 1) {\n nombres = new String[nombres.length + 1];\n punteos = new int[nombres.length + 1];\n nombres[0] = nombrePrevioArreglo;\n punteos[0] = 0;\n\n } else {\n //ciclo que trata de encontrar el nombre en el arreglo nombre\n for (contador = 0; contador < nombres.length; contador++) {\n if (nombrePrevioArreglo.equals(nombres[contador])) {\n nombreEncontrado = true;\n break;\n }\n nombreEncontrado = false;\n }\n /*Al no encontrar el nombre creamos dos arreglos mas (nombresAuxiliar y punteosAuxiliar) que serviran de almacenamiento tenporal mientras\n volvemos a crear el nuevo arreglo de los nombres les volvemos a colocar los datos que poseian mas el nombre nuevo\n */\n if (nombreEncontrado == false) {\n String[] nombresAuxiliar = new String[nombres.length];\n int[] punteosAuxiliar = new int[nombres.length];\n punteosAuxiliar = punteos;\n nombresAuxiliar = nombres;\n nombres = new String[nombres.length + 1];\n punteos = new int[nombres.length + 1];\n for (contador = 0; contador < nombresAuxiliar.length; contador++) {\n nombres[contador] = nombresAuxiliar[contador];\n punteos[contador] = punteosAuxiliar[contador];\n }\n punteos[nombres.length - 2] = 0;\n nombres[nombres.length - 2] = nombrePrevioArreglo;\n }\n }\n //Regresa el nombre ya registrado\n return nombrePrevioArreglo;\n\n }", "private void resetaPadraoEFundo() {\r\n\t\tdiferencaDeFundoATopo = new BigDecimal(0);\r\n\t\t\r\n\t\tif (!isNovoFundo) {\r\n\t\t\tvalorDoFundoAnterior = new BigDecimal(0);\r\n\t\t}\r\n\r\n\t\tvalorDoTopo = new BigDecimal(0);\r\n\t\tultimoFoiTopo = false;\r\n\t\t\r\n\t\tvalorDoFundo = valorCorrente;\r\n\t\tultimoFoiFundo = true;\r\n\t\t\r\n\t\tcorrecaoCorrente = new BigDecimal(0);\r\n\t\tformouPivoDeCompra = false;\r\n\t\tentrouNoRangeDeInicio = false;\r\n\t\testaNoRangeDeLimite = false;\r\n\t\tformadoSegundoTopo = false;\r\n\t\tformadoTopoRelevante = false;\r\n\t\tformouSegundoFundo = false;\r\n\t}", "public int EliminarNodo() {\r\n int auxiliar = UltimoValorIngresado.informacion;\r\n UltimoValorIngresado = UltimoValorIngresado.siguiente;\r\n tamaño--;\r\n return auxiliar;\r\n }", "private void eliminarAux(NodoAVL<T> actual){\n NodoAVL<T> papa= actual.getPapa();\n if(actual.getHijoIzq()==null && actual.getHijoDer()==null)\n eliminaSinHijos(actual,papa); \n else{//CASO2: Nodo con un solo hijo (izq)\n NodoAVL<T> sustituto;\n if(actual.getHijoIzq()!=null && actual.getHijoDer()==null){\n sustituto= actual.getHijoIzq();\n eliminaSoloConHijoIzq(actual,papa,sustituto); \n }\n else//CASO3: Nodo con un solo hijo (der)\n if(actual.getHijoIzq()==null && actual.getHijoDer()!=null){\n sustituto= actual.getHijoDer();\n eliminaSoloConHijoDer(actual,papa, sustituto);\n }\n else //CASO4: Nodo con dos hijos\n if(actual.getHijoIzq()!=null && actual.getHijoDer()!=null)\n eliminaConDosHijos(actual);\n }\n \n }", "public void UnDia()\n {\n int i = 0;\n for (i = 0; i < 6; i++) {\n for (int j = animales.get(i).size() - 1; j >= 0; j--) {\n\n if (!procesoComer(i, j)) {\n animales.get(i).get(j).destruir();\n animales.get(i).remove(j);\n } else {\n if (animales.get(i).size() > 0 && j < animales.get(i).size()) {\n\n if (animales.get(i).get(j).reproducirse()) {\n ProcesoReproducirse(i, j);\n }\n if (j < animales.get(i).size()) {\n if (animales.get(i).get(j).morir()) {\n animales.get(i).get(j).destruir();\n animales.get(i).remove(j);\n }\n }\n }\n }\n\n }\n }\n if (krill == 0) {\n Utilidades.MostrarExtincion(0, dia);\n }\n modificarKrill();\n modificarTemperatura();\n ejecutarDesastres();\n for (i = 1; i < animales.size(); i++) {\n if (animales.get(i).size() == 0 && !extintos.get(i)) {\n extintos.set(i, true);\n Utilidades.MostrarExtincion(i, dia);\n }\n }\n dia++;\n System.out.println(dia + \":\" + krill + \",\" + animales.get(1).size() + \",\" + animales.get(2).size() + \",\" + animales.get(3).size() + \",\" + animales.get(4).size() + \",\" + animales.get(5).size());\n }", "private int verificarRemocao(No no){\n if(no.getDireita()==null && no.getEsquerda()==null)\n return 1;\n if((no.getDireita()==null && no.getEsquerda()!=null) || (no.getDireita()!=null && no.getEsquerda()==null))\n return 2;\n if(no.getDireita() != null && no.getEsquerda() != null)\n return 3;\n else return -1;\n }", "public int eliminardelInicio(){\n int elemento = inicio.dato;\n if(inicio == fin){\n inicio=fin=null;\n }else{\n inicio = inicio.sig;\n inicio.ant = null;\n }\n return elemento;\n \n \n }", "private void eliminarDisparos(int num){\n\t\t\n\t\tnumDisparos--;\n\t\tfor(int i=num;i<numDisparos;i++)\n\t\t\tdisparos[i]=disparos[i+1];\n\t\t\tdisparos[numDisparos]=null;\n\t}", "public void ganarDineroPorAutomoviles() {\n for (Persona p : super.getMundo().getListaDoctores()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaAlbaniles()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaHerreros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n }", "public void ImprimirDatos(){\n\t\tSystem.out.println(\"Número de elises: \"+NoElises);\n\t\tSystem.out.println(\"Número de alas: \"+NoAlas);\n\t\tSystem.out.println(\"Número de pasajeros: \"+NoPasajeros);\n\t}", "public static void libertarPagina(PCB processo) {\n\n for (Pagina pagina : Paginas) {\n if (processo.getPid() == pagina.getPagina_pid()) {\n pagina.setAlocado(false);\n pagina.setPagina_pid(-1);\n pagina.setEspacoVazio(VirtualMemory.tamanho_pagina);\n\n }\n }\n processo.setMemoriaOcupada(0);\n }", "public static void imprimirCamino(int dimension, int nodoFuente, int nodoDestino){\n if (dimension < 1){\n System.out.println(\"Se ha llamado al programa con una dimension invalida\");\n System.out.println(\"Ejecute el programa con el parametro \\\"--help\\\" para obtener mas informacion acerca de como llamar correctamente al programa. \");\n }\n else{\n if (((0 > nodoFuente) || (nodoFuente >= (Math.pow(2,dimension)))) || ((0 > nodoDestino) || (nodoDestino >= (Math.pow(2,dimension))))){\n System.out.println(\"Se ha llamado al programa con valores de nodos fuente y/o destino incorrecto\");\n System.out.println(\"Ejecute el programa con el parametro \\\"--help\\\" para obtener mas informacion acerca de como llamar correctamente al programa. \");\n }\n else{\n // Los parametros ingresados son validos\n int nodoVecinoTemporario = nodoFuente;\n int dimensionActual = dimension;\n \n int xorEntreNodos = nodoFuente ^ nodoDestino; // xorEntreNodos mantiene el resultado de la operacion a nivel de bit XOR entre nodoFuente y nodoDestino\n \n System.out.printf(\"A continuacion se muestra el camino realizado por un paquete desde el nodo fuente %d al nodo destino %d\\n\", nodoFuente, nodoDestino);\n \n System.out.printf(\"[ %d \", nodoFuente);\n \n // Para determinar por cuales nodos viaja el mensaje para ir desde el nodo fuente al nodo destino trabajamos con la representacion binaria de los nodos.\n // Al realizar la operacion a nivel de bit XOR entre el nodo fuente y el nodo destino obtenemos un numero que en su representacion binaria indica los distintos movimientos que debemos hacer.\n // Asi, sea \"nm ... n3 n2 n1\" el valor de la operacion XOR con m el valor de la dimension del hypercubo, si nm (esto es el digito en la posicion m del resultado) es uno indica que en ese nivel el mensaje debe viajar al vecino en dicha dimension.\n // Si dicho digito es cero entonces en dicha dimension el mensaje no debe viajar a ningun vecino.\n \n // Asi lo que hacemos es iterar sobre las dimensiones, comenzando en la mayor.\n // Si en dicha dimension el resultado del XOR indica que se debe mover a un nodo vecino realizamos una operacion para que el nodo actual se convierta en el nodo vecino destino temporal.\n // Asi hasta llegar al nodo destino (si se llega al destino antes de recorrer todas las dimensiones) o hasta que se recorran todas las dimensiones.\n while (dimensionActual != 0){\n // Si el nodo aux es igual al nodo destino cortamos el bucle\n if (nodoVecinoTemporario == nodoDestino){\n break;\n }\n \n // Controlamos si en la dimension actual debemos viajar al nodo vecino.\n // Si el resultado del XOR entre los nodos en la dimension actual es uno entramos en el cuerpo de la condicion. (Esto lo controlamos con la siguiente sentencia: (xorEntreNodos & (int)(Math.pow(2, dimensionActual - 1))) != 0)\n if ((xorEntreNodos & (int)(Math.pow(2, dimensionActual - 1))) != 0){ \n // Significa que en esa dimension debo cambiar de nodo al otro nodo de la dimension. \n \n // La operacion de XOR a nivel de bits invierte los bits del primer operando en la posiciones donde el segundo operando tiene un uno.\n // Asi logramos que viaje al nodo vecino invirtiendo los bits.\n nodoVecinoTemporario = nodoVecinoTemporario ^ (int)(Math.pow(2, dimensionActual - 1)); \n \n System.out.printf(\"-> %d \", nodoVecinoTemporario);\n }\n dimensionActual--;\n \n }\n System.out.printf(\"]\");\n }\n }\n }", "private void restList() {\n for (Processus tmp : listOfProcess) {\n tmp.resetProcess();\n }\n }", "private Pares(){\n\t\t\tprimero=null;\n\t\t\tsegundo=null;\n\t\t\tdistancia=0;\n\t\t}", "public void verificarRastro() {\n verificarRastroFormulaProceso();\n index = -1;\n }", "public void disparar(){}", "@Override\n public void vaciar() {\n this.raiz = NodoBinario.nodoVacio();\n }", "public void fjernAlle() {\n listehode.neste = null;\n antall = 0;\n }", "public void suppressionRdV_all() {\n //on vide l'agenda de ses elements\n for (RdV elem_agenda : this.agd) {\n this.getAgenda().remove(elem_agenda);\n }\n //on reinitialise a null l'objet agenda\n //this.agd = null;\n }", "public void cleanProposition();", "public int eliminardelfinal(){\n int elemento=fin.dato;\n if(inicio==fin){\n inicio=fin=null;\n }else{\n fin=fin.anterior;\n fin.siguiente=null;}\n return elemento;\n }", "public void reinicio() {\n iNumBloques = 54; // se reinicia la cantidad de bloques\n iNivel = 1; // vuelve al nivel 1\n iScore = 0; // se reinicia el score\n iVidas = 3; // se reinicia la cantidad de vidas\n // La direccion del proyectil sera para arriba\n bDireccionY = false;\n // la direccion del proyectil sera al contrario de donde iba\n bDireccionX = !bDireccionX;\n // Se reposiciona el proyectil\n objProyectil.reposiciona((objBarra.getX() + objBarra.getAncho() / 2\n - (objProyectil.getAncho() / 2)), (objBarra.getY()\n - objProyectil.getAlto()));\n // Se reincia la velocidad del proyectil\n objProyectil.setVelocidad(5);\n // Se reposiciona la barra\n objBarra.reposiciona(((getWidth() / 2)\n - (objProyectil.getAncho() / 2)), (getHeight()\n - objBarra.getAlto()));\n // se limpia la lista de bloques\n lnkBloques.clear();\n // se vuelve a llenar y se acomoda\n try {\n acomodaBloques();\n } catch (IOException ioeError) {\n System.out.println(\"Hubo un error al cargar el juego: \"\n + ioeError.toString());\n }\n }", "void prune() {\n\n }", "private void Limpiar() {\n txtEnunciado.setText(\"\");\n txtOpcionNumerica.setText(\"\");\n txtOpcionNominal.setText(\"\");\n controladorAgrePreguntas.limpiarArray();\n x = 0;\n }", "public void eliminar(){\n inicio = null;\r\n // Reinicia el contador de tamaño de la lista a 0.\r\n tamanio = 0;\r\n }", "public void eliminarTermino() {\n System.out.println(\"......................\");\n System.out.println(\"Eliminar Termino Academico\");\n int i = 1;\n Entrada entrada = new Entrada();\n for (Termino t : Termino.terminos) {\n System.out.println(i + \". \" + t);\n i++;\n }\n if (i != 1) {\n int opc;\n do {\n opc = entrada.Entera(\"Ingrese opcion(1-\" + (i - 1) + \"): \");\n if (!(opc >= 1 && opc <= (i - 1))) {\n System.out.println(\"opcion no valida\");\n }\n } while (!(opc >= 1 && opc <= (i - 1)));\n Termino.terminos.remove(opc - 1);\n System.out.println(\"Termino Eliminado\");\n } else {\n System.out.println(\"No existen terminos\");\n }\n }", "public void imprimir() {\n\t\r\n\tSystem.out.println(\"El circulo tiene un perimetro de \"+ this.perimetro + \" y un area de \"+ this.area);\r\n\t\r\n\t}", "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 }", "public LinkedList<Nodo> eliminarNodoNotExec(Nodo nodoElim){\n LinkedList<Nodo> nodoNotExec=new LinkedList<>();\n \n for(Nodo n:nodoElim.getHermanos().values()){\n //if((n.getParent()==nodoElim.getParent())&&(n.getSimbolo().equals(nodoElim.getSimbolo()))){\n nodoNotExec.add(n);\n \n //}\n }\n if(!nodoNotExec.isEmpty()){\n for(Nodo n:nodoNotExec){\n panelPadre.getChildren().removeAll(n.getRectangle(),n.getLabel());\n //nodos.remove(n);\n } \n \n } \n return nodoNotExec;\n }", "public void limpiar()\n {\n nombre = null;\n descripcion = null;\n estado = null;\n primerNivel = true;\n }", "public void reiniciar() {\r\n\t\tauxiliar = primeira;//auxiliar recebe a primeira\r\n\t}", "public void Nodo(){\r\n this.valor = \"\";\r\n this.siguiente = null;\r\n }", "public void cargarNotas() {\n\n notas.add(null);\n notas.add(null);\n notas.add(null);\n\n int nota, cont = 0;\n for (int i = 0; i <= 2; i++) {\n\n System.out.println(\"Indique nota \" + (i + 1));\n nota = leer.nextInt();\n notas.set(cont, nota);\n cont++;\n\n }\n\n cont = 0;\n\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 Iterador() {\n pila = new Pila<Nodo>();\n if (raiz != null) {\n pila.push(raiz);\n Nodo<T> nodo = pila.peek();\n while(nodo != null){\n if (nodo.izquierdo != null) {\n pila.push(nodo.izquierdo);\n }\n nodo = nodo.izquierdo;\n }\n }\n\n }", "public void VaciarPila() {\r\n while (!PilaVacia()) {\r\n EliminarNodo();\r\n }\r\n }", "public void zmiana_rozmiaru_okna()\n {\n b.dostosowanie_rozmiaru(getWidth(),getHeight());\n w.dostosowanie_rozmiaru(getWidth(),getHeight());\n\n for (Pilka np : p) {\n np.dostosowanie_rozmiaru(getWidth(),getHeight());\n }\n for (Naboj np : n) {\n np.dostosowanie_rozmiaru(getWidth(),getHeight());\n }\n for (Bonus np : bon) {\n np.dostosowanie_rozmiaru(getWidth(),getHeight());\n }\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 }", "public static void otkazivanjeRezervacije(Osoba o) {\n\t\tArrayList<Rezervacija> rezervacijeIznaj = new ArrayList<Rezervacija>();\n\t\tint i = 0;\n\t\tif (o.getClass().equals(Iznajmljivac.class)) {\n\t\t\tfor (Rezervacija r : Main.getRezervacijeAll()) {\n\t\t\t\tif (r.getIznajmljivac().equals(o) && !r.isRezervacijaObrisana()) {\n\t\t\t\t\tSystem.out.println(\"Rezervacija-\" + i + \"--\" + r.getIznajmljivac() + \" \" + r.getVozilo()\n\t\t\t\t\t\t\t+ \"pocetak rezervacije|\" + r.getDatumKraja() + \"kraj rezervacije|\" + r.getDatumKraja());\n\t\t\t\t\trezervacijeIznaj.add(r);\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tfor(Rezervacija r : Main.getRezervacijeAll()) {\n\t\t\t\tif(!r.isRezervacijaObrisana()) {\n\t\t\t\t\tSystem.out.println(\"Rezervacija-\" + i + \"--\" + r.getIznajmljivac() + \" \" + r.getVozilo()\n\t\t\t\t\t+ \"pocetak rezervacije|\" + r.getDatumKraja() + \"kraj rezervacije|\" + r.getDatumKraja());\n\t\t\trezervacijeIznaj.add(r);\n\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Unesite redni broj rezervacije koju zelite da otkazete:\");\n\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\tif (redniBroj < rezervacijeIznaj.size()) {\n\t\t\tRezervacija temp = rezervacijeIznaj.get(redniBroj);\n\t\t\ttemp.setRezervacijaObrisana(true);\n\t\t\tSystem.out.println(\"Rezervacija je uspesno izbrisana!\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Ne postoji rezervacija sa tim brojem!\");\n\t\t}\n\t}", "public void generaNumeros() {\n\n\n int number =0;\n int numeroSeleccionado=gameMemoriaUno.getNumberaleatorio();\n //se agrega numero a las lista de numeros\n\n if(numeroSeleccionado == -1){\n llamaResultado(super.getActividad(), tFinal, tInicio, Num3_5_1Activity.class,gameMemoriaUno.getNumeros(),gameMemoriaUno.getAciertosTotales(),gameMemoriaUno.getFallosTotales(),gameMemoriaUno.getNumEcxluidosList(),gameMemoriaUno.getNumeroPregunta());\n\n }else {\n\n\n gameMemoriaUno.addNumerosSet(numeroSeleccionado);\n for (int i = 1; i < 6; i++) {\n //obtiene numeros del costalito menos el numero seleccionado\n number = gameMemoriaUno.getNumeroArreglo();\n //agrego numeros\n gameMemoriaUno.addNumerosSet(number);\n }\n\n Iterator<Integer> iter = gameMemoriaUno.getNumerosSet().iterator();\n\n int contadorNumeros=0;\n while (iter.hasNext()) {\n int valor=iter.next().intValue();\n lista.add(valor);\n if(gameMemoriaUno.getDificultad()==contadorNumeros){\n gameMemoriaUno.setNumerosElejidos(new int[valor]);\n }\n\n contadorNumeros+=1;\n }\n Collections.shuffle(lista, new Random());\n Collections.shuffle(lista, new Random());\n\n\n\n }\n\n\n }", "public boolean restarUno(){\n\t\tif (numero>0){\n\t\t\tnumero--;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public void disminuirCantidad(Libro libro){\n libro.setCantidadCopias(libro.getCantidadCopias()-1);\n manejadorArchivoLibro.crearArchivo(libro, LIBRO, libro.getCodigo(), \".lib\");\n }", "@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 clean()\r\n {\r\n this.idiomaDestinatario = null;\r\n this.idiomaDestinatarioValueList = null;\r\n this.idiomaDestinatarioLabelList = null;\r\n this.tipoRecurso = null;\r\n this.tipoRecursoValueList = null;\r\n this.tipoRecursoLabelList = null;\r\n this.titulo = null;\r\n this.tituloValueList = null;\r\n this.tituloLabelList = null;\r\n this.usuario = null;\r\n this.usuarioValueList = null;\r\n this.usuarioLabelList = null;\r\n this.arboles = null;\r\n this.arbolesValueList = null;\r\n this.arbolesLabelList = null;\r\n this.identificador = null;\r\n this.identificadorValueList = null;\r\n this.identificadorLabelList = null;\r\n this.edad = null;\r\n this.edadValueList = null;\r\n this.edadLabelList = null;\r\n this.descripcion = null;\r\n this.descripcionValueList = null;\r\n this.descripcionLabelList = null;\r\n this.idioma = null;\r\n this.idiomaValueList = null;\r\n this.idiomaLabelList = null;\r\n this.contexto = null;\r\n this.contextoValueList = null;\r\n this.contextoLabelList = null;\r\n this.procesoCognitivo = null;\r\n this.procesoCognitivoValueList = null;\r\n this.procesoCognitivoLabelList = null;\r\n }", "public static void DeterminarArregloDeMisiles() {\n\t\tVectorDeMisilesCrucerosPorNivel[3] = true;\n\t\tVectorDeMisilesCrucerosPorNivel[4] = true;\n\t\tVectorDeMisilesCrucerosPorNivel[7] = true;\n\t\tVectorDeMisilesCrucerosPorNivel[8] = true;\n\t\tVectorDeMisilesCrucerosPorNivel[11] = true;\n\t\tVectorDeMisilesCrucerosPorNivel[12] = true;\n\t\tVectorDeMisilesCrucerosPorNivel[15] = true;\n\t\tVectorDeMisilesCrucerosPorNivel[16] = true;\n\t}", "public void iniciarValores(){\r\n //Numero de campos da linha, do arquivo de saida filtrado\r\n this.NUM_CAMPOS = 106;\r\n this.ID = 0; //numero da ficha\r\n this.NUM_ARQUIVOS = 2070;\r\n\r\n this.MIN_INDICE = 1; //indice do cadastro inicial\r\n this.MAX_INDICE = 90; //indice do cadastro final\r\n this.NUM_INDICES = 90; //quantidade de cadastros lidos em cada arquivo\r\n }", "private void EliminarAristaNodo (NodoGrafo nodo ,int v){\n\t\tNodoArista aux = nodo.arista;\n\t\tif (aux != null) {\n\t\t\t// Si la arista a eliminar es la primera en\n\t\t\t// la lista de nodos adyacentes\n\t\t\tif (aux.nodoDestino.nodo == v){\n\t\t\t\tnodo.arista = aux.sigArista;\n\t\t\t}\n\t\t\telse {\n\t\t\t\twhile (aux.sigArista!= null && aux.sigArista.nodoDestino.nodo != v){\n\t\t\t\t\taux = aux.sigArista;\n\t\t\t\t}\n\t\t\t\tif (aux.sigArista!= null) {\n\t\t\t\t\t// Quita la referencia a la arista hacia v\n\t\t\t\t\taux.sigArista = aux.sigArista.sigArista;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public CensoCCVnoREMExcluidos() {\n this.nombre = \"\";\n this.apellidom = \"\";\n this.apellidop = \"\";\n this.rut = \"\";\n this.edad = 0;\n this.razon_exclusion = \"\";\n }", "public void limpiarMemoria();", "public void resetNodo()\r\n {\r\n this.nodo = null;\r\n }", "public void completarGrados() {\n\t\tint grado = 0;\n\t\tfor (int f = 0; f < cantNodos; f++) {\n\t\t\tgrado = 0;\n\t\t\tfor (int c = 0; c < cantNodos; c++) {\n\t\t\t\tif (getValor(f, c) == true)\n\t\t\t\t\tgrado++;\n\t\t\t}\n\t\t\tnodos.add(new Nodo(f + 1, 0, grado));\n\t\t}\n\t}", "public void resetearContadores() {\n\t\treproducciones = 0;\n\t\tsuper.resetearreproducidas();\n\t}", "public int[] reset() {\n\t\treturn memos;\n\t}", "public void reset() {\n tpsAttentePerso = 0;\n tpsAttentePerso2 =0;\n \ttotalTime = 0;\n\tnbVisited = 0;\n moyenne =0;\n }", "public void reiniciarEstadoSalud(){\n EmpleadosPrioridadAlta.clear();\n EmpleadosPrioridadMediaAlta.clear();\n EmpleadosPrioridadMedia.clear();\n EmpleadosPrioridadBaja.clear();\n }", "private void reset() {\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\treactantAmt[i] = 0;\n\t\t\tproductAmt[i] = 0;\n\t\t\treactantMM[i] = 0;\n\t\t\tproductMM[i] = 0;\n\t\t\treactantMoles[i] = 0;\n\t\t\tproductMoles[i] = 0;\n\t\t\tfinalMolReactant[i] = 0;\n\t\t\tfinalMolProduct[i] = 0;\n\t\t\tremove();\n\t\t}\n\t}", "public void atualizarResumo(){\n\t\tSet<AdapterProcedimento> paraRemover = new HashSet<AdapterProcedimento>();\n\t\tif(isAuditarProcedimentosCirurgicos() && !isAuditarProcedimentosGrauAnestesista()){\n\t\t\tfor (AdapterProcedimento adapter : procedimentos) {\n\t\t\t\tif(adapter.getHonorarios().isEmpty() && !adapter.getHonorariosAnestesistas().isEmpty()){\n\t\t\t\t\tparaRemover.add(adapter);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(!isAuditarProcedimentosCirurgicos() && isAuditarProcedimentosGrauAnestesista()){\n\t\t\tfor (AdapterProcedimento adapter : procedimentos) {\n\t\t\t\tif(!adapter.getHonorarios().isEmpty() && adapter.getHonorariosAnestesistas().isEmpty()){\n\t\t\t\t\tparaRemover.add(adapter);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tprocedimentos.removeAll(paraRemover);\n\t}", "public int eliminardelFinal(){\n int elemento = fin.dato;\n if(inicio == fin){\n inicio=fin=null;\n }else{\n fin = fin.ant;\n fin.sig = null;\n }\n return elemento;\n \n \n }", "static void orden(elefante[] array,int n,elefante[] nomod){\n if(n==array.length-1){\n \n }\n else{\n burbuja b=Mayor(nomod,n,array[n]);\n array[b.pocicion]=array[n];\n array[n]=b.getA();\n orden(array,++n);\n }\n }", "private void mueveObjetos()\n {\n // Mueve las naves Ufo\n for (Ufo ufo : ufos) {\n ufo.moverUfo();\n }\n \n // Cambia el movimiento de los Ufos\n if (cambiaUfos) {\n for (Ufo ufo : ufos) {\n ufo.cambiaMoverUfo();\n }\n cambiaUfos = false;\n }\n\n // Mueve los disparos y los elimina los disparos de la nave Guardian\n if (disparoGuardian.getVisible()) {\n disparoGuardian.moverArriba();\n if (disparoGuardian.getPosicionY() <= 0) {\n disparoGuardian.setVisible(false);\n }\n }\n\n // Dispara, mueve y elimina los disparos de las naves Ufo\n disparaUfo();\n if (disparoUfo.getVisible()) {\n disparoUfo.moverAbajo();\n if (disparoUfo.getPosicionY() >= altoVentana) {\n disparoUfo.setVisible(false);\n }\n }\n\n // Mueve la nave Guardian hacia la izquierda\n if (moverIzquierda) {\n guardian.moverIzquierda();\n }\n // Mueve la nave Guardian hacia la derecha\n if (moverDerecha) {\n guardian.moverDerecha();\n }\n // Hace que la nave Guardian dispare\n if (disparar) {\n disparaGuardian();\n }\n }", "public void reset() {\r\n\t\tready = false;\r\n\t\twitnessed_max_price = 0.0;\r\n\t\t\r\n\t\tfor (int i = 0; i<no_goods; i++)\r\n\t\t\tfor (int j = 0; j<no_bins; j++)\r\n\t\t\t\tmarg_prob[i][j] = 0.0;\r\n\t\t\r\n\t\tmarg_sum = 0;\r\n\t\t\r\n\t\tfor (HashMap<IntegerArray, double[]> p : this.prob)\r\n\t\t\tp.clear();\r\n\r\n\t\tfor (HashMap<IntegerArray, Integer> s : this.sum)\r\n\t\t\ts.clear();\r\n\t\t\r\n\t\tlog.clear();\r\n\t}", "public void clean()\r\n {\r\n this.esHoja = false;\r\n this.esHojaValueList = null;\r\n this.esHojaLabelList = null;\r\n this.rutaTesauro = null;\r\n this.rutaTesauroValueList = null;\r\n this.rutaTesauroLabelList = null;\r\n this.busquedaSimpleAvanzada = null;\r\n this.busquedaSimpleAvanzadaValueList = null;\r\n this.busquedaSimpleAvanzadaLabelList = null;\r\n this.pagina = null;\r\n this.paginaValueList = null;\r\n this.paginaLabelList = null;\r\n this.identificadorODE = null;\r\n this.identificadorODEValueList = null;\r\n this.identificadorODELabelList = null;\r\n this.idioma = null;\r\n this.idiomaValueList = null;\r\n this.idiomaLabelList = null;\r\n this.tipoBusquedaArbol = null;\r\n this.tipoBusquedaArbolValueList = null;\r\n this.tipoBusquedaArbolLabelList = null;\r\n this.nodo = null;\r\n this.nodoValueList = null;\r\n this.nodoLabelList = null;\r\n this.idiomaBusqueda = null;\r\n this.idiomaBusquedaValueList = null;\r\n this.idiomaBusquedaLabelList = null;\r\n this.idiomaBuscador = null;\r\n this.idiomaBuscadorValueList = null;\r\n this.idiomaBuscadorLabelList = null;\r\n this.tesauroBusqueda = null;\r\n this.tesauroBusquedaValueList = null;\r\n this.tesauroBusquedaLabelList = null;\r\n }", "private int cantFantasmasRestantes() {\n // TODO implement here\n return 0;\n }", "@Override\n public void nullstill() {\n Node<T> curr= hode;\n while (curr!=null){\n Node<T> p= curr.neste;\n curr.forrige=curr.neste= null;\n curr.verdi= null;\n curr= p;\n }\n hode= hale= null;\n endringer++;\n antall=0;\n }", "public void vaciar()\n {\n this.raiz = null;\n }", "public void limpiarPuntos() {\n \tpuntos.clear();\n }", "private void imprimir() {\n\t\ttry {\n\t\t\tPrintWriter pr = new PrintWriter(super.salida);\n\t\t\tfor (Nodo nodo : this.solucion) {\n\t\t\t\tpr.println(nodo.getPosicionX() + \" \" + nodo.getPosicionY());\n\t\t\t}\n\t\t\tpr.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void inicialAleatorio() {\n //aqui adiciona naquele vetor que de auxilio\n alocacao.add(Estados.ELETRICISTAS);\n alocacao.add(Estados.ELETRICISTAS2);\n alocacao.add(Estados.QUALIDADE);\n alocacao.add(Estados.QUALIDADE2);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL2);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL3);\n alocacao.add(Estados.PLANEJAMENTO);\n\n //biblioteca que sorteia aleatoriamente os departamentos\n Collections.shuffle(alocacao);\n\n for (int i = 0; i < 4; i++) {\n matrix[1][i] = alocacao.get(i);\n\n }\n\n for (int i = 0; i < 4; i++) {\n matrix[3][i] = alocacao.get(i + 4);\n }\n\n }", "public void vaciarSuperficie() {\r\n\t\t\r\n\t\t// Recorremos las posiciones del array donde se encuentran las posiciones de las celulas.\r\n\t\tfor(int i = 0; i < numeroDeCelulasEnSuperficie; i++) {\r\n\t\t\t\r\n\t\t\t//eliminarCelulaSuperficie(filasDeCelulas[i], columnasDeCelulas[i]);\r\n\t\t\tsuperficie[filasDeCelulas[i]][columnasDeCelulas[i]] = null;\r\n\t\r\n\t\t\t// Eliminamos las posiciones de esa celula de los arrays de las posiciones de las celulas.\r\n\t\t\tfilasDeCelulas[i] = 0;\r\n\t\t\tcolumnasDeCelulas[i] = 0;\r\n\t\t}\r\n\t\t\r\n\t\t// Deja de haber celulas en la superficie.\r\n\t\tnumeroDeCelulasEnSuperficie = 0;\r\n\t}", "void vaildate() {\n final int n = snapshotRootIndex >= 0? snapshotRootIndex + 1: numNonNull; \r\n int i = 0;\r\n if (inodes[i] != null) {\r\n for(i++; i < n && inodes[i] != null; i++) {\r\n final INodeDirectory parent_i = inodes[i].getParent();\r\n final INodeDirectory parent_i_1 = inodes[i-1].getParent();\r\n if (parent_i != inodes[i-1] &&\r\n (parent_i_1 == null || !parent_i_1.isSnapshottable()\r\n || parent_i != parent_i_1)) {\r\n throw new AssertionError(\r\n \"inodes[\" + i + \"].getParent() != inodes[\" + (i-1)\r\n + \"]\\n inodes[\" + i + \"]=\" + inodes[i].toDetailString()\r\n + \"\\n inodes[\" + (i-1) + \"]=\" + inodes[i-1].toDetailString()\r\n + \"\\n this=\" + toString(false));\r\n }\r\n }\r\n }\r\n if (i != n) {\r\n throw new AssertionError(\"i = \" + i + \" != \" + n\r\n + \", this=\" + toString(false));\r\n }\r\n }", "private void resetProp(){\n proposition.clear();\n for (int i = 0; i<tailleCombinaison; i++) {\n proposition.add(\"-1\");\n }\n }", "@Override\n\tpublic void eliminar() {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tAtributo atributo1 = new Atributo(-1, false);\n\t\tAtributo atributo2 = new Atributo(15, true);\n\t\tAtributo atributo3 = new Atributo(99, true);\n\t\tAtributo atributo4 = new Atributo(-1, false);\n\t\t\n\t\tNo no1 = new No\t(atributo1);\n\t\tNo no2 = new No\t(atributo2);\n\t\tNo no3 = new No\t(atributo3);\n\t\tNo no4 = new No\t(atributo4);\n\t\t\n\n\t\t\n\t\tLista lista = new Lista();\n\t\t\n\t\tSystem.out.print(\"adicionando: \");\n\t\tlista.addInicio(no1);\n\t\tlista.imprimir();\n\t\tSystem.out.println(\" \");\n\n\t\tSystem.out.print(\"adicionando: \");\n\t\tlista.addFim(no2);\n\t\tlista.imprimir();\n\t\tSystem.out.println(\" \");\n\n\t\t\n\t\tSystem.out.print(\"adicionando: \");\n\t\tlista.add(1, no3);\n\t\tlista.imprimir();\n\t\tSystem.out.println(\" \");\n\t\t\n\t\tSystem.out.print(\"adicionando: \");\n\t\tlista.add(0, no4);\n\t\tlista.imprimir();\n\t\tSystem.out.println(\" \");\n\t\t\n\t\tSystem.out.print(\"procurando: \");\n\t\tlista.buscar(-1).imprimir();\n\t\tSystem.out.println(\" \");\n\t\t\n\t\tSystem.out.print(\"removendo negativos: \");\n\t\tlista.removerNegativos();\n\t\tlista.imprimir();\n\t}", "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 reset() {\n while (getNumTotal() > 0) {\n this.removeNuclei();\n }\n lastModified = Calendar.getInstance().getTimeInMillis(); // record time\n }", "void desalocar(Processo processo) {\n for (int r = 0; r < size(); r++) {\n if (get(r).idProcesso == processo.getId()) {\n //TODO Marcar o bloco como livre\n get(r).espaçoUsado = 0;\n get(r).idProcesso = -1;\n }\n }\n }", "@Override\n\tpublic void eliminar() {\n\n\t}", "boolean insertar(Nodo_B nuevo){\n if(this.primero == null){\n this.primero = nuevo;\n this.ultimo = nuevo;\n size ++;\n return true;\n }else{\n if(this.primero == this.ultimo){ // -------------------------solo hay un nodo \n if(nuevo.valor < this.primero.valor){\n nuevo.siguiente = this.primero;\n this.primero.anterior = nuevo;\n this.primero.izq = nuevo.der; // -----cambia los punteros a las paginas\n this.primero = nuevo;\n size++; \n return true;\n }else if(nuevo.valor > this.ultimo.valor){\n this.ultimo.siguiente = nuevo;\n nuevo.anterior = this.ultimo;\n this.ultimo.der = nuevo.izq; //------ cambia los punteros a las paginas \n this.ultimo = nuevo;\n size++; \n return true;\n }else{\n System.out.println (\"ya hay un destino con ese codigo registrado\");\n return false;\n }\n }else{ // ---------------------------------------------------hay mas de un nodo\n if(nuevo.valor < this.primero.valor){\n nuevo.siguiente = this.primero;\n this.primero.anterior = nuevo;\n this.primero.izq = nuevo.der; // -----cambia los punteros a las paginas\n this.primero = nuevo;\n size++; \n return true;\n }else if(nuevo.valor > this.ultimo.valor){\n this.ultimo.siguiente = nuevo;\n nuevo.anterior = this.ultimo;\n this.ultimo.der = nuevo.izq; //------ cambia los punteros a las paginas \n this.ultimo = nuevo;\n size++; \n return true;\n }else{\n Nodo_B pivote = this.primero;\n while(pivote != null){\n if(nuevo.valor < pivote.valor){\n nuevo.siguiente = pivote;\n nuevo.anterior = pivote.anterior;\n //--------------------------- cambia los punteros a las paginas\n pivote.izq = nuevo.der;\n pivote.anterior.der = nuevo.izq;\n //-----------------------------------------------------------\n pivote.anterior.siguiente = nuevo;\n pivote.anterior = nuevo;\n size++;\n return true;\n }else if(nuevo.valor == pivote.valor){\n System.out.println (\"ya hay un destino con ese codigo registrado\");\n return false;\n }else{\n pivote = pivote.siguiente;\n }\n }\n }\n }\n }\n return false;\n }", "void fillMem (){\n for (int i = memoria.minTextSection; i < memoria.maxStack; i++) {\n memoria.memory[i]= 0;\n }\n }", "private Nodo eliminarNodo(Nodo aux, int dato) {\n\t\tif(aux == null) { \r\n\t\t\tSystem.out.println(\"El nodo no se encontro\");\r\n\t\t}else if(dato < aux.getDato()) { // Se busca el dato por el lado izquierdo.\r\n\t\t\tNodo izq = eliminarNodo(aux.getHijoIzq(), dato);\r\n\t\t\taux.setHijoIzq(izq);\r\n\t\t}else if (dato > aux.getDato()) { // Se busca el dato por el lado derecho.\r\n\t\t\tNodo der = eliminarNodo(aux.getHijoDer(), dato);\r\n\t\t\taux.setHijoIzq(der);\r\n\t\t}else { // Un vez encontrado se ejecuta el else.\r\n\t\t\tNodo n = aux; \r\n\t\t\tif(n.getHijoDer() == null) {// si el nodo del lado derecho es igual null se captura el nodo izquierdo.\r\n\t\t\t\taux = n.getHijoIzq(); \r\n\t\t\t}else if (n.getHijoIzq() == null) {// si el nodo del lado izquierdo es igual null se captura el nodo izquierdo.\r\n\t\t\t\taux = n.getHijoDer();\r\n\t\t\t}else { // Si el nodo a eliminar tiene dos hijos entonces hacemos cambiamos los lugaresa para despues eliminarlo. \r\n\t\t\t\tn = cambiar(n);\r\n\t\t\t}\r\n\t\t\tn = null; // ELiminamos el nodo.\r\n\t\t}\r\n\t\treturn aux;\r\n\t}", "public Nodo() {\n this.valor = 0;\n this.proximo=null;\n\n }", "private List<Node<T>> completaCamino(Node<T> ret, List<Node<T>> camino) {\r\n\t\tboolean comp = true;// Comprobacion\r\n\t\tcamino.add(ret);// Aņadimos el nodo al camino\r\n\t\twhile (comp) {\r\n\t\t\tif (ret.getParent() != null) {// Mientras no sea la raiz\r\n\t\t\t\tcamino.add(ret.getParent(), 1);// Aņade al inicio de la lista\r\n\t\t\t\tret = ret.getParent();// Hace que el padre sea el nuevo nodo\r\n\t\t\t} else if (ret.getParent() == null) {// Si es la raiz\r\n\t\t\t\tcomp = false;// Cancela\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn camino;\r\n\t}", "public void imprimirNivelMedio(){\n\t\tmodCons.imprimirNivelMedio();\n\t}", "public void not() {\n\t\tfinal EWAHIterator i =\n\t\t\t\tnew EWAHIterator(this.buffer, this.actualsizeinwords);\n\t\tif (!i.hasNext())\n\t\t\treturn;\n\t\twhile (true) {\n\t\t\tfinal RunningLengthWord rlw1 = i.next();\n\t\t\tif (rlw1.getRunningLength() > 0)\n\t\t\t\trlw1.setRunningBit(!rlw1.getRunningBit());\n\t\t\tfor (int j = 0; j < rlw1.getNumberOfLiteralWords(); ++j) {\n\t\t\t\ti.buffer()[i.dirtyWords() + j] =\n\t\t\t\t\t\t~i.buffer()[i.dirtyWords() + j];\n\t\t\t}\n\t\t\tif (!i.hasNext()) {// must potentially adjust the last dirty word\n\t\t\t\tif (rlw1.getNumberOfLiteralWords() == 0)\n\t\t\t\t\treturn;\n\t\t\t\tint usedbitsinlast = this.sizeinbits % wordinbits;\n\t\t\t\tif (usedbitsinlast == 0)\n\t\t\t\t\treturn;\n\t\t\t\ti.buffer()[i.dirtyWords() + rlw1.getNumberOfLiteralWords() - 1] &=\n\t\t\t\t\t\t((oneMask) >>> (wordinbits - usedbitsinlast));\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "public ArvoreRB(Node nil){\r\n\tthis.raiz = nil;\r\n\tthis.pr = nil;\r\n\tthis.aux = nil;\r\n\tthis.tamanho = 0;\r\n\tthis.print = \" \";\r\n this.nil=nil;\r\n}", "public void diminueVies() {\n\n nbVies_restantes.set(nbVies_restantes.get()-1);\n\n }", "public void prepararDados() {\n\t\tatribuiPrimeiroAnoCasoAnoEstejaNulo();\n\t\t\n\t\tsalvarOuAtualizar(alunosMilitarPraca);\n\t\tsalvarOuAtualizar(alunosMilitarOficial);\n\t\t\n\t\tinit();\n\t\thabilitaBotao=false;\n\t}", "public void pruneRules_cbaLike() {\n LOGGER.info(\"STARTED Postpruning\");\n //HashMap<ExtendRule,Integer> ruleErrors = new HashMap();\n //HashMap<ExtendRule,AttributeValue> ruleDefClass = new HashMap();\n ArrayList<ExtendRule> rulesToRemove = new ArrayList(); \n int totalErrorsWithoutDefault = 0; \n AttributeValue defClassForLowestTotalErrorsRule = getDefaultRuleClass();\n int lowestTotalErrors = getDefaultRuleError(defClassForLowestTotalErrorsRule);;\n ExtendRule lowestTotalErrorsRule = null;\n // DETERMINE TOTAL ERROR AND DEFAULT CLASS ASSOCIATED WITH EACH RULE \n // REMOVE RULES MATCHING ZERO TRANSACTIONS AND OF ZERO LENGTH\n for (Iterator<ExtendRule> it = extendedRules.iterator(); it.hasNext();) {\n\n ExtendRule rule = it.next();\n rule.updateQuality();\n rule.setQualityInRuleList(rule.getRuleQuality());\n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.log(Level.FINE, \"Processing rule {0}\", rule.toString());\n }\n\n if (rule.getAntecedentLength() == 0) {\n LOGGER.fine(\"Rule of length 0, MARKED FOR REMOVAL\");\n rulesToRemove.add(rule); //covered transactions should not be removed\n } \n else if (rule.getRuleQuality().getA() == 0)\n {\n LOGGER.fine(\"Rule classifying 0 instances correctly, MARKED FOR REMOVAL\");\n rulesToRemove.add(rule); //covered transactions should not be removed \n }\n else\n {\n rule.removeTransactionsCoveredByAntecedent(true); \n totalErrorsWithoutDefault = totalErrorsWithoutDefault + rule.getRuleQuality().getB();\n // since transactions matching the current rule have been removed, the default class and error can change\n AttributeValue newDefClass = getDefaultRuleClass();\n int newDefError = getDefaultRuleError(newDefClass);\n int totalErrorWithDefault = newDefError + totalErrorsWithoutDefault;\n if (totalErrorWithDefault < lowestTotalErrors)\n {\n lowestTotalErrors = totalErrorWithDefault;\n lowestTotalErrorsRule = rule;\n defClassForLowestTotalErrorsRule= newDefClass;\n } \n //ruleErrors.put(rule,totalErrorWithDefault );\n //ruleDefClass.put(rule, newDefClass); \n }\n \n }\n boolean removeTail;\n // now we know the errors associated with each rule not marked for removal, we can perform pruning\n if (lowestTotalErrorsRule == null)\n {\n // no rule improves error over a classifier composed of only default rule\n // remove all rules\n removeTail = true;\n }\n else \n {\n removeTail = false;\n }\n \n data.getDataTable().unhideAllTransactions();\n for (Iterator<ExtendRule> it = extendedRules.iterator(); it.hasNext();) {\n ExtendRule rule = it.next();\n if (rulesToRemove.contains(rule) || removeTail)\n {\n it.remove();\n continue;\n }\n if (rule.equals(lowestTotalErrorsRule))\n {\n removeTail = true;\n }\n rule.updateQuality(); \n }\n \n \n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.fine(\"Creating new default rule within narrow rule procedure\");\n }\n \n \n extendedRules.add(createNewDefaultRule(defClassForLowestTotalErrorsRule));\n \n \n LOGGER.info(\"FINISHED Postpruning\");\n }" ]
[ "0.64033836", "0.62973243", "0.6120525", "0.5941161", "0.5890111", "0.5846042", "0.5749497", "0.5721482", "0.564928", "0.5604201", "0.5570258", "0.551777", "0.5517054", "0.5479531", "0.5454692", "0.54314005", "0.5428021", "0.5409148", "0.53697836", "0.5363394", "0.53427565", "0.5330517", "0.5324806", "0.53128374", "0.53075063", "0.5306854", "0.5304192", "0.5296363", "0.52874076", "0.5284764", "0.52765983", "0.52724", "0.52634925", "0.52569526", "0.52462184", "0.52401096", "0.5238302", "0.5231679", "0.5228801", "0.5226169", "0.52250904", "0.5222995", "0.5203659", "0.51902264", "0.5189476", "0.5188546", "0.518587", "0.5185816", "0.518388", "0.5182221", "0.51812416", "0.5181197", "0.5179408", "0.51763844", "0.5173848", "0.51732284", "0.5169602", "0.5159652", "0.5151484", "0.5147338", "0.51459265", "0.5137918", "0.51348597", "0.51342374", "0.5129889", "0.5127651", "0.5124194", "0.5121533", "0.5116605", "0.5112708", "0.50989074", "0.509779", "0.50817966", "0.507192", "0.5070552", "0.506574", "0.5064349", "0.50632834", "0.50567096", "0.5055896", "0.5050425", "0.5050277", "0.50454205", "0.5037418", "0.5035684", "0.50340295", "0.5033372", "0.5033328", "0.50306857", "0.50265706", "0.5023798", "0.5023321", "0.50161105", "0.50127035", "0.50049245", "0.5000248", "0.49990425", "0.49988094", "0.49975455", "0.49967304" ]
0.5040271
83
novi niz duzine 100
public static void main(String[] args) { int[] niz = new int[100]; // dodjeljuje random vrijednosti od 0 do 9 u niz for (int i = 0; i < niz.length; i++) { niz[i] = (int) (Math.random() * 10); } // niz za brojanje brojeva koji se ponavljaju int[] brojac = new int[10]; for (int e : niz) { brojac[e]++; } // ispisuje koliko se puta ponovio broj for (int j = 0; j < brojac.length; j++) { if (brojac[j] != 0) { System.out.println("Broj " + j + " ponovio se " + brojac[j] + " puta."); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void cetak_data(String nama, int usia) {\n int tahun_sekarang = 2020, tahun_lahir = tahun_sekarang - usia;\r\n System.out.println(\"---------\\nNama Saya : \" + nama + \"\\nUsia Saya : \" + usia + \"\\nTahun Lahir : \" + tahun_lahir);\r\n }", "private void sonucYazdir() {\n\t\talinanPuan = (int)(((float)alinanPuan / (float)toplamPuan) * 100);\n\t\tSystem.out.println(\"\\nSınav Bitti..!\\n\" + soruSayisi + \" sorudan \" + dogruSayaci + \" tanesine\"\n\t\t\t\t\t\t+ \" doğru cevap verdiniz.\\nPuan: \" + alinanPuan + \"/\" + toplamPuan);\n\t}", "private String nalozZvieraNaVozidlo() {\r\n if (zoo.getPracovneVozidlo() == null) {\r\n return \"Pracovne vozidlo nie je pristavene\";\r\n }\r\n\r\n Integer pozicia = MojeMetody.vlozInt(\"Vloz cislo zvierata\");\r\n if (pozicia == null) return \"\";\r\n\r\n try {\r\n Prepravitelny z = (Prepravitelny) zoo.getZvierataZOO(pozicia - 1);\r\n zoo.nalozZivocicha(z);\r\n zoo.odstranZivocicha(pozicia - 1);\r\n return \"Zviera \" + z + \"\\n\\tbolo nalozene na prepravne vozidlo\";\r\n } catch (ClassCastException exCC) {\r\n return \"Zviera c. \" + pozicia + \" nemozno prepravit\\n\\t\";\r\n } catch (NullPointerException exNP) {\r\n return \"Zviera c. \" + pozicia + \" nie je v ZOO\";\r\n } catch (Exception ex) {\r\n return \"Neznama chyba:\\n\\t\" + ex;\r\n }\r\n }", "public static int neparni(int broj) {\n\t\tString velicina = \"\" + broj;\n\t\tint velicinaBroja = velicina.length();\n\t\tint zbir = 0;\n\t\tint ostatak;\n\t\twhile (velicinaBroja > 0) {\n\t\t\tif (broj % 2 != 0) {\n\t\t\t\tostatak = broj % 10;\n\t\t\t\tzbir = 10 * zbir + ostatak;\n\t\t\t\tbroj = broj / 10;\n\t\t\t\tvelicinaBroja = velicinaBroja - 1;\n\t\t\t}\n\n\t\t\tif (broj % 2 == 0) {\n\t\t\t\tbroj = broj / 10;\n\t\t\t\tvelicinaBroja = velicinaBroja - 1;\n\t\t\t}\n\n\t\t}\n\n\t\treturn zbir;\n\n\t}", "public void test_ninjutsu()\n {\n if(this.strength>10) \n System.out.println(\"test ninjustsu reussi!\");\n\n else System.out.println(\"test ninjustsu perdu!\");;\n }", "public void showOuterNguoi() {\n\t\t\tSystem.out.println(\"Ten Nguoi: \"+ ten + \"; Tuoi: \"+ age);\n\t\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 NhanVien(String ten, int tuoi, String diachi, double tienluong, int tongsogiolam)\n {\n this.ten = ten;\n this.tuoi = tuoi;\n this.diachi = diachi;\n this.tienluong = tienluong;\n this.tongsogiolam = tongsogiolam;\n }", "public int getTrangthaiChiTiet();", "private int generujViacZvierat(int pocet){\r\n int poc = 0;\r\n for (int i = 0; i < pocet; i++) {\r\n if (zoo.pridajZivocicha(vytvorZivocicha())) poc++;\r\n }\r\n return poc;\r\n }", "public static void main(String[] args) {\n\t\tScanner entrada = new Scanner(System.in);\n\t\tint n, cent, dez, uni;\n\t\t\n\t\tSystem.out.print(\"Digite um número positivo menor que 1000: \");\n\t\tn = entrada.nextInt();\n\t\t\n\t\tif (n>=0 && n<1000) {\n\t\t\tcent = n/100;\n\t\t\tn = n-cent*100;\n\t\t\tdez = n/10;\n\t\t\tn = n-dez*10;\n\t\t\tuni = n;\n\t\t\t\n\t\t\tSystem.out.println(\"Centenas:\"+cent+\"\\nDezenas:\"+dez+\"\\nUnidades:\"+uni);\n\t\t}\n\t\telse\n\t\t\tSystem.out.println(\"O valor deve ser positivo e menor que 1000\");\n\t\t\n\t\tentrada.close();\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tNhanVien nv1 = new NhanVien(\"Đặng\", \"Hoa\", 273);\n\t\tNhanVien nv2 = new NhanVien(\"Đặng\", \"Nam\", 863);\n\t\t\n\t\tSystem.out.println(\"Lương của \"+nv1.getTen()+\"\\t\"+ nv1.getLuong());;\n\t\tSystem.out.println(\"Lương của \"+nv2.getTen()+\"\\t\"+nv2.getLuong());\n\t\t\n\n\t\tif(nv1.lonHon(nv2)) \n\t\t\tSystem.out.println(nv1.getTen()+\" có số lượng sản phẩm lớn hơn \"+nv2.getTen()+\": \"+ (nv1.getSoSP()-nv2.getSoSP())+\" sản phẩm\");\n\t\telse\n\t\t\tSystem.out.println(nv2.getTen()+\" có số lượng sản phẩm lớn hơn \"+nv1.getTen()+\": \"+ (nv2.getSoSP()-nv1.getSoSP())+\" sản phẩm\");\n\t\t\n\t\tif(nv1.getSoSP()> nv2.getSoSP()) \n\t\t\tSystem.out.println(nv1.getTen()+\" có số lượng sản phẩm lớn hơn \"+nv2.getTen()+\": \"+ (nv1.getSoSP()-nv2.getSoSP())+\" sản phẩm\");\n\t\telse\n\t\t\tSystem.out.println(nv2.getTen()+\" có số lượng sản phẩm lớn hơn \"+nv1.getTen()+\": \"+ (nv2.getSoSP()-nv1.getSoSP())+\" sản phẩm\");\n\t}", "public void setKoernerImMaul(int n)\n {\n koernerImMaul=n;\n }", "public void printSirDeLa1La100() {\n System.out.println(\"Valorile sirului sunt: \");\n System.out.println(Arrays.toString(array1To100()));\n }", "public int liczbaelnastosie() {\n\t\treturn 0;\n\t}", "public static void main(String[] args) {\n\n\n\n\n Scanner sc = new Scanner(System.in);\n\n System.out.println(\"4 basamakli bir sayi giriniz\");\n\n\n int sayi = sc.nextInt();\n int kalan = sayi - ((sayi / 10) );\n\n \n int onlar = sayi%10;\n System.out.println( sayi- sayi/10 *10 );\n\n\n\n\n\n }", "public void anazitisiSintagisVaseiGiatrou() {\n\t\tString doctorName = null;\n\t\ttmp_2 = 0;\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\" STOIXEIA SYNTAGWN\");\n\t\t\t// Emfanizw oles tis syntages\n\t\t\tfor(int j = 0; j < numOfPrescription; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\n \" + j + \". STOIXEIA SYNTAGHS: \");\n\t \t \tprescription[j].print();\n\t\t\t}\n\t\t\tdoctorName = sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \"); // Zitaw apo ton xrhsth na mou dwsei to onoma tou giatrou pou exei grapsei thn sintagh pou epithumei\n\t\t\tfor(int i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\tif(doctorName.equals(prescription[i].getDoctorLname())) // An vre8ei kapoia antistoixeia emfanizw thn syntagh pou exei grapsei o giatros\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"VRETHIKE SYNTAGH!\");\n\t\t\t\t\t// Emfanizw thn/tis sintagh/sintages pou exoun graftei apo ton sygkekrimeno giatro\n\t\t\t\t\tprescription[i].print();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\ttmp_2++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(tmp_2 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"DEN YPARXEI SYNTAGH POU NA PERILAMVANEI TON IATRO ME EPWNYMO: \" + doctorName);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "@Override\n\tpublic void maasHesapla() {\n\t\tSystem.out.println(\"isciler icin maas 5000 tl \");\n \t\t\n\t}", "private String Interpretar(String num) {\r\n\t\tif(num.length() > 3)\r\n\t\t\treturn \"\";\r\n\t\tString salida=\"\";\r\n\t\t\r\n\t\tif(Dataposi(num,2) != 0)\r\n\t\t\tsalida = Centenas[Dataposi(num,2)-1];\r\n\t\t\r\n\t\tint k = Integer.parseInt(String.valueOf(Dataposi(num,1))+String.valueOf(Dataposi(num,0)));\r\n\r\n\t\tif(k <= 20)\r\n\t\t\tsalida += Numero[k];\r\n\t\telse {\r\n\t\t\tif(k > 30 && Dataposi(num,0) != 0)\r\n\t\t\t\tsalida += Decenas[Dataposi(num,1)-2] + \"Y \" + Numero[Dataposi(num,0)];\r\n\t\t\telse\r\n\t\t\t\tsalida += Decenas[Dataposi(num,1)-2] + Numero[Dataposi(num,0)];\r\n\t\t}\r\n\t\t//Caso especial con el 100\r\n\t\tif(Dataposi(num,2) == 1 && k == 0)\r\n\t\t\tsalida=\"CIEN\";\r\n\t\t\r\n\t\treturn salida;\r\n\t}", "public void printNo(String numar)\r\n {\r\n //toate verificarile posibile pentru a afisa ce trebuie\r\n //mi-e lene sa scriu la fiecare in parte, daca vrei ti le explic la telefon\r\n if(Character.getNumericValue(numar.charAt(0)) ==0 && Character.getNumericValue(numar.charAt(1)) == 0){\r\n System.out.print(v[Character.getNumericValue(numar.charAt(2))] + \" \");\r\n }\r\n else{\r\n if(Character.getNumericValue(numar.charAt(0)) > 0){\r\n System.out.print(v[Character.getNumericValue(numar.charAt(0))] + \" hundread \");\r\n }\r\n if(Character.getNumericValue(numar.charAt(1)) == 1){\r\n System.out.print(v1[Character.getNumericValue(numar.charAt(2))] + \" \");\r\n }\r\n else if (Character.getNumericValue(numar.charAt(1)) > 1 && Character.getNumericValue(numar.charAt(2)) > 0){\r\n System.out.print(v2[Character.getNumericValue(numar.charAt(1)) - 2] + v[Character.getNumericValue(numar.charAt(2))] + \" \");\r\n }\r\n else if(Character.getNumericValue(numar.charAt(2)) == 0 && Character.getNumericValue(numar.charAt(1)) > 1){\r\n System.out.print(v2[Character.getNumericValue(numar.charAt(1)) - 2] + \" \");\r\n }\r\n if(Character.getNumericValue(numar.charAt(1)) == 0 && Character.getNumericValue(numar.charAt(2)) > 0){\r\n System.out.print(v[Character.getNumericValue(numar.charAt(2))] + \" \");\r\n }\r\n }\r\n }", "public void setNiveau(int niveau) {\r\n this.niveau = niveau;\r\n }", "private static void obterNumeroLugar(String nome) {\n\t\tint numero = gestor.obterNumeroLugar(nome);\n\t\tif (numero > 0)\n\t\t\tSystem.out.println(\"O FUNCIONARIO \" + nome + \" tem LUGAR no. \" + numero);\n\t\telse\n\t\t\tSystem.out.println(\"NAO EXISTE LUGAR de estacionamento atribuido a \" + nome);\n\t}", "public void nace() {\n System.out.println(\"Ostia, acabo de nacer tío.\");\n }", "public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n System.out.print(\"금액 입력:\");\n int won=scan.nextInt();\n \n // 5만원권\n int a=won/50000;\n System.out.printf(\"5만원권:%d매\\n\",a);\n won=won-(50000*a);\n System.out.println(\"won=\"+won);\n // 1만원\n a=won/10000;\n System.out.printf(\"1만원권:%d매\\n\",a);\n won=won-(10000*a);\n System.out.println(\"won=\"+won);\n // 5천원\n a=won/5000;\n System.out.printf(\"5천원권:%d매\\n\",a);\n won=won-(5000*a);\n System.out.println(\"won=\"+won);\n \n // 1천원\n a=won/1000;\n System.out.printf(\"1천원권:%d매\\n\",a);\n won=won-(1000*a);\n System.out.println(\"won=\"+won);\n \n // 500원\n a=won/500;\n System.out.printf(\"500원:%d개\\n\",a);\n won=won-(500*a);\n System.out.println(\"won=\"+won);\n \n // 100원\n a=won/100;\n System.out.printf(\"100원:%d개\\n\",a);\n won=won-(100*a);\n System.out.println(\"won=\"+won);\n \n // 50원\n a=won/50;\n System.out.printf(\"50원:%d개\\n\",a);\n won=won-(50*a);\n System.out.println(\"won=\"+won);\n \n // 10원\n a=won/10;\n System.out.printf(\"10원:%d개\\n\",a);\n won=won-(10*a);\n System.out.println(\"won=\"+won);\n \n System.out.printf(\"1원:%d개\\n\",won);\n \n\t}", "public static void main(String[] args) {\n\n\t\tScanner s = new Scanner(System.in);\n\t\tSystem.out.println(\" Unesi vrednost a \");\n\t\tint a = s.nextInt();\n\t\tint i = 1;\n\t\tint n = 0;\n\t\twhile (i <= 17) {\n\t\t\tif (i % a != 0)\n\n\t\t\t\tSystem.out.println(\" Brojevi od 1-17 koji nisu deljivi sa \" + a + \" su : \" + i);\n\t\t\ti++;\n\t\t}\n\n\t}", "public void pridejNovePivo ()\n\t{\n\t\n\t\tpivo = pivo + PRODUKCE;\n\t\t\n\t}", "void verEnPantalla() {\r\n\t\tSystem.out.println( numEnPantalla );\r\n\t}", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint sum100 = 0 ;\n\t\t\n\t\tfor(int i = 1 ; i <= 100; i++) {\n\t\t\tsum100 += i ;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Tong 100 so dau la: \" + sum100);\n\t\tint sum3 =0;\n\t\tSystem.out.println(\"Nhap vao so n = \");\n\t\tint n = sc.nextInt();\n\t\t\n\t\tfor(int i = 0 ; i <= n ; i++) {\n\t\t\tif(i%3 == 0) {\n\t\t\t\tsum3 +=i;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Tong cac so chia het cho 3 nho hon n la: \" + sum3);\n\t\tlong number1 =0 ;\n\t\tlong number2 =1 ;\n\t\tSystem.out.println(\"100 so Fibonaci dau tien la:\");\n\t\tfor(int i = 1; i<=100; i++) {\n\t\t\tSystem.out.printf(\"%d\\t \",number1);\n\t\t\tlong sumNumber1Number2 = number1 + number2;\n\t\t\tnumber1 = number2;\n\t\t\tnumber2 = sumNumber1Number2;\n\t\t}\n\t\t\t\tint m,rv,temp,mod;\t\t\n\t\t\t\tScanner Scan = new Scanner(System.in);\n\t\t\t\tSystem.out.printf(\"\\nNhap vao so m = \"); m = Scan.nextInt();\t\n\t\t\t\ttemp = m; rv = 0;\t\n\t\t\t while (m > 0) {\n\t\t\t \t mod = m % 10;\n\t\t\t \t m = m / 10;\n\t\t\t \t rv= rv * 10 + mod;\n\t\t\t }\n\t\t\t if (rv==temp) {\n\t\t\t \tSystem.out.printf(\"So %d la so Polinom\",temp); \n\t\t\t } else {\n\t\t\t System.out.printf(\"So %d kp la so Polinom\",temp);\n\t\t\t }\n\t\t\t\tint tempMod = 0;\n\t\t\t\tint tempDiv = 0;\n\t\t\t\tint sum = 0;\n\t\t\t\tSystem.out.println(\"\\nCac so tu 100 - 999 co tong cac chu so chia het cho 3 la:\");\n\t\t\t\tfor(int i = 100; i < 1000 ; i++) {\n\t\t\t\t\ttempDiv = i;\n\t\t\t\t\tsum = 0;\n\t\t\t\t\t\n\t\t\t\t\twhile(tempDiv > 0 ) {\t\n\t\t\t\t\t tempMod = tempDiv%10;\n\t\t\t\t\t tempDiv = tempDiv/10;\n\t\t\t\t\t sum +=tempMod;\n\t\t\t\t\t}\n\t\t\t\t\tif(sum%3 == 0) {\n\t\t\t\t\t\tSystem.out.printf(String.format(\"%d\\t\",i));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t}", "public static void main(String[] args) {\n\n double valorTotal = 36000;\n\n for (int parcela = (int) valorTotal; parcela >= 1; parcela--) {\n double valorParcela = valorTotal / parcela;\n if (valorParcela >= 1000) {\n System.out.println(parcela + \" parcelas de \" + valorParcela + \"R$\");\n }\n }\n }", "private static String resolveCase(long n) {\n\t\tif (n==0L){\n\t\t\treturn \"INSOMNIA\";\n\t\t}\n\t\tArrayList<Integer> digitsList = new ArrayList<Integer>(Arrays.asList(digits));\n\t\tint i = 1;\n\t\twhile (!digitsList.isEmpty() && i<1000){\n\t\t\tlong nRemainder = n*i ;\n\t\t\twhile (nRemainder != 0L ){\n\t\t\t\tint index = digitsList.indexOf((int)(nRemainder % 10));\n\t\t\t\tif (index != -1){\n\t\t\t\t\tdigitsList.remove(index);\n\t\t\t\t}\n\t\t\t\tnRemainder = nRemainder / 10;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\tif(digitsList.isEmpty()){\n\t\t\treturn Long.toString(n*(i-1));\n\t\t}\n\t\treturn \"INSOMNIA\";\n\t}", "public static void main(String[] args) {\n int nilai = 0;\n Scanner scan = new Scanner(System.in);\n\n // mengambil input\n System.out.print(\"Nilai : \");\n nilai = scan.nextInt();\n\n // cek apakah dia dapat nilai 90\n if ( nilai > 90 ) {\n System.out.println(\"Selamat, anda mendapatkan hadiah dari saya!\");\n }\n\n System.out.println(\"Terima kasih...\");\n\n }", "private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }", "public static void main(String[] args) {\n\t\t int sayi=10;\n\t \n\t for (int i = 0; i < 10000; i++) {\n\t i++;\n\t sayi++;\n\t }\n\t \n\t // Bu kodu calistirdigimizda 13.satira kadar Java kac obje uretir\n\t // Bu soruyu cevaplamak icin degiskenin data turune bakmaliyiz\n\t // sayi ve i'nin veri turu : int\n\t // int mutable\n\t \n\t String str=\"A\";\n\t for (int i = 0; i < 10000; i++) {\n\t\t\t\tstr+=\" \";\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t \n\t /*\n\t * 20.satir ile 24.satir arasındakı kac obje olur\n\t * i int oldugu icin sadece bir tane variavl olusturulur\n\t * ancak str string oldugunda 10002 tane obje olustururlur\n\t * \t */\n\t}", "public clsNaipeEspañol(int numero, String palo) {\r\n\t\tsetNumero(numero);\r\n\t\tsetPalo(palo);\r\n\t\tasignaNombre();\r\n\t}", "public void setNaziv(String naziv) {\r\n\t\tthis.naziv = naziv;\r\n\t}", "void negarAnalise();", "public static void main(String[] args) {\nSystem.out.println(\"sayi giriniz\");\r\n\t\tScanner klavyedenAl = new Scanner(System.in);\r\n\t\tint bulunacakSayi = klavyedenAl.nextInt();\r\n\t\tfor (int i = 2; i <= bulunacakSayi; i++) {\r\n\t\t\tif (bulunacakSayi % i == 0) {\r\n\t\t\t\tSystem.out.println(\"sayi\" + i + \"bölünür\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public String getDv43(String numero) {\r\n \r\n int total = 0;\r\n int fator = 2;\r\n \r\n int numeros, temp;\r\n \r\n for (int i = numero.length(); i > 0; i--) {\r\n \r\n numeros = Integer.parseInt( numero.substring(i-1,i) );\r\n \r\n temp = numeros * fator;\r\n if (temp > 9) temp=temp-9; // Regra do banco NossaCaixa\r\n \r\n total += temp;\r\n \r\n // valores assumidos: 212121...\r\n fator = (fator % 2) + 1;\r\n }\r\n \r\n int resto = total % 10;\r\n \r\n if (resto > 0)\r\n resto = 10 - resto;\r\n \r\n return String.valueOf( resto );\r\n \r\n }", "private String vylozZvieraZVozidla() {\r\n if (zoo.getPracovneVozidlo() == null) {\r\n return \"Pracovne vozidlo nie je pristavene\";\r\n }\r\n\r\n Integer pozicia = MojeMetody.vlozInt(\"Vloz index zvierata\");\r\n if (pozicia == null) return \"\";\r\n\r\n try {\r\n Zivocich ziv = zoo.vylozZivocicha(pozicia-1);\r\n if (ziv == null) {\r\n return \"Zviera c. \" + pozicia + \" nie je na vozidle\\n\\t\";\r\n }\r\n zoo.pridajZivocicha(ziv);\r\n return \"Zviera \" + ziv\r\n + \"\\n\\tbolo vylozene z prepravneho vozidla\";\r\n } catch (ClassCastException exCC) {\r\n return \"Zviera c. \" + pozicia + \" nie je na vozidle\\n\\t\";\r\n } catch (Exception ex) {\r\n return \"Neznama chyba:\\n\\t\" + ex;\r\n }\r\n }", "int generarNumeroNota();", "public static void main(String[] args) {\n int a,b,c;\n int data;\n for (int i = 100; i < 999; i++) {\n\t\t\ta=i/100;//百位\n\t\t\tb=(i-a*100)/10;//十位\n\t\t\tc=i-100*a-10*b;//个位\n\t\t\tdata=a*a*a+b*b*b+c*c*c;\n\t\t\tif(data==i){\n\t\t\t\tSystem.out.println(\"水鲜花数字:\"+i);\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic int xuatLuong() {\n\t\treturn 3000;\n\t}", "public String annulerRv(){\n\t\t// Traitement ici ... \n\t\treturn AFFICHER;\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"구구단\");\n\t\t\n\t\tfor (int dan =1; dan <= 9; dan++) {\n\t\t\tSystem.out.print(dan + \"단 : \"); //9번 수행\n\t\t\tfor (int num = 1; num <= 9; num++) {\n\t\t\t\tSystem.out.print(dan + \"*\" + num + \"=\" + dan * num + \"\\t\"); //81번 수행\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();//줄 내리기\n\t\t}\n\n\t}", "static String m20335a(int i) {\n return String.format(null, \"%s.ols%d.%d\", \"v2\", 100, Integer.valueOf(i));\n }", "private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }", "public static void main(String[] args) {\n int nilai = 20;\n if (nilai * 2 < 40) {\n nilai += 5;\n }\n if (nilai <= 10) {\n System.out.println(\"algoritma \");\n if (nilai % 2 == 1) {\n System.out.println(\"pemrograman \");\n } else {\n System.out.println(\"java \");\n }\n } else {\n System.out.println(\"bukan algoritma \");\n if (nilai % 2 == 1) {\n System.out.println(\"pemrograman \");\n } else {\n System.out.println(\"java \");\n }\n }\n }", "public static int parni(int broj) {\n\t\tString velicina = \"\" + broj;\n\t\tint velicinaBroja = velicina.length();\n\t\tint zbir = 0;\n\t\tint ostatak;\n\t\twhile (velicinaBroja > 0) {\n\t\t\tif (broj % 2 == 0) {\n\t\t\t\tostatak = broj % 10;\n\t\t\t\tzbir = 10 * zbir + ostatak;\n\t\t\t\tbroj = broj / 10;\n\t\t\t\tvelicinaBroja = velicinaBroja - 1;\n\t\t\t}\n\n\t\t\tif (broj % 2 != 0) {\n\t\t\t\tbroj = broj / 10;\n\t\t\t\tvelicinaBroja = velicinaBroja - 1;\n\t\t\t}\n\n\t\t}\n\n\t\treturn zbir;\n\t}", "int accidentVelo()\r\n\t{\r\n\t\tdouble rand = Math.random()*100;\r\n\t\tSystem.out.println(rand);\r\n\t\tif ((double)rand <= 0.5) {\r\n\t\t\tSystem.out.println(\"Finalement vous auriez du y aller à pied. Vous vous vider de votre sang sur le bord du trottoir.\");\r\n\t\t\treturn 0.5;\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "public void setNaziv(String naziv) {\n\t\tthis.naziv = naziv;\n\t}", "private void dodajEpsilonPrijelaz(int pocetno, int sljedece) {\n String key = pocetno + \",$$\";\n if (!prijelazi.containsKey(key)) {\n prijelazi.put(key, new Integer(sljedece).toString());\n } else {\n String value = prijelazi.get(key) + \",\" + new Integer(sljedece).toString();\n prijelazi.put(key, value);\n }\n }", "public static void main(String[] args) {\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Unesite broj\");\r\n\t\t\r\n\t\tint broj = sc.nextInt();\r\n\t\tint pocetniBroj = broj;\r\n\t\tint cifra = 0;\r\n\t\tint brojNaopako =0;\r\n\t\t\r\n\t\tif(broj >= 0) {\r\n\t\t\twhile(broj >0) {\r\n\t\t\t\tcifra = broj % 10;\r\n\t\t\t\tbroj = broj / 10;\r\n\t\t\t\tbrojNaopako = brojNaopako*10 + cifra;\r\n\t\t\t}if (brojNaopako == pocetniBroj) {\r\n\t\t\t\tSystem.out.println(\"Uneti broj je palindrom\");\r\n\t\t\t\tSystem.out.println(brojNaopako);\r\n\t\t\t}else {\r\n\t\t\t\tSystem.out.println(\"Uneti broj nije palindrom\");\r\n\t\t\t\tSystem.out.println(brojNaopako);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}else {\r\n\t\t\tSystem.out.println(\"Greska! Uneti broj je negativan.\");\r\n\t\t\t}\r\n\t\tsc.close();\r\n\t}", "private void peliLoppuuUfojenTuhoamiseen() {\n if (tuhotut == Ufolkm) {\n ingame = false;\n Loppusanat = \"STEVE HOLT!\";\n }\n }", "static void soustraire() throws IOException {\n\t\tScanner clavier = new Scanner(System.in);\n\t\tint nb1, nb2, resultat;\n\t\tnb1 = lireNombreEntier();\n\t\tnb2 = lireNombreEntier();\n\t\tresultat = nb1 - nb2;\n\t\tSystem.out.println(\"\\n\\t\" + nb1 + \" - \" + nb2 + \" = \" + resultat);\n\t}", "private static int invertirNumero(int num) {\n\t\tint cifra, inverso = 0;\n\t\twhile (num > 0) {\n\t\t\tcifra = num % 10;\n\t\t\tinverso = cifra + inverso * 10;\n\t\t\tnum /= 10;\n\t\t}\n\t\treturn inverso;\n\t}", "public static void main(String[] args) {\n\n\t\tString palavra =\"teste\";\n\t\tint num = 2;\n\t\tString novaPalavra;\n\t\t\n\t\t\n\t\tnovaPalavra = palavra.substring(palavra.length()-num, palavra.length()); \n\t\t\n\t\tfor (int i = 0; i< palavra.length(); i++) { \n\t System.out.print(novaPalavra);\n\t\t}\n\t\t\n\t}", "public int getNiveau() {\r\n return niveau;\r\n }", "public static void main(String[] args) {\n\t\tint num = 0, sum = 0;\n\t\tdo\n\t\t{\n\t\t\tnum++;\n\t\t\tsum += num;\n\t\t\tif(num%10 == 0 && num == 100)\n\t\t\t\tSystem.out.println(\"1-\"+num+\" : \"+sum);\n\t\t\telse if(num%10 == 0 && num != 100)\n\t\t\t\tSystem.out.println(\"1-\"+num+\" : 0000\");\n\t\t}while(num<100);\n\t}", "public int masVendido(int cantidad){\r\n \r\n return cantidad;\r\n }", "public static void main(String[] args) {\n\n\t\tSystem.out.println(\"Uneti broj n: \");\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tsc.close();\n\t\tint c = 0;\n\t\tint sum = 0;\n\n\t\twhile (n > 0) {\n\t\t\tc = n % 10;\n\t\t\tn = n / 10;\n\t\t\tif (c % 2 == 0) {\n\t\t\t\tsum = sum + c;\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.out.println(\"Zbir parnih cifara je: \" + sum);\n\n\t}", "Integer getNLNDreu();", "public void pierdeUnaVida() {\n numeroDeVidas--;\n }", "public static void main(String[] args) {\n\t\tint n = 4;\t// Kontejneri\n\t\tint k = 1;\t// Kapacitet\n\t\tint prvi = n / k; // Provjera da li se svi mogu sloziti jedan u drugi (djeljivost sa 2)\n\t\tint exponent; // Jedini brojevi djeljivi sa 2 do kraja (slaganja kontejnera)\n\t\tint dodatni; // Koliko treba dodatnih\n\t\tfor (int i = 1; i > 0;) { // Racunaj eksponent 2 do kraja int vrijednosti...\n\t\t\ti = i * 2;\n\t\t\texponent = i;\n\t\t\tif (prvi == exponent) {\n\t\t\t\tSystem.out.println(\"Ne treba\");\n\t\t\t\tbreak;\n\t\t\t} else if (prvi != exponent) { // Ako se ne mogu sloziti do kraja, uzmi slijedeci veci eksponent od broj kontejnera i daj ostatak djeljenja, to su dodatne kutije.\n\t\t\t\tif (2 < n && n < 4) {\n\t\t\t\t\tdodatni = 4 % n;\n\t\t\t\t\tSystem.out.printf(\"Mujo treba %d dodatnih kontejnera\",\n\t\t\t\t\t\t\tdodatni);\n\t\t\t\t} else if (prvi != exponent && 4 < n && n < 8) {\n\t\t\t\t\tdodatni = 8 % n;\n\t\t\t\t\tSystem.out.printf(\"Mujo treba %d dodatnih kontejnera\",\n\t\t\t\t\t\t\tdodatni);\n\t\t\t\t} else if (prvi != exponent && 8 < n && n < 16) {\n\t\t\t\t\tdodatni = 16 % n;\n\t\t\t\t\tSystem.out.printf(\"Mujo treba %d dodatnih kontejnera\",\n\t\t\t\t\t\t\tdodatni);\n\t\t\t\t} else if (prvi != exponent && 16 < n && n < 32) {\n\t\t\t\t\tdodatni = 32 % n;\n\t\t\t\t\tSystem.out.printf(\"Mujo treba %d dodatnih kontejnera\",\n\t\t\t\t\t\t\tdodatni);\n\t\t\t\t\tbreak;\n\t\t\t\t} else if (prvi != exponent && 32 < n && n < 64) {\n\t\t\t\t\tdodatni = 64 % n;\n\t\t\t\t\tSystem.out.printf(\"Mujo treba %d dodatnih kontejnera\",\n\t\t\t\t\t\t\tdodatni);\n\t\t\t\t} else if (prvi != exponent && 64 < n && n < 128) {\n\t\t\t\t\tdodatni = 128 % n;\n\t\t\t\t\tSystem.out.printf(\"Mujo treba %d dodatnih kontejnera\",\n\t\t\t\t\t\t\tdodatni);\n\t\t\t\t} else if (prvi != exponent && 128 < n && n < 256) {\n\t\t\t\t\tdodatni = 256 % n;\n\t\t\t\t\tSystem.out.printf(\"Mujo treba %d dodatnih kontejnera\",\n\t\t\t\t\t\t\tdodatni);\n\t\t\t\t} else if (prvi != exponent && 256 < n && n < 512) {\n\t\t\t\t\tdodatni = 512 % n;\n\t\t\t\t\tSystem.out.printf(\"Mujo treba %d dodatnih kontejnera\",\n\t\t\t\t\t\t\tdodatni);\n\t\t\t\t} else { // U suprotno, djeljenje kontejnera i kapaciteta je jednako eksponentu 2 i ne treba doadatnih.\n\t\t\t\t\tSystem.out.println(\"Ne treba dodatnih kontejnera.\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}", "public int disminuir(int contador){\nSystem.out.println(\"Escoge la cantidad a disminuir\");\nnum=teclado.nextInt();\nfor(int i=0 ; i<num ; i++){\ncontador=contador-1;}\nreturn contador;}", "public void operacionletradni(int dni, int result){\n this.result=dni%23;}", "public static void main(String[] args) {\n\t\tint i;\r\n\r\n\t\tfor(i=0; i<5; i++) {\r\n\r\n\t\t\tSystem.out.println(\"민윤기랑 지독하게 얽히고싶다\");\r\n\t\t}\r\nSystem.out.println();\r\n\t\tint a;\r\n\t\tfor(a=1; a<=100; a++)\r\n\t\tSystem.out.printf(\" %d\",a);\r\n\t\t\r\nSystem.out.println();\t\r\n\t\t\r\n\t\tint b;\r\n\t\tfor(b=1; b<=100; b++) {\r\n\t\tSystem.out.printf(\" %d\",b);\r\n\t\tif(b>11)\r\n\t\t\tbreak;}\r\nSystem.out.println();\t\r\n\r\nint c;\r\nint sum=0;\r\n\r\nfor(c=1; c<=10;c++) {\r\n\tsum=sum+c;\r\n}\r\nSystem.out.printf(\"%d\",sum);\r\n\r\n\t}", "public int nun_entidade_bd() {\r\n return 12;\r\n }", "public String getNormalizedN(int i) {\n\tint nb = getNb(i);\n\tif (nb == 1) return \"1\";\n\tint maxN = getMaxNb();\n\tif (maxN <= 5) return Integer.toString(nb);\n\tmaxN--;\n\tnb--;\n\tif (maxN < 21) {\n\t\tif (4*nb <= maxN) return \"1\";\n\t\tif (3*nb <= maxN) return \"2\";\n\t\tif (2*nb <= maxN) return \"3\";\n\t\tif (3*nb <= 2*maxN) return \"4\";\n\t\treturn \"5\";\n\t} else if (maxN < 100) {\n\t\tif (10*nb <= maxN) return \"1\";\n\t\tif (5*nb <= maxN) return \"2\";\n\t\tif (4*nb <= maxN) return \"3\";\n\t\tif (3*nb <= maxN) return \"4\";\n\t\tif (2*nb <= 1*maxN) return \"5\";\n\t\tif (3*nb <= 2*maxN) return \"6\";\n\t\treturn \"7\";\n\t} else {\n\t\tif (20*nb <= maxN) return \"1\";\n\t\tif (10*nb <= maxN) return \"2\";\n\t\tif (5*nb <= maxN) return \"3\";\n\t\tif (4*nb <= maxN) return \"4\";\n\t\tif (3*nb <= 1*maxN) return \"5\";\n\t\tif (2*nb <= 1*maxN) return \"6\";\n\t\treturn \"7\";\n\t}\n}", "public void gastarDinero(double cantidad){\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n \n int iNumero,\n iContadorNegativos = 0;\n \n boolean bHayNegativos = false;\n \n for(int i = 1; i<= 10; i++){\n \n iNumero = Integer.parseInt(JOptionPane.showInputDialog( \n \"Este programa te pide un arreglo de 10 números\"\n + \"\\nDespúes te dice si hay algún numero negativo\"\n + \"\\nIngresa el \" + i + \"° número\"));\n \n if(iNumero < 0){\n \n bHayNegativos = true;\n \n iContadorNegativos++;\n \n }//fin if\n \n }//fin for\n \n \n if(bHayNegativos == true ){\n \n JOptionPane.showMessageDialog(null, \n \"Hay \" + iContadorNegativos + \" números negativos\"\n + \"\\nY \" + (10-iContadorNegativos) + \" números positivos\" );\n \n }else{\n \n JOptionPane.showMessageDialog(null, \n \"Hay \" + iContadorNegativos + \" números negativos\"\n + \"\\nY \" + (10-iContadorNegativos) + \" números positivos\" );\n \n \n }//fin if-else\n \n \n }", "int tinhSoNgay() {\n return soNgay;\n }", "@Override\r\n public void convert(int wa) {\n hasil1 = wa / menit;\r\n String wat = Integer.toString(hasil1);\r\n hasil = wat + \" Menit \";\r\n }", "public static void main(String[] args) {\n\t\tScanner sc= new Scanner(System.in);\n\t\tint soDien;\n\t\tSystem.out.println(\"Mời nhập số điện\");\n\t\tsoDien=sc.nextInt();\n\t\tif(soDien<50) {\n\t\t\tSystem.out.println(\"số điện tiêu thụ trong tháng là: \" +soDien*1000);\n\t\t}\n\t\telse System.out.println(\"số điện tiêu thụ trong tháng là: \" +soDien*1200);\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tint number = 2589;\n\t\tint y;\n\n\t\tint miavor = number / 1000;\n\t\tSystem.out.println(\"Miavor : \" + miavor);\n\n\t\tint tasnavor = (number / 100) % 10;\n\t\tSystem.out.println(\"Tasnavor : \" + tasnavor);\n\n\t\tint haryuravor = (number / 10) % 10;\n\t\tSystem.out.println(\"Haryuravor : \" + haryuravor);\n\n\t\tint hazaravor = number % 10;\n\t\tSystem.out.println(\"Hazaravor : \" + hazaravor);\n\n\t\tif ((miavor + tasnavor + haryuravor + hazaravor) > 20) {\n\t\t\ty = 1;\n\t\t\tSystem.out.println(y);\n\t\t} else {\n\t\t\ty = 0;\n\t\t\tSystem.out.println(y);\n\t\t}\n\n\t}", "@Override\n\tpublic String StatistiqueNbrRisuqe(){\n float m= accountRepository.NbrStatus(\"a risque\");\n float s=accountRepository.NbrStatus(\"Stable\");\n float res =( m / s)*100;\n return res+\"%\";\n\n\t}", "private static int num_konsonan(String word) {\n int i;\n int jumlah_konsonan = 0;\n\n for (i = 0; i < word.length(); i++) {\n if (word.charAt(i) != 'a' &&\n word.charAt(i) != 'i' &&\n word.charAt(i) != 'u' &&\n word.charAt(i) != 'e' &&\n word.charAt(i) != 'o') {\n jumlah_konsonan++;\n }\n }\n return jumlah_konsonan;\n }", "public void orina() {\n System.out.println(\"Que bien me quedé! Deposito vaciado.\");\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tint x = 400;\r\n\t\tint y = 400 % 2;\r\n\t\t\r\n\t\tif(y % 2 == 0) {\r\n\t\t\tSystem.out.println(\"짝수입니다.\");\r\n\t\t}else {\r\n\t\t\tSystem.out.println(\"홀수입니다.\");\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"----삼항연산자\");\r\n\t\t\r\n\t\tSystem.out.println(y == 0 ? \"짝수\" : \"홀수\");\r\n\r\n\t}", "public static void main(String[] args) {\n System.out.println(\"*******\");\n numberToWords(-100);\n System.out.println(\"*******\");\n numberToWords(1010);\n System.out.println(\"*******\");\n numberToWords(1000);\n System.out.println(\"*******\");\n numberToWords(1234567890);\n System.out.println(\"*******\");\n\n\n\n\n\n\n\n }", "public void dorong(int nilai) {\r\n if (ukuran >= elemen.length) {\r\n int[] temp = new int[elemen.length * 2];\r\n System.arraycopy(elemen, 0, temp, 0, elemen.length);\r\n elemen = temp;\r\n }\r\n\r\n elemen[ukuran++] = nilai;\r\n }", "@Override\n\tpublic void nhap() {\n\t\tScanner reader = new Scanner(System.in);\n\t\tSystem.out.println(\" nhap ten:\");\n\t\tString ten = reader.nextLine();\n\t\tSystem.out.println(\" nhap tuoi:\");\n\t\ttuoi = Double.parseDouble(reader.nextLine());\n\t\tSystem.out.println(\" nhap can nang:\");\n\t\tcanNang = Double.parseDouble(reader.nextLine());\n\t\tSystem.out.println(\"nhap chieu chieuCao\");\n\t\tchieuCao = Double.parseDouble(reader.nextLine());\n\t\tSystem.out.println(\" nhap chieu chieuDai:\");\n\t\tchieuDai = Double.parseDouble(reader.nextLine());\n\t}", "public void hitunganRule1(){\n penebaranBibitSedikit = 1200;\r\n hariPanenSedang = 50;\r\n \r\n //menentukan niu\r\n nBibit = (1500 - penebaranBibitSedikit) / (1500 - 500);\r\n \r\n //menentukan niu hari panen sedang\r\n if ((hariPanenSedang >=40) && (hariPanenSedang <=80)) {\r\n nPanen = (hariPanenSedang - 40) / (80 - 40);\r\n }\r\n \r\n //tentukan alpha predikat (karena grafik segitiga)\r\n if (nBibit < nPanen) {\r\n a1 = nBibit;\r\n }else if (nBibit > nPanen) {\r\n a1 = nPanen;\r\n }\r\n \r\n //tentukan Z1\r\n z1 = (penebaranBibitSedikit + hariPanenSedang) * 700;\r\n System.out.println(\"a1 = \" + String.valueOf(a1));\r\n System.out.println(\"z1 = \" + String.valueOf(z1));\r\n }", "void nhap(String tenHinh) {\n this.tenHinh = tenHinh;\n }", "@Override\n\tpublic void missiel() {\n\t\tSystem.out.println(\"미사일을 쏠 수 있습니다\");\n\n\t}", "public static void main(String[] args) {\n Random y = new Random(); //아무값 랜덤\r\n //0~ 99 까지의 1000개 중 50보다 큰값들을 프린트 \r\n int[] in = new int [1000]; \r\n for (int i = 0; i < in.length; i++) {\r\n \tin[i] = y.nextInt(100);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n int count=0;\r\n for (int i = 0; i < 100; i++) {\r\n \tif (in[i] >= 50) {\r\n\t\t\t\t\t\tSystem.out.println(i+\":\"+in[i]);\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n System.out.println(\"50보다 큰개수는 : \" + count\r\n \t\t);\r\n\t}", "static int sumOf1To100nos() {\r\n\t\t \r\n\t\t int sum =0;\r\n\t\t \r\n\t\t for(int i=1; i<=100;i++) {\r\n\t\t\t sum+=i;\r\n\t\t }\r\n\t\t \r\n\t\t return sum;\r\n\t }", "public int kiemTraquyenDN(){\r\n\t\tHttpSession session = (HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(false);\r\n\t NhanVien x= new NhanVien();\r\n\t x.setMaNV(session.getAttribute(\"manv\").toString());\r\n\t NhanVienDao nvDao=new NhanVienDao();\r\n\t NhanVien nv=nvDao.layNhanVien(x);\r\n\t\t PhanQuyen pq=nv.getMaPQ();\r\n\t\t return pq.getMaPQ();\r\n\t}", "@Test\n public void kaasunKonstruktoriToimiiOikeinTest() {\n assertEquals(rikkihappo.toString(),\"Rikkihappo Moolimassa: 0.098079\\n tiheys: 1800.0\\n lämpötila: 298.15\\n diffuusiotilavuus: 50.17\\npitoisuus: 1.0E12\");\n }", "private String convert999(int num) {\r\n \t//return a number which is in 100th position\r\n \tStringBuilder str1= new StringBuilder(lowNames[num / ONE_HUNDRED]);\r\n \tstr1.append(SPACE);\r\n \tstr1.append(bigNames[0]);\r\n \tstr1.append(AND);\r\n \t\r\n \tStringBuilder str2=new StringBuilder(convert99(num % ONE_HUNDRED));\r\n \t\r\n\t\tif(num <= TWO_DIGIT_MAX_VALUE) {//check if number is lessthan or equal 99\r\n\t\t\treturn str2.toString();\r\n\t\t}else if(num % ONE_HUNDRED == ZERO) { //check if number is divisible by 100 and remainder is zero\r\n\t\t\treturn str1.toString();\r\n\t\t}\r\n\t\t\r\n\t\treturn str1.append(str2).toString();\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\n int n = 0;\n for(int i=0; i<100; i++){\n if(i%2==1){\n n =i;\n } else\n n =i;\n }\n System.out.println(n);\n }", "public double getNajvacsie() {\n\t\tif ((cislo1 >= cislo2) && (cislo1 >= cislo3)) {\n\t\t\tprve = cislo1;\n\t\t} else if ((cislo2 >= cislo1) && (cislo2 >= cislo3)) {\n\t\t\tprve = cislo2;\n\t\t} else if ((cislo3 >= cislo1) && (cislo3 >= cislo2)) {\n\t\t\tprve = cislo3;\n\t\t}\n\t\treturn prve;\n\n\t}", "private void nuskaitymas() {\n Scanner sc = new Scanner(System.in);\n System.out.println(\"Iveskite zodi\");\n zodis = sc.nextLine();\n patikrinimas(zodis);\n }", "private static int num_vokal(String word) {\n int i;\n int jumlah_vokal = 0;\n\n for (i = 0; i < word.length(); i++) {\n if (word.charAt(i) == 'a' ||\n word.charAt(i) == 'i' ||\n word.charAt(i) == 'u' ||\n word.charAt(i) == 'e' ||\n word.charAt(i) == 'o') {\n jumlah_vokal++;\n }\n }\n return jumlah_vokal;\n }", "public void toiGianPhanSo(){\n int x = timUSCLN(tuSo,mauSo);\n\n tuSo/=x;\n mauSo/=x;\n }", "public String ocurrencia() {\n String palabra = \"\";\n int retorno = 0;\n for (int i = 0; i < getCadena().length(); i++) {\n\n if ((getCadena().charAt(i) == ' ') || (i > getCadena().length() - 2)) {\n if (palabra.equals(getBuscar())) {\n retorno++;\n palabra = \"\";\n } else {\n palabra = \"\";\n }\n\n } else {\n palabra += getCadena().charAt(i);\n\n }\n }\n return (\"La cantida de ocurrencias son de:\" + '\\n' + retorno);\n }", "public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n\n List<String> result = new ArrayList<>();\n for (int i = 1; i < 100; i++) {\n if (i % 2 == 0) { // i가 짝수일때 분모가 i부터 줄어듦\n // 분모\n for (int j = i; j >= 1; j--) {\n StringBuilder sb = new StringBuilder();\n sb.append((i - j + 1)); // 분자\n sb.append(\"/\"); // 등호\n sb.append(j); // 분모\n\n result.add(sb.toString());\n }\n } else { // i가 홀수 일 때 분자가 i부터 줄어듦\n\n for (int j = i; j >= 1; j--) {\n StringBuilder sb = new StringBuilder();\n sb.append(j); // 분자\n sb.append(\"/\"); // 등호\n sb.append((i - j + 1)); // 분모\n\n result.add(sb.toString());\n }\n }\n\n }\n\n System.out.println(result.get(n - 1));\n }", "protected String decrisToi(){\r\n return \"\\t\"+this.nomVille+\" est une ville de \"+this.nomPays+ \", elle comporte : \"+this.nbreHabitants+\" habitant(s) => elle est donc de catégorie : \"+this.categorie;\r\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"------------------------\");\n\t\tSystem.out.println(\" 5의 배수 출력 프로그램 v1.0\");\n\t\tSystem.out.println(\"------------------------\");\n\t\tfor (int n = 1;n < 99; n++) {\n\t\t\tif ((n + 1) % 5 == 0) {\n\t\t\t\tSystem.out.print((n+1) + \", \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(100);\n\t}", "public void setTrangthaiChiTiet(int trangthaiChiTiet);", "private void devolver100() {\n cambio = cambio - 100;\n de100--;\n cambio100++;\n }", "public static String danU7(int num){\r\n\t\t\r\n\t\tString [] dani={\"Ponedjeljak\",\"Utorak\",\"Srijeda\",\"Cetvrtak\",\"Petak\", \"Subota\", \"Nedjelja\"}; \r\n\t\t\r\n\t\treturn dani[num];\r\n\t}" ]
[ "0.63205415", "0.6285839", "0.6159981", "0.60977787", "0.59859556", "0.59170336", "0.58793765", "0.58779925", "0.58337885", "0.58304965", "0.58174527", "0.5815976", "0.5776351", "0.5771775", "0.5747666", "0.5735759", "0.57354784", "0.5735311", "0.5727612", "0.57094765", "0.57040614", "0.57008195", "0.5697326", "0.5672157", "0.56638986", "0.5657034", "0.5650806", "0.56273293", "0.56151414", "0.56119645", "0.5604414", "0.55975485", "0.5581268", "0.557237", "0.55617535", "0.555742", "0.55456996", "0.5545311", "0.55356085", "0.55329853", "0.55276513", "0.55246615", "0.5514604", "0.5512787", "0.55058676", "0.54993176", "0.5498584", "0.5492349", "0.5484254", "0.5474727", "0.546538", "0.5465023", "0.54584485", "0.5458207", "0.5457915", "0.54552925", "0.54533875", "0.54533255", "0.54495937", "0.5445669", "0.5444177", "0.5443746", "0.5441961", "0.54401535", "0.54399735", "0.54388547", "0.5437761", "0.54376125", "0.5435225", "0.5432692", "0.54187113", "0.5414603", "0.54131806", "0.5405649", "0.5402255", "0.5400311", "0.5393127", "0.53898156", "0.53881294", "0.5386508", "0.5383586", "0.5381721", "0.5380572", "0.5380388", "0.53782195", "0.53772306", "0.53762734", "0.5376076", "0.53732926", "0.5372257", "0.5370394", "0.5368856", "0.53684896", "0.53660417", "0.5365808", "0.5365108", "0.5363729", "0.5362838", "0.5357694", "0.535121", "0.53473383" ]
0.0
-1
return CLOSED_OPTION or >=0
public static int askOptions(String title, String msg, Object[] options) { return askOptions(title, msg, options, options[0]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int askUserForSaveFile()\n {\n final JOptionPane optionPane = new JOptionPane(this.dialogExitMessage,\n JOptionPane.CLOSED_OPTION, JOptionPane.YES_NO_CANCEL_OPTION, this.dialogExitIcon);\n dialogFactory.showDialog(optionPane, this.dialogExitTitle, true);\n final int decision = getOptionFromPane(optionPane);\n return decision;\n }", "public boolean exit()\n {\n if(select == 0)\n {\n return true;\n }\n else\n return false;\n }", "private static boolean isDone0(Object result)\r\n/* 74: */ {\r\n/* 75:110 */ return (result != null) && (result != UNCANCELLABLE);\r\n/* 76: */ }", "private boolean isValidOption(int option){\n return (option >= 0) && (option < this.count());\n }", "private static int getUserOption()\n {\n\t// Reads the users input.\n\tBufferedReader optionReader = new BufferedReader(new InputStreamReader(System.in));\n\n\ttry\n\t {\n\t\treturn(Integer.parseInt(optionReader.readLine()));\n\t }\n\tcatch(Exception ex)\n\t {\n\t\treturn(-1);\n\t }\n }", "private int getOptionFromPane(final JOptionPane optionPane)\n {\n int result = JOptionPane.YES_OPTION;\n if (!JOptionPane.UNINITIALIZED_VALUE.equals(optionPane.getValue()))\n {\n result = (Integer) optionPane.getValue();\n }\n return result;\n }", "public boolean checkCancel() {\r\n\t\t\r\n\t\treturn cancel ;\r\n\t\t\t\t\r\n\t}", "public int getSelectionMode() {\n/* 2902 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public int getSaveFileOption()\n {\n int option = fc.showSaveDialog(this);\n while(option == JFileChooser.APPROVE_OPTION)\n {\n File target = fc.getSelectedFile();\n if(!target.exists()) return option;\n int subOpt = JOptionPane.showConfirmDialog(fc, new JLabel(target.getName()+\" exists. Overwrite?\"), \"File Exists\", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);\n if(subOpt == JOptionPane.YES_OPTION) return JFileChooser.APPROVE_OPTION;\n option = fc.showSaveDialog(this);\n }\n return option;\n }", "private static char isOption(String opt) {\r\n\r\n\t\tif(opt.matches(\"^-?\\\\d+$\"))\r\n\t\t\treturn 0; /* It's a number */\r\n\t\t\r\n\t\tif(opt.indexOf(\"--\") == 0) {\r\n\t\t\t/* It's a string flag */\r\n\t\t\tif(opt.length() == 2 || opt.charAt(2) == '=') {\r\n\t\t\t\t/* This string flag is not long enough. It's only made of '--'. It's invalid. */\r\n\t\t\t\treturn 4;\r\n\t\t\t}\r\n\t\t\treturn 2;\r\n\t\t} else if(opt.indexOf(\"-\") == 0) {\r\n\t\t\t/* It's a single character flag */\r\n\t\t\tif(opt.length() != 2) {\r\n\t\t\t\tif(opt.contains(\"=\") && opt.length() > 2) {\r\n\t\t\t\t\t/* It's a single character flag with an equals in front of it. It's VALID. */\r\n\t\t\t\t\treturn 1;\r\n\t\t\t\t}\r\n\t\t\t\t/* This single character flag is longer/shorter than 1 character. It's invalid. */\r\n\t\t\t\treturn 3;\r\n\t\t\t}\r\n\t\t\treturn 1;\r\n\t\t} else {\r\n\t\t\t/* It's a pure value */\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}", "private int correctOption(final String options, final int lastOption) {\n\n// Take int value by user thorough command line\n int option;\n\n// Count the iterations of while loop and show the options again to the user if user has chosen wrong option.\n int loop = 0;\n\n while (true) {\n\n System.out.println(options);\n option = scanner.nextInt();\n\n// If the input is in between the range specified, just break the loop and return the value\n if (option <= lastOption && option > 0)\n break;\n\n// If the attempts exceed close the resources and return -1 value which will close the program\n if (loop >= 2) {\n option = -1;\n break;\n } else\n System.err.println(\"\\nPlease select correct option\");\n\n loop++;\n }\n return option;\n }", "public boolean select(){\n\t\tif(PIN.getTriesRemaining() == 0){\n\t\t\treturn false;\t\n\t\t}else{\n\t\t\treturn true;\n\t\t}\n\t}", "public int getOption() {\n return option;\n }", "public int getOption() {\n return option;\n }", "private static int selectWinOption(int game_guesses, int OPTIMALGUESSCNT) {\n if (game_guesses == (OPTIMALGUESSCNT-2) || game_guesses == (OPTIMALGUESSCNT-1)) {\n System.out.println(\"You win! Phenomenal job!\");\n }\n else if (game_guesses < (OPTIMALGUESSCNT-2)) {\n System.out.println(\"You win! Nice job!\");\n }\n else if (game_guesses == (OPTIMALGUESSCNT) || game_guesses == (OPTIMALGUESSCNT+1)) {\n System.out.println(\"You win! You did alright.\");\n }\n else {\n System.out.println(\"You only won because it's impossible to lose.\");\n }\n return 0;\n }", "public boolean checkCancel() {\r\n\t\t\r\n\t\treturn cancel;\r\n\t\t\t\t\r\n\t}", "pb4server.CancelCureSoliderAskReq getCancelCureSoliderAskReq();", "public static boolean isOK() {return isOK;}", "OPTION createOPTION();", "int getOptLevelValue();", "private static char availabilityOrGoBack() {\n Scanner input = new Scanner(System.in);\n\n System.out.print(\"Enter (a)vailability, or \"\n\t + \"(b)ack to go back: \");\n char option = input.next().toLowerCase().charAt(0);\n\n return option;\n }", "@Override\n public boolean isValid(int timeout) throws SQLException\n {\n return !isClosed;\n }", "String getOption();", "private boolean promptCommand() {}", "boolean getIsOk();", "public boolean wasOkay();", "public Integer ValidateOption(String option){\n try {\n return Integer.parseInt(option.trim());\n }\n catch (NumberFormatException ex){\n return -1;\n }\n }", "public static boolean isOptionsDone() {\r\n\t\tboolean gameOptionsDone = true;\r\n\t\t\r\n\t\t//Check if all the text fields are not blank or have correct data.\r\n\t\ttry {\r\n\t\t\tInteger.parseInt(GameOptions.bagValue.getSelectedItem());\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\tgameOptionsDone = false;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tInteger.parseInt(GameOptions.nilValueTextField.getText());\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\tgameOptionsDone = false;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tInteger.parseInt(GameOptions.doubleNilValueTextField.getText());\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\tgameOptionsDone = false;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tInteger.parseInt(GameOptions.winScoreTextField.getText());\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\tgameOptionsDone = false;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tInteger.parseInt(GameOptions.loseScoreTextField.getText());\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\tgameOptionsDone = false;\r\n\t\t}\r\n\t\r\n\t\t//Show dialog box reminder.\r\n\t\tif (!gameOptionsDone) FrameUtils.showDialogBox(\"You have entered incorrect data.\");\r\n\t\t\r\n\t\t//Save the options.\r\n\t\tsaveOptions();\r\n\t\t\r\n\t\t//Convert the options to ints.\r\n\t\tconvertOptionsToNumbers();\r\n\t\t\r\n\t\treturn gameOptionsDone;\r\n\t}", "private void sendOption() throws IOException, InterruptedException {\n Object[] pValue = { WED_ZERO.lang.getInstruct().get(1)[4], WED_ZERO.lang.getInstruct().get(1)[5]};\n Object selectedValue = JOptionPane.showInputDialog(null,\n WED_ZERO.lang.getInstruct().get(1)[3], WED_ZERO.lang.getInstruct().get(1)[0], JOptionPane.INFORMATION_MESSAGE, null, pValue, pValue[0]);\n if(selectedValue==null)\n return;\n if(selectedValue.equals(pValue[0])) {\n this.processButtonState();\n if(Button.size()==0) {\n JOptionPane.showMessageDialog(Launch.frame, WED_ZERO.lang.getInstruct().get(1)[32]);\n return;\n }\n Object[] o2={WED_ZERO.lang.getInstruct().get(1)[7], WED_ZERO.lang.getInstruct().get(1)[8]};\n selectedValue = JOptionPane.showInputDialog(null,\n WED_ZERO.lang.getInstruct().get(1)[33], WED_ZERO.lang.getInstruct().get(1)[0], JOptionPane.INFORMATION_MESSAGE, null, o2, o2[0]);\n \n if(selectedValue==null) {\n this.sendOption();\n } else if(selectedValue.equals(o2[0])) {\n this.sendLAN();\n this.resetButton();\n } else if(selectedValue.equals(o2[1])) {\n this.compileFile();\n this.resetButton();\n }\n } else if(selectedValue.equals(pValue[1])) {\n Object[] o2={WED_ZERO.lang.getInstruct().get(1)[7], WED_ZERO.lang.getInstruct().get(1)[8]};\n selectedValue = JOptionPane.showInputDialog(null,\n WED_ZERO.lang.getInstruct().get(1)[6], WED_ZERO.lang.getInstruct().get(1)[0], JOptionPane.INFORMATION_MESSAGE, null, o2, o2[0]);\n if(selectedValue==null) {\n this.sendOption();\n } else if(selectedValue.equals(o2[0])) {\n this.recieveData();\n } else if(selectedValue.equals(o2[1])) {\n this.readFile();\n }\n }\n }", "public static int inputOptions() {\n\t\tSystem.out.println(PROMPT);\n\t\tint responseNum = -1;\n\t\tin = new Scanner(System.in);\n\t\t// Ensure that response is 0 or 1\n\t\twhile (in.hasNext()) {\n\t\t\tString rawResponse = in.nextLine();\n\t\t\tString response = rawResponse.trim();\n\t\t\tresponseNum = Integer.parseInt(response);\n\t\t\tif (responseNum == 0 || responseNum == 1) {\n\t\t\t\treturn responseNum;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(INVALID_ENTRY_MSG);\n\t\t\t}\n\t\t}\n\t\treturn responseNum;\n\t}", "private static int getUserOption () {\n\t\tBufferedReader myReader = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint input;\n\t\t\n\t\tdo {\n\t\t\tlistMainMenuOptions();\n\n\t\t\ttry {\n\t\t\t\tinput = Integer.parseInt(myReader.readLine());\n\n\t\t\t\tif ((input < 1) || (input>9)) {\n\t\t\t\t\tSystem.out.println(\"Please type in a number between 1-9 according to your choice\");\n\t\t\t\t}\n\n\t\t\t}catch (Exception e) {\n\t\t\t\tSystem.out.println(\"Character invalid. Please enter a number from 1-9 according to your choice\");\n\t\t\t\tinput = 0;\n\t\t\t}\n\t\t\t\n\t\t}while ((input < 1) || (input>9));\n\n\t\treturn input;\n\t\t\n\t}", "@Override\n public int cancelTransaction() {\n System.out.println(\"Please make a selection first\");\n return 0;\n }", "int promptOption(IMenu menu);", "public boolean operationWaiting(){\n\t\tif (var2Set) return true; else return false;\n\t}", "boolean isCloseRequested()\r\n\t{\r\n\t\treturn this.closeRequested;\r\n\t}", "private int exitOk() {\r\n\t\tthis.updateUnitStatus();\r\n\t\tthis.eventLogger.logLine(\" => DEVICE_END\");\r\n\t\treturn iDeviceStatus.OK | iDeviceStatus.DEVICE_END;\r\n\t}", "public boolean canClose(){\n return true;\n }", "@Override\r\n\tpublic boolean isCloseOnCompletion() throws SQLException {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean isCloseOnCompletion() throws SQLException {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean isCloseOnCompletion() throws SQLException {\n\t\treturn false;\r\n\t}", "public boolean close()\r\n\t{\r\n\t\tif(status == 'B')\r\n\t\t{\r\n\t\t\tthis.status = 'D';\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public static void checkPopenOptions(IRubyObject options) {\n checkOptions(options, UNSUPPORTED_POPEN_OPTIONS, \"unsupported popen option\");\n }", "public boolean checkAutoClose();", "pb4server.CancelMakeSoliderAskReq getCancelMakeSoliderAskReq();", "public abstract void isCancel(long ms);", "public boolean validChoice() {\n\t\treturn validChoice;\n\t}", "public boolean isOk() {\n return this.state == null || this.state.code == 0;\n }", "boolean getAccepted();", "protected abstract boolean isValidOption(String option);", "protected abstract boolean isCancelEnabled();", "public boolean isCancellable()\r\n/* 64: */ {\r\n/* 65:101 */ return this.result == null;\r\n/* 66: */ }", "int exitValue();", "private static int getUserChoice() {\n System.out.println(\"Please choose your operation: \");\n return intScanner.nextInt();\n }", "boolean hasExitStatus();", "@Override\n\tpublic boolean isCloseOnCompletion() throws SQLException {\n\t\treturn false;\n\t}", "private boolean isValidOption(int choice, int maxChoice)\n {\n return choice > 0 && choice <= maxChoice;\n }", "static boolean isPokemonsOption() {\n\t\t \n\t\t return current == pokemonsOption;\n\t }", "private static StandardOpenOption manageCustomNutrientDataOpenOption() throws GoBackException {\n while (true) {\n int input;\n System.out.println(\"-------------------------------------------\");\n System.out.println(\"Type in a number to choose whether:\");\n System.out.println(\"\\t1. Append .csv files to the output data file\");\n System.out.println(\"\\t2. Truncate the existing output data file\");\n System.out.println(\"\\t3. Go back\");\n\n try {\n Scanner scan = new Scanner(System.in);\n input = scan.nextInt();\n switch (input) {\n case 1:\n return StandardOpenOption.APPEND;\n case 2:\n return StandardOpenOption.TRUNCATE_EXISTING;\n case 3:\n throw new GoBackException();\n default:\n throw new InputMismatchException();\n }\n } catch (InputMismatchException | NumberFormatException ex) {\n System.out.println(\"Invalid input, try again.\");\n }\n }\n }", "public static int getMenuOption() {\n\t Scanner input = new Scanner(System.in);\t// Create a Scanner object\r\n\t \r\n\t boolean invalid = true; \r\n\t int choice = 0;\r\n\t while(invalid){\r\n\t System.out.println(\"Menu\\n1. Add\\n2. Subtract\\n3. Multiply\\n4. Divide\\n5. Clear\\n6. Quit\"); // Prints out menu of options\r\n\t System.out.print(\"What would you like to do? \");\r\n\t choice = input.nextInt();\r\n\t invalid = (choice >= 1 && choice <=6) ? false : true; // checks if choice is valid\r\n\t if (invalid){\r\n\t System.out.println(\"I'm sorry, \" + choice + \" wasn't one of the options\\n\");\r\n\t }\r\n\r\n\t }\r\n\t return choice;\r\n\t }", "private int timeout(java.io.PrintWriter r19) throws java.lang.Exception {\n /*\n r18 = this;\n r1 = r18\n java.lang.String r0 = \"force timeout jobs\"\n r1.checkPermission(r0)\n r0 = -1\n L_0x0008:\n java.lang.String r2 = r18.getNextOption()\n r3 = r2\n r4 = 0\n r5 = 1\n r6 = -1\n if (r2 == 0) goto L_0x0060\n int r2 = r3.hashCode()\n r7 = 1512(0x5e8, float:2.119E-42)\n if (r2 == r7) goto L_0x002a\n r4 = 1333469547(0x4f7b216b, float:4.2132713E9)\n if (r2 == r4) goto L_0x0020\n L_0x001f:\n goto L_0x0033\n L_0x0020:\n java.lang.String r2 = \"--user\"\n boolean r2 = r3.equals(r2)\n if (r2 == 0) goto L_0x001f\n r4 = r5\n goto L_0x0034\n L_0x002a:\n java.lang.String r2 = \"-u\"\n boolean r2 = r3.equals(r2)\n if (r2 == 0) goto L_0x001f\n goto L_0x0034\n L_0x0033:\n r4 = r6\n L_0x0034:\n if (r4 == 0) goto L_0x0054\n if (r4 == r5) goto L_0x0054\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n java.lang.String r4 = \"Error: unknown option '\"\n r2.append(r4)\n r2.append(r3)\n java.lang.String r4 = \"'\"\n r2.append(r4)\n java.lang.String r2 = r2.toString()\n r13 = r19\n r13.println(r2)\n return r6\n L_0x0054:\n r13 = r19\n java.lang.String r2 = r18.getNextArgRequired()\n int r0 = android.os.UserHandle.parseUserArg(r2)\n goto L_0x0008\n L_0x0060:\n r13 = r19\n r2 = -2\n if (r0 != r2) goto L_0x006b\n int r0 = android.app.ActivityManager.getCurrentUser()\n r2 = r0\n goto L_0x006c\n L_0x006b:\n r2 = r0\n L_0x006c:\n java.lang.String r14 = r18.getNextArg()\n java.lang.String r15 = r18.getNextArg()\n if (r15 == 0) goto L_0x007a\n int r6 = java.lang.Integer.parseInt(r15)\n L_0x007a:\n r12 = r6\n long r16 = android.os.Binder.clearCallingIdentity()\n com.android.server.job.JobSchedulerService r7 = r1.mInternal // Catch:{ all -> 0x0092 }\n if (r15 == 0) goto L_0x0085\n r11 = r5\n goto L_0x0086\n L_0x0085:\n r11 = r4\n L_0x0086:\n r8 = r19\n r9 = r14\n r10 = r2\n int r0 = r7.executeTimeoutCommand(r8, r9, r10, r11, r12) // Catch:{ all -> 0x0092 }\n android.os.Binder.restoreCallingIdentity(r16)\n return r0\n L_0x0092:\n r0 = move-exception\n android.os.Binder.restoreCallingIdentity(r16)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.server.job.JobSchedulerShellCommand.timeout(java.io.PrintWriter):int\");\n }", "private int cancelJob(java.io.PrintWriter r13) throws java.lang.Exception {\n /*\n r12 = this;\n java.lang.String r0 = \"cancel jobs\"\n r12.checkPermission(r0)\n r0 = 0\n L_0x0006:\n java.lang.String r1 = r12.getNextOption()\n r7 = r1\n r2 = 0\n r3 = 1\n r4 = -1\n if (r1 == 0) goto L_0x005a\n int r1 = r7.hashCode()\n r5 = 1512(0x5e8, float:2.119E-42)\n if (r1 == r5) goto L_0x0028\n r2 = 1333469547(0x4f7b216b, float:4.2132713E9)\n if (r1 == r2) goto L_0x001e\n L_0x001d:\n goto L_0x0031\n L_0x001e:\n java.lang.String r1 = \"--user\"\n boolean r1 = r7.equals(r1)\n if (r1 == 0) goto L_0x001d\n r2 = r3\n goto L_0x0032\n L_0x0028:\n java.lang.String r1 = \"-u\"\n boolean r1 = r7.equals(r1)\n if (r1 == 0) goto L_0x001d\n goto L_0x0032\n L_0x0031:\n r2 = r4\n L_0x0032:\n if (r2 == 0) goto L_0x0050\n if (r2 == r3) goto L_0x0050\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r2 = \"Error: unknown option '\"\n r1.append(r2)\n r1.append(r7)\n java.lang.String r2 = \"'\"\n r1.append(r2)\n java.lang.String r1 = r1.toString()\n r13.println(r1)\n return r4\n L_0x0050:\n java.lang.String r1 = r12.getNextArgRequired()\n int r0 = android.os.UserHandle.parseUserArg(r1)\n goto L_0x0006\n L_0x005a:\n if (r0 >= 0) goto L_0x0062\n java.lang.String r1 = \"Error: must specify a concrete user ID\"\n r13.println(r1)\n return r4\n L_0x0062:\n java.lang.String r8 = r12.getNextArg()\n java.lang.String r9 = r12.getNextArg()\n if (r9 == 0) goto L_0x0072\n int r1 = java.lang.Integer.parseInt(r9)\n r6 = r1\n goto L_0x0073\n L_0x0072:\n r6 = r4\n L_0x0073:\n long r10 = android.os.Binder.clearCallingIdentity()\n com.android.server.job.JobSchedulerService r1 = r12.mInternal // Catch:{ all -> 0x0089 }\n if (r9 == 0) goto L_0x007d\n r5 = r3\n goto L_0x007e\n L_0x007d:\n r5 = r2\n L_0x007e:\n r2 = r13\n r3 = r8\n r4 = r0\n int r1 = r1.executeCancelCommand(r2, r3, r4, r5, r6) // Catch:{ all -> 0x0089 }\n android.os.Binder.restoreCallingIdentity(r10)\n return r1\n L_0x0089:\n r1 = move-exception\n android.os.Binder.restoreCallingIdentity(r10)\n throw r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.server.job.JobSchedulerShellCommand.cancelJob(java.io.PrintWriter):int\");\n }", "public int checkForAlert() {\n return 0;\n }", "public int openStartUpMenu()\n {\n int option;\n startMenu.drawMainMenu();\n option = input.getIntInput();\n return option;\n }", "public static int askPrintOption() {\n\t\tSystem.out.println(\"Please select an option:\");\n\t\tSystem.out.println(\"(1) Print one table's availability status\");\n\t\tSystem.out.println(\"(2) Print all tables' availability status\");\n\t\tint choice = ExceptionHandler.scanIntRange(1, 2);\n\t\treturn choice;\n\t}", "public static int choicedialog() {\r\n List<String> choices = new ArrayList<>();\r\n choices.add(\"1a\");\r\n choices.add(\"1b\");\r\n choices.add(\"2\");\r\n choices.add(\"2u\");\r\n choices.add(\"3\");\r\n choices.add(\"3u\");\r\n choices.add(\"4\");\r\n choices.add(\"5\");\r\n\r\n ChoiceDialog<String> dialog = new ChoiceDialog<>(\"SET ZONE HERE\", choices);\r\n dialog.setTitle(\"Zone Selector\");\r\n dialog.setHeaderText(null);\r\n dialog.setContentText(\"Select Zone:\");\r\n \r\n Optional<String> result = dialog.showAndWait();\r\n if (result.isPresent()){\r\n if(result.get() == \"1a\") return 1;\r\n else if (result.get() == \"1b\") return 2;\r\n else if (result.get() == \"2\") return 3;\r\n else if (result.get() == \"2u\") return 4;\r\n else if (result.get() == \"3\") return 5;\r\n else if (result.get() == \"3u\") return 6;\r\n else if (result.get() == \"4\") return 7;\r\n else if (result.get() == \"5\") return 8;\r\n else return 0;\r\n } else return 0;\r\n }", "boolean accepts(String optionName);", "private static int HQmenu() {\n\t\tlogger.info(\"Entering HQmenu method -->\");\n\t\tint choice = 0;\n\t\tboolean ok;\n\t\tdo {\n\t\t\tok = true;\n\t\t\tSystem.out.println(\"Money Service HQ\");\n\t\t\tSystem.out.println(\"----------------\");\n\t\t\tSystem.out.println(\"What would you like to do?\");\n\t\t\tSystem.out.println(\"1 - Register a new exchange office\");\n\t\t\tSystem.out.println(\"2 - Get statistics for registered offices\");\n\t\t\tSystem.out.println(\"0 - Exit the HQ application\");\n\n\t\t\tSystem.out.print(\"Enter your choice: \");\n\t\t\tString userChoice = CLIHelper.input.next();\n\n\t\t\ttry {\n\t\t\t\tchoice = Integer.parseInt(userChoice);\n\t\t\t}catch(NumberFormatException e) {\n\t\t\t\tlogger.log(Level.WARNING, \"choice: \" + choice + \" made exception! \" + e);\n\t\t\t\tSystem.out.format(\"Your choice %s is not accepted!\\n\", userChoice);\n\t\t\t\tok = false;\n\t\t\t}\n\t\t}while(!ok);\n\n\t\tlogger.info(\"Exiting HQmenu method <--\");\n\t\treturn choice;\n\t}", "public boolean isCancelled()\r\n/* 54: */ {\r\n/* 55: 92 */ return isCancelled0(this.result);\r\n/* 56: */ }", "public boolean checkClosed();", "@Override\n public int getExitCode() {\n return 1;\n }", "protected boolean isFinished()\n\t{\n\t\treturn !Robot.oi.respoolWinch.get();\n\t}", "public boolean select() {\n\t\tmSecureChannel = GPSystem.getSecureChannel();\r\n\t\treturn true;\r\n\t}", "private int insertExitMenuAnswer()\n {\n boolean valid = false;\n String choice = \"\";\n Scanner content = new Scanner(System.in);\n \n while (!valid)\n {\n menu.exitOptions();\n choice = content.nextLine().trim();\n valid = validation.integerValidation(choice, 1, 3);\n }\n \n int ans = Integer.parseInt(choice);\n return ans;\n }", "public int askSecondary();", "public int promptSeatSelect()\n\t{\n\t\t\t\t\n\t\tString tempSeatSelection = JOptionPane.showInputDialog(\"Please type 1 for a window seat or 2 for isle seat: \");\n\t\t\n\t\t//handles a cancel\n\t\tif(tempSeatSelection == null)\n\t\t{\n\t\t\tpromptExit();\n\t\t}\n\t\t\n\t\tif(!validate(tempSeatSelection))\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, \"You have not made a valid entry\");\n\t\t\tpromptClassSelect();\n\t\t}\n\t\t\n\t\tint seatSelection = Integer.parseInt(tempSeatSelection);\n\t\t \n\t\tif(seatSelection != 1 && seatSelection != 2)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, \"You have not made a valid entry\");\n\t\t\tpromptSeatSelect();\n\t\t}\n\t\t\n\t\treturn seatSelection;\n\t\t\n\t}", "int getWinCondition();", "pb4server.KillPrisonAskReq getKillPrisonAskReq();", "public static int getMenuOption() {\n Scanner input = new Scanner(System.in);\n\n menuOption = input.next().toLowerCase().charAt(0);\n\n while (menuOption != 'a' && menuOption != 'r' && menuOption != 'f' && menuOption != 'i' && menuOption != 'n' && menuOption != 'q') {\n System.out.print(\"Enter a valid choice: \");\n menuOption = input.next().toLowerCase().charAt(0);\n }\n\n if (menuOption == 'a') {\n return 1;\n } else if (menuOption == 'r') {\n return 2;\n } else if (menuOption == 'f') {\n return 3;\n } else if (menuOption == 'i') {\n return 4;\n } else if (menuOption == 'n') {\n return 5;\n } else {\n return 6;\n }\n }", "@Override\r\n\tpublic boolean hasNPCOption1(NPC npc) {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean hasNPCOption1(NPC npc) {\n\t\treturn false;\r\n\t}", "boolean isCancelled();", "public boolean ifSea() {\n return choiceSelect == SEA_CHOICE;\n }", "protected boolean reallyCancel() throws Exception { return true; }", "public static int getUserOption(){\n\n String numberAsString;\n int userOption;\n java.util.Scanner scanner = new java.util.Scanner(System.in);\n\n listMenuOptions();\n numberAsString = scanner.nextLine();\n userOption = Integer.parseInt(numberAsString); // Convert string to a integer\n while ( ( userOption < 0 )|| (userOption > 4 ) ) { // check if input is valid\n System.out.println(\"You did not enter a valid option. Try again.\");\n listMenuOptions();\n numberAsString = scanner.nextLine();\n userOption = Integer.parseInt(numberAsString); // Convert string to a integer\n }\n return userOption;\n }", "public int explicitWait(){\n\t\tString time_out = null;\n\t\ttry {\n\t\t\ttime_out = new AutomationConfigurator().getTimeOut();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tif (time_out == null){\n\t\t\treturn default_timeout;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn Integer.parseInt(time_out);\n\t\t}\n\t}", "private Integer promptPositiveInteger(String message) {\n\t\tboolean done = false;\n\t\tint result = -1;\n\t\twhile (!done) {\n\t\t\tdone = true;\n\t\t\tString s = JOptionPane.showInputDialog(\n\t\t\t\t\t_frame,\n\t\t\t\t\tmessage,\n\t\t\t\t\t_frame.getTitle(),\n\t\t\t\t\tJOptionPane.OK_CANCEL_OPTION);\n\t\t\tif (s == null) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tresult = Integer.parseInt(s);\n\t\t\t\tif (result < 0) {\n\t\t\t\t\tdone = false;\n\t\t\t\t}\n\t\t\t} catch (NumberFormatException ex) {\n\t\t\t\tdone = false;\n\t\t\t}\n\n\t\t\tif (!done) {\n\t\t\t\tJOptionPane.showMessageDialog(\n\t\t\t\t\t\t_frame,\n\t\t\t\t\t\t\"Invalid Input!\",\n\t\t\t\t\t\t_frame.getTitle(),\n\t\t\t\t\t\tJOptionPane.OK_OPTION);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "protected boolean colaVacia() {\r\n return ini == -1;\r\n }", "void outOfTime() {\r\n\r\n disableOptionButtons();\r\n }", "int getExitStatus();", "public String getOptInStatus() {\n return optInStatus;\n }", "public boolean select()\n {\n if ( pin.getTriesRemaining() == 0 )\n return false;\n return true;\n }", "public int promptClassSelect()\n\t{\n\t\t\t\t\n\t\tString tempClassSelection = JOptionPane.showInputDialog(\"Please type 1 for first class or 2 for economy: \");\n\t\t\t\n\t\t//handles a cancel\t\n\t\tif(tempClassSelection == null)\n\t\t{\n\t\t\tpromptExit();\n\t\t}\n\t\t\t\t\n\t\tif(!validate(tempClassSelection) || tempClassSelection.isEmpty()) \n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, \"You have not made a valid entry\");\n\t\t\tstart();\n\t\t}\n\t\t\n\t\tint classSelection = Integer.parseInt(tempClassSelection);\n\t\t\n\t\tif(classSelection != 1 && classSelection != 2)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, \"You have not made a valid entry\");\n\t\t\tstart();\n\t\t}\n\t\n\t\treturn classSelection;\n\t\t\n\t}", "public boolean mo8001c() {\n return this.f889a != null && this.f889a.cancel(true);\n }", "public abstract boolean isExit();", "public boolean isCancelSupported();", "public static int quit() {\r\n int quit = JOptionPane.showConfirmDialog(null, \"Exit Program? \", null, JOptionPane.YES_NO_OPTION);\r\n if (quit != 0) {//Confirms Program Termination\r\n //do nothing \r\n } else\r\n System.exit(quit);\r\n return quit;\r\n }", "public boolean hasUserCancelled() {\n return myIsDialogCancelled;\n }", "public Integer getIsSuccessInSolving()\n/* */ {\n/* 207 */ return this.isSuccessInSolving;\n/* */ }", "int dialogQuery(String msg, int defaultValue)\n { /* dialogQuery */\n this.sleepFlag= true;\t /* flag for waiting */\n this.data= Integer.toString(defaultValue); /* save default */\n \n updatePopupDialog(msg, Integer.toString(defaultValue), null, 0); /* do it */\n \n return(Util.cvs2i(this.data)); /* return int */\n }", "public java.lang.Boolean getOkForPickup() {\r\n return okForPickup;\r\n }", "public boolean isOkay() {\n return okay;\n }" ]
[ "0.59100187", "0.5854661", "0.5785515", "0.57512736", "0.56307584", "0.5588493", "0.5571069", "0.55603534", "0.5552472", "0.55220205", "0.54979986", "0.54790306", "0.54753834", "0.54753834", "0.5462252", "0.5449001", "0.54278857", "0.5416323", "0.54038954", "0.5389453", "0.53794014", "0.5362003", "0.5361727", "0.5349057", "0.5325475", "0.5323305", "0.53076845", "0.53019243", "0.5294921", "0.528589", "0.5282818", "0.5260709", "0.52553356", "0.5240495", "0.5238847", "0.52366483", "0.52337235", "0.5232018", "0.5232018", "0.5232018", "0.5220858", "0.52197844", "0.5219315", "0.52182436", "0.5211355", "0.52092546", "0.5200382", "0.5199355", "0.5199245", "0.51963335", "0.5188195", "0.5173872", "0.51643306", "0.5163612", "0.5161809", "0.5149198", "0.5148085", "0.5146886", "0.5140229", "0.5137729", "0.51265246", "0.51240474", "0.5123774", "0.5122952", "0.5107053", "0.51042336", "0.50907165", "0.5084572", "0.50820476", "0.5072443", "0.5069564", "0.50673896", "0.505589", "0.5050473", "0.5049057", "0.50486743", "0.50402683", "0.5039817", "0.50343615", "0.50343615", "0.50341403", "0.5032019", "0.5019944", "0.50183356", "0.5014127", "0.5008193", "0.50042754", "0.50039065", "0.50029993", "0.5001917", "0.49996313", "0.49965852", "0.49938452", "0.4991401", "0.49821755", "0.4976588", "0.49706608", "0.49640438", "0.49552965", "0.49526533", "0.49374267" ]
0.0
-1
return CLOSED_OPTION or >=0
public static int askOptions(String title, String msg, Object[] options, Object defOpt) { return JOptionPane.showOptionDialog(ZoeosFrame.getInstance(), msg, title, JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, defOpt); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int askUserForSaveFile()\n {\n final JOptionPane optionPane = new JOptionPane(this.dialogExitMessage,\n JOptionPane.CLOSED_OPTION, JOptionPane.YES_NO_CANCEL_OPTION, this.dialogExitIcon);\n dialogFactory.showDialog(optionPane, this.dialogExitTitle, true);\n final int decision = getOptionFromPane(optionPane);\n return decision;\n }", "public boolean exit()\n {\n if(select == 0)\n {\n return true;\n }\n else\n return false;\n }", "private static boolean isDone0(Object result)\r\n/* 74: */ {\r\n/* 75:110 */ return (result != null) && (result != UNCANCELLABLE);\r\n/* 76: */ }", "private boolean isValidOption(int option){\n return (option >= 0) && (option < this.count());\n }", "private static int getUserOption()\n {\n\t// Reads the users input.\n\tBufferedReader optionReader = new BufferedReader(new InputStreamReader(System.in));\n\n\ttry\n\t {\n\t\treturn(Integer.parseInt(optionReader.readLine()));\n\t }\n\tcatch(Exception ex)\n\t {\n\t\treturn(-1);\n\t }\n }", "private int getOptionFromPane(final JOptionPane optionPane)\n {\n int result = JOptionPane.YES_OPTION;\n if (!JOptionPane.UNINITIALIZED_VALUE.equals(optionPane.getValue()))\n {\n result = (Integer) optionPane.getValue();\n }\n return result;\n }", "public boolean checkCancel() {\r\n\t\t\r\n\t\treturn cancel ;\r\n\t\t\t\t\r\n\t}", "public int getSelectionMode() {\n/* 2902 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public int getSaveFileOption()\n {\n int option = fc.showSaveDialog(this);\n while(option == JFileChooser.APPROVE_OPTION)\n {\n File target = fc.getSelectedFile();\n if(!target.exists()) return option;\n int subOpt = JOptionPane.showConfirmDialog(fc, new JLabel(target.getName()+\" exists. Overwrite?\"), \"File Exists\", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);\n if(subOpt == JOptionPane.YES_OPTION) return JFileChooser.APPROVE_OPTION;\n option = fc.showSaveDialog(this);\n }\n return option;\n }", "private static char isOption(String opt) {\r\n\r\n\t\tif(opt.matches(\"^-?\\\\d+$\"))\r\n\t\t\treturn 0; /* It's a number */\r\n\t\t\r\n\t\tif(opt.indexOf(\"--\") == 0) {\r\n\t\t\t/* It's a string flag */\r\n\t\t\tif(opt.length() == 2 || opt.charAt(2) == '=') {\r\n\t\t\t\t/* This string flag is not long enough. It's only made of '--'. It's invalid. */\r\n\t\t\t\treturn 4;\r\n\t\t\t}\r\n\t\t\treturn 2;\r\n\t\t} else if(opt.indexOf(\"-\") == 0) {\r\n\t\t\t/* It's a single character flag */\r\n\t\t\tif(opt.length() != 2) {\r\n\t\t\t\tif(opt.contains(\"=\") && opt.length() > 2) {\r\n\t\t\t\t\t/* It's a single character flag with an equals in front of it. It's VALID. */\r\n\t\t\t\t\treturn 1;\r\n\t\t\t\t}\r\n\t\t\t\t/* This single character flag is longer/shorter than 1 character. It's invalid. */\r\n\t\t\t\treturn 3;\r\n\t\t\t}\r\n\t\t\treturn 1;\r\n\t\t} else {\r\n\t\t\t/* It's a pure value */\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}", "private int correctOption(final String options, final int lastOption) {\n\n// Take int value by user thorough command line\n int option;\n\n// Count the iterations of while loop and show the options again to the user if user has chosen wrong option.\n int loop = 0;\n\n while (true) {\n\n System.out.println(options);\n option = scanner.nextInt();\n\n// If the input is in between the range specified, just break the loop and return the value\n if (option <= lastOption && option > 0)\n break;\n\n// If the attempts exceed close the resources and return -1 value which will close the program\n if (loop >= 2) {\n option = -1;\n break;\n } else\n System.err.println(\"\\nPlease select correct option\");\n\n loop++;\n }\n return option;\n }", "public boolean select(){\n\t\tif(PIN.getTriesRemaining() == 0){\n\t\t\treturn false;\t\n\t\t}else{\n\t\t\treturn true;\n\t\t}\n\t}", "public int getOption() {\n return option;\n }", "public int getOption() {\n return option;\n }", "private static int selectWinOption(int game_guesses, int OPTIMALGUESSCNT) {\n if (game_guesses == (OPTIMALGUESSCNT-2) || game_guesses == (OPTIMALGUESSCNT-1)) {\n System.out.println(\"You win! Phenomenal job!\");\n }\n else if (game_guesses < (OPTIMALGUESSCNT-2)) {\n System.out.println(\"You win! Nice job!\");\n }\n else if (game_guesses == (OPTIMALGUESSCNT) || game_guesses == (OPTIMALGUESSCNT+1)) {\n System.out.println(\"You win! You did alright.\");\n }\n else {\n System.out.println(\"You only won because it's impossible to lose.\");\n }\n return 0;\n }", "public boolean checkCancel() {\r\n\t\t\r\n\t\treturn cancel;\r\n\t\t\t\t\r\n\t}", "pb4server.CancelCureSoliderAskReq getCancelCureSoliderAskReq();", "public static boolean isOK() {return isOK;}", "OPTION createOPTION();", "int getOptLevelValue();", "private static char availabilityOrGoBack() {\n Scanner input = new Scanner(System.in);\n\n System.out.print(\"Enter (a)vailability, or \"\n\t + \"(b)ack to go back: \");\n char option = input.next().toLowerCase().charAt(0);\n\n return option;\n }", "@Override\n public boolean isValid(int timeout) throws SQLException\n {\n return !isClosed;\n }", "String getOption();", "private boolean promptCommand() {}", "boolean getIsOk();", "public boolean wasOkay();", "public Integer ValidateOption(String option){\n try {\n return Integer.parseInt(option.trim());\n }\n catch (NumberFormatException ex){\n return -1;\n }\n }", "public static boolean isOptionsDone() {\r\n\t\tboolean gameOptionsDone = true;\r\n\t\t\r\n\t\t//Check if all the text fields are not blank or have correct data.\r\n\t\ttry {\r\n\t\t\tInteger.parseInt(GameOptions.bagValue.getSelectedItem());\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\tgameOptionsDone = false;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tInteger.parseInt(GameOptions.nilValueTextField.getText());\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\tgameOptionsDone = false;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tInteger.parseInt(GameOptions.doubleNilValueTextField.getText());\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\tgameOptionsDone = false;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tInteger.parseInt(GameOptions.winScoreTextField.getText());\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\tgameOptionsDone = false;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tInteger.parseInt(GameOptions.loseScoreTextField.getText());\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\tgameOptionsDone = false;\r\n\t\t}\r\n\t\r\n\t\t//Show dialog box reminder.\r\n\t\tif (!gameOptionsDone) FrameUtils.showDialogBox(\"You have entered incorrect data.\");\r\n\t\t\r\n\t\t//Save the options.\r\n\t\tsaveOptions();\r\n\t\t\r\n\t\t//Convert the options to ints.\r\n\t\tconvertOptionsToNumbers();\r\n\t\t\r\n\t\treturn gameOptionsDone;\r\n\t}", "private void sendOption() throws IOException, InterruptedException {\n Object[] pValue = { WED_ZERO.lang.getInstruct().get(1)[4], WED_ZERO.lang.getInstruct().get(1)[5]};\n Object selectedValue = JOptionPane.showInputDialog(null,\n WED_ZERO.lang.getInstruct().get(1)[3], WED_ZERO.lang.getInstruct().get(1)[0], JOptionPane.INFORMATION_MESSAGE, null, pValue, pValue[0]);\n if(selectedValue==null)\n return;\n if(selectedValue.equals(pValue[0])) {\n this.processButtonState();\n if(Button.size()==0) {\n JOptionPane.showMessageDialog(Launch.frame, WED_ZERO.lang.getInstruct().get(1)[32]);\n return;\n }\n Object[] o2={WED_ZERO.lang.getInstruct().get(1)[7], WED_ZERO.lang.getInstruct().get(1)[8]};\n selectedValue = JOptionPane.showInputDialog(null,\n WED_ZERO.lang.getInstruct().get(1)[33], WED_ZERO.lang.getInstruct().get(1)[0], JOptionPane.INFORMATION_MESSAGE, null, o2, o2[0]);\n \n if(selectedValue==null) {\n this.sendOption();\n } else if(selectedValue.equals(o2[0])) {\n this.sendLAN();\n this.resetButton();\n } else if(selectedValue.equals(o2[1])) {\n this.compileFile();\n this.resetButton();\n }\n } else if(selectedValue.equals(pValue[1])) {\n Object[] o2={WED_ZERO.lang.getInstruct().get(1)[7], WED_ZERO.lang.getInstruct().get(1)[8]};\n selectedValue = JOptionPane.showInputDialog(null,\n WED_ZERO.lang.getInstruct().get(1)[6], WED_ZERO.lang.getInstruct().get(1)[0], JOptionPane.INFORMATION_MESSAGE, null, o2, o2[0]);\n if(selectedValue==null) {\n this.sendOption();\n } else if(selectedValue.equals(o2[0])) {\n this.recieveData();\n } else if(selectedValue.equals(o2[1])) {\n this.readFile();\n }\n }\n }", "public static int inputOptions() {\n\t\tSystem.out.println(PROMPT);\n\t\tint responseNum = -1;\n\t\tin = new Scanner(System.in);\n\t\t// Ensure that response is 0 or 1\n\t\twhile (in.hasNext()) {\n\t\t\tString rawResponse = in.nextLine();\n\t\t\tString response = rawResponse.trim();\n\t\t\tresponseNum = Integer.parseInt(response);\n\t\t\tif (responseNum == 0 || responseNum == 1) {\n\t\t\t\treturn responseNum;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(INVALID_ENTRY_MSG);\n\t\t\t}\n\t\t}\n\t\treturn responseNum;\n\t}", "private static int getUserOption () {\n\t\tBufferedReader myReader = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint input;\n\t\t\n\t\tdo {\n\t\t\tlistMainMenuOptions();\n\n\t\t\ttry {\n\t\t\t\tinput = Integer.parseInt(myReader.readLine());\n\n\t\t\t\tif ((input < 1) || (input>9)) {\n\t\t\t\t\tSystem.out.println(\"Please type in a number between 1-9 according to your choice\");\n\t\t\t\t}\n\n\t\t\t}catch (Exception e) {\n\t\t\t\tSystem.out.println(\"Character invalid. Please enter a number from 1-9 according to your choice\");\n\t\t\t\tinput = 0;\n\t\t\t}\n\t\t\t\n\t\t}while ((input < 1) || (input>9));\n\n\t\treturn input;\n\t\t\n\t}", "@Override\n public int cancelTransaction() {\n System.out.println(\"Please make a selection first\");\n return 0;\n }", "int promptOption(IMenu menu);", "public boolean operationWaiting(){\n\t\tif (var2Set) return true; else return false;\n\t}", "boolean isCloseRequested()\r\n\t{\r\n\t\treturn this.closeRequested;\r\n\t}", "private int exitOk() {\r\n\t\tthis.updateUnitStatus();\r\n\t\tthis.eventLogger.logLine(\" => DEVICE_END\");\r\n\t\treturn iDeviceStatus.OK | iDeviceStatus.DEVICE_END;\r\n\t}", "public boolean canClose(){\n return true;\n }", "@Override\r\n\tpublic boolean isCloseOnCompletion() throws SQLException {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean isCloseOnCompletion() throws SQLException {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean isCloseOnCompletion() throws SQLException {\n\t\treturn false;\r\n\t}", "public boolean close()\r\n\t{\r\n\t\tif(status == 'B')\r\n\t\t{\r\n\t\t\tthis.status = 'D';\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public static void checkPopenOptions(IRubyObject options) {\n checkOptions(options, UNSUPPORTED_POPEN_OPTIONS, \"unsupported popen option\");\n }", "public boolean checkAutoClose();", "pb4server.CancelMakeSoliderAskReq getCancelMakeSoliderAskReq();", "public abstract void isCancel(long ms);", "public boolean validChoice() {\n\t\treturn validChoice;\n\t}", "public boolean isOk() {\n return this.state == null || this.state.code == 0;\n }", "boolean getAccepted();", "protected abstract boolean isValidOption(String option);", "protected abstract boolean isCancelEnabled();", "public boolean isCancellable()\r\n/* 64: */ {\r\n/* 65:101 */ return this.result == null;\r\n/* 66: */ }", "int exitValue();", "private static int getUserChoice() {\n System.out.println(\"Please choose your operation: \");\n return intScanner.nextInt();\n }", "boolean hasExitStatus();", "@Override\n\tpublic boolean isCloseOnCompletion() throws SQLException {\n\t\treturn false;\n\t}", "private boolean isValidOption(int choice, int maxChoice)\n {\n return choice > 0 && choice <= maxChoice;\n }", "static boolean isPokemonsOption() {\n\t\t \n\t\t return current == pokemonsOption;\n\t }", "private static StandardOpenOption manageCustomNutrientDataOpenOption() throws GoBackException {\n while (true) {\n int input;\n System.out.println(\"-------------------------------------------\");\n System.out.println(\"Type in a number to choose whether:\");\n System.out.println(\"\\t1. Append .csv files to the output data file\");\n System.out.println(\"\\t2. Truncate the existing output data file\");\n System.out.println(\"\\t3. Go back\");\n\n try {\n Scanner scan = new Scanner(System.in);\n input = scan.nextInt();\n switch (input) {\n case 1:\n return StandardOpenOption.APPEND;\n case 2:\n return StandardOpenOption.TRUNCATE_EXISTING;\n case 3:\n throw new GoBackException();\n default:\n throw new InputMismatchException();\n }\n } catch (InputMismatchException | NumberFormatException ex) {\n System.out.println(\"Invalid input, try again.\");\n }\n }\n }", "public static int getMenuOption() {\n\t Scanner input = new Scanner(System.in);\t// Create a Scanner object\r\n\t \r\n\t boolean invalid = true; \r\n\t int choice = 0;\r\n\t while(invalid){\r\n\t System.out.println(\"Menu\\n1. Add\\n2. Subtract\\n3. Multiply\\n4. Divide\\n5. Clear\\n6. Quit\"); // Prints out menu of options\r\n\t System.out.print(\"What would you like to do? \");\r\n\t choice = input.nextInt();\r\n\t invalid = (choice >= 1 && choice <=6) ? false : true; // checks if choice is valid\r\n\t if (invalid){\r\n\t System.out.println(\"I'm sorry, \" + choice + \" wasn't one of the options\\n\");\r\n\t }\r\n\r\n\t }\r\n\t return choice;\r\n\t }", "private int timeout(java.io.PrintWriter r19) throws java.lang.Exception {\n /*\n r18 = this;\n r1 = r18\n java.lang.String r0 = \"force timeout jobs\"\n r1.checkPermission(r0)\n r0 = -1\n L_0x0008:\n java.lang.String r2 = r18.getNextOption()\n r3 = r2\n r4 = 0\n r5 = 1\n r6 = -1\n if (r2 == 0) goto L_0x0060\n int r2 = r3.hashCode()\n r7 = 1512(0x5e8, float:2.119E-42)\n if (r2 == r7) goto L_0x002a\n r4 = 1333469547(0x4f7b216b, float:4.2132713E9)\n if (r2 == r4) goto L_0x0020\n L_0x001f:\n goto L_0x0033\n L_0x0020:\n java.lang.String r2 = \"--user\"\n boolean r2 = r3.equals(r2)\n if (r2 == 0) goto L_0x001f\n r4 = r5\n goto L_0x0034\n L_0x002a:\n java.lang.String r2 = \"-u\"\n boolean r2 = r3.equals(r2)\n if (r2 == 0) goto L_0x001f\n goto L_0x0034\n L_0x0033:\n r4 = r6\n L_0x0034:\n if (r4 == 0) goto L_0x0054\n if (r4 == r5) goto L_0x0054\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n java.lang.String r4 = \"Error: unknown option '\"\n r2.append(r4)\n r2.append(r3)\n java.lang.String r4 = \"'\"\n r2.append(r4)\n java.lang.String r2 = r2.toString()\n r13 = r19\n r13.println(r2)\n return r6\n L_0x0054:\n r13 = r19\n java.lang.String r2 = r18.getNextArgRequired()\n int r0 = android.os.UserHandle.parseUserArg(r2)\n goto L_0x0008\n L_0x0060:\n r13 = r19\n r2 = -2\n if (r0 != r2) goto L_0x006b\n int r0 = android.app.ActivityManager.getCurrentUser()\n r2 = r0\n goto L_0x006c\n L_0x006b:\n r2 = r0\n L_0x006c:\n java.lang.String r14 = r18.getNextArg()\n java.lang.String r15 = r18.getNextArg()\n if (r15 == 0) goto L_0x007a\n int r6 = java.lang.Integer.parseInt(r15)\n L_0x007a:\n r12 = r6\n long r16 = android.os.Binder.clearCallingIdentity()\n com.android.server.job.JobSchedulerService r7 = r1.mInternal // Catch:{ all -> 0x0092 }\n if (r15 == 0) goto L_0x0085\n r11 = r5\n goto L_0x0086\n L_0x0085:\n r11 = r4\n L_0x0086:\n r8 = r19\n r9 = r14\n r10 = r2\n int r0 = r7.executeTimeoutCommand(r8, r9, r10, r11, r12) // Catch:{ all -> 0x0092 }\n android.os.Binder.restoreCallingIdentity(r16)\n return r0\n L_0x0092:\n r0 = move-exception\n android.os.Binder.restoreCallingIdentity(r16)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.server.job.JobSchedulerShellCommand.timeout(java.io.PrintWriter):int\");\n }", "private int cancelJob(java.io.PrintWriter r13) throws java.lang.Exception {\n /*\n r12 = this;\n java.lang.String r0 = \"cancel jobs\"\n r12.checkPermission(r0)\n r0 = 0\n L_0x0006:\n java.lang.String r1 = r12.getNextOption()\n r7 = r1\n r2 = 0\n r3 = 1\n r4 = -1\n if (r1 == 0) goto L_0x005a\n int r1 = r7.hashCode()\n r5 = 1512(0x5e8, float:2.119E-42)\n if (r1 == r5) goto L_0x0028\n r2 = 1333469547(0x4f7b216b, float:4.2132713E9)\n if (r1 == r2) goto L_0x001e\n L_0x001d:\n goto L_0x0031\n L_0x001e:\n java.lang.String r1 = \"--user\"\n boolean r1 = r7.equals(r1)\n if (r1 == 0) goto L_0x001d\n r2 = r3\n goto L_0x0032\n L_0x0028:\n java.lang.String r1 = \"-u\"\n boolean r1 = r7.equals(r1)\n if (r1 == 0) goto L_0x001d\n goto L_0x0032\n L_0x0031:\n r2 = r4\n L_0x0032:\n if (r2 == 0) goto L_0x0050\n if (r2 == r3) goto L_0x0050\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r2 = \"Error: unknown option '\"\n r1.append(r2)\n r1.append(r7)\n java.lang.String r2 = \"'\"\n r1.append(r2)\n java.lang.String r1 = r1.toString()\n r13.println(r1)\n return r4\n L_0x0050:\n java.lang.String r1 = r12.getNextArgRequired()\n int r0 = android.os.UserHandle.parseUserArg(r1)\n goto L_0x0006\n L_0x005a:\n if (r0 >= 0) goto L_0x0062\n java.lang.String r1 = \"Error: must specify a concrete user ID\"\n r13.println(r1)\n return r4\n L_0x0062:\n java.lang.String r8 = r12.getNextArg()\n java.lang.String r9 = r12.getNextArg()\n if (r9 == 0) goto L_0x0072\n int r1 = java.lang.Integer.parseInt(r9)\n r6 = r1\n goto L_0x0073\n L_0x0072:\n r6 = r4\n L_0x0073:\n long r10 = android.os.Binder.clearCallingIdentity()\n com.android.server.job.JobSchedulerService r1 = r12.mInternal // Catch:{ all -> 0x0089 }\n if (r9 == 0) goto L_0x007d\n r5 = r3\n goto L_0x007e\n L_0x007d:\n r5 = r2\n L_0x007e:\n r2 = r13\n r3 = r8\n r4 = r0\n int r1 = r1.executeCancelCommand(r2, r3, r4, r5, r6) // Catch:{ all -> 0x0089 }\n android.os.Binder.restoreCallingIdentity(r10)\n return r1\n L_0x0089:\n r1 = move-exception\n android.os.Binder.restoreCallingIdentity(r10)\n throw r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.server.job.JobSchedulerShellCommand.cancelJob(java.io.PrintWriter):int\");\n }", "public int checkForAlert() {\n return 0;\n }", "public int openStartUpMenu()\n {\n int option;\n startMenu.drawMainMenu();\n option = input.getIntInput();\n return option;\n }", "public static int askPrintOption() {\n\t\tSystem.out.println(\"Please select an option:\");\n\t\tSystem.out.println(\"(1) Print one table's availability status\");\n\t\tSystem.out.println(\"(2) Print all tables' availability status\");\n\t\tint choice = ExceptionHandler.scanIntRange(1, 2);\n\t\treturn choice;\n\t}", "public static int choicedialog() {\r\n List<String> choices = new ArrayList<>();\r\n choices.add(\"1a\");\r\n choices.add(\"1b\");\r\n choices.add(\"2\");\r\n choices.add(\"2u\");\r\n choices.add(\"3\");\r\n choices.add(\"3u\");\r\n choices.add(\"4\");\r\n choices.add(\"5\");\r\n\r\n ChoiceDialog<String> dialog = new ChoiceDialog<>(\"SET ZONE HERE\", choices);\r\n dialog.setTitle(\"Zone Selector\");\r\n dialog.setHeaderText(null);\r\n dialog.setContentText(\"Select Zone:\");\r\n \r\n Optional<String> result = dialog.showAndWait();\r\n if (result.isPresent()){\r\n if(result.get() == \"1a\") return 1;\r\n else if (result.get() == \"1b\") return 2;\r\n else if (result.get() == \"2\") return 3;\r\n else if (result.get() == \"2u\") return 4;\r\n else if (result.get() == \"3\") return 5;\r\n else if (result.get() == \"3u\") return 6;\r\n else if (result.get() == \"4\") return 7;\r\n else if (result.get() == \"5\") return 8;\r\n else return 0;\r\n } else return 0;\r\n }", "boolean accepts(String optionName);", "private static int HQmenu() {\n\t\tlogger.info(\"Entering HQmenu method -->\");\n\t\tint choice = 0;\n\t\tboolean ok;\n\t\tdo {\n\t\t\tok = true;\n\t\t\tSystem.out.println(\"Money Service HQ\");\n\t\t\tSystem.out.println(\"----------------\");\n\t\t\tSystem.out.println(\"What would you like to do?\");\n\t\t\tSystem.out.println(\"1 - Register a new exchange office\");\n\t\t\tSystem.out.println(\"2 - Get statistics for registered offices\");\n\t\t\tSystem.out.println(\"0 - Exit the HQ application\");\n\n\t\t\tSystem.out.print(\"Enter your choice: \");\n\t\t\tString userChoice = CLIHelper.input.next();\n\n\t\t\ttry {\n\t\t\t\tchoice = Integer.parseInt(userChoice);\n\t\t\t}catch(NumberFormatException e) {\n\t\t\t\tlogger.log(Level.WARNING, \"choice: \" + choice + \" made exception! \" + e);\n\t\t\t\tSystem.out.format(\"Your choice %s is not accepted!\\n\", userChoice);\n\t\t\t\tok = false;\n\t\t\t}\n\t\t}while(!ok);\n\n\t\tlogger.info(\"Exiting HQmenu method <--\");\n\t\treturn choice;\n\t}", "public boolean isCancelled()\r\n/* 54: */ {\r\n/* 55: 92 */ return isCancelled0(this.result);\r\n/* 56: */ }", "public boolean checkClosed();", "@Override\n public int getExitCode() {\n return 1;\n }", "protected boolean isFinished()\n\t{\n\t\treturn !Robot.oi.respoolWinch.get();\n\t}", "public boolean select() {\n\t\tmSecureChannel = GPSystem.getSecureChannel();\r\n\t\treturn true;\r\n\t}", "private int insertExitMenuAnswer()\n {\n boolean valid = false;\n String choice = \"\";\n Scanner content = new Scanner(System.in);\n \n while (!valid)\n {\n menu.exitOptions();\n choice = content.nextLine().trim();\n valid = validation.integerValidation(choice, 1, 3);\n }\n \n int ans = Integer.parseInt(choice);\n return ans;\n }", "public int askSecondary();", "public int promptSeatSelect()\n\t{\n\t\t\t\t\n\t\tString tempSeatSelection = JOptionPane.showInputDialog(\"Please type 1 for a window seat or 2 for isle seat: \");\n\t\t\n\t\t//handles a cancel\n\t\tif(tempSeatSelection == null)\n\t\t{\n\t\t\tpromptExit();\n\t\t}\n\t\t\n\t\tif(!validate(tempSeatSelection))\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, \"You have not made a valid entry\");\n\t\t\tpromptClassSelect();\n\t\t}\n\t\t\n\t\tint seatSelection = Integer.parseInt(tempSeatSelection);\n\t\t \n\t\tif(seatSelection != 1 && seatSelection != 2)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, \"You have not made a valid entry\");\n\t\t\tpromptSeatSelect();\n\t\t}\n\t\t\n\t\treturn seatSelection;\n\t\t\n\t}", "int getWinCondition();", "pb4server.KillPrisonAskReq getKillPrisonAskReq();", "public static int getMenuOption() {\n Scanner input = new Scanner(System.in);\n\n menuOption = input.next().toLowerCase().charAt(0);\n\n while (menuOption != 'a' && menuOption != 'r' && menuOption != 'f' && menuOption != 'i' && menuOption != 'n' && menuOption != 'q') {\n System.out.print(\"Enter a valid choice: \");\n menuOption = input.next().toLowerCase().charAt(0);\n }\n\n if (menuOption == 'a') {\n return 1;\n } else if (menuOption == 'r') {\n return 2;\n } else if (menuOption == 'f') {\n return 3;\n } else if (menuOption == 'i') {\n return 4;\n } else if (menuOption == 'n') {\n return 5;\n } else {\n return 6;\n }\n }", "@Override\r\n\tpublic boolean hasNPCOption1(NPC npc) {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean hasNPCOption1(NPC npc) {\n\t\treturn false;\r\n\t}", "boolean isCancelled();", "public boolean ifSea() {\n return choiceSelect == SEA_CHOICE;\n }", "protected boolean reallyCancel() throws Exception { return true; }", "public static int getUserOption(){\n\n String numberAsString;\n int userOption;\n java.util.Scanner scanner = new java.util.Scanner(System.in);\n\n listMenuOptions();\n numberAsString = scanner.nextLine();\n userOption = Integer.parseInt(numberAsString); // Convert string to a integer\n while ( ( userOption < 0 )|| (userOption > 4 ) ) { // check if input is valid\n System.out.println(\"You did not enter a valid option. Try again.\");\n listMenuOptions();\n numberAsString = scanner.nextLine();\n userOption = Integer.parseInt(numberAsString); // Convert string to a integer\n }\n return userOption;\n }", "public int explicitWait(){\n\t\tString time_out = null;\n\t\ttry {\n\t\t\ttime_out = new AutomationConfigurator().getTimeOut();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tif (time_out == null){\n\t\t\treturn default_timeout;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn Integer.parseInt(time_out);\n\t\t}\n\t}", "private Integer promptPositiveInteger(String message) {\n\t\tboolean done = false;\n\t\tint result = -1;\n\t\twhile (!done) {\n\t\t\tdone = true;\n\t\t\tString s = JOptionPane.showInputDialog(\n\t\t\t\t\t_frame,\n\t\t\t\t\tmessage,\n\t\t\t\t\t_frame.getTitle(),\n\t\t\t\t\tJOptionPane.OK_CANCEL_OPTION);\n\t\t\tif (s == null) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tresult = Integer.parseInt(s);\n\t\t\t\tif (result < 0) {\n\t\t\t\t\tdone = false;\n\t\t\t\t}\n\t\t\t} catch (NumberFormatException ex) {\n\t\t\t\tdone = false;\n\t\t\t}\n\n\t\t\tif (!done) {\n\t\t\t\tJOptionPane.showMessageDialog(\n\t\t\t\t\t\t_frame,\n\t\t\t\t\t\t\"Invalid Input!\",\n\t\t\t\t\t\t_frame.getTitle(),\n\t\t\t\t\t\tJOptionPane.OK_OPTION);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "protected boolean colaVacia() {\r\n return ini == -1;\r\n }", "void outOfTime() {\r\n\r\n disableOptionButtons();\r\n }", "int getExitStatus();", "public String getOptInStatus() {\n return optInStatus;\n }", "public boolean select()\n {\n if ( pin.getTriesRemaining() == 0 )\n return false;\n return true;\n }", "public int promptClassSelect()\n\t{\n\t\t\t\t\n\t\tString tempClassSelection = JOptionPane.showInputDialog(\"Please type 1 for first class or 2 for economy: \");\n\t\t\t\n\t\t//handles a cancel\t\n\t\tif(tempClassSelection == null)\n\t\t{\n\t\t\tpromptExit();\n\t\t}\n\t\t\t\t\n\t\tif(!validate(tempClassSelection) || tempClassSelection.isEmpty()) \n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, \"You have not made a valid entry\");\n\t\t\tstart();\n\t\t}\n\t\t\n\t\tint classSelection = Integer.parseInt(tempClassSelection);\n\t\t\n\t\tif(classSelection != 1 && classSelection != 2)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, \"You have not made a valid entry\");\n\t\t\tstart();\n\t\t}\n\t\n\t\treturn classSelection;\n\t\t\n\t}", "public boolean mo8001c() {\n return this.f889a != null && this.f889a.cancel(true);\n }", "public abstract boolean isExit();", "public boolean isCancelSupported();", "public static int quit() {\r\n int quit = JOptionPane.showConfirmDialog(null, \"Exit Program? \", null, JOptionPane.YES_NO_OPTION);\r\n if (quit != 0) {//Confirms Program Termination\r\n //do nothing \r\n } else\r\n System.exit(quit);\r\n return quit;\r\n }", "public boolean hasUserCancelled() {\n return myIsDialogCancelled;\n }", "public Integer getIsSuccessInSolving()\n/* */ {\n/* 207 */ return this.isSuccessInSolving;\n/* */ }", "int dialogQuery(String msg, int defaultValue)\n { /* dialogQuery */\n this.sleepFlag= true;\t /* flag for waiting */\n this.data= Integer.toString(defaultValue); /* save default */\n \n updatePopupDialog(msg, Integer.toString(defaultValue), null, 0); /* do it */\n \n return(Util.cvs2i(this.data)); /* return int */\n }", "public java.lang.Boolean getOkForPickup() {\r\n return okForPickup;\r\n }", "public boolean isOkay() {\n return okay;\n }" ]
[ "0.59100187", "0.5854661", "0.5785515", "0.57512736", "0.56307584", "0.5588493", "0.5571069", "0.55603534", "0.5552472", "0.55220205", "0.54979986", "0.54790306", "0.54753834", "0.54753834", "0.5462252", "0.5449001", "0.54278857", "0.5416323", "0.54038954", "0.5389453", "0.53794014", "0.5362003", "0.5361727", "0.5349057", "0.5325475", "0.5323305", "0.53076845", "0.53019243", "0.5294921", "0.528589", "0.5282818", "0.5260709", "0.52553356", "0.5240495", "0.5238847", "0.52366483", "0.52337235", "0.5232018", "0.5232018", "0.5232018", "0.5220858", "0.52197844", "0.5219315", "0.52182436", "0.5211355", "0.52092546", "0.5200382", "0.5199355", "0.5199245", "0.51963335", "0.5188195", "0.5173872", "0.51643306", "0.5163612", "0.5161809", "0.5149198", "0.5148085", "0.5146886", "0.5140229", "0.5137729", "0.51265246", "0.51240474", "0.5123774", "0.5122952", "0.5107053", "0.51042336", "0.50907165", "0.5084572", "0.50820476", "0.5072443", "0.5069564", "0.50673896", "0.505589", "0.5050473", "0.5049057", "0.50486743", "0.50402683", "0.5039817", "0.50343615", "0.50343615", "0.50341403", "0.5032019", "0.5019944", "0.50183356", "0.5014127", "0.5008193", "0.50042754", "0.50039065", "0.50029993", "0.5001917", "0.49996313", "0.49965852", "0.49938452", "0.4991401", "0.49821755", "0.4976588", "0.49706608", "0.49640438", "0.49552965", "0.49526533", "0.49374267" ]
0.0
-1
/ disperseRewards() params: Player p, player who finished acting Role r, role the player was acting in bool success, true if player succeeded acting, false otherwise precond: player attempted act Disperses rewards based on players success or failure of acting
public void disperseRewards(Player player, boolean success){ if(success){ //if player is in a role on a scene card if(player.getCurrentRole().isOnCard()){ player.addCredits(2); } else{ player.addCredits(1); player.addMoney(1); } } else{ //disperse loss rewards //if player is not on a scene card role if(!(player.getCurrentRole().isOnCard())){ player.addMoney(1); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void rewards(Player p);", "@Override\n\tprotected void killReward() {\n\t\t\n\t}", "@Test\n public void testPactOfNegationRollback() {\n setStrictChooseMode(true);\n\n addCard(Zone.HAND, playerA, \"Silvercoat Lion\", 1);\n addCard(Zone.BATTLEFIELD, playerA, \"Plains\", 2);\n\n addCard(Zone.BATTLEFIELD, playerB, \"Island\", 5);\n // Counter target spell.\n // At the beginning of your next upkeep, pay {3}{U}{U}. If you don't, you lose the game.\n addCard(Zone.HAND, playerB, \"Pact of Negation\"); // Instant {0}\n\n castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, \"Silvercoat Lion\");\n castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerB, \"Pact of Negation\", \"Silvercoat Lion\", \"Silvercoat Lion\");\n\n setChoice(playerB, true);\n\n rollbackTurns(2, PhaseStep.PRECOMBAT_MAIN, playerB, 0);\n\n setChoice(playerB, true);\n\n setStopAt(2, PhaseStep.BEGIN_COMBAT);\n execute();\n\n assertGraveyardCount(playerA, \"Silvercoat Lion\", 1);\n assertGraveyardCount(playerB, \"Pact of Negation\", 1);\n\n Assert.assertTrue(\"Player A is still in game\", playerA.isInGame());\n Assert.assertTrue(\"Player B is still in game\", playerB.isInGame());\n\n assertTappedCount(\"Island\", true, 5);\n\n }", "private void rewardPlayer(Player player) {\n\t\tRandom number = new Random();\n\t\tint num = number.nextInt(100);\n\t\t\n\t\tif(num >= 80 && num < 90) {\n\t\t\tplayer.increaseAttacks();\n\t\t\tserver.addTextToLoggingWindow(\"Player (\" + player.getName() + \") got rewarded one attack\");\n\t\t\tserver.sendMessageToClient(player.getName(), \"@134@\" + \"0\" + \"@\");\n\t\t}\n\t\telse if(num >= 90 && num <= 100) {\n\t\t\tplayer.increaseSafeTP();\n\t\t\tserver.addTextToLoggingWindow(\"Player (\" + player.getName() + \") got rewarded one safe teleport\");\n\t\t\tserver.sendMessageToClient(player.getName(), \"@134@\" + \"1\" + \"@\");\n\t\t}\n\t}", "public void tryRehearse() {\n if (currentPlayer.isEmployed() == true) {\n if(!currentPlayer.getHasPlayed()){\n currentPlayer.rehearse();\n }\n else{ \n view.showPopUp(currentPlayer.isComputer(), \"You've already moved, rehearsed or acted this turn. Try a different command or click `end turn` to end your turn.\");\n }\n }\n else {\n view.showPopUp(currentPlayer.isComputer(), \"You're not employed, so you need to take a role before you can rehearse.\");\n }\n view.updateSidePanel(playerArray);\n }", "public void act(Player player) {\n int roleIndex = -1;\n for (int i = 0; i < roles.size(); i++) {\n if (roles.get(i).getPlayer() == player) {\n roleIndex = i;\n break;\n }\n }\n boolean isOnCard = false;\n List<Role> onCardRoles = scene.getRoles();\n if (roleIndex == -1) {\n isOnCard = true;\n for (int i = 0; i < onCardRoles.size(); i++) {\n if (onCardRoles.get(i).getPlayer() == player) {\n roleIndex = i;\n break;\n }\n }\n }\n\n int diceRoll = random.nextInt(6) + 1;\n\n if (isOnCard) {\n if (diceRoll + player.getPracticeChips() >= scene.getBudget()) {\n shotsLeft--;\n System.out.println(\"Success! You completed the shot and got two credits.\");\n player.addCredits(2);\n } else {\n System.out.println(\"Oh no! You messed up the shot and got nothing.\");\n }\n } else {\n Deadwood.bank.payMoney(player, 1);\n if (diceRoll + player.getPracticeChips() >= scene.getBudget()) {\n shotsLeft--;\n System.out.println(\"Success! You completed the shot and got a credit and $1.\");\n player.addCredits(1);\n } else {\n System.out.println(\"Oh no! You messed up the shot. You still get $1.\");\n }\n }\n\n if (shotsLeft == 0)\n wrap();\n }", "private void reinforcementPhase(Player p) \n\t{\n\t\tint armyNum = map.calculateArmyNum(p);\n\t\tp.setArmies(armyNum);\n\t\tp.reinforce();\n\t}", "public void tryMove() {\n if(!currentPlayer.getHasPlayed()){\n if (!currentPlayer.isEmployed()) {\n String destStr = chooseNeighbor();\n\n currentPlayer.moveTo(destStr, getBoardSet(destStr));\n if(currentPlayer.getLocation().getFlipStage() == 0){\n currentPlayer.getLocation().flipSet();\n }\n refreshPlayerPanel();\n }\n else {\n view.showPopUp(currentPlayer.isComputer(), \"Since you are employed in a role, you cannot move but you can act or rehearse if you have not already\");\n }\n }\n else{ \n view.showPopUp(currentPlayer.isComputer(), \"You've already moved, rehearsed or acted this turn. Try a different command or click `end turn` to end turn your turn.\");\n }\n view.updateSidePanel(playerArray);\n }", "public void dispersePayout(Room room){\n \n Dice d = new Dice();\n ArrayList<Integer> payoutVals = d.rollPayout(room.getSceneCard().getSceneBudget());\n \n ArrayList<Player> players = room.getOccupants();\n \n ArrayList<Role> roles = room.getSceneCard().getRoles();\n ArrayList<Integer> ranks = new ArrayList<Integer>();\n \n for(Role r : roles){\n ranks.add(r.getRank());\n }\n \n Collections.sort(ranks);\n Collections.reverse(ranks);\n \n //loop through roles and pay respective players\n for(int i = 0; i < payoutVals.size(); i++){\n int roleRank = ranks.get(i % ranks.size()); \n \n for(Player p : players){\n if(p.getCurrentRole() != null){\n if(p.getCurrentRole().isOnCard() && p.getCurrentRole().getRank() == roleRank){\n p.addMoney(payoutVals.get(i));\n }\n }\n \n \n }\n }\n for(Player p : players){\n if(p.getCurrentRole() != null){\n if(!(p.getCurrentRole().isOnCard())){\n p.addMoney(p.getCurrentRole().getRank());\n }\n }\n \n }\n }", "public boolean takeRelicReward(){\n if(!isGameOver() || character.getHp() <= 0 )return false;\n if( relicRewardGiven )return false;\n character.addRelic( reward.getRelic() );\n relicRewardGiven=true;\n return true;\n }", "public boolean delayer() {\n int secondsToDelay = rand.nextInt(3) + 1;\n if (timeCounter < secondsToDelay) {\n timeCounter += GameRound.elapsedTime;\n return true;\n }\n timeCounter = 0;\n movingLeft = false;\n movingRight = false;\n return false;\n }", "public getEmployeeRewards_result(getEmployeeRewards_result other) {\n if (other.isSetSuccess()) {\n this.success = new com.moseeker.thrift.gen.employee.struct.RewardsResponse(other.success);\n }\n }", "public void die(){\n \tif (resetdelay<=0){ //if he didn't just die\r\n \t\tresetdelay = 100; //gives the frog 100 frames of invincibility\r\n \t\tlives-=1;\r\n \t}\r\n }", "public void revokeAccess(CommandSender sender, String[] args) {\n if (sender instanceof Player && ( ((Player) sender).hasPermission(\"mf.revokeaccess\") || ((Player) sender).hasPermission(\"mf.default\")) ) {\n\n Player player = (Player) sender;\n\n if (args.length > 1) {\n if (args[1].equalsIgnoreCase(\"cancel\")) {\n if (main.playersRevokingAccess.containsKey(player.getName())) {\n main.playersRevokingAccess.remove(player.getName());\n player.sendMessage(ChatColor.GREEN + \"Cancelled!\");\n return;\n }\n }\n }\n else {\n player.sendMessage(ChatColor.RED + \"Usage: /mf revokeaccess (player-name)\");\n return;\n }\n\n if (!main.playersRevokingAccess.containsKey(player.getName())) {\n main.playersRevokingAccess.put(player.getName(), args[1]);\n player.sendMessage(ChatColor.GREEN + \"Right click a locked block to revoke this player's access to it! Type '/mf revokeaccess cancel' to cancel!\");\n }\n else {\n player.sendMessage(ChatColor.RED + \"You have already entered this command! Type '/mf revokeaccess cancel' to cancel!\");\n }\n\n }\n\n }", "public void restart(){\n for(Player p: players)\n if(p.getActive())\n p.reset();\n turn = 0;\n currentPlayer = 0;\n diceRoller=true;\n }", "public void unapplyMove()\r\n\t{\r\n\t\tif (appliedMoves == null || appliedMoves.isEmpty()) return;\r\n\t\t\r\n\t\tdecrementPositionCount();\r\n\t\t\r\n\t\tboolean lastMoveRochade = isLastMoveRochade(); //Check before any changes to the board are made\r\n\t\tboolean isLastMoveEnPassentCapture = !lastMoveRochade && isLastMoveEnPassentCapture();\r\n\r\n\t\tMove lastMove = getLastMove();\r\n\t\tif (lastMoveRochade)\r\n\t\t{\r\n\t\t\tlastMove.from.piece = lastMove.to.piece;\r\n\t\t\tlastMove.to.piece = lastMove.capture;\r\n\t\t\t\r\n\t\t\tField kingFieldTo = lastMove.to;\r\n\t\t\tif (kingFieldTo.coordinate.x == 6)\r\n\t\t\t{\r\n\t\t\t\tField rookRochadeField = fields[5][kingFieldTo.coordinate.y];\r\n\t\t\t\tField rookBeforeRochadeField = fields[7][kingFieldTo.coordinate.y];\r\n\t\t\t\trookBeforeRochadeField.piece = rookRochadeField.piece;\r\n\t\t\t\trookRochadeField.piece = null;\r\n\t\t\t}\r\n\t\t\telse if (kingFieldTo.coordinate.x == 2)\r\n\t\t\t{\r\n\t\t\t\tField rookRochadeField = fields[3][kingFieldTo.coordinate.y];\r\n\t\t\t\tField rookBeforeRochadeField = fields[0][kingFieldTo.coordinate.y];\r\n\t\t\t\trookBeforeRochadeField.piece = rookRochadeField.piece;\r\n\t\t\t\trookRochadeField.piece = null;\r\n\t\t\t}\t\r\n\t\t}\r\n\t\telse if (isLastMoveEnPassentCapture)\r\n\t\t{\r\n\t\t\tlastMove.from.piece = lastMove.to.piece;\r\n\t\t\tlastMove.to.piece = null;\r\n\t\t\t\r\n\t\t\tMove beforeLastMove = appliedMoves.get(appliedMoves.size() - 2);\r\n\t\t\tbeforeLastMove.to.piece = lastMove.capture;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tif (lastMove.promotion != null)\r\n\t\t\t{\r\n\t\t\t\tlastMove.from.piece = new Pawn(lastMove.color);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tlastMove.from.piece = lastMove.to.piece;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tlastMove.to.piece = lastMove.capture;\r\n\t\t}\r\n\t\t\r\n\t\tappliedMoves.remove(appliedMoves.size() - 1);\r\n\t}", "public void resign(PlayerController player)\n {\n if(player instanceof GameController){\n winSend.sendWin(opponent);\n setWinSent(false);\n }\n if (player1 == player) {\n win(PLAYER_2_FLAG);\n } else if (player2 == player) {\n win(PLAYER_1_FLAG);\n }\n }", "public synchronized void remind() {\n if (state != State.REGISTRATION && state != State.WAITING_TO_START) {\n sendPublicMessage(\"Round \" + pickTeamState.getSituation().getRoundNumber() +\n \" of 5\\n\" +\n pickTeamState.getSituation().getMissionSuccess() + \" successes | \" +\n pickTeamState.getSituation().getMissionFails() + \" fails\\n\" +\n \"The leader rotation is \" + GameMessageUtil.listOrder(getPlayerCharacters()) + \"\\n*\" +\n pickTeamState.getSituation().getLeader().getUserName() + \"* is the leader.\\n\\n\" +\n lastMessage);\n }\n }", "void retract() {\n assert movesMade() > 0;\n Move move = _moves.remove(_moves.size() - 1);\n Piece replaced = move.replacedPiece();\n int c0 = move.getCol0(), c1 = move.getCol1();\n int r0 = move.getRow0(), r1 = move.getRow1();\n Piece movedPiece = move.movedPiece();\n set(c1, r1, replaced);\n set(c0, r0, movedPiece);\n _turn = _turn.opposite();\n }", "public void discardLeader(int bool){\n this.leaderCardsPanel.discardLeaderCard(bool);\n }", "public void checkMoveOrPass(){\n if (this.xTokens.size() > 0) {\n this.diceRoller = false;} \n else { //if no tokens to move, pass and let player roll dice\n this.turn++;\n //System.out.println(\"next turn player \" + this.players[currentPlayer].getColor());\n }\n this.currentPlayer = this.xPlayers.get(this.turn % this.xPlayers.size());\n }", "private void decrementOpponentRechargeTimes()\n\t{\n\t\tfor (Map.Entry<Skills, Integer> pair : rechargingOpponentSkills.entrySet())\n\t\t{\n\t\t\tint val = pair.getValue();\n\t\t\tSkills s = pair.getKey();\n\t\t\t\n\t\t\tif (val > 0)\n\t\t\t{\n\t\t\t\trechargingOpponentSkills.put(s, --val);\n\t\t\t}\n\t\t}\n\t}", "public void tryAct() {\n\n List<Player> onCardPlayers = new ArrayList<Player>();\n List<Player> offCardPlayers = new ArrayList<Player>();\n if (currentPlayer.isEmployed() == true) {\n if(!currentPlayer.getHasPlayed()){\n onCardPlayers = findPlayers(currentPlayer.getLocation().getOnCardRoles());\n offCardPlayers = findPlayers(currentPlayer.getLocation().getOffCardRoles());\n currentPlayer.act(onCardPlayers, offCardPlayers);\n refreshPlayerPanel();\n }\n else{\n view.showPopUp(currentPlayer.isComputer(), \"You've already moved, rehearsed or acted this turn. Try a different command or click `end turn` to end your turn.\");\n }\n }\n else {\n view.showPopUp(currentPlayer.isComputer(), \"You're not employed, so you need to take a role before you can act.\");\n }\n view.updateSidePanel(playerArray);\n }", "void doResign() {\n System.out.println(\"Resign Game\");\n if (gameInProgress() == false) { // Should be impossible.\n console(\"There is no game in progress!\");\n return;\n }\n if (currentPlayer == CheckersData.RED) {\n gameOver(\"RED resigns. BLACK wins.\");\n } else {\n gameOver(\"BLACK resigns. RED wins.\");\n }\n }", "@Override\r\n public void war(int playerOne, int playerTwo, int plDeckPosition, \r\n PlayingCard plOne, PlayingCard plTwo){\r\n \r\n //check to see if any player has run out of cards\r\n if(this.checkOnePlayerDecksEmpty(plDeckPosition)){\r\n \r\n // if a player has run out of cards have the player who has cards\r\n // win war and give them the cards\r\n if(!this.checkPlayerPlayingDeck(plDeckPosition, playerTwo)){\r\n this.giveCardToPlayer(plTwo, playerTwo, plDeckPosition+1);\r\n this.giveCardToPlayer(plOne, playerTwo, plDeckPosition+1);\r\n }\r\n else{\r\n this.giveCardToPlayer(plTwo, playerOne, plDeckPosition+1);\r\n this.giveCardToPlayer(plOne, playerOne, plDeckPosition+1);\r\n }\r\n this.currentAction.addActionReturnValue(plOne, plTwo);\r\n }\r\n\r\n else{\r\n \r\n // set a war flag to true, and add it to the action return values\r\n boolean hasWarOccured = true; \r\n this.currentAction.addActionReturnValue(plOne, plTwo, hasWarOccured);\r\n \r\n // initialize variables that will hold the playing cards that will\r\n // be inserted into an array \r\n PlayingCard plOneCard;\r\n PlayingCard plTwoCard;\r\n \r\n // create an array of PlayingCards that will hold the cards\r\n // that will be won by the winner of the war and array of cards to return\r\n // to acction return values\r\n ArrayList<PlayingCard> returnOneCards = new ArrayList<>();\r\n ArrayList<PlayingCard> returnTwoCards = new ArrayList<>();\r\n ArrayList<PlayingCard> plCardToReward = new ArrayList<>();\r\n \r\n // add the cards that triggered the war to the array of cards that\r\n // will be given to the winner of the war\r\n plCardToReward.add(plOne); \r\n plCardToReward.add(plTwo); \r\n \r\n // transfer cards from discard to deck if discard pile has cards\r\n if(!this.checkPlayerPlayingDeck(plDeckPosition+1, \r\n playerOne)){\r\n this.transferFromDiscard(plDeckPosition, playerOne);\r\n }\r\n if(!this.checkPlayerPlayingDeck(plDeckPosition+1, \r\n playerTwo)){\r\n this.transferFromDiscard(plDeckPosition, playerTwo);\r\n } \r\n \r\n // initialize length of war\r\n int lengthOfWar = 4;\r\n // add cards used in war into the arraylist of cards to be returned\r\n // to winner, and to the action return values\r\n for(int i = 0; i < lengthOfWar; i++){\r\n plOneCard = (PlayingCard)this.getPlayerCard(playerOne,\r\n plDeckPosition);\r\n plTwoCard = (PlayingCard)this.getPlayerCard(playerTwo,\r\n plDeckPosition);\r\n returnOneCards.add(plOneCard);\r\n returnTwoCards.add(plTwoCard);\r\n plCardToReward.add(plOneCard);\r\n plCardToReward.add(plTwoCard);\r\n if(this.checkOnePlayerDecksEmpty(plDeckPosition)){\r\n this.currentAction.addActionReturnValue(returnOneCards, \r\n returnTwoCards);\r\n break;\r\n }\r\n if(i == lengthOfWar - 1){\r\n if(!(this.comparePlayingCards(returnOneCards.get(\r\n returnOneCards.size() - 1),\r\n returnTwoCards.get(returnTwoCards.size() - 1)) \r\n instanceof Card)){\r\n this.currentAction.addActionReturnValue(returnOneCards,\r\n returnTwoCards, hasWarOccured);\r\n returnOneCards = new ArrayList<>();\r\n returnTwoCards = new ArrayList<>();\r\n lengthOfWar += 4;\r\n }\r\n else{\r\n this.currentAction.addActionReturnValue(returnOneCards,\r\n returnTwoCards);\r\n }\r\n }\r\n } \r\n\r\n // Compare the two player cards\r\n PlayingCard higherCard = this.comparePlayingCards(returnOneCards.get(\r\n returnOneCards.size() -1),\r\n returnTwoCards.get(returnTwoCards.size() -1));\r\n \r\n // See who owned that card and distribute cards accordingly or initialize\r\n if (higherCard == returnOneCards.get(returnOneCards.size() -1)) {\r\n for(PlayingCard p : plCardToReward){\r\n this.giveCardToPlayer(p, playerOne, plDeckPosition+1); \r\n }\r\n }\r\n else if (higherCard == returnTwoCards.get(returnTwoCards.size() -1)) {\r\n for(PlayingCard p : plCardToReward){\r\n this.giveCardToPlayer(p, playerTwo, plDeckPosition+1); \r\n }\r\n }\r\n else{\r\n if(!this.checkPlayerPlayingDeck(plDeckPosition, playerTwo)){\r\n for(PlayingCard p : plCardToReward){\r\n this.giveCardToPlayer(p, playerTwo, plDeckPosition+1);\r\n }\r\n }\r\n else{\r\n for(PlayingCard p : plCardToReward){\r\n this.giveCardToPlayer(p, playerOne, plDeckPosition+1); \r\n }\r\n }\r\n }\r\n }\r\n }", "void giveReward(BPlayer bPlayer, int tier, int status);", "private void eliminatePlayer(Player player, String reason) throws IOExceptionFromController {\n player.setLost();\n ArrayList<Player> activePlayers = new ArrayList<Player>();\n for (Player activePlayer : players) {\n if (!activePlayer.hasLost()) activePlayers.add(activePlayer);\n }\n if (activePlayers.size() == 1) {\n setWinner(activePlayers.get(0), reason);\n return;\n }\n for (Card modifier : game.getActiveModifiers()) {\n if (modifier.getController().getPlayer().equals(player))\n game.removeModifier(modifier);\n }\n for (Worker worker : player.getWorkers()) {\n player.removeWorker(worker);\n }\n PlayerController controller = playerControllers.get(players.indexOf(player));\n if (controller != null) {\n try {\n playerControllers.get(players.indexOf(player)).getClient().notifyLoss(reason, null);\n } catch (IOException e) {\n checkDisconnection(e, controller);\n }\n }\n broadcastGameInfo(reason);\n }", "public synchronized void remindNoRepeat() {\n if (state != State.REGISTRATION && state != State.WAITING_TO_START) {\n sendPublicMessage(\"Round \" + pickTeamState.getSituation().getRoundNumber() +\n \" of 5\\n\" +\n pickTeamState.getSituation().getMissionSuccess() + \" successes | \" +\n pickTeamState.getSituation().getMissionFails() + \" fails\\n\" +\n \"The leader rotation is \" + GameMessageUtil.listOrder(getPlayerCharacters()) + \"\\n*\" +\n pickTeamState.getSituation().getLeader().getUserName() + \"* is the leader.\");\n }\n }", "public void endTurn() {\n for (BattleEffect btlEff : effectsToRemove) {\n if (btlEff.getTurnsRemaining() == 0) {\n btlEff.remove();\n effectsToApply.remove(btlEff);\n } else {\n btlEff.decrementTurnsRemaining();\n }\n }\n }", "public void removeTopRewardAndContinue() {\n inventoryEntityToRetrieve.pop();\n if (inventoryEntityToRetrieve.isEmpty()) incrementStateIndex();\n }", "@Test\n @DisplayName(\"After one player makes one move, verify conditions for next player toggle\")\n void doesPlayerContinue() {\n Player player = playerService.getP1();\n Pit pit = boardService.getPitByID(0);\n Move move = new Move(player, pit);\n boardService.updateBoardForMove(move);\n Assert.assertTrue(boardService.doesPlayerContinue());\n\n // For the next move, if player 1 moves from pit 1, player will not continue\n pit = boardService.getPitByID(1);\n move = new Move(player, pit);\n boardService.updateBoardForMove(move);\n Assert.assertFalse(boardService.doesPlayerContinue());\n }", "void skipNextPlayer() {\n endTurn();\n }", "public void endTurn() {\r\n\t\tSystem.out.println(\"[DEBUG LOG/Game.java] Started endTurn() for player \"+currentPlayer.getNumber());\r\n\t\tturnIsEnding = true;\r\n\r\n\t\t// End turn restrictions\r\n\t\tif (!currentPlayer.isDead() && !currentPlayer.isFree() && !currentPlayer.hasQuit()) {\r\n\t\t\tif (currentPlayer.getPlayArea().getNonPlayedSize() > 0) {\r\n\t\t\t\tgameChannel.sendMessage(\"**[ERROR]** Cannot end turn until all cards in play area are played\").queue();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (mustChoose.size() > 0) {\r\n\t\t\t\tgameChannel.sendMessage(\"**[ERROR]** Cannot end turn until all choices are made\").queue();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (mustTrash.size() > 0) {\r\n\t\t\t\tgameChannel.sendMessage(\"**[ERROR]** Cannot end turn until all trashes are made\").queue();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t// Don't need to discard\r\n\t\t}\r\n\t\t\r\n\t\t// Mass deletes\r\n\t\tclearMessages();\r\n\t\t\r\n\t\t// If just escaped, send message after clearing\r\n\t\tif (currentPlayer.getCurrentRoom() == 0 && currentPlayer.getPiece().getX() == GlobalVars.playerCoordsPerRoom[39][0]) {\r\n\t\t\t// Update room\r\n\t\t\tcurrentPlayer.setCurrentRoom(39);\r\n\t\t\tif (firstEscapee == currentPlayer) {\r\n\t\t\t\tgameChannel.sendMessage(\":helicopter: **\"+currentName+\"** was the first to escape! They received a **20** :star: **Mastery Token**\\n:skull: Only **4** turn(s) left!\").queue();\r\n\t\t\t} else {\r\n\t\t\t\tgameChannel.sendMessage(\":helicopter: **\"+currentName+\"** escaped in time! They received a **20** :star: **Mastery Token**\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Set cards in PlayArea to not played for next time, Undos the Discarded tag\r\n\t\tfor (int i = 0; i < currentPlayer.getPlayArea().getSize(); i++) {\r\n\t\t\tcurrentPlayer.getPlayArea().getCard(i).setPlayed(false);\r\n\t\t\tif (currentPlayer.getPlayArea().getCard(i).toStringHand().contentEquals(\"*[Discarded]*\")) currentPlayer.getPlayArea().getCard(i).setStringInHand();\r\n\t\t}\r\n\t\t\r\n\t\t// Clear swords, skill, boots, etc\r\n\t\tcurrentPlayer.endOfTurnReset();\r\n\t\tmustDiscard.clear();\r\n\t\t\r\n\t\t// Replaces cards in dungeon row. Only one attack per turn\r\n\t\tif (!status.contentEquals(\"over\")) {\r\n\t\t\tboolean hasAttackedThisTurn = false;\r\n\t\t\tfor (int i = 0; i < 6; i++) {\r\n\t\t\t\t// Checks to see if it should replace card\r\n\t\t\t\tif (dungeonRow[i].isBought()) {\r\n\t\t\t\t\tdungeonRow[i] = mainDeck.getNext();\r\n\t\t\t\t\tif (dungeonRow[i].isDragonAttack() && !hasAttackedThisTurn) {\r\n\t\t\t\t\t\tdragonAttack(cubesPerLevel[attackLevel]);\r\n\t\t\t\t\t\thasAttackedThisTurn = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (dungeonRow[i].isHasArrive()) {\r\n\t\t\t\t\t\tdoArriveEffect(dungeonRow[i]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tmainDeck.removeTop();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// Instantly go on to next player if no dragon attack\r\n\t\t\tif (!hasAttackedThisTurn) {\r\n\t\t\t\tdetermineNextPlayer();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public int runFromMuckrakerMove() throws GameActionException {\n\n //flag indicates best direction to move, not direction I am moving...\n\n boolean foundEnemyMuckraker = false;\n double rewardOfStaying = 9999;\n\n int canMoveIndicesSize = 0;\n int idx = 0;\n for (Direction direction : Constants.DIRECTIONS) {\n moveRewards[idx] = 9998;\n moveLocs[idx] = Cache.CURRENT_LOCATION.add(direction);\n if (controller.canMove(direction)) {\n canMoveIndices[canMoveIndicesSize++] = idx;\n }\n ++idx;\n }\n\n for (RobotInfo robotInfo : Cache.ALL_NEARBY_ENEMY_ROBOTS) {\n if (robotInfo.getType() == RobotType.MUCKRAKER) {\n foundEnemyMuckraker = true;\n MapLocation enemyLocation = robotInfo.location;\n //for all valid locations, find travelDistance...\n rewardOfStaying = Math.min(rewardOfStaying, Pathfinding.travelDistance(Cache.CURRENT_LOCATION, enemyLocation) + 0.01 * Cache.CURRENT_LOCATION.distanceSquaredTo(enemyLocation));\n for (int i = 0; i < idx; ++i) {\n moveRewards[i] = Math.min(moveRewards[i], Pathfinding.travelDistance(moveLocs[i], enemyLocation) + 0.01 * moveLocs[i].distanceSquaredTo(enemyLocation));\n }\n }\n }\n\n int flag = CommunicationMovement.encodeMovement(true, true, CommunicationMovement.MY_UNIT_TYPE.SL, CommunicationMovement.MOVEMENT_BOTS_DATA.NOT_MOVING, CommunicationMovement.COMMUNICATION_TO_OTHER_BOTS.NOOP, false, false, 0);\n int bestValidDirection = -1;\n double bestValidReward = rewardOfStaying;\n\n if (foundEnemyMuckraker) {\n int bestDirection = -1;\n double bestReward = rewardOfStaying;\n\n for (int i = 0; i < idx; ++i) {\n if (moveRewards[i] > bestReward) { //find the best direction based on the reward\n bestDirection = i;\n bestReward = moveRewards[i];\n }\n }\n\n /* MOVE TOWARDS ME IS SET SO POLITICANS CAN MOVE TOWARDS THIS BOT (NOT SLANDERERS) -> BE CAREFUL IF/WHEN PARSING THIS SETTING */\n flag = CommunicationMovement.encodeMovement(true, true, CommunicationMovement.MY_UNIT_TYPE.SL, CommunicationMovement.convert_DirectionInt_MovementBotsData(bestDirection), CommunicationMovement.COMMUNICATION_TO_OTHER_BOTS.MOVE_TOWARDS_ME, false, true, 0);\n\n for (int i = 0; i < canMoveIndicesSize; ++i) {\n if (moveRewards[canMoveIndices[i]] > bestValidReward) {\n bestValidDirection = canMoveIndices[i];\n bestValidReward = moveRewards[canMoveIndices[i]];\n }\n }\n }\n\n // if a politician or slanderer has both a muckraker and slanderer in range, then run away opposite of the danger direction\n int bestDirectionBasedOnPoliticianDangerIdx = -1;\n if (!foundEnemyMuckraker) {\n for (RobotInfo robotInfo : Cache.ALL_NEARBY_FRIENDLY_ROBOTS) {\n if (robotInfo.getType() == RobotType.POLITICIAN || robotInfo.getType() == RobotType.MUCKRAKER) {\n\n if (controller.canGetFlag(robotInfo.ID)) {\n int encodedFlag = controller.getFlag(robotInfo.ID);\n if (CommunicationMovement.decodeIsSchemaType(encodedFlag) &&\n CommunicationMovement.decodeIsDangerBit(encodedFlag)) {\n\n if (CommunicationMovement.decodeMyUnitType(encodedFlag) == CommunicationMovement.MY_UNIT_TYPE.PO\n || CommunicationMovement.decodeMyUnitType(encodedFlag) == CommunicationMovement.MY_UNIT_TYPE.MU) {\n //A POLITICIAN OR MUCKRAKER WHO SAYS HE IS IN DANGER (enemy muckraker nearby)\n CommunicationMovement.MOVEMENT_BOTS_DATA badArea = CommunicationMovement.decodeMyPreferredMovement(encodedFlag);\n int badIdx = CommunicationMovement.convert_MovementBotData_DirectionInt(badArea);\n Direction bestDirection = Constants.DIRECTIONS[badIdx].opposite();\n bestDirectionBasedOnPoliticianDangerIdx = bestDirection.ordinal();\n break;\n }\n }\n }\n }\n }\n }\n\n /* Set communication for other slanderers if there is a muckraker within my range */\n if (!Comms.hasSetFlag && controller.canSetFlag(flag)) {\n Comms.hasSetFlag = true;\n controller.setFlag(flag);\n }\n\n /* Below is based on movement */\n if (!controller.isReady()) return 1;\n\n if (foundEnemyMuckraker) {\n if (bestValidDirection != -1) {\n controller.move(Constants.DIRECTIONS[bestValidDirection]);\n return 2;\n }\n return 1;\n }\n\n\n /* No muckrakers were found, so we need to check the flags of nearby slanderer units instead. */\n double closestLocation = 9998;\n int preferedMovementDirectionIdx = -1;\n\n for (RobotInfo robotInfo : Cache.ALL_NEARBY_FRIENDLY_ROBOTS) {\n if (robotInfo.getType() == RobotType.POLITICIAN) { //SLANDERERS THINK ALL SLANDERERS ARE POLITICIANS, so we need to check politicians here...\n double dist = Pathfinding.travelDistance(Cache.CURRENT_LOCATION, robotInfo.location)\n + 0.01 * Cache.CURRENT_LOCATION.distanceSquaredTo(robotInfo.location);\n if (dist < closestLocation && controller.canGetFlag(robotInfo.ID)) { //the closest bot in danger to us is our biggest threat as well\n int encodedFlag = controller.getFlag(robotInfo.ID);\n\n if (CommunicationMovement.decodeIsSchemaType(encodedFlag)) {\n if (CommunicationMovement.decodeMyUnitType(encodedFlag) == CommunicationMovement.MY_UNIT_TYPE.SL && CommunicationMovement.decodeIsDangerBit(encodedFlag)) {\n CommunicationMovement.MOVEMENT_BOTS_DATA movementBotsData = CommunicationMovement.decodeMyPreferredMovement(encodedFlag);\n preferedMovementDirectionIdx = CommunicationMovement.convert_MovementBotData_DirectionInt(movementBotsData);\n closestLocation = dist;\n }\n }\n }\n }\n }\n\n if (preferedMovementDirectionIdx != -1) {\n Direction direction = Pathfinding.toMovePreferredDirection(Constants.DIRECTIONS[preferedMovementDirectionIdx], 1);\n if (direction != null) {\n controller.move(direction);\n return 2;\n }\n return 1;\n }\n\n if (bestDirectionBasedOnPoliticianDangerIdx != -1) {\n Direction direction = Pathfinding.toMovePreferredDirection(Constants.DIRECTIONS[bestDirectionBasedOnPoliticianDangerIdx], 1);\n if (direction != null) {\n controller.move(direction);\n return 2;\n }\n return 1;\n }\n\n return 0; // no reason whatsoever to move\n }", "private void moveForwards() {\n\t\tposition = MoveAlgorithmExecutor.getAlgorithmFromCondition(orientation).execute(position);\n\t\t\n\t\t// Extracted the condition to check if tractor is in Ditch\n\t\tif(isTractorInDitch()){\n\t\t\tthrow new TractorInDitchException();\n\t\t}\n\t}", "@Test\n public void discardIfCannot() {\n gm.setPlayerInfo(clientPlayer3);\n gm.setThisPlayerIndex(clientPlayer3.getPlayerIndex());\n dc.increaseAmount(ResourceType.ORE);\n dc.increaseAmount(ResourceType.ORE);\n dc.increaseAmount(ResourceType.WOOD);\n assertEquals(2, getAmounts().getOfType(ResourceType.ORE));\n assertEquals(1, getAmounts().getOfType(ResourceType.WOOD));\n Player p = model.getPlayer(clientPlayer3.getPlayerIndex());\n when(robberFacade.canDiscard(dc.getDiscardAmount(), p)).thenReturn(false);\n dc.discard();\n // This verifies that the robberFacade.discard is only called once instead of twice\n verify(robberFacade, atMost(1)).discard(dc.getDiscardAmount(), p);\n\n }", "private void scoreloss() {\n \tif (playerturn%2==0) {\n \tscoreplayer1 = scoreplayer1-1;}\n if(playerturn%2==1) {\n \tscoreplayer2 = scoreplayer2-1;\n }\n }", "@Override\r\n\tpublic void resetTurn() {\r\n\t\tmoveDistanceRemaining = 3;\r\n\t\thasAttackedOrDefended = false;\r\n\t\tif (isRested) {\r\n\t\t\thealth += Math.floor(Math.random()*(6)+5); // add between 5 and 10 health to character\r\n\t\t\thealth = Math.min(health, 100);\r\n\t\t}\r\n\t}", "public void endTurn()\n\t{\n\t\tthis.decrementEffectDurations();\n\t\tdoneWithTurn = true;\n\t}", "public String decreeseTries() {\r\n\t\ttries--;\r\n\t\tif (tries == 0) {\r\n\t\t\tscore--;\r\n\t\t\tboolean lose = true;\r\n\t\t\tboolean stringWin = false;\r\n\t\t\treturn parseState(lose, stringWin);\r\n\t\t}\r\n\t\tboolean lose = false;\r\n\t\tboolean stringWin = false;\r\n\t\treturn parseState(lose, stringWin);\r\n\t}", "@Override\n\tpublic void happen(int rollResult) {\n\t\tint i = 0;\n\t\tBoolean greaterThan2 = true;\n\t\twhile (i < 4){\n\t\t\tif (rollResult < 2 ){\n\t\t\t\tgreaterThan2 = false;\n\t\t\t\tswitch (i){\n\t\t\t\t\tcase 0: Game.getInstance().getCurrentCharacter().decrementKnowledge(); break;\n\t\t\t\t\tcase 1: Game.getInstance().getCurrentCharacter().decrementMight(); break;\n\t\t\t\t\tcase 2: Game.getInstance().getCurrentCharacter().decrementSanity(); break; \n\t\t\t\t\tcase 3: Game.getInstance().getCurrentCharacter().decrementSpeed(); break;\n\t\t\t\t}\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tif(greaterThan2){\n\t\t\tGame.getInstance().getCurrentCharacter().incrementKnowledge(); // TODO: Change this to allow player to choose trait\n\t\t}\n\t}", "private void wrap() {\n System.out.println(\"That's a wrap!\");\n Board.finishScene();\n List<Role> onCardRoles = scene.getRoles();\n for (int i = 0; i < onCardRoles.size(); i++) {\n if (onCardRoles.get(i).hasPlayer()) {\n int[] diceRolls = new int[scene.getBudget()];\n //roll the dice\n for (int j = 0; j < scene.getBudget(); j++) {\n diceRolls[j] = random.nextInt(6) + 1;\n }\n //sort the dice\n Arrays.sort(diceRolls);\n //set up the payouts and distribute them among the players\n int[] payouts = new int[onCardRoles.size()];\n\n for (int j = scene.getBudget() - 1; j >= 0; j--) {\n payouts[((scene.getBudget() - j) % onCardRoles.size()) - 1] = diceRolls[j];\n }\n\n for (int j = 0; j < onCardRoles.size(); j++) {\n if (onCardRoles.get(j).hasPlayer()) {\n Player player = onCardRoles.get(j).getPlayer();\n player.clearPracticeChips();\n Deadwood.bank.payMoney(player, payouts[j]);\n System.out.println(player.getName() + \" got $\" + payouts[j]);\n }\n }\n\n for (int j = 0; j < roles.size(); j++) {\n if (roles.get(j).hasPlayer()) {\n Player player = roles.get(j).getPlayer();\n player.clearPracticeChips();\n Deadwood.bank.payMoney(player, roles.get(j).getRequiredRank());\n System.out.println(player.getName() + \" got $\" + roles.get(j).getRequiredRank());\n }\n }\n }\n break;\n }\n for (int i = 0; i < onCardRoles.size(); i++) {\n if (onCardRoles.get(i).hasPlayer()) {\n onCardRoles.get(i).getPlayer().setRole(null);\n onCardRoles.get(i).setPlayer(null);\n }\n }\n for (int i = 0; i < roles.size(); i++) {\n if (roles.get(i).hasPlayer()) {\n roles.get(i).getPlayer().setRole(null);\n roles.get(i).setPlayer(null);\n }\n }\n }", "@Test\n public void testModeAfterRollback() {\n addCard(Zone.BATTLEFIELD, playerA, \"Swamp\", 4);\n // At the beginning of your upkeep, choose one that hasn't been chosen\n // (1) - Demonic Pact deals 4 damage to any target and you gain 4 life;\n // (2) - Target opponent discards two cards\n // (3) - Draw two cards\n // (4) - You lose the game.\n addCard(Zone.HAND, playerA, \"Demonic Pact\"); // Enchantment {2}{B}{B}\n\n castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, \"Demonic Pact\");\n\n setModeChoice(playerA, \"1\");\n addTarget(playerA, playerB);\n\n rollbackTurns(3, PhaseStep.PRECOMBAT_MAIN, playerA, 0);\n\n setStopAt(3, PhaseStep.BEGIN_COMBAT);\n execute();\n\n assertHandCount(playerA, 1); // 1 from regular draws\n assertHandCount(playerB, 1); // 1 from regular draw\n\n assertLife(playerA, 24);\n assertLife(playerB, 16);\n\n }", "public boolean plizMovePlayerForward(Player player)\n {\n\n //check if die was rolled\n if (getValue_from_die() > 0)\n {\n int x_cord = player.getX_cordinate();\n int y_cord = player.getY_cordinate();\n int steps = player.getSteps_moved();\n\n //try to get player from color home\n if (attempt2GetPlayerFromHomeSucceds(player))\n {\n return true;\n }\n\n //if player has already reached home do nothing\n if (player.getSteps_moved() >= 58)\n {\n return false;\n }\n //if player is inside home stretch he has to play exact number to go home\n else if (player.getSteps_moved() >= 52)\n {\n if (59 - player.getSteps_moved() <= value_from_die)\n {\n return false;\n }\n }\n\n //if player isnt at home move him\n if (player.getSteps_moved() > 0)\n {\n for (int i = 1; i <= (value_from_die); i++)\n {\n player.movePlayerForward();\n if (roadBlocked(player))\n {\n road_blocked = true;\n }\n player.setHas_not_been_drawn(true);\n }\n\n //roll back changes\n if (road_blocked)\n {\n player.setX_cordinate(x_cord);\n player.setY_cordinate(y_cord);\n player.setSteps_moved(steps);\n ludo.setDrawRoadBlockedSign(true);\n //println(\"ROAD BLOCKED\");\n road_blocked = false;\n return false;\n }\n playPlayerHasMovedMusic();\n //see if player eats someone\n if (getPerson_to_play() == 1)\n {\n BlueEatsPlayer(player);\n }\n else if (getPerson_to_play() == 2)\n {\n RedEatsPlayer(player);\n }\n else if (getPerson_to_play() == 3)\n {\n GreenEatsPlayer(player);\n }\n else if (getPerson_to_play() == 4)\n {\n YellowEatsPlayer(player);\n }\n if (value_from_die == 6)\n {\n resetDieScore();\n ludo.setDrawScoreAllowed(false);\n return true;\n }\n //reset variables and change person to play\n resetDieScore();\n ludo.setDrawScoreAllowed(false);\n changePersonToPlay();\n return true;\n }\n //occurs rarely at the begining of the game\n else\n {\n //println(\"steps less than 0\");\n return false;\n }\n }\n else\n {\n //println(\"PLIZ ROLL DIE FIRST THEN MOVE BUTTON\");\n return false;\n }\n }", "public void forceDiscard(TurnTracker turn_tracker_pointer, int player_index) throws Exception;", "public Move redoMove ()\n {\n Move redoneMove = Move.redoMove();\n setGridElement(redoneMove.getRow(), redoneMove.getColumn(), redoneMove.getPlayer());\n Move.addMoveToPlayedMoveStack(redoneMove);\n return redoneMove;\n }", "void finishTurn();", "void doNegativeEffect(Skill castSkill, double power, Creature performer, Item target) {\n/* 200 */ performer.getCommunicator().sendNormalServerMessage(\"The \" + target\n/* 201 */ .getName() + \" emits a deep worrying sound of resonance, but stays intact.\", (byte)3);\n/* */ }", "@Override\n public boolean continueExecuting()\n {\n theEntity.decrementRearingCounter();;\n Boolean continueExecuting = theEntity.getRearingCounter()>0; \n if (!continueExecuting)\n {\n theEntity.setRearing(false);\n theEntity.setAttackTarget(theEntity.getLastAttacker()); // now attack back\n }\n // DEBUG\n if (theEntity.getAITarget() != null)\n {\n System.out.println(\"AIPanic continueExecuting = \"+continueExecuting+\", rearingCounter = \"+theEntity.getRearingCounter()+\", isRearing = \"\n +theEntity.isRearing()+\", Attack Target = \"+theEntity.getAITarget().getClass().getSimpleName()+\", client side = \"+theEntity.worldObj.isRemote);\n }\n else\n {\n System.out.println(\"AIPanic continueExecuting = \"+continueExecuting+\", rearingCounter = \"+theEntity.getRearingCounter()+\", isRearing = \"\n +theEntity.isRearing()+\", Attack Target = null\"+\", client side = \"+theEntity.worldObj.isRemote);\n }\n return (continueExecuting);\n }", "boolean CanFinishTurn();", "@Override\n public void action() {\n while (turn.getPlayer().getFightDecision() == null){\n ;\n }\n FightDecision decision = turn.getPlayer().getFightDecision();\n if (decision== FightDecision.IGNORE){\n turn.getPlayer().setFightDecision(null);\n turn.setPhase(new MovePhase(y));\n }else{\n turn.getPlayer().setFightDecision(null);\n turn.setPhase(new FightPhase());\n }\n }", "private static Score4MoveType winnerDecission(int opponentPawns, int mePawns) {\n\t\tif (opponentPawns == mePawns && opponentPawns > 0) {\n\t\t\treturn Score4MoveType.DRAW;\n\t\t}\n\t\tif (opponentPawns > mePawns) {\n\t\t\treturn Score4MoveType.LOST;\n\t\t}\n\t\tif (opponentPawns < mePawns) {\n\t\t\treturn Score4MoveType.WON;\n\t\t}\n\t\treturn null;\n\t}", "public void tryTakeRole() {\n if (currentPlayer.isEmployed() == false) {\n if(currentPlayer.getLocation().getName() == \"office\" || currentPlayer.getLocation().getName() == \"trailer\"){\n view.showPopUp(currentPlayer.isComputer(), \"You are currently in the \" + currentPlayer.getLocation().getName() + \" please move to a tile that has a role\");\n }\n else{\n if(currentPlayer.getLocation().getFlipStage() == 2){\n view.showPopUp(currentPlayer.isComputer(), \"This scene has already finished! You're too late!!\");\n }\n else{\n String chosenRole = chooseRole();\n if (chosenRole.equals(\"\")) {\n return;\n }\n currentPlayer.takeRole(chosenRole);\n\n if (currentPlayer.isEmployed()) {\n if(\n !board.isOnCard(\n currentPlayer.getRole().getName(), currentPlayer.getLocation())\n )\n {\n currentPlayer.setOnCardAreaData(currentPlayer.getRole().getArea());\n }\n else\n {\n currentPlayer.setAreaData(currentPlayer.getRole().getArea());\n }\n refreshPlayerPanel();\n \n }\n }\n }\n } else {\n view.showPopUp(currentPlayer.isComputer(), \"You're already employed, so you can't take another role until you finish this one\");\n } \n view.updateSidePanel(playerArray);\n }", "public void restart() {\n\t\tmadeMove = false;\n\t\tcurrentPit = -1;\n\t\tnewGame(player1.getName(), player2.getName(), originalCount); \n\t}", "private void desfazMovi(Posicao origem, Posicao destino, Peca pecaCapturada){\n\t\tPecaXadrez p = (PecaXadrez)tabuleiro.removePeca(destino);\n\t\tp.subContadorMovi();\n\t\ttabuleiro.colocarPeca(p, origem); // volta a peca para origem\n\t\t\n\t\tif (pecaCapturada != null) {\n\t\t\ttabuleiro.colocarPeca(pecaCapturada, destino); // volta a peca capturada\n\t\t\tpecasCapturadas.remove(pecaCapturada);\n\t\t\tpecasTabuleiro.add(pecaCapturada);\n\t\t}\n\t\t\n\t\t// enpassant\n\t\tif (p instanceof Peao) {\n\t\t\t// Se o peao andou na vertical e nao e captura e um enpassant\n\t\t\tif (origem.getCol() != destino.getCol() && pecaCapturada == enPassant) {\n\t\t\t\tPecaXadrez peao = (PecaXadrez)tabuleiro.removePeca(destino);\n\t\t\t\tPosicao peaoPosicao;\n\t\t\t\t// Captura o peao oponente\n\t\t\t\tif (p.getCor() == Cor.BRANCA) {\n\t\t\t\t\tpeaoPosicao = new Posicao(3, destino.getCol());\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tpeaoPosicao = new Posicao(4, destino.getCol());\n\t\t\t\t}\n\t\t\t\ttabuleiro.colocarPeca(peao, peaoPosicao);\n\t\t\t}\n\t\t}\n\t}", "static boolean compRollAgain(int score, int turnScore) {\n\t\tif (turnScore+score>90) return true;\t//lol\n\t\tif (turnScore>20) {System.out.println(\"comp decided to end turn\");return false;}else return true;}", "@Override\n\tpublic void movePawn(Pawn pawn, Deck deck,int choice)\n\t{\n\t\tboolean move_Result=false;\n\t\tswitch (choice)\n\t\t{\n\t\tcase 1:\n\t\t\tmove_Result=beginFromStart(pawn,deck);\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tmove_Result=moveByTwo(pawn, deck);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\t//check if the move that the user chose is valid or make the other move if it's possible\n \n\t\tif(choice==1 && move_Result==false)\n\t\t{\n\t\t\tmoveByTwo(pawn, deck);\n\t\t\t\n\t\t\t\n\t\t}\n\t\telse if(choice==2 && move_Result==false)\n\t\t{\n\t\t\tif ( beginFromStart(pawn,deck) ) \n\t\t\t{\n\t\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//fold to continue\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "@Override\n public void onRewarded(RewardItem reward) {\n\n // Reward the user.\n }", "@Override\n\tprotected void calculateRewards(final L2Character lastAttacker)\n\t{\n\t\t// Creates an empty list of rewards\n\t\tfinal Map<L2Character, RewardInfoHolder> rewards = new ConcurrentHashMap<>();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tif (getAggroListRP().isEmpty())\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tif (EngineModsManager.onNpcExpSp(this, lastAttacker))\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tL2PcInstance maxDealer = null;\n\t\t\tint maxDamage = 0;\n\t\t\t\n\t\t\tint damage;\n\t\t\t\n\t\t\tL2Character attacker, ddealer;\n\t\t\t\n\t\t\t// While Interacting over This Map Removing Object is Not Allowed\n\t\t\tsynchronized (getAggroList())\n\t\t\t{\n\t\t\t\t// Go through the aggroList of the L2Attackable\n\t\t\t\tfor (final AggroInfoHolder info : getAggroListRP().values())\n\t\t\t\t{\n\t\t\t\t\tif (info == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// Get the L2Character corresponding to this attacker\n\t\t\t\t\tattacker = info.getAttacker();\n\t\t\t\t\t\n\t\t\t\t\t// Get damages done by this attacker\n\t\t\t\t\tdamage = info.getDmg();\n\t\t\t\t\t\n\t\t\t\t\t// Prevent unwanted behavior\n\t\t\t\t\tif (damage > 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (attacker instanceof L2SummonInstance || attacker instanceof L2PetInstance && ((L2PetInstance) attacker).getPetData().getOwnerExpTaken() > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tddealer = ((L2Summon) attacker).getOwner();\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\tddealer = info.getAttacker();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Check if ddealer isn't too far from this (killed monster)\n\t\t\t\t\t\tif (!Util.checkIfInRange(Config.ALT_PARTY_RANGE, this, ddealer, true))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Calculate real damages (Summoners should get own damage plus summon's damage)\n\t\t\t\t\t\tRewardInfoHolder reward = rewards.get(ddealer);\n\t\t\t\t\t\tif (reward == null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treward = new RewardInfoHolder(ddealer, damage);\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\treward.addDamage(damage);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\trewards.put(ddealer, reward);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (ddealer instanceof L2PlayableInstance && ((L2PlayableInstance) ddealer).getActingPlayer() != null && reward.getDmg() > maxDamage)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmaxDealer = ((L2PlayableInstance) ddealer).getActingPlayer();\n\t\t\t\t\t\t\tmaxDamage = reward.getDmg();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Manage Base, Quests and Sweep drops of the L2Attackable\n\t\t\tdoItemDrop(maxDealer != null && maxDealer.isOnline() ? maxDealer : lastAttacker);\n\t\t\t\n\t\t\t// Manage drop of Special Events created by GM for a defined period\n\t\t\tdoEventDrop(maxDealer != null && maxDealer.isOnline() ? maxDealer : lastAttacker);\n\t\t\t\n\t\t\tif (!getMustRewardExpSP())\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tif (!rewards.isEmpty())\n\t\t\t{\n\t\t\t\tL2Party attackerParty;\n\t\t\t\tlong exp;\n\t\t\t\tint levelDiff, partyDmg, partyLvl, sp;\n\t\t\t\tfloat partyMul, penalty;\n\t\t\t\tRewardInfoHolder reward2;\n\t\t\t\tint[] tmp;\n\t\t\t\t\n\t\t\t\tfor (final RewardInfoHolder reward : rewards.values())\n\t\t\t\t{\n\t\t\t\t\tif (reward == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// Penalty applied to the attacker's XP\n\t\t\t\t\tpenalty = 0;\n\t\t\t\t\t\n\t\t\t\t\t// Attacker to be rewarded\n\t\t\t\t\tattacker = reward.getAttacker();\n\t\t\t\t\t\n\t\t\t\t\t// Total amount of damage done\n\t\t\t\t\tdamage = reward.getDmg();\n\t\t\t\t\t\n\t\t\t\t\t// If the attacker is a Pet, get the party of the owner\n\t\t\t\t\tif (attacker instanceof L2PetInstance)\n\t\t\t\t\t{\n\t\t\t\t\t\tattackerParty = ((L2PetInstance) attacker).getParty();\n\t\t\t\t\t}\n\t\t\t\t\telse if (attacker instanceof L2PcInstance)\n\t\t\t\t\t{\n\t\t\t\t\t\tattackerParty = ((L2PcInstance) attacker).getParty();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// If this attacker is a L2PcInstance with a summoned L2SummonInstance, get Exp Penalty applied for the current summoned L2SummonInstance\n\t\t\t\t\tif (attacker instanceof L2PcInstance && ((L2PcInstance) attacker).getPet() instanceof L2SummonInstance)\n\t\t\t\t\t{\n\t\t\t\t\t\tpenalty = ((L2SummonInstance) ((L2PcInstance) attacker).getPet()).getExpPenalty();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// We must avoid \"over damage\", if any\n\t\t\t\t\tif (damage > getMaxHp())\n\t\t\t\t\t{\n\t\t\t\t\t\tdamage = getMaxHp();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// If there's NO party in progress\n\t\t\t\t\tif (attackerParty == null)\n\t\t\t\t\t{\n\t\t\t\t\t\t// Calculate Exp and SP rewards\n\t\t\t\t\t\tif (attacker.getKnownList().knowsObject(this))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// Calculate the difference of level between this attacker (L2PcInstance or L2SummonInstance owner) and the L2Attackable\n\t\t\t\t\t\t\t// mob = 24, atk = 10, diff = -14 (full xp)\n\t\t\t\t\t\t\t// mob = 24, atk = 28, diff = 4 (some xp)\n\t\t\t\t\t\t\t// mob = 24, atk = 50, diff = 26 (no xp)\n\t\t\t\t\t\t\tlevelDiff = attacker.getLevel() - getLevel();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttmp = calculateExpAndSp(levelDiff, damage);\n\t\t\t\t\t\t\texp = tmp[0];\n\t\t\t\t\t\t\texp *= 1 - penalty;\n\t\t\t\t\t\t\tsp = tmp[1];\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (Config.L2JMOD_CHAMPION_ENABLE && isChampion())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\texp *= Config.L2JMOD_CHAMPION_REWARDS;\n\t\t\t\t\t\t\t\tsp *= Config.L2JMOD_CHAMPION_REWARDS;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Check for an over-hit enabled strike and VIP options\n\t\t\t\t\t\t\tif (attacker instanceof L2PcInstance)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tfinal L2PcInstance player = (L2PcInstance) attacker;\n\t\t\t\t\t\t\t\tif (isOverhit() && attacker == getOverhitAttacker())\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tplayer.sendPacket(new SystemMessage(SystemMessageId.OVER_HIT));\n\t\t\t\t\t\t\t\t\texp += calculateOverhitExp(exp);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (player.isVIP())\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\texp = (long) (exp * Config.VIP_XPSP_RATE);\n\t\t\t\t\t\t\t\t\tsp = (int) (sp * Config.VIP_XPSP_RATE);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Distribute the Exp and SP between the L2PcInstance and its L2Summon\n\t\t\t\t\t\t\tif (!attacker.isDead())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tattacker.addExpAndSp(Math.round(attacker.calcStat(Stats.EXPSP_RATE, exp, null, null)), (int) attacker.calcStat(Stats.EXPSP_RATE, sp, null, null));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t// share with party members\n\t\t\t\t\t\tpartyDmg = 0;\n\t\t\t\t\t\tpartyMul = 1.f;\n\t\t\t\t\t\tpartyLvl = 0;\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Get all L2Character that can be rewarded in the party\n\t\t\t\t\t\tfinal List<L2PlayableInstance> rewardedMembers = new ArrayList<>();\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Go through all L2PcInstance in the party\n\t\t\t\t\t\tList<L2PcInstance> groupMembers;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (attackerParty.isInCommandChannel())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tgroupMembers = attackerParty.getCommandChannel().getMembers();\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\tgroupMembers = attackerParty.getPartyMembers();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (final L2PcInstance pl : groupMembers)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (pl == null || pl.isDead())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Get the RewardInfo of this L2PcInstance from L2Attackable rewards\n\t\t\t\t\t\t\treward2 = rewards.get(pl);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// If the L2PcInstance is in the L2Attackable rewards add its damages to party damages\n\t\t\t\t\t\t\tif (reward2 != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif (Util.checkIfInRange(Config.ALT_PARTY_RANGE, this, pl, true))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tpartyDmg += reward2.getDmg(); // Add L2PcInstance damages to party damages\n\t\t\t\t\t\t\t\t\trewardedMembers.add(pl);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif (pl.getLevel() > partyLvl)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif (attackerParty.isInCommandChannel())\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tpartyLvl = attackerParty.getCommandChannel().getLevel();\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tpartyLvl = pl.getLevel();\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\trewards.remove(pl); // Remove the L2PcInstance from the L2Attackable rewards\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// Add L2PcInstance of the party (that have attacked or not) to members that can be rewarded\n\t\t\t\t\t\t\t\t// and in range of the monster.\n\t\t\t\t\t\t\t\tif (Util.checkIfInRange(Config.ALT_PARTY_RANGE, this, pl, true))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\trewardedMembers.add(pl);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif (pl.getLevel() > partyLvl)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif (attackerParty.isInCommandChannel())\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tpartyLvl = attackerParty.getCommandChannel().getLevel();\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tpartyLvl = pl.getLevel();\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfinal L2PlayableInstance summon = pl.getPet();\n\t\t\t\t\t\t\tif (summon != null && summon instanceof L2PetInstance)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\treward2 = rewards.get(summon);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif (reward2 != null) // Pets are only added if they have done damage\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif (Util.checkIfInRange(Config.ALT_PARTY_RANGE, this, summon, true))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tpartyDmg += reward2.getDmg(); // Add summon damages to party damages\n\t\t\t\t\t\t\t\t\t\trewardedMembers.add(summon);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tif (summon.getLevel() > partyLvl)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tpartyLvl = summon.getLevel();\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\trewards.remove(summon); // Remove the summon from the L2Attackable rewards\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t// If the party didn't killed this L2Attackable alone\n\t\t\t\t\t\tif (partyDmg < getMaxHp())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpartyMul = (float) partyDmg / (float) getMaxHp();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Avoid \"over damage\"\n\t\t\t\t\t\tif (partyDmg > getMaxHp())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpartyDmg = getMaxHp();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Calculate the level difference between Party and L2Attackable\n\t\t\t\t\t\tlevelDiff = partyLvl - getLevel();\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Calculate Exp and SP rewards\n\t\t\t\t\t\ttmp = calculateExpAndSp(levelDiff, partyDmg);\n\t\t\t\t\t\texp = tmp[0];\n\t\t\t\t\t\tsp = tmp[1];\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (Config.L2JMOD_CHAMPION_ENABLE && isChampion())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\texp *= Config.L2JMOD_CHAMPION_REWARDS;\n\t\t\t\t\t\t\tsp *= Config.L2JMOD_CHAMPION_REWARDS;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\texp *= partyMul;\n\t\t\t\t\t\tsp *= partyMul;\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Check for an over-hit enabled strike\n\t\t\t\t\t\t// (When in party, the over-hit exp bonus is given to the whole party and splitted proportionally through the party members)\n\t\t\t\t\t\tif (attacker instanceof L2PcInstance)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfinal L2PcInstance player = (L2PcInstance) attacker;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (isOverhit() && attacker == getOverhitAttacker())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tplayer.sendPacket(new SystemMessage(SystemMessageId.OVER_HIT));\n\t\t\t\t\t\t\t\texp += calculateOverhitExp(exp);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Distribute Experience and SP rewards to L2PcInstance Party members in the known area of the last attacker\n\t\t\t\t\t\tif (partyDmg > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tattackerParty.distributeXpAndSp(exp, sp, rewardedMembers, partyLvl);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (final Exception e)\n\t\t{\n\t\t\tLOGGER.error(\"\", e);\n\t\t}\n\t}", "protected boolean processPlayerDeclined(int gameNum, String playerName, String offer){\n return false;\n }", "void playerTurn(Player actualPlayer) {\n aiPlayer.chooseAction(actualPlayer);\n actualPlayer.setTheirTurn(false);\n }", "public void dealPlayer() {\n //Deal two cards to the player\n playerStack.add(cards[talonStack]);\n playerScore += evaluateCardScore(playerScore, cards[talonStack].rank);\n talonStack++;\n\n playerStack.add(cards[talonStack]);\n playerScore += evaluateCardScore(playerScore, cards[talonStack].rank);\n talonStack++;\n }", "public static void damageStep () {\r\n // rough plan:\r\n // #1: flip defending monster, if face down -> see flipMonster(...);\r\n // #2: Ask CPU and player for possible effect negation! (For an attack negation it is too late!) -> see below in this method\r\n // #3: calculate damage, kill monsters, if needed\r\n // (consider also banishing and immunity, also copied passive effect of (Holy) Lance)\r\n // -> see makeDamageCalculation(...);\r\n // #4: decrease life points, if needed -> see isDealingBattleDamageAndContinuingGame(...);\r\n // #5: consider passive (also copied) trap monster effects -> see possibleSuicideEffect(...);\r\n // #6: display Win/Lose dialog and end match, if needed -> see Game.over(...);\r\n // #7: finally end the attack (consider the effects that happen afterwards), thus allowing the next attack -> endDamageStep(...);\r\n \r\n // about #1:\r\n if (Game.ActiveGuardingMonster.isFaceDown) {flipMonster(Game.ActiveGuardingMonster);}\r\n // about #2:\r\n if (Game.ActiveAttackingMonster.canBeNegated() || Game.ActiveGuardingMonster.canBeNegated()) {\r\n AIinterrupts.cpuIsUsingEffectNegateDuringBattlePhase(); // ask CPU to negate effects first\r\n // ask player to negate effect here\r\n boolean isCanceling = false;\r\n boolean hasEffectNegateHandTrap = Hand.lookForEffectNegateOnHand(true);\r\n boolean hasEffectNegateOnField = Hand.lookForEffectNegateOnField(true);\r\n if (hasEffectNegateHandTrap || hasEffectNegateOnField) {\r\n if (hasEffectNegateHandTrap && !hasEffectNegateOnField) {\r\n isCanceling = PlayerInterrupts.playerMayNegateEffect(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster, true);\r\n }\r\n else if (!hasEffectNegateHandTrap && hasEffectNegateOnField) {\r\n isCanceling = PlayerInterrupts.playerMayNegateEffect(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster, false);\r\n }\r\n else {\r\n int intDialogResult = YuGiOhJi.multipleChoiceDialog(\"Do you want to negate effects on the field?\", \"You can negate passive effects.\", new String[]{\"yes, by discarding Neutraliser\", \"yes, by paying the cost worth 1 card\", \"no (default)\"}, \"no (default)\");\r\n if (intDialogResult==0) {\r\n isCanceling = PlayerInterrupts.playerMayNegateEffect(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster, true);\r\n }\r\n else if (intDialogResult==1) {\r\n isCanceling = PlayerInterrupts.playerMayNegateEffect(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster, false);\r\n }\r\n }\r\n }\r\n if (!isCanceling) {\r\n makeDamageCalculation(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster); // whole rest of battle\r\n }\r\n }\r\n else {\r\n makeDamageCalculation(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster); // whole rest of battle\r\n }\r\n \r\n }", "public void endTurn(int player)\r\n/* 282: */ {\r\n/* 283:320 */ for (AgentModel model : this.agentModels.values()) {\r\n/* 284:322 */ if (model.getPlayer() == player)\r\n/* 285: */ {\r\n/* 286:324 */ model.clearMovementStack();\r\n/* 287:325 */ model.setAp(0);\r\n/* 288: */ }\r\n/* 289: */ }\r\n/* 290: */ }", "private void War() \n { Player tempPlayer = new Player();\n Card First,Second;\n First=FirstPlayer.removeTheCard();\n Second=SecondPlayer.removeTheCard();\n \n for(int i=0;i<3;i++)\n {\n tempPlayer.addCardToBegining(First);\n tempPlayer.addCardToBegining(Second);\n }\n if(First.getCardValue() > Second.getCardValue())\n moveTheCardsTotheWinner(1,tempPlayer);\n if(First.getCardValue() < Second.getCardValue())\n moveTheCardsTotheWinner(2,tempPlayer);\n }", "public void undo() {\n\t\tif (currentPlayer.getUndos() > 0) {\n\t\t\tcurrentPlayer.updateUndos();\n\t\t\t//System.out.println(\"Current Player's Undos!\" + currentPlayer.getUndos());\n\t\t\tturnEnd = false;\n\t\t\tmadeMove = false;\n\t\t\tboard = cloneForUndo;\n\t\t\t//printBoard();\n\t\t}\n\t}", "public void resetPlayerPassed() {\n d_PlayerPassed = false;\n }", "private void endTurn() {\n currentTurn = getNextPlayer();\n }", "private void discardPrompt() {\r\n\t\tfor (int i = 0; i < mustDiscard.size(); i++) {\r\n\t\t\tString prompt = \"**[Discard]** a card \";\r\n\t\t\tif (mustDiscard.get(i).contentEquals(\"Sleight of Hand\")) {\r\n\t\t\t\tprompt += \"to draw 2 cards\";\r\n\t\t\t} else if (mustDiscard.get(i).contentEquals(\"Apothecary\")) {\r\n\t\t\t\tprompt += \"to choose one: **3** :crossed_swords: **~OR~** **2** :moneybag: **~OR~** **1** :heart:\";\r\n\t\t\t}\r\n\t\t\tgameChannel.sendMessage(prompt).queue();\r\n\t\t}\r\n\t}", "public boolean passPlayer() {\n if (this.state == 2) {\n if (this.playerBet != this.serverBet && this.money_server != 0 && this.money_player !=0) {\n return false;\n }\n // player moves and is dealer\n if (this.dealer == 1) {\n this.betRound += 1;\n if(this.betRound == 1){\n this.state = 3;\n }\n else{\n this.state = 4;\n }\n return true;\n } else {\n this.state = 1;\n return true;\n }\n } else {\n // server moves and is dealer\n if (this.dealer == 0) {\n this.betRound += 1;\n if(this.betRound == 1){\n this.state = 3;\n }\n else{\n this.state = 4;\n }\n return true;\n } else {\n this.state = 2;\n return true;\n }\n }\n }", "@Override public void clientDeclineIncomingGame(Rental rental)\r\n throws RemoteException, SQLException {\r\n gameListClientModel.clientDeclineIncomingGame(rental);\r\n }", "@Override\n\tpublic void reset(){\n\t\tstate.reset();\n\t\toldState.reset();\n\t\treturnAction = new boolean[Environment.numberOfButtons]; \n\t\trewardSoFar = 0;\n\t\tcurrentReward = 0;\n\t}", "public void haveGo(int roundsTaken)\n {\n int diceRolls = 0;\n boolean madeChoice = false;\n\n while(diceRolls <= 1){\n ArrayList<Integer> diceRoll = new ArrayList<Integer>();\n boolean firstMove = false;\n boolean secondMove = true;\n\n if(diceRolls == 0){\n //Roll dice cleanly and print related information\n System.out.println(\"\\n\\t--------------------------\\n\\t\" + this.name + \"'s Go!\\n\\t--------------------------\\n\\nRoll One...\");\n diceRoll = dice.cleanRoll();\n System.out.println(\"\\t\" + diceRoll + \"\\n\");\n\n }\n else if(diceRolls == 1)\n {\n //Roll dice based on previous preferences\n System.out.println(\"\\nRoll Two...\");\n diceRoll = dice.roll();\n System.out.println(\"\\t\" + diceRoll + \"\\n\");\n secondMove = false;\n firstMove = true;\n }\n //Make first action\n while(!firstMove)\n {\n boolean repeat = false;\n //Print Menu\n System.out.println(\"Available Actions:\");\n System.out.println(\"\\t--------------------------\");\n System.out.println(\"\\t0) Exit to Desktop\\n\\t1) Fill a Row\\n\\t2) Possible Scores\\n\\t3) Check Scorecard\\n\\t4) Clean Roll\");\n System.out.println(\"\\t--------------------------\\n\");\n System.out.println(\"Enter Choice...\");\n int choice = GameManager.makeValidChoice(-1,5);\n if(choice == 0)\n {\n //Update and send GameFinisher variables to save\n scorecard.update();\n scorer.update();\n gameFinisher.exitSequence(filename,name, diceRoll, saveString,roundsTaken, 1);\n }\n else if(choice == 3)\n {\n //Print Scorecard\n System.out.println(\"\\n*********************************************\\n\" + name + \"'s Scorecard\\n********************************************\");\n scorecard.printScorecard();\n repeat = true;\n }\n\n else if(choice == 4)\n {\n //Cleanly Roll Dice\n diceRolls++;\n firstMove = true;\n }\n else if(choice == 2)\n {\n //Print Possibilities\n scorer.printPossibilities(diceRoll, scorecard.getFreeCategories());\n repeat =true;\n }\n else if(choice == 1)\n {\n //Fill a Row\n boolean categoryUsed = true;\n while(categoryUsed)\n {\n System.out.println(\"\\nRow to Fill...\");\n int category = GameManager.makeValidChoice(-1,14);\n scorer.findPossibilities(diceRoll, scorecard.getFreeCategories());\n //Check category isnt already filled\n try{\n if(scorecard.getFreeCategories().contains(category)){\n int score = scorer.getScore(category);\n //Set row to be filled and add score\n scorecard.addCategory(category,score);\n madeChoice = true;\n categoryUsed = false;\n }\n else\n {\n System.out.println(\"Row is already filled. Please choose another...\");\n }\n } catch(NullPointerException e) \n {\n System.out.println(\"Program Crash: Free categories doesnt exist.\");\n }\n\n }\n diceRolls = 2;\n firstMove = true;\n secondMove = true;\n madeChoice = true;\n }\n else\n {\n System.out.println(\"Something's gone very wrong, you shouldn't be here...\");\n repeat = true;\n }\n if(repeat){\n if(diceRolls == 0){\n System.out.println(\"Roll One...\");\n System.out.println(\"\\t\" + diceRoll + \"\\n\");\n }\n else if(diceRolls == 1)\n {\n System.out.println(\"Roll Two...\");\n System.out.println(\"\\t\" + diceRoll + \"\\n\");\n }\n }\n }\n\n while(!secondMove)\n {\n boolean repeat = false;\n //Print Menu \n System.out.println(\"Available Actions:\");\n System.out.println(\"\\t--------------\");\n System.out.println(\"\\t0) Exit to Desktop\\n\\t1) Fill a Row\\n\\t2) Possible Scores\\n\\t3) Check Scorecard\\n\\t4) Clean Roll\\n\\t5) Hold and Roll Dice\");\n System.out.println(\"\\t--------------\\n\");\n System.out.println(\"Enter Choice...\");\n\n int choice = GameManager.makeValidChoice(-1,6);\n\n if(choice == 0)\n {\n //Update and send GameFinisher variables to save\n gameFinisher.exitSequence(filename, name, diceRoll, saveString,roundsTaken, 2);\n }\n else if(choice == 3)\n {\n //Print Scorecard\n System.out.println(\"\\n********************************************\\n\" + name + \"'s Scorecard\\n********************************************\");\n scorecard.printScorecard();\n repeat = true;\n }\n else if(choice == 5)\n {\n //Get Holdings preferences from Player\n System.out.println(\"\\n\\t--------------------------\");\n System.out.println(\"\\tDice Holder\\n\\t-----\\n\\t[0) Leave [1) Hold\");\n System.out.println(\"\\t--------------------------\\n\");\n System.out.println(diceRoll);\n System.out.println(\"---------------\");\n System.out.print(\"[\" + diceRoll.get(0) + \"]\");\n boolean one = toHold();\n System.out.print(\"[\" + diceRoll.get(1) + \"]\");\n boolean two = toHold();\n System.out.print(\"[\" + diceRoll.get(2) + \"]\");\n boolean three = toHold();\n System.out.print(\"[\" + diceRoll.get(3) + \"]\");\n boolean four = toHold();\n System.out.print(\"[\" + diceRoll.get(4) + \"]\");\n boolean five = toHold();\n //Send Preferences to Dice()\n ArrayList<Boolean> newState = new ArrayList<Boolean>();\n newState.add(one);\n newState.add(two);\n newState.add(three);\n newState.add(four);\n newState.add(five);\n dice.setDiceHoldState(newState);\n System.out.println(\"\\n\\t--------------------------\\n\\tDice Held\\n\\t-----\\n\\tRolling Dice...\\n\\t--------------------------\");\n diceRolls++;\n secondMove = true;\n }\n else if(choice == 4)\n {\n //Cleanly Roll Dice\n diceRolls++;\n secondMove = true;\n madeChoice = false;\n }\n else if(choice == 2)\n {\n //Print Possibilities\n scorer.printPossibilities(diceRoll, scorecard.getFreeCategories());\n repeat =true;\n }\n else if(choice == 1)\n {\n //Fill a Row\n boolean categoryUsed = true;\n while(categoryUsed)\n {\n System.out.println(\"What row would you like to fill?\");\n int category = GameManager.makeValidChoice(-1,14);\n //Check category isnt already filled\n try{\n if(scorecard.getFreeCategories().contains(category)){\n int score = scorer.getScore(category);\n //Set row to be filled and add score\n scorecard.addCategory(category,score);\n madeChoice = true;\n categoryUsed = false;\n }\n else\n {\n System.out.println(\"Row is already filled. Please choose another...\");\n }\n } catch(NullPointerException e) {\n System.out.println(\"Program Crash: Free categories doesnt exist.\");\n }\n }\n diceRolls = 2;\n repeat = false;\n secondMove = true;\n madeChoice = true;\n }\n else\n {\n System.out.println(\"Something's gone very wrong, you shouldn't be here...\");\n repeat = true;\n }\n\n if(repeat){\n if(diceRolls == 0){\n System.out.println(\"Roll One...\");\n System.out.println(\"\\t\" + diceRoll + \"\\n\");\n }\n else if(diceRolls == 1)\n {\n System.out.println(\"Roll Two...\");\n System.out.println(\"\\t\" + diceRoll + \"\\n\");\n }\n\n }\n }\n }\n ArrayList<Integer> diceRoll = dice.roll(); \n while(!madeChoice)\n {\n System.out.println(\"\\nFinal Roll...\");\n System.out.println(\"\\t\" + diceRoll + \"\\n\");\n //Print Menu\n System.out.println(\"Available Actions:\");\n System.out.println(\"\\t--------------------------\");\n System.out.println(\"\\t0) Exit to Desktop\\n\\t1) Fill a Row\\n\\t2) Possible Scores\\n\\t3) Check Scorecard\");\n System.out.println(\"\\t--------------------------\");\n System.out.println(\"Enter Choice...\");\n int choice = GameManager.makeValidChoice(-1,4);\n if(choice == 0)\n {\n //Update and send GameFinisher variables to save\n gameFinisher.exitSequence(filename, name, diceRoll, saveString, roundsTaken, 3);\n }\n else if(choice == 3)\n {\n //Print Scorecard\n System.out.println(\"\\n********************************************\\n\" + name + \"'s Scorecard\\n********************************************\");\n scorecard.printScorecard();\n }\n\n else if(choice == 2)\n {\n //Print Possibilities\n scorer.printPossibilities(diceRoll, scorecard.getFreeCategories());\n }\n else if(choice == 1)\n {\n //Fill a Row\n boolean categoryUsed = true;\n while(categoryUsed)\n {\n System.out.println(\"What row would you like to fill?\");\n int category = GameManager.makeValidChoice(-1,14);\n //Check category isnt already filled\n try{\n if(scorecard.getFreeCategories().contains(category)){\n int score = scorer.getScore(category);\n //Set row to be filled and add score\n scorecard.addCategory(category,score);\n madeChoice = true;\n categoryUsed = false;\n }\n else\n {\n System.out.println(\"Row is already filled. Please choose another...\");\n }\n } catch(NullPointerException e) {\n System.out.println(\"Program Crash: Free categories doesnt exist.\");\n }\n }\n }\n }\n }", "private void targetLostResponse(){\n\t\tswitch(state){\r\n\t\tcase(PURSUIT):\r\n\t\t\tstate=HUNTING;\r\n\t\t\tTile[] targetChoices=adjacentUnseenTiles(level(),targetTile);\r\n\t\t\tif(targetChoices[0]==null)\r\n\t\t\t\tstate=IDLE;\r\n\t\t\ttargetLostResponse();\r\n\t\t\tbreak;\r\n\t\tcase(HUNTING):\t//TODO: after reaching target tile, guess a new target tile, up to a point. (define what that point is) Eventually resume wandering.\r\n\t\t\tif(targetTile!=null){\r\n\t\t\t\tif(!targetTile.equalTo(monster.currentTile)){\r\n\t\t\t\t\tsaveMove();\r\n\t\t\t\t\tmonster.moveTowards(targetTile);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\t//if(!monster.currentTile.equalTo(plannedPath[0]))\r\n\t\t\t\t\t//\tmonster.moveTowards(plannedPath[0]);\r\n\t\t\t\t\tstate=IDLE;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tstate=IDLE;\r\n\t\t\t\ttargetLostResponse();\r\n\t\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase(IDLE):\r\n\t\t\twander();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public void dealerTurn() {\r\n boolean dealerContinue = false;\r\n do {\r\n for (int i = 0; i < this.getPlayers().size(); i++) {\r\n BlackjackPlayer player = (BlackjackPlayer) this.getPlayers().get(i);\r\n if (this.getHand().addCards() < player.getHand().addCards() && this.getHand().addCards() < 21 && player.getHand().addCards() <= 21) {\r\n dealerContinue = true;\r\n break;\r\n } else if (this.getHand().addCards() >= player.getHand().addCards() || this.getHand().addCards() == 21) {\r\n dealerContinue = false;\r\n }\r\n }\r\n if (dealerContinue == true) {\r\n addDealerCard();\r\n System.out.println(\"Dealer has: \" + this.getHand().toString());\r\n System.out.println(\"Card Score: \" + this.getHand().addCards());\r\n System.out.println(\"\");\r\n }\r\n } while(dealerContinue == true && this.getHand().addCards() < 21);\r\n }", "public void reinforce() {\r\n\r\n\t\tmch.clicked = false;\r\n\t\t\r\n\t\tif (phaseInit == 0) {\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tattackSlide.setVisible(false);\r\n\t\t\tattacker.setVisible(false);\r\n\t\t\treinforced = false;\r\n\t\t\t// If run out of cards, fill the cards array with the usedCards\r\n\t\t\tif (Cards.size() == 0) {\r\n\t\t\t\tCards = usedCards;\r\n\t\t\t\tusedCards = new ArrayList<Card>();\r\n\t\t\t\tCollections.shuffle(Cards);\r\n\t\t\t}\r\n\t\t\t// Dehighlight all countries that were previously highlighted\r\n\t\t\t\r\n\t\t\tfor (Player pa : players) {\r\n\t\t\t\tfor (Country ca : pa.getCountries()){\r\n\t\t\t\t\tif (ca.isHighlighted()) {\r\n\t\t\t\t\t\tnew threadz(ca, pa.getColor(), false);\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\r\n\t\t\t// If a player has attacked that turn and won at least one battle it will win a\r\n\t\t\t// card\r\n\t\t\tif (hasAttacked == true && hasWon == true) {\r\n\t\t\t\t// Give that player a card.\r\n\t\t\t\tplayers.get(turnCounter).addCard(Cards.get(0));\r\n\t\t\t\tCards.remove(0);\r\n\t\t\t\thasAttacked = false;\r\n\t\t\t\thasWon = false;\r\n\r\n\t\t\t\t// Refresh the cards\r\n\t\t\t\tfor (int x = 0; x < 5; x++) {\r\n\t\t\t\t\tcardPics[x].setIcon(null);\r\n\t\t\t\t\tif (cardPics[x].getMouseListeners() != null)\r\n\t\t\t\t\t\tcardPics[x].removeMouseListener(mch);\r\n\t\t\t\t\tcardSelectedPics[x].setVisible(false);\r\n\t\t\t\t\tcardSelectedPics[x].setBackground(players.get(turnCounter).getColor());\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Draw the player's cards\r\n\t\t\t\tg.setColor(Color.WHITE);\r\n\t\t\t\tg.setFont(new Font(\"Impact\", Font.BOLD, 20));\r\n\t\t\t\tg.drawString(\"Player \" + (turnCounter + 1) + \"'s Cards\", 105, 750);\r\n\t\t\t\tBufferedImage img = null;\r\n\t\t\t\tfor (int y = 0; y < players.get(turnCounter).getCards().size(); y++) {\r\n\t\t\t\t\tcardPics[y].addMouseListener(mch);\r\n\t\t\t\t\tcardPics[y].setEnabled(true);\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\timg = ImageIO.read(\r\n\t\t\t\t\t\t\t\t// Read in the image from a separate file\r\n\t\t\t\t\t\t\t\tnew File (\"Ressources/\" +\"Cards/\" + players.get(turnCounter).getCards().get(y).getCountry()\r\n\t\t\t\t\t\t\t\t\t\t+ \"Card.png\"));\r\n\t\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t\t// Catch\r\n\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcardPics[y].setIcon(new ImageIcon(recolorCard(img, y)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tString s = \"\";\r\n\t\tfor (Player p : Board.players) {\r\n\t\t\t// get the name of the country that has been clicked\r\n\t\t\tfor (Country c : p.getCountries()) {\r\n\t\t\t\tif (hoveredColor.equals(c.getDetectionColor())) {\r\n\t\t\t\t\ts = c.getName();\r\n\t\t\t\t}\r\n\t\t\t\t// Ensure this country is one the current player owns and the country has more\r\n\t\t\t\t// than one troop\r\n\t\t\t\tif (hoveredColor.equals(c.getDetectionColor()) && players.get(turnCounter).checkOwn(s)&& c.getTroops() > 1 && c.isHighlighted() == false && reinforced == false) {\r\n\t\t\t\t\t// Dehighlight any countries that were previously selected\r\n\t\t\t\t\tfor (Player player : players) {\r\n\t\t\t\t\t\tfor (Country ca : player.getCountries()) {\r\n\t\t\t\t\t\t\tif (ca.isHighlighted()) {\r\n\t\t\t\t\t\t\t\tnew threadz(ca, player.getColor(), false);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// Highlight the new selected country, and its neighboring countries\r\n\t\t\t\t\tnew threadz(c, players.get(turnCounter).getColor().brighter().brighter().brighter(), true);\r\n\t\t\t\t\tc.highlightOwned();\r\n\t\t\t\t\tattackingCountry = c;\r\n\t\t\t\t\treinforced = true;\r\n\t\t\t\t} else if (hoveredColor.equals(c.getDetectionColor()) && c.isHighlighted()\r\n\t\t\t\t\t\t&& c.getName().equals(attackingCountry.getName()) \r\n\t\t\t\t\t\t== false && checkO(c) == true\r\n\t\t\t\t\t\t&& attackingCountry.getTroops() > 1) {\r\n\r\n\t\r\n\t\t\t\t\tdefendingCountry = c;\r\n\r\n\t\t\t\t\tattackingCountry.setTroops(attackingCountry.getTroops() - 1);\r\n\t\t\t\t\tdefendingCountry.setTroops(defendingCountry.getTroops() + 1);\r\n\r\n\t\t\t\t\t// new threadz(attackingCountry,\r\n\t\t\t\t\t// players.get(turnCounter).getColor().brighter().brighter().brighter(), false);\r\n\r\n\t\t\t\t\tif (attackingCountry.getTroops() == 1) {\r\n\t\t\t\t\t\tattackingCountry.unHighlightNeighbours();\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tphaseInit++;\r\n\t}", "public void respawn(CardPower discard){\n this.damage.clear();\n this.adrenaline = AdrenalineLevel.NONE;\n if(this.position != null)\n this.position.removePlayer(this);\n this.position = game.getMap().respawnColor(discard.getMapColor());\n this.position.addPlayer(this);\n this.isDead = false;\n if(game.getCurrentTurn().isFinalFrenzy()) //to count points correctly in final frenzy\n this.deaths = 3;\n game.notifyRespawn(this);\n }", "public void endTurn() {\n\t\tturnEnd = false;\n\t\tmadeMove = false;\n\t\tcurrentPlayer.resetUndos();\n\t\tif (currentPlayer == player1) {\n\t\t\tcurrentPlayer = player2;\n\t\t} else {\n\t\t\tcurrentPlayer = player1;\n\t\t}\n\t\t//printBoard();\n\t\tSystem.out.println(\"It is now \" + currentPlayer.getName() + \"'s turn\");\n\t}", "public void reward(){\n setLastDrop(System.currentTimeMillis());\n collect(1);\n }", "public void wizardRule(){\n for (int i=0; i<players.size(); i++){\n Player p = players.get(i);\n if(winner.getPlayCard() != null){\n if ((p.getPlayCard().getNumber() == 15 && winner.getPlayCard().getNumber() != 15) || winner.getPlayCard().getNumber() == 1) {\n setWinner(p);\n } else if(winner.getPlayCard().getNumber() != 15) {\n suitRule(p);\n }\n }\n else{\n setWinner(p);\n }\n }\n }", "public com.google.common.util.concurrent.ListenableFuture<cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsResponse> delegationRewards(\n cosmos.distribution.v1beta1.QueryOuterClass.QueryDelegationRewardsRequest request) {\n return futureUnaryCall(\n getChannel().newCall(getDelegationRewardsMethod(), getCallOptions()), request);\n }", "public void dealCard(Player player){\n TrainCard removedCard = draw();\n player.addTrainCard(removedCard);\n }", "public void stop(Player p) {\n\t\tp.setTransformed(false);\n\t\tp.getPackets().sendGameMessage(\"You have transformed back to a human.\");\n\t\tp.getAppearence().asNPC(-1);\n\t\tp.getAppearence().getAppearanceBlock();\n\t}", "public void turnRight ()\n\t{\n\t\t//changeFallSpeed (1);\n\t\tturnInt = 1;\n\t}", "private void swapPlayer(){\r\n resetTurn();\r\n tries = 0;\r\n Player temp = currentPlayer;\r\n currentPlayer = nextPlayer;\r\n nextPlayer = temp;\r\n if(!gameOver()){\r\n if(currentPlayer.getClass() == Ia.class) {\r\n int[] result = currentPlayer.estimateNextMove(this.getClone());\r\n if (result[0] == 0 && result[1] == 0 && result[2] == 0 && result[3] == 0) currentPlayer.setCanMove(false);\r\n else {\r\n currentPlayer.setCanMove(true);\r\n int row = result[0];\r\n int col = result[1];\r\n int nextRow = result[2];\r\n int nextCol = result[3];\r\n makeMove(row, col, nextRow, nextCol);\r\n }\r\n swapPlayer();\r\n }\r\n }\r\n else {\r\n getWinner();\r\n if(winner == null) System.out.println(\"DRAW!\");\r\n else {\r\n System.out.println(winner.getPlayerName() + \" WIN!\");\r\n if (winner.getClass() == Ia.class)\r\n System.out.println(\"Max time used to move: \" + winner.getMaxTime() + \" seconds\");\r\n }\r\n isOver = true;\r\n }\r\n\r\n }", "void declineChallenge(int challengeId);", "@Override\r\n public boolean playTurn()\r\n {\n System.out.println(\"current bid = \" + currentBid);\r\n currentBid = players[currentPlayer].playHand(currentBid);\r\n\r\n System.out.println(\"Player bid = \" + currentBid);\r\n // Add hand played to discard pile\r\n discards.add(currentBid.getHand());\r\n // Offer all other players the chance to call cheat\r\n int callee = -1;\r\n {\r\n int[] calls = new int[MINPLAYERS];\r\n int i = 0;\r\n for (int j = 0; j < players.length; ++j)\r\n {\r\n // don't allow us to call cheat on ourselves\r\n if (currentPlayer == j)\r\n continue;\r\n Player p = players[j];\r\n if (p.callCheat(currentBid, currentPlayer))\r\n calls[i++] = j;\r\n }\r\n if (i > 0)\r\n callee = calls[rg.nextInt(i)];\r\n }\r\n\r\n if (callee != -1)\r\n {\r\n System.out.println(\"Player called cheat by Player \" + (callee+1));\r\n if (isCheat(currentBid)) //CHEAT CALLED CORRECTLY\r\n {\r\n for (Player p : players)\r\n p.broadcastCheat(currentPlayer, callee, true);\r\n //Give the discard pile of cards to currentPlayer who then has to play again\r\n players[currentPlayer].addHand(discards);\r\n System.out.println(\"Player cheats!\");\r\n System.out.println(\"Adding cards to player \"+\r\n (currentPlayer+1) + \" \" + players[currentPlayer]);\r\n }\r\n else //CHEAT CALLED INCORRECTLY\r\n {\r\n for (Player p : players)\r\n p.broadcastCheat(currentPlayer, callee, false);\r\n System.out.println(\"Player Honest\");\r\n currentPlayer = callee; // set the currentPlayer to callee\r\n // later on we'll increase this, so it's the person after\r\n // they who called's turn.\r\n players[currentPlayer].addHand(discards);\r\n System.out.println(\"Adding cards to player \"+\r\n (currentPlayer+1) + players[currentPlayer]);\r\n }\r\n //If cheat is called, current bid reset to an empty bid with rank two whatever\r\n //the outcome\r\n currentBid = new Bid();\r\n //Discards now reset to empty\r\n discards = new Hand();\r\n }\r\n else\r\n {\r\n System.out.println(\"No Cheat Called\");\r\n }\r\n /*\r\n Game bug fix:\r\n The design of the game, as given, was floored in conjuction with\r\n the required implementations of the strategies.\r\n A scenario can arise where one player has all the twos and the other\r\n has none, but it's their turn to play.\r\n The player with all the twos can consitently correctly call cheat on the\r\n player, as they have to claim to of laid a 2.\r\n\r\n This is easily fixed by moving the turn to the player after the one who\r\n just got called out\r\n */\r\n currentPlayer = (currentPlayer+1) % nosPlayers;\r\n return true;\r\n }", "public boolean checkToProceed(){\n return getGame().getCurrentPlayer().getRemainingActions() > 0;\n }", "@Override\r\n\tpublic void makeRandonMove() {\r\n\t\tif (randPlayer.getPlayerNumber() == game.getState().getTurn() && !game.getState().isFinished()) game.execute(randPlayer.requestAction(game.getState()));\r\n\t}", "public void discardLeaderCard(Player player, int leaderCardAtIndex, Privilege privilege){\n player.getPersonalBoard().getLeaderCards().remove(leaderCardAtIndex);\n for (Map.Entry<ResourceType, Integer> entry: privilege.getValuables().getResources().entrySet()) {\n if(entry.getValue() > 0) {\n player.getPersonalBoard().getValuables().increase(entry.getKey(), entry.getValue());\n player.getPersonalBoard().getValuables().decrease(entry.getKey(), player.getPersonalBoard().getExcommunicationValues().getNormalResourcesMalus().get(entry.getKey()));\n }\n }\n\n for (Map.Entry<PointType, Integer> entry: privilege.getValuables().getPoints().entrySet()) {\n if(entry.getValue() > 0) {\n player.getPersonalBoard().getValuables().increase(entry.getKey(), entry.getValue());\n player.getPersonalBoard().getValuables().decrease(entry.getKey(), player.getPersonalBoard().getExcommunicationValues().getNormalPointsMalus().get(entry.getKey()));\n }\n }\n }", "@Override\n public boolean attack(Player attacker, int mode1, int[] mode2, Player[] attackedPlayers, Position[] movements, PowerupCard[] payment) {\n boolean done = false;\n if(isLoaded() && attackedPlayers.length>=1 && attacker.getPosition().reachable(attackedPlayers[0].getPosition())){\n if(mode1==0 && attackedPlayers.length==1){\n attackedPlayers[0].receivedDamages(attacker);\n attackedPlayers[0].setMarksReceived(attacker,2);\n attacker.setMarksGiven(attackedPlayers[0],2);\n attacker.setPosition(attackedPlayers[0].getPosition());\n loaded=false;\n done=true;\n }else if(mode1==1){\n if(attackedPlayers.length==1 && isPaid(attacker, payment)){\n for(int i=0; i<2; i++)\n attackedPlayers[0].receivedDamages(attacker);\n attacker.setPosition(attackedPlayers[0].getPosition());\n loaded=false;\n done=true;\n }else if(attackedPlayers.length==2 && attackedPlayers[0].getPosition().reachable(attackedPlayers[1].getPosition()) && isPaid(attacker, payment)){\n boolean sameValueOfX = attacker.getPosition().getCoordinate()[0] == attackedPlayers[1].getPosition().getCoordinate()[0];\n boolean sameValueOfY = attacker.getPosition().getCoordinate()[1] == attackedPlayers[1].getPosition().getCoordinate()[1];\n boolean sameDirection = (sameValueOfX || sameValueOfY) && attacker.getPosition() != attackedPlayers[1].getPosition();\n if(sameDirection){\n for (int i = 0; i < 2; i++) {\n attackedPlayers[i].receivedDamages(attacker);\n attackedPlayers[i].receivedDamages(attacker);\n }\n attacker.setPosition(attackedPlayers[1].getPosition());\n loaded = false;\n done = true;\n }\n }\n }\n }\n return done;\n }", "public void updateUndo() {\n\n\t\t// player A clicked undo, special case (freeTurn)\n\t\tif (a.getFreeTurn() == true) {\n\t\t\tif (a.getUndoLimit() == 3)\n\t\t\t\treturn;\n\n\t\t\ta.setTurn(true);\n\t\t\tb.setTurn(false);\n\n\t\t\ta.setFreeTurn(false);\n\t\t\ta.incrementUndo();\n\t\t}\n\n\t\t// player B clicked undo, special case (freeTurn)\n\t\telse if (b.getFreeTurn() == true) {\n\t\t\tif (b.getUndoLimit() == 3)//\n\t\t\t\treturn;\n\n\t\t\tb.setTurn(true);\n\t\t\ta.setTurn(false);\n\n\t\t\tb.setFreeTurn(false);\n\t\t\tb.incrementUndo();\n\t\t}\n\n\t\t// player A clicked undo\n\t\telse if (a.getTurn() == false) {\n\t\t\tif (a.getUndoLimit() == 3)\n\t\t\t\treturn;\n\n\t\t\ta.setTurn(true);\n\t\t\tb.setTurn(false);\n\n\t\t\ta.incrementUndo();\n\t\t}\n\n\t\t// player B clicked undo\n\t\telse {\n\t\t\tif (b.getUndoLimit() == 3)//\n\t\t\t\treturn;\n\n\t\t\tb.setTurn(true);\n\t\t\ta.setTurn(false);\n\n\t\t\tb.incrementUndo();\n\t\t}\n\n\t\tfor (int x = 0; x < 14; x++) {\n\t\t\tint prevNumber = bucket[x].gePrevNumOfRocks();\n\t\t\tbucket[x].setnumOfRocks(prevNumber, false);\n\t\t}\n\t}", "public void endTurn() {\r\n\t\tcontraband.clear();\r\n\t\tactions = 1;\r\n\t\tbuys = 1;\r\n\t\tif(treasure > 0) treasure = 0;\r\n\t\tpotion = 0;\r\n\t\tcoppersmith = 0;\r\n\t\tbridge = 0;\r\n\t\tquarry = 0;\r\n\t\tdeck.cleanUp();\r\n\t\taccess.log(getPlayerName() + \"'s Deck: \" + deck.toString());\r\n\t\taccess.log(getPlayerName() + \"'s turn ended\");\r\n\t\tnotifyObservers();\r\n\t}", "public int handleMove(int dicethrow);", "@Test\n\tpublic void riposteShieldTest() {\n\t\tDisplayWithShield();\n\t\t\n\t\tint cardPos = 0;\n\t\tint targetPlayer = 1;\n\t\tint targetDisplaySize = game.getDisplay(targetPlayer).deckSize();\n\t\t/*\n\t\t * test to make sure the target has a maiden as the last played card\n\t\t*/\n\t\tassertTrue(game.getDisplay(1).getCard(targetDisplaySize-1).isMaiden());\n\t\t\n\t\t/*\n\t\t * test to make sure the player's display is still empty\n\t\t */\n\t\tassertTrue(game.getDisplay(0).deckSize() == 0);\n\t\t\n\t\t\n\t\t//assertFalse(game.getDisplay(0).getCard(targetDisplaySize-1).isMaiden());\n\t\t\n\t\t//test the size of discard deck before playing Riposte\n\t\tassertEquals(game.getDiscardDeck().deckSize(), 0);\n\t\t\n\t\tassertEquals(game.getDisplay(targetPlayer).deckSize(), 7);\n\t\t\n\t\t//play Riposte\n\t\tRulesEngine.riposte(game, cardPos, targetPlayer);\n\t\t\n\t\t//test the size of discard deck after playing Riposte\n\t\tassertEquals(game.getDiscardDeck().deckSize(), 0);\n\t\t\n\t\t//Update this variable after a card has been removed from the display\n\t\ttargetDisplaySize = game.getDisplay(targetPlayer).deckSize();\n\t\t\n\t\t/*\n\t\t * test to make sure the target's last played card is still a maiden\n\t\t*/\n\t\tassertTrue(game.getDisplay(targetPlayer).getCard(targetDisplaySize-1).isMaiden());\n\t\t\n\t\t/*\n\t\t * test to make sure the player's display is still empty\n\t\t*/\n\t\tassertTrue(game.getDisplay(0).deckSize() == 0);\n\t}", "private void death(Player p) {\r\n\t\tSystem.out.println(\"[DEBUG LOG/Game.java] Player \"+p.getNumber()+\" died\");\r\n\t\tp.setDead(true);\r\n\t\tp.discardAllCardsNotPlayed();\r\n\t\t\r\n\t\t// Calculates death message\r\n\t\tString deathMessage = \"\";\r\n\t\tif (p.has(\"Artifact\")) {\r\n\t\t\tif (!p.isUnderground()) {\r\n\t\t\t\tdeathMessage = \"Fortunately, they had an artifact above ground so the villagers were able to recover the treasure\";\r\n\t\t\t} else {\r\n\t\t\t\tdeathMessage = \"They perished underground so all treasure was lost\";\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tdeathMessage = \"They perished without an artifact so all treasure was lost\";\r\n\t\t}\r\n\t\tgameChannel.sendMessage(\":skull: **\"+getName(p)+\"** died in the dungeon.\\n\"+deathMessage).queueAfter(dragonAttackingDelay+2000, TimeUnit.MILLISECONDS);\r\n\t\t\r\n\t\t// Commented out because should be handled by App's detection\r\n\t\t// If this player was currentPlayer, endTurn if not already\r\n//\t\tif (!checkIfGameIsOver() && currentPlayer.isDead() && !turnIsEnding) {\r\n//\t\t\tendTurn();\r\n//\t\t}\r\n\t}", "@Test\n public void discardPlayer2() {\n gm.setPlayerInfo(clientPlayer2);\n gm.setThisPlayerIndex(clientPlayer2.getPlayerIndex());\n\n dc.increaseAmount(ResourceType.ORE);\n dc.increaseAmount(ResourceType.ORE);\n dc.increaseAmount(ResourceType.WOOD);\n dc.increaseAmount(ResourceType.WOOD);\n assertEquals(2, getAmounts().getOfType(ResourceType.ORE));\n assertEquals(2, getAmounts().getOfType(ResourceType.WOOD));\n Player p = model.getPlayer(clientPlayer2.getPlayerIndex());\n ResourceSet discardSet = dc.getDiscardAmount();\n when(robberFacade.canDiscard(discardSet, p)).thenReturn(true);\n dc.discard();\n // This verifies that the robberFacade.discard is only called twice\n verify(robberFacade, atMost(2)).discard(discardSet, p);\n\n }", "@Override\n\t\tpublic boolean wasRetried()\n\t\t{\n\t\t\treturn false;\n\t\t}", "public boolean canEndTurn(){\n\t\treturn moved;\n\n\t}", "private void unintelligentDecideMove() {\n\t\twander();\r\n\t}" ]
[ "0.61181325", "0.5607543", "0.5518594", "0.5461689", "0.5456794", "0.53818166", "0.52710825", "0.5267543", "0.52586806", "0.525548", "0.5248266", "0.5247772", "0.51427126", "0.5136378", "0.51176286", "0.51160896", "0.510433", "0.50981194", "0.5073562", "0.50670314", "0.50350153", "0.5034025", "0.50254977", "0.502347", "0.5005949", "0.50048184", "0.5002834", "0.49845988", "0.49820834", "0.49778867", "0.49589303", "0.4952509", "0.49347043", "0.4932469", "0.49317563", "0.49184272", "0.4915318", "0.4915075", "0.49008533", "0.48948127", "0.48932603", "0.48872933", "0.48622656", "0.48600334", "0.4857734", "0.4857384", "0.48501664", "0.4846548", "0.48388368", "0.48378876", "0.4830179", "0.4828231", "0.48234332", "0.48231384", "0.48220304", "0.48213848", "0.48192033", "0.48093122", "0.48083097", "0.48024288", "0.47997367", "0.47953248", "0.47916856", "0.47848514", "0.47789675", "0.47705847", "0.47659764", "0.475447", "0.4754203", "0.4749772", "0.47430903", "0.47388315", "0.4737889", "0.47165376", "0.47110304", "0.4710874", "0.471027", "0.47090808", "0.4700741", "0.46999067", "0.4698976", "0.46969077", "0.4668502", "0.46661174", "0.46654266", "0.46630165", "0.46593943", "0.4654167", "0.46510053", "0.4647214", "0.4644767", "0.4643968", "0.46402892", "0.46378055", "0.46360776", "0.46323636", "0.4631926", "0.4630754", "0.46295056", "0.46289828" ]
0.7701081
0
/ dispersePayout() params: Scene s, scene we're paying out for Role r, role the player has precond: scene is being wrapped up description: pays player for role as scene ends
public void dispersePayout(Room room){ Dice d = new Dice(); ArrayList<Integer> payoutVals = d.rollPayout(room.getSceneCard().getSceneBudget()); ArrayList<Player> players = room.getOccupants(); ArrayList<Role> roles = room.getSceneCard().getRoles(); ArrayList<Integer> ranks = new ArrayList<Integer>(); for(Role r : roles){ ranks.add(r.getRank()); } Collections.sort(ranks); Collections.reverse(ranks); //loop through roles and pay respective players for(int i = 0; i < payoutVals.size(); i++){ int roleRank = ranks.get(i % ranks.size()); for(Player p : players){ if(p.getCurrentRole() != null){ if(p.getCurrentRole().isOnCard() && p.getCurrentRole().getRank() == roleRank){ p.addMoney(payoutVals.get(i)); } } } } for(Player p : players){ if(p.getCurrentRole() != null){ if(!(p.getCurrentRole().isOnCard())){ p.addMoney(p.getCurrentRole().getRank()); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void disperseRewards(Player player, boolean success){\n if(success){\n //if player is in a role on a scene card\n if(player.getCurrentRole().isOnCard()){\n player.addCredits(2);\n }\n else{\n player.addCredits(1);\n player.addMoney(1);\n }\n }\n else{\n //disperse loss rewards\n //if player is not on a scene card role\n if(!(player.getCurrentRole().isOnCard())){\n player.addMoney(1);\n }\n }\n }", "private void wrap() {\n System.out.println(\"That's a wrap!\");\n Board.finishScene();\n List<Role> onCardRoles = scene.getRoles();\n for (int i = 0; i < onCardRoles.size(); i++) {\n if (onCardRoles.get(i).hasPlayer()) {\n int[] diceRolls = new int[scene.getBudget()];\n //roll the dice\n for (int j = 0; j < scene.getBudget(); j++) {\n diceRolls[j] = random.nextInt(6) + 1;\n }\n //sort the dice\n Arrays.sort(diceRolls);\n //set up the payouts and distribute them among the players\n int[] payouts = new int[onCardRoles.size()];\n\n for (int j = scene.getBudget() - 1; j >= 0; j--) {\n payouts[((scene.getBudget() - j) % onCardRoles.size()) - 1] = diceRolls[j];\n }\n\n for (int j = 0; j < onCardRoles.size(); j++) {\n if (onCardRoles.get(j).hasPlayer()) {\n Player player = onCardRoles.get(j).getPlayer();\n player.clearPracticeChips();\n Deadwood.bank.payMoney(player, payouts[j]);\n System.out.println(player.getName() + \" got $\" + payouts[j]);\n }\n }\n\n for (int j = 0; j < roles.size(); j++) {\n if (roles.get(j).hasPlayer()) {\n Player player = roles.get(j).getPlayer();\n player.clearPracticeChips();\n Deadwood.bank.payMoney(player, roles.get(j).getRequiredRank());\n System.out.println(player.getName() + \" got $\" + roles.get(j).getRequiredRank());\n }\n }\n }\n break;\n }\n for (int i = 0; i < onCardRoles.size(); i++) {\n if (onCardRoles.get(i).hasPlayer()) {\n onCardRoles.get(i).getPlayer().setRole(null);\n onCardRoles.get(i).setPlayer(null);\n }\n }\n for (int i = 0; i < roles.size(); i++) {\n if (roles.get(i).hasPlayer()) {\n roles.get(i).getPlayer().setRole(null);\n roles.get(i).setPlayer(null);\n }\n }\n }", "public void pay(Tuple pos, Dice dice, Board board) {\n if (board.legal_entrances[pos.a][pos.b] == 0 \n || board.entrances[pos.a][pos.b] == null \n || board.entrances[pos.a][pos.b].getInUse() == false) return;\n \n Entrance entrance = board.entrances[pos.a][pos.b];\n \n // Check if entrance is player's entrance\n if (entrance.getPlayer().getID() == id) return;\n\n Player rival = entrance.getPlayer();\n HotelCard rival_hotel = entrance.getHotel();\n \n System.out.println(ANSI() + \"Player\" + id + \" is on an entrance of a Player\" + rival.getID()+ ANSI_RESET);\n\n // Roll Dice\n System.out.println(ANSI() + \"Player\" + id + \" rolls dice for payment.\" + ANSI_RESET);\n System.out.println(ANSI() + \"Player\" + id + \" please press any button\" + ANSI_RESET);\n Scanner s = new Scanner(System.in);\n String str = s.nextLine();\n int result = dice.roll();\n System.out.println(ANSI() + \"Dice Result: \" + result + ANSI_RESET);\n\n // Pay rival player\n int payment = rival_hotel.getCard().get(rival_hotel.getRank()).b * 6;\n\n // Deal falls through ----> bankrupt\n if (getMLS() <= payment) {\n payment -= getMLS();\n rival.setMLS(rival.getMLS() + payment);\n System.out.println(ANSI() + \"Player\" + id + \" pays to Player\" + rival.getID() + \" \" + payment + \" MLS.\" + ANSI_RESET);\n System.out.println(ANSI() + \"Player\" + id + \" bankrupts\" + ANSI_RESET);\n System.out.println(ANSI() + \"Player\" + rival.getID() + \" has now \" + rival.getMLS() + \" MLS.\" + ANSI_RESET);\n bankrupt(board, pos);\n return;\n }\n\n // Normal Payment\n rival.setMLS(rival.getMLS() + payment);\n setMLS(getMLS() - payment);\n System.out.println(ANSI() + \"Player\" + id + \" pays to Player\" + rival.getID() + \" \" + payment + \" MLS.\" + ANSI_RESET);\n System.out.println(ANSI() + \"Player\" + id + \" has now \" + mls + \" MLS.\" + ANSI_RESET);\n System.out.println(ANSI() + \"Player\" + rival.getID() + \" has now \" + rival.getMLS() + \" MLS.\" + ANSI_RESET);\n return;\n }", "public void declineTransaction(CommandOfService c) throws Exception {\n // We give back the points to the user\n Service s = c.getService();\n User u = c.getOwner();\n if(s.getTypeService() == 0){\n userDAO.addPoints(s.getCost(),u);\n }\n DAO.declineTransaction(c);\n FacadeNotification facadeNotification = FacadeNotification.getInstance();\n String title = \"Transaction declined!\";\n String desc = \"Your command for: \"+s.getTitle()+\" has been declined.\\n\";\n try {\n facadeNotification.createNotification(u.getIdUser(),title,desc);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\r\n\tpublic void transitOut(BasicScene tScene) {\n\t\t\r\n\t}", "public void tryTakeRole() {\n if (currentPlayer.isEmployed() == false) {\n if(currentPlayer.getLocation().getName() == \"office\" || currentPlayer.getLocation().getName() == \"trailer\"){\n view.showPopUp(currentPlayer.isComputer(), \"You are currently in the \" + currentPlayer.getLocation().getName() + \" please move to a tile that has a role\");\n }\n else{\n if(currentPlayer.getLocation().getFlipStage() == 2){\n view.showPopUp(currentPlayer.isComputer(), \"This scene has already finished! You're too late!!\");\n }\n else{\n String chosenRole = chooseRole();\n if (chosenRole.equals(\"\")) {\n return;\n }\n currentPlayer.takeRole(chosenRole);\n\n if (currentPlayer.isEmployed()) {\n if(\n !board.isOnCard(\n currentPlayer.getRole().getName(), currentPlayer.getLocation())\n )\n {\n currentPlayer.setOnCardAreaData(currentPlayer.getRole().getArea());\n }\n else\n {\n currentPlayer.setAreaData(currentPlayer.getRole().getArea());\n }\n refreshPlayerPanel();\n \n }\n }\n }\n } else {\n view.showPopUp(currentPlayer.isComputer(), \"You're already employed, so you can't take another role until you finish this one\");\n } \n view.updateSidePanel(playerArray);\n }", "@Override\r\n\t\tpublic void action() {\n MessageTemplate mt = MessageTemplate.MatchPerformative(ACLMessage.ACCEPT_PROPOSAL);\r\n MessageTemplate mt2 = MessageTemplate.MatchPerformative(ACLMessage.PROPOSE);\r\n ACLMessage msg = myAgent.receive(mt);\r\n //If it is a ACCEPT_PROPOSAL, the seller sell the book to the buyer (execpt if the book if not here anymore)\r\n if (msg != null) {\r\n // ACCEPT_PROPOSAL Message received. Process it\r\n title = msg.getContent();\r\n ACLMessage reply = msg.createReply();\r\n\r\n Integer price = (Integer) catalogue.remove(title);\r\n if (price != null) {\r\n reply.setPerformative(ACLMessage.INFORM);\r\n reply.setContent(String.valueOf(price));\r\n System.out.println(title+\" sold to agent \"+msg.getSender().getName());\r\n }\r\n else {\r\n // The requested book has been sold to another buyer in the meanwhile .\r\n reply.setPerformative(ACLMessage.FAILURE);\r\n reply.setContent(\"not-available\");\r\n }\r\n myAgent.send(reply);\r\n }\r\n //If it is a new PROPOSE, the buyer is trying to negociate.\r\n else {\r\n ACLMessage msg2 = myAgent.receive(mt2);\r\n if(msg2 != null){\r\n ACLMessage reply = msg2.createReply();\r\n //If the price of the buyer is OK for the seller according to his tolerance, the transaction is made\r\n if(((Integer) catalogue.get(title) - Integer.parseInt(msg2.getContent())) <= tolerance){\r\n System.out.println(myAgent.getLocalName() + \" say : OK, let's make a deal\");\r\n updateCatalogue(title, Integer.parseInt(msg2.getContent()));\r\n reply.setPerformative(ACLMessage.INFORM);\r\n reply.setContent(msg2.getContent());\r\n }\r\n //Else, the seller accept to negociate, he up his tolerance and ask the buyer to up his real price\r\n else{\r\n //Send a REQUEST Message to negociate with the buyer\r\n reply.setPerformative(ACLMessage.REQUEST);\r\n //Up the tolerance by *change*\r\n tolerance += change;\r\n reply.setContent(String.valueOf(change));\r\n System.out.println(myAgent.getLocalName() + \" say : Let's up your real price while I up my tolerance (\" + ((Integer) catalogue.get(title) - Integer.parseInt(msg2.getContent())) + \" < \" + tolerance + \")\");\r\n }\r\n myAgent.send(reply);\r\n }\r\n else{\r\n block();\r\n }\r\n }\r\n\t\t}", "@Override public void clientDeclineIncomingGame(Rental rental)\r\n throws RemoteException, SQLException {\r\n gameListClientModel.clientDeclineIncomingGame(rental);\r\n }", "@Override\n protected void doPlayEffect(SwccgGame game) {\n if (gameState.getDuelState().canContinue(game)) {\n\n actionsEnvironment.emitEffectResult(new DuelAddOrModifyDuelDestiniesStepResult(subAction));\n }\n }", "public void resign(){\n\t\tint turn = DBCommunicator.requestInt(\"SELECT id FROM beurt WHERE spel_id = \" + id + \" AND account_naam = '\" + app.getCurrentAccount().getUsername() + \"' ORDER BY id DESC\");\n\t\tturn += 2;\n\t\tint totalScore = DBCommunicator.requestInt(\"SELECT totaalscore FROM score WHERE spel_id = \" + id + \" AND account_naam = '\" + app.getCurrentAccount().getUsername() + \"'\");\n\t\ttotalScore = totalScore * -1;\n\t\tDBCommunicator.writeData(\"INSERT INTO beurt (id, spel_id, account_naam, score, aktie_type) VALUES(\" + turn + \", \" + id + \", '\" + app.getCurrentAccount().getUsername() + \"', \" + totalScore +\", 'Resign')\");\n\t\tfor(int e : gameStones){\n\t\t\tDBCommunicator.writeData(\"INSERT INTO letterbakjeletter (spel_id, letter_id, beurt_id) VALUES (\" + id + \", \" + e + \", \" + turn + \")\");\n\t\t}\n\t\tDBCommunicator.writeData(\"UPDATE spel SET toestand_type = 'Resigned' WHERE id = \" + id );\n\t\t\n\t\tint opTurn = turn + 1;\n\t\tint myTurn = opTurn + 1;\n\t\tDBCommunicator.writeData(\"INSERT INTO beurt (id, spel_id, account_naam, score, aktie_type) VALUES \"\n\t\t\t\t+ \"(\" + opTurn + \", \" + id + \", '\" + opponent + \"', 0, 'End'),\"\n\t\t\t\t+ \"(\" + myTurn + \", \" + id + \", '\" + app.getCurrentAccount().getUsername() + \"', 0, 'End')\");\n\t}", "public void endPhase(){\n if(this.actionPhase) {\n this.buyPhase = true;\n this.actionPhase = false;\n }else{\n endTurn();\n }\n }", "void doNegativeEffect(Skill castSkill, double power, Creature performer, Item target) {\n/* 200 */ performer.getCommunicator().sendNormalServerMessage(\"The \" + target\n/* 201 */ .getName() + \" emits a deep worrying sound of resonance, but stays intact.\", (byte)3);\n/* */ }", "void doResign() {\n System.out.println(\"Resign Game\");\n if (gameInProgress() == false) { // Should be impossible.\n console(\"There is no game in progress!\");\n return;\n }\n if (currentPlayer == CheckersData.RED) {\n gameOver(\"RED resigns. BLACK wins.\");\n } else {\n gameOver(\"BLACK resigns. RED wins.\");\n }\n }", "private void Lose(Player player){\n player.setBalance(player.getBalance() - player.getWager());\n System.out.println();\n System.out.println(player.getName() + \" lost :/\");\n System.out.println(player.getName() + \"'s\" + \" balance is now \" + player.getBalance());\n }", "@Test\n public void testPactOfNegationRollback() {\n setStrictChooseMode(true);\n\n addCard(Zone.HAND, playerA, \"Silvercoat Lion\", 1);\n addCard(Zone.BATTLEFIELD, playerA, \"Plains\", 2);\n\n addCard(Zone.BATTLEFIELD, playerB, \"Island\", 5);\n // Counter target spell.\n // At the beginning of your next upkeep, pay {3}{U}{U}. If you don't, you lose the game.\n addCard(Zone.HAND, playerB, \"Pact of Negation\"); // Instant {0}\n\n castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, \"Silvercoat Lion\");\n castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerB, \"Pact of Negation\", \"Silvercoat Lion\", \"Silvercoat Lion\");\n\n setChoice(playerB, true);\n\n rollbackTurns(2, PhaseStep.PRECOMBAT_MAIN, playerB, 0);\n\n setChoice(playerB, true);\n\n setStopAt(2, PhaseStep.BEGIN_COMBAT);\n execute();\n\n assertGraveyardCount(playerA, \"Silvercoat Lion\", 1);\n assertGraveyardCount(playerB, \"Pact of Negation\", 1);\n\n Assert.assertTrue(\"Player A is still in game\", playerA.isInGame());\n Assert.assertTrue(\"Player B is still in game\", playerB.isInGame());\n\n assertTappedCount(\"Island\", true, 5);\n\n }", "public void payedConfirmation(){\n\t\tassert reserved: \"a seat also needs to be reserved when bought\";\n\t\tassert customerId != -1: \"this seat needs to have a valid user id\";\n\t\tpayed = true;\n\t}", "public void act(Player player) {\n int roleIndex = -1;\n for (int i = 0; i < roles.size(); i++) {\n if (roles.get(i).getPlayer() == player) {\n roleIndex = i;\n break;\n }\n }\n boolean isOnCard = false;\n List<Role> onCardRoles = scene.getRoles();\n if (roleIndex == -1) {\n isOnCard = true;\n for (int i = 0; i < onCardRoles.size(); i++) {\n if (onCardRoles.get(i).getPlayer() == player) {\n roleIndex = i;\n break;\n }\n }\n }\n\n int diceRoll = random.nextInt(6) + 1;\n\n if (isOnCard) {\n if (diceRoll + player.getPracticeChips() >= scene.getBudget()) {\n shotsLeft--;\n System.out.println(\"Success! You completed the shot and got two credits.\");\n player.addCredits(2);\n } else {\n System.out.println(\"Oh no! You messed up the shot and got nothing.\");\n }\n } else {\n Deadwood.bank.payMoney(player, 1);\n if (diceRoll + player.getPracticeChips() >= scene.getBudget()) {\n shotsLeft--;\n System.out.println(\"Success! You completed the shot and got a credit and $1.\");\n player.addCredits(1);\n } else {\n System.out.println(\"Oh no! You messed up the shot. You still get $1.\");\n }\n }\n\n if (shotsLeft == 0)\n wrap();\n }", "public void resign(PlayerController player)\n {\n if(player instanceof GameController){\n winSend.sendWin(opponent);\n setWinSent(false);\n }\n if (player1 == player) {\n win(PLAYER_2_FLAG);\n } else if (player2 == player) {\n win(PLAYER_1_FLAG);\n }\n }", "@Override\n public void pay(RealPlayer realPlayer) throws DepotException {\n if (check(realPlayer)) {\n for (Map.Entry<Resource, Integer> entry : productionPowerInput.entrySet()) {\n int count = entry.getValue();\n\n\n while (count > 0 && realPlayer.getPersonalBoard().getWareHouseDepot().getSpecificResourceCount(entry.getKey().getResourceType()) > 0) {\n realPlayer.getPersonalBoard().getWareHouseDepot().removeResources(entry.getKey().getResourceType(), 1);\n count--;\n }\n while (count > 0 && realPlayer.getPersonalBoard().getSpecialDepots().getSpecificResourceCount(entry.getKey().getResourceType()) > 0) {\n realPlayer.getPersonalBoard().getSpecialDepots().removeResources(entry.getKey().getResourceType(), 1);\n count--;\n }\n while (count > 0 && realPlayer.getPersonalBoard().getStrongBoxDepot().getSpecificResourceCount(entry.getKey().getResourceType()) > 0) {\n realPlayer.getPersonalBoard().getStrongBoxDepot().removeResources(entry.getKey().getResourceType(), 1);\n count--;\n }\n }\n }\n }", "@Override\n\tprotected void killReward() {\n\t\t\n\t}", "public static void teleportAway(ClientContext ctx) {\n Item sceptre = ctx.inventory.select().id(Items.SKULL_SCEPTRE_I_21276).poll();\n\n if (sceptre.valid()) {\n sceptre.interact(\"Invoke\", sceptre.name());\n sleep(3000);\n } else {\n // Teletab\n Item tab = ctx.inventory.select().select(new Filter<Item>() {\n @Override\n public boolean accept(Item item) {\n return item.name().toLowerCase().contains(\"teleport\");\n }\n }).poll();\n\n if (tab.valid()) {\n tab.click();\n } else {\n // Glory Teleport\n ctx.game.tab(Game.Tab.EQUIPMENT);\n Item ammy = ctx.equipment.itemAt(Equipment.Slot.NECK);\n if (ammy.name().toLowerCase().contains(\"glory\")) {\n ammy.interact(\"Edgeville\");\n sleep(4000);\n }\n }\n }\n }", "public Payment endSale(){\n Payment payment = this.sale.getAmountToPay();\n this.accounting.registerSale(payment);\n return payment;\n }", "@Test\n public void successful_resign() {\n Player p1 = new Player(\"Player\");\n playerLobby.getGameCenter().newGame(p1, new Player(\"Opp\"));\n\n Map<String, Object> vm = new HashMap<String, Object>();\n vm.put(\"isGameOver\", true);\n vm.put(\"gameOverMessage\", p1.getName() + \" has resigned from the game. You are the winner!\");\n\n when(session.attribute(\"player\")).thenReturn(new Player(\"Player\"));\n\n CuT.handle(request, response);\n assertTrue(playerLobby.getGameCenter().justEnded(p1));\n assertEquals(new Gson().toJson(vm), playerLobby.getGame(p1).getMap().get(\"modeOptionsAsJSON\"));\n\n ResponseMessage message = new ResponseMessage();\n message.setType(ResponseMessage.MessageType.INFO);\n message.setText(\"You can not resign in the state you are in.\");\n }", "public void revokeAccess(CommandSender sender, String[] args) {\n if (sender instanceof Player && ( ((Player) sender).hasPermission(\"mf.revokeaccess\") || ((Player) sender).hasPermission(\"mf.default\")) ) {\n\n Player player = (Player) sender;\n\n if (args.length > 1) {\n if (args[1].equalsIgnoreCase(\"cancel\")) {\n if (main.playersRevokingAccess.containsKey(player.getName())) {\n main.playersRevokingAccess.remove(player.getName());\n player.sendMessage(ChatColor.GREEN + \"Cancelled!\");\n return;\n }\n }\n }\n else {\n player.sendMessage(ChatColor.RED + \"Usage: /mf revokeaccess (player-name)\");\n return;\n }\n\n if (!main.playersRevokingAccess.containsKey(player.getName())) {\n main.playersRevokingAccess.put(player.getName(), args[1]);\n player.sendMessage(ChatColor.GREEN + \"Right click a locked block to revoke this player's access to it! Type '/mf revokeaccess cancel' to cancel!\");\n }\n else {\n player.sendMessage(ChatColor.RED + \"You have already entered this command! Type '/mf revokeaccess cancel' to cancel!\");\n }\n\n }\n\n }", "public void surrender() {\n playerCash += playerBet / 2;\n\n //Play dealer's turn\n dealerTurn();\n\n //End the game and change the views\n restartGame();\n }", "public abstract void rewards(Player p);", "public String spendPrint(Player p, Game game, SpendCard e) {\n String s = p.getName() +\" spent a Capital\";\n if(game.game_over){\n s+= \", ending the game.\";\n }else{\n s+= \" and drew a \" + p.getHand().getCard(p.getHand().size()-1).name + \".\";\n }\n return s;\n }", "@Override\n\tpublic void payCrew() {\n\t\tSystem.out.println(\"Crew paid!, You can start sailing now!\");\n\t\tgame.loading();\n\t}", "public void act()\n {\n // if (claimer ==null){\n // this.setClaim(false);\n //}\n if(claimer == null){\n setClaim(false);\n }\n if (energy>0){\n \n removeEnergy(decayRate);\n\n }\n else {\n // getWorld().removeObject(this);\n\n }\n \n //check the energy decay\n //change size and weight\n //\n }", "public void endTurn(int player)\r\n/* 282: */ {\r\n/* 283:320 */ for (AgentModel model : this.agentModels.values()) {\r\n/* 284:322 */ if (model.getPlayer() == player)\r\n/* 285: */ {\r\n/* 286:324 */ model.clearMovementStack();\r\n/* 287:325 */ model.setAp(0);\r\n/* 288: */ }\r\n/* 289: */ }\r\n/* 290: */ }", "void confirmRealWorldTrade(IUserAccount user, ITransaction trans);", "public void stop(Player p) {\n\t\tp.setTransformed(false);\n\t\tp.getPackets().sendGameMessage(\"You have transformed back to a human.\");\n\t\tp.getAppearence().asNPC(-1);\n\t\tp.getAppearence().getAppearanceBlock();\n\t}", "public abstract void performPurchase(Player player);", "@Override\n public void interact(Player player) {\n\n if (player.isInJail() && !player.timeToGetOutOfJail()) {\n\n while (true) {\n\n if (player.hasPass()) System.out.println(\"roll, pay, card\");\n System.out.println(\"roll , pay\");\n\n String[] strings = {\"roll\", \"pay\", \"card\"};\n String answer = MyInput.validate_string(strings);\n if (answer.equals(\"roll\")) {\n if (Player.rolledDoubles()) {\n System.out.println(name + \" rolled doubles!\");\n player.gotOutOfJail();\n player.takeTurn();\n } else {\n System.out.println(name + \" didn't roll doubles\");\n player.spentANightInJain();\n if (player.timeToGetOutOfJail()) {\n player.setDollarCount(-1 * this.cost);\n player.setInJail(false);\n System.out.println(player.getName() + \" payed \" + this.cost + \" after their third roll for doubles\");\n player.takeTurn();\n }\n }\n return;\n } else if(answer.equals(\"pay\")) {\n System.out.print(\"payed to get out, \");\n player.setDollarCount(-1 * cost);\n player.gotOutOfJail();\n player.takeTurn();\n return;\n } else if(answer.equals(\"card\") && player.hasPass()) {\n player.setGetOutOfJailFreeOwnership(false);\n player.gotOutOfJail();\n System.out.println(player.getName() + \" used a card to get out of jail\");\n player.takeTurn();\n return;\n } else {\n System.out.println(\"bad input\");\n }\n }\n }\n }", "public void actionPerformed(ActionEvent e) {\n \t\t\t\tscreen.game.skip();\n \t\t\t}", "private void EndButtonMouseClicked(java.awt.event.MouseEvent evt) {// GEN-FIRST:event_EndButtonMouseClicked\r\n\t\trisk.nextPlayer();\r\n\t\trisk.setState(RiskGameModel.START_TURN);\r\n\t\trisk.gamePhaseActive(0, 0);\r\n\t\trisk.active = risk.curPlayer;\r\n\t\tjPanel3.repaint();\r\n\t\tstatusLabel.setText(\"Recieved a bonus of \" + risk.curPlayer.getNumberOfArmies());\r\n\t\tAttackButton.setVisible(false);\r\n\t\tEndButton.setVisible(true);\r\n\t\tFortifyButton.setVisible(false);\r\n\t\trisk.drawn = false;\r\n\t\tUtility.writeLog(\"Current player turn ends\");\r\n\t}", "public void buySellChrystite(boolean buy, Player customer) {\n if (buy && crysQuantity == 0) {\n GameController.errorMessageBox(\"Not enough Crystite in the store.\");\n } else {\n if (buy) {\n crysQuantity--;\n if (customer.getMoney() >= crysCost) {\n customer.addSubMoney(-crysCost);\n customer.addSubCrystite(1);\n if (crysQuantity == 0) {\n crysCost = 100;\n } else {\n crysCost += 10;\n }\n } else {\n GameController.errorMessageBox(\"You do not have enough money for this item\");\n }\n } else {\n if (customer.getCrystite() >= 1) {\n customer.addSubMoney(crysCost-15);\n if (crysQuantity == 0) {\n crysCost = 100;\n } else {\n crysCost -= 10;\n }\n customer.addSubCrystite(-1);\n crysQuantity++;\n } else {\n GameController.errorMessageBox(\"You do not have enough money for this item\");\n }\n }\n }\n }", "public static void lose()\n\t{\n\t\tGame.setMoney(Game.getMoney()-bet);\n\t\tremainingMoneyN.setText(String.valueOf(Game.getMoney()));\n\t\tbet=0;\n\t\ttfBet.setText(\"0\");\n\t\tlblUpdate.setText(\"The dealer wins\");\n\t\tif(Game.getMoney()<=0)\n\t\t{\n\t\t\tGame.setComplete(true);\n\t\t\tendGameSequence();\n\n\t\t}\n\t}", "boolean transactTo_removePolicy(int code, String policyName, String transactName, ComponentName who, int userId, int customType) {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n boolean bDisabled = false;\n try {\n IBinder binder = ServiceManager.getService(\"device_policy\");\n if (binder != null) {\n if (HWFLOW) {\n Log.i(TAG, \"Transact:\" + transactName + \" to device policy manager service.\");\n }\n _data.writeInterfaceToken(ConstantValue.DESCRIPTOR);\n if (who != null) {\n _data.writeInt(1);\n who.writeToParcel(_data, 0);\n } else {\n _data.writeInt(0);\n }\n _data.writeInt(userId);\n _data.writeString(policyName);\n _data.writeInt(customType);\n binder.transact(code, _data, _reply, 0);\n _reply.readException();\n bDisabled = _reply.readInt() == 1;\n }\n _reply.recycle();\n _data.recycle();\n } catch (RemoteException localRemoteException) {\n Log.e(TAG, \"transactTo \" + transactName + \" failed: \" + localRemoteException.getMessage());\n } catch (Throwable th) {\n _reply.recycle();\n _data.recycle();\n }\n return bDisabled;\n }", "public void resignGame(int confirmEnd) {\r\n if (confirmEnd == 0) {\r\n if (data.gameState == 3)\r\n data.playerWhoResigned = 1;\r\n else if (data.gameState == 4)\r\n data.playerWhoResigned = 2;\r\n data.gameState = 5;\r\n data.resignGameFlag = true;\r\n setChanged();\r\n notifyObservers(data);\r\n }\r\n }", "public void endSale() {\r\n receipt.outputReceiptItems();\r\n System.out.println(\"\");\r\n System.out.println(\"Thanks for shopping at Java*Mart\");\r\n System.out.println(\"\");\r\n System.out.println(\"[CashRegister] endSale\");\r\n }", "@Test\n public void playerWinDoublonsBySellingHisProductionTest(){\n player.playRole(new Craftman(stockGlobal));\n player.playRole(new Trader(stockGlobal,1));\n assertEquals(1,player.getInventory().getDoublons());\n assertEquals(true,stockGlobal.getStockResource(TypeWare.INDIGO)==initialIndigoInStock-1);\n\n ArrayList<Plantation> plantationsCorn = new ArrayList<>();\n plantationsCorn.add(new CornPlantation());\n player.playRole(new Trader(stockGlobal,1));\n player.playRole(new Farmer(plantationsCorn,stockGlobal));\n\n assertEquals(true,player.getInventory().getDoublons()==1);\n assertEquals(true,stockGlobal.getStockResource(TypeWare.CORN)==initialCornStock);\n\n\n\n }", "@Override\n public void unInvoke() {\n final Environmental item = affected;\n if (item == null)\n return;\n final Room room = CMLib.map().roomLocation(item);\n if ((canBeUninvoked()) && (room != null))\n room.showHappens(CMMsg.MSG_OK_VISUAL, item, L(\"<S-YOUPOSS> flaming sword is consumed!\"));\n super.unInvoke();\n if ((canBeUninvoked()) && (room != null)) {\n room.recoverRoomStats();\n item.destroy();\n }\n }", "@Test\n public void playerWithoutProduction (){\n player.playRole(new Trader(stockGlobal,1));\n assertEquals(true,player.getInventory().getDoublons()==0);\n\n }", "public void stopPropose(int instanceId, int destination);", "@Override\n\tpublic void disinvite(Party party) throws CTPException {\n\t\t\n\t}", "public static void removeDisownRegenPSRegion(LocalPlayer lp, String arg, String region, RegionManager rgm, Player admin) {\n ProtectedRegion r = rgm.getRegion(region);\n switch (arg) {\n case \"disown\":\n DefaultDomain owners = r.getOwners();\n owners.removePlayer(lp);\n r.setOwners(owners);\n break;\n case \"regen\":\n Bukkit.dispatchCommand(admin, \"region select \" + region);\n Bukkit.dispatchCommand(admin, \"/regen\");\n rgm.removeRegion(region);\n break;\n case \"remove\":\n if (region.substring(0, 2).equals(\"ps\")) {\n PSLocation psl = ProtectionStones.parsePSRegionToLocation(region);\n Block blockToRemove = admin.getWorld().getBlockAt(psl.x, psl.y, psl.z); //TODO getWorld might not work\n blockToRemove.setType(Material.AIR);\n }\n rgm.removeRegion(region);\n break;\n }\n }", "protected BigDecimal reword(){\n\t\tif(getNowAct() == 0){\n\t\t\treturn(rewordBuy());\n\t\t}\n\t\t//keep\n\t\telse if(getNowAct() == 1){\n\t\t\treturn(rewordWait());\n\t\t}\n\t\t//sell\n\t\telse if(getNowAct() == 2){\n\t\t\treturn(rewordSell());\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"getNowAct : \" + getNowAct() + \"\\nerror occur.\");\n\t\t\tSystem.exit(2);\n\t\t\treturn(null);\n\t\t}\n\t}", "public void acionarRetiradaFinalizada(MovimentacaoGarantiaDO movimentacao);", "public void removeTopRewardAndContinue() {\n inventoryEntityToRetrieve.pop();\n if (inventoryEntityToRetrieve.isEmpty()) incrementStateIndex();\n }", "CratePrize removeEditingUser(Player player);", "public static void endGameSequence()\n\t{\n\t\ttfBet.setEnabled(false);\n\t\tbtnPlay.setEnabled(false);\n\t\tbtnHit.setEnabled(false);\n\t\tbtnStay.setEnabled(false);\n\t\tbtnDouble.setEnabled(false);\n\t\tlblUpdate.setText(\"Game over! You are out of money!\");\n\t}", "public void coinDisbursed() {\r\n float coinsHandOut = this.balance; // coinsHandOut ---> balance to get the number of coins while keeping the amount entered\r\n // 100 Namibian Dollar\r\n int hundredDollar = (int)(coinsHandOut / 100.0F);\r\n float remainder = coinsHandOut % 100.0F;\r\n // 50 Namibian Dollar\r\n int fiftyDollar = (int)(remainder / 50.0F);\r\n remainder %= 50.0F;\r\n // 20 Namibian Dollar //\r\n int twentyDollar = (int)(remainder / 20.0F);\r\n remainder %= 20.0F;\r\n // 10 Namibian Dollar //\r\n int tenDollar = (int)(remainder / 10.0F);\r\n remainder %= 10.0F;\r\n // 5 Namibian Dollar //\r\n int fiveDollar = (int)(remainder / 5.0F);\r\n remainder %= 5.0F;\r\n // 1 Namibian Dollar //\r\n int oneDollar = (int)remainder;\r\n remainder %= 1.0F;\r\n // 50 cent --> 50 /100 //\r\n int fiftyCents = (int)((double)remainder / 0.5D);\r\n remainder = (float)((double)remainder % 0.5D);\r\n // 10 cent --> 10 /100\r\n int tenCents = (int)((double)remainder / 0.1D);\r\n remainder = (float)((double)remainder % 0.1D);\r\n // 5 cent --> 5 /100 //\r\n int fiveCents = (int)((double)remainder / 0.05D);\r\n System.out.println(\"\\nDisbursed :\\n\" + hundredDollar + \" x N$100\\n\" + fiftyDollar + \" x N$50\\n\" + twentyDollar + \" x N$20\\n\" + tenDollar + \" x N$10\\n\" + fiveDollar + \" x N$5\\n\" + oneDollar + \" x N$1\\n\" + fiftyCents + \" x 50c\\n\" + tenCents + \" x 10c\\n\" + fiveCents + \" x 5c\");\r\n }", "public static void rPS(Scanner input, Questions thisSession){\n String userInput=\"\"; \n boolean playerLost=false;\n Random rand=new Random(); \n byte action,enemy,lives=0;\n int randomNumber=rand.nextInt(thisSession.getLength()); \n System.out.println(\"You will fight against the machine choosing rock, paper or scissors five times.The amount of times you win against the IA are going to be\"+\n \" the amount of opportunities you will have to answer the question. \"+\n \"Your enemy in this rock paper scissor round is the question: \" + thisSession.getQuestion(randomNumber)+ \" \\nMake your first move\");\n for (int i=0;i<5;i++){\n action=(byte) rPSChoose(input, userInput);\n enemy=(byte) ((byte) rand.nextInt(3-1)+1);\n switch (action){\n case 1://rock\n switch(enemy){ \n case 1:\n rock();\n System.out.println(\"Tie, try again.\");\n i--;\n break;\n case 2:\n paper();\n System.out.println(\"You lost! Enemy chosed paper.\");\n break;\n case 3:\n scissor();\n System.out.println(\"You win! Enemy chosed scissor\");\n lives++;\n break;\n }\n break;\n case 2://paper\n switch(enemy){ \n case 2:\n paper();\n System.out.println(\"Tie, try again.\");\n i--;\n break;\n case 3:\n scissor();\n System.out.println(\"You lost! Enemy chosed Scissor.\");\n break;\n case 1:\n rock();\n System.out.println(\"You win! Enemy chosed rock.\");\n lives++;\n break;\n }\n break;\n case 3://scissor\n switch(enemy){ \n case 3:\n scissor();\n System.out.println(\"Tie, try again.\");\n i--;\n break;\n case 1:\n rock();\n System.out.println(\"You lost!Enemy chosed rock.\");\n break;\n case 2:\n paper();\n System.out.println(\"You win! Enemy chosed paper\");\n lives++;\n break;\n }\n }\n }\n\n System.out.println(\"It's now your turn to write the answer for the question, remember that you have \" + lives + \" lives!\");\n while (lives>0){\n userInput=input.nextLine();\n if (userInput.equals(thisSession.getAnswer(randomNumber))){\n youWon();\n lives=0;\n }else {\n System.out.println(\"Wrong answer\");\n lives--;\n if (lives==0){\n youLost();\n }\n }\n }\n\n System.out.println(\"Thanks for playing. Returning to main menu\");\n\n }", "public void disEnrollStudent(Student student) {\n\t}", "String confirmPayment(String userName, String teamName, Payment payment) throws RemoteException,\n InterruptedException;", "public void takeOut(final StandardPlayer p) {\n if (p == firstPlayerOnPos[p.getPosR()][p.getPosC()]) {\n firstPlayerOnPos[p.getPosR()][p.getPosC()]\n = secondPlayerOnPos[p.getPosR()][p.getPosC()];\n }\n secondPlayerOnPos[p.getPosR()][p.getPosC()] = null;\n deadPlayers[p.getPosR()][p.getPosC()].add(p);\n }", "public void sellHouse(){\n if(numberHouses != 0){\n owner.addMoney(costs[1]/2);\n numberHouses--;\n }\n }", "public void sellProperty(){\n owner.addMoney(costs[0]/2);\n owner.removeProperty(this);\n owner = null;\n }", "private void discardPrompt() {\r\n\t\tfor (int i = 0; i < mustDiscard.size(); i++) {\r\n\t\t\tString prompt = \"**[Discard]** a card \";\r\n\t\t\tif (mustDiscard.get(i).contentEquals(\"Sleight of Hand\")) {\r\n\t\t\t\tprompt += \"to draw 2 cards\";\r\n\t\t\t} else if (mustDiscard.get(i).contentEquals(\"Apothecary\")) {\r\n\t\t\t\tprompt += \"to choose one: **3** :crossed_swords: **~OR~** **2** :moneybag: **~OR~** **1** :heart:\";\r\n\t\t\t}\r\n\t\t\tgameChannel.sendMessage(prompt).queue();\r\n\t\t}\r\n\t}", "public void setOverseasRoyalty(String value) {\n setAttributeInternal(OVERSEASROYALTY, value);\n }", "@Override\n public Event performAction(RemoteView remoteView) {\n\n return remoteView.weaponDiscardChoice(getWeapons());\n }", "@Override\r\n\tpublic void endSession(Action LastAction){\r\n\t\t\r\n\t\tif (LastAction instanceof EndNegotiation)\r\n\t\t{\r\n\t\t\tboolean isOpponent = true;\r\n\t\t\tEndNegotiation e = (EndNegotiation)LastAction;\r\n\t\t\tif ( (e.getAgent()!=null))\r\n\t\t\t{\t\r\n\t\t\t\tisOpponent = !e.getAgent().equals(this.getAgentID());\r\n\t\t\t}\r\n\t\t\tdouble lastOfferedUtil = opponentBidsA.get(session).get(0).getSecond();\r\n\t\t\tdouble maxUtil = myBids.get(0).getSecond();\r\n\t\t\tdouble loss = maxUtil-lastOfferedUtil;\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (loss>0.4)\r\n\t\t\t{ \r\n\t\t\t\treturn;\r\n\t\t\t}\t\r\n\t\t\telse if (isOpponent)\r\n\t\t\t{\r\n\t\t\t\tprogressLearn/=1.2;\r\n\t\t\t\tnoisLearn/=1.2;\r\n\t\t\t\tcompromiseLearn-=5;\r\n\t\t\t\tbiasFactor*=2;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\telse if (!isOpponent)\r\n\t\t\t{\r\n\t\t\t\tprogressLearn/=2;\r\n\t\t\t\tcompromiseLearn-=10;\r\n\t\t\t\tbiasFactor*=2;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tif (LastAction instanceof Accept)\r\n\t\t{\r\n\t\t\tdouble lastOfferedUtil = opponentBidsA.get(session).get(0).getSecond();\r\n\t\t\tdouble maxUtil = myBids.get(0).getSecond();\r\n\t\t\tdouble loss = maxUtil-lastOfferedUtil;\r\n\t\t\tif (loss>0.5)\r\n\t\t\t{\r\n\t\t\t\tcompromiseLearn+=20;\r\n\t\t\t\tprogressLearn*=3;\r\n\t\t\t\tnoisLearn*=3;\r\n\t\t\t\tbiasFactor/=2;\r\n\t\t\t}\r\n\t\t\telse if (loss>0.3)\r\n\t\t\t{\r\n\t\t\t\tprogressLearn*=2;\r\n\t\t\t\tnoisLearn*=2;\r\n\t\t\t\tcompromiseLearn+=10;\r\n\t\t\t\tbiasFactor/=1.2;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void evenOut() {\n\t\t\n\t\t// Start by copying the transaction list to a new list\n\t\tevenedOutList = new ArrayList<>();\n\t\tfor (PointTransaction action: transactionList) {\n\t\t\tevenedOutList.add(new PointTransaction(action.getPayer(), \n\t\t\t\t\taction.getPoints(), action.getTimestamp()));\n\t\t}\n\t\tfor (PointTransaction action: evenedOutList) {\n\t\t\tint pointsLeft = action.getPoints();\n\t\t\tif (pointsLeft >= 0) continue;\n\t\t\tList<PointTransaction> partialList = getTransactions(action.getPayer());\n\t\t\tfor (PointTransaction matchingAction: partialList) {\n\t\t\t\tint matchingPoints = matchingAction.getPoints();\n\t\t\t\tif (matchingPoints > 0) {\n\t\t\t\t\tint sum = matchingPoints + pointsLeft;\n\t\t\t\t\t\n\t\t\t\t\t/* The negative points are fully distributed\n\t\t\t\t\t to the positive points, so this loop ends */\n\t\t\t\t\tif (matchingPoints >= -pointsLeft) {\n\t\t\t\t\t\tmatchingAction.setPoints(sum);\n\t\t\t\t\t\taction.setPoints(0);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\t/* The positive points are not enough to absorb all\n\t\t\t\t\tthe negative points, so the loop continues. */\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmatchingAction.setPoints(0);\n\t\t\t\t\t\taction.setPoints(sum);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public TransactionResponse sell() {\r\n \t\ttry {\r\n \t\t\tTransactionResponse response = new TransactionResponse(hp);\r\n \t\t\tCalculation calc = hc.getCalculation();\r\n \t\t\tAccount acc = hc.getAccount();\r\n \t\t\tLanguageFile L = hc.getLanguageFile();\r\n \t\t\tLog log = hc.getLog();\r\n \t\t\tNotification not = hc.getNotify();\r\n \t\t\tInfoSignHandler isign = hc.getInfoSignHandler();\r\n \t\t\tString playerecon = hp.getEconomy();\r\n \t\t\tint id = hyperObject.getId();\r\n \t\t\tint data = hyperObject.getData();\r\n \t\t\tString name = hyperObject.getName();\r\n \t\t\tif (giveInventory == null) {\r\n \t\t\t\tgiveInventory = hp.getPlayer().getInventory();\r\n \t\t\t}\r\n \t\t\tif (amount > 0) {\r\n \t\t\t\tif (id >= 0) {\r\n \t\t\t\t\tint totalitems = im.countItems(id, data, giveInventory);\r\n \t\t\t\t\tif (totalitems < amount) {\r\n \t\t\t\t\t\tboolean sellRemaining = hc.getYaml().getConfig().getBoolean(\"config.sell-remaining-if-less-than-requested-amount\");\r\n \t\t\t\t\t\tif (sellRemaining) {\r\n \t\t\t\t\t\t\tamount = totalitems;\r\n \t\t\t\t\t\t} else {\t\r\n \t\t\t\t\t\t\tresponse.addFailed(L.f(L.get(\"YOU_DONT_HAVE_ENOUGH\"), name), hyperObject);\r\n \t\t\t\t\t\t\treturn response;\t\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t\tif (amount > 0) {\r\n \t\t\t\t\t\tdouble price = hyperObject.getValue(amount, hp);\r\n \t\t\t\t\t\tBoolean toomuch = false;\r\n \t\t\t\t\t\tif (price == 3235624645000.7) {\r\n \t\t\t\t\t\t\ttoomuch = true;\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tif (!toomuch) {\r\n \t\t\t\t\t\t\tint maxi = hyperObject.getMaxInitial();\r\n \t\t\t\t\t\t\tboolean isstatic = false;\r\n \t\t\t\t\t\t\tboolean isinitial = false;\r\n \t\t\t\t\t\t\tisinitial = Boolean.parseBoolean(hyperObject.getInitiation());\r\n \t\t\t\t\t\t\tisstatic = Boolean.parseBoolean(hyperObject.getIsstatic());\r\n \t\t\t\t\t\t\tif ((amount > maxi) && !isstatic && isinitial) {\r\n \t\t\t\t\t\t\t\tamount = maxi;\r\n \t\t\t\t\t\t\t\tprice = hyperObject.getValue(amount, hp);\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\tboolean sunlimited = hc.getYaml().getConfig().getBoolean(\"config.shop-has-unlimited-money\");\r\n \t\t\t\t\t\t\tif (acc.checkshopBalance(price) || sunlimited) {\r\n \t\t\t\t\t\t\t\tif (maxi == 0) {\r\n \t\t\t\t\t\t\t\t\tprice = hyperObject.getValue(amount, hp);\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tim.removeItems(id, data, amount, giveInventory);\r\n \t\t\t\t\t\t\t\tdouble shopstock = 0;\r\n \t\t\t\t\t\t\t\tshopstock = hyperObject.getStock();\r\n \t\t\t\t\t\t\t\tif (!Boolean.parseBoolean(hyperObject.getIsstatic()) || !hc.getConfig().getBoolean(\"config.unlimited-stock-for-static-items\")) {\r\n \t\t\t\t\t\t\t\t\thyperObject.setStock(shopstock + amount);\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tint maxi2 = hyperObject.getMaxInitial();\r\n \t\t\t\t\t\t\t\tif (maxi2 == 0) {\r\n \t\t\t\t\t\t\t\t\thyperObject.setInitiation(\"false\");\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tdouble salestax = hp.getSalesTax(price);\r\n \t\t\t\t\t\t\t\tacc.deposit(price - salestax, hp.getPlayer());\r\n \t\t\t\t\t\t\t\tacc.withdrawShop(price - salestax);\r\n \t\t\t\t\t\t\t\tif (sunlimited) {\r\n \t\t\t\t\t\t\t\t\tString globalaccount = hc.getYaml().getConfig().getString(\"config.global-shop-account\");\r\n \t\t\t\t\t\t\t\t\tacc.setBalance(0, globalaccount);\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\t\r\n \t\t\t\t\t\t\t\tresponse.addSuccess(L.f(L.get(\"SELL_MESSAGE\"), amount, calc.twoDecimals(price), name, calc.twoDecimals(salestax)), price - salestax, hyperObject);\r\n \t\t\t\t\t\t\t\tresponse.setSuccessful();\r\n \t\t\t\t\t\t\t\tString type = \"dynamic\";\r\n \t\t\t\t\t\t\t\tif (Boolean.parseBoolean(hyperObject.getInitiation())) {\r\n \t\t\t\t\t\t\t\t\ttype = \"initial\";\r\n \t\t\t\t\t\t\t\t} else if (Boolean.parseBoolean(hyperObject.getIsstatic())) {\r\n \t\t\t\t\t\t\t\t\ttype = \"static\";\r\n \t\t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t\tlog.writeSQLLog(hp.getName(), \"sale\", name, (double) amount, calc.twoDecimals(price - salestax), calc.twoDecimals(salestax), playerecon, type);\r\n \t\t\t\t\t\t\t\tisign.updateSigns();\r\n \t\t\t\t\t\t\t\tnot.setNotify(name, null, playerecon);\r\n \t\t\t\t\t\t\t\tnot.sendNotification();\r\n \t\t\t\t\t\t\t\treturn response;\r\n \t\t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\t\tresponse.addFailed(L.get(\"SHOP_NOT_ENOUGH_MONEY\"), hyperObject);\r\n \t\t\t\t\t\t\t\treturn response;\t\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t} else {\r\n \t\t\t\t\t\t\tresponse.addFailed(L.f(L.get(\"CURRENTLY_CANT_SELL_MORE_THAN\"), hyperObject.getStock(), name), hyperObject);\r\n \t\t\t\t\t\t\treturn response;\t\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\tresponse.addFailed(L.f(L.get(\"YOU_DONT_HAVE_ENOUGH\"), name), hyperObject);\r\n \t\t\t\t\t\treturn response;\t\r\n \t\t\t\t\t}\r\n \t\t\t\t} else {\r\n \t\t\t\t\tresponse.addFailed(L.f(L.get(\"CANNOT_BE_SOLD_WITH\"), name), hyperObject);\r\n \t\t\t\t\treturn response;\t\r\n \t\t\t\t}\r\n \t\t\t} else {\r\n \t\t\t\tresponse.addFailed(L.f(L.get(\"CANT_SELL_LESS_THAN_ONE\"), name), hyperObject);\r\n \t\t\t\treturn response;\t\r\n \t\t\t}\r\n \t\t} catch (Exception e) {\r\n \t\t\tString info = \"Transaction sell() passed values name='\" + hyperObject.getName() + \"', player='\" + hp.getName() + \"', id='\" + hyperObject.getId() + \"', data='\" + hyperObject.getData() + \"', amount='\" + amount + \"'\";\r\n \t\t\tnew HyperError(e, info);\r\n \t\t\treturn new TransactionResponse(hp);\r\n \t\t}\r\n \t}", "public void lose() {\n displayErrorMessage(\"You Lose!\");\n if(controller.aiGame && !controller.loggedIn()){\n controller.switchToLogin();\n } else\n controller.switchToLobby();\n }", "@Test\n public void notSell() {\n Game game = Game.getInstance();\n Player player = new Player(\"ED\", 4, 4, 4,\n 4, SolarSystems.GHAVI);\n game.setPlayer(player);\n game.getPlayer().getShip().getShipCargo().add(new CargoItem(2, Goods.Water));\n game.getPlayer().getShip().getShipCargo().add(new CargoItem(1, Goods.Food));\n game.getPlayer().getShip().getShipCargo().add(new CargoItem(0, Goods.Furs));\n CargoItem good = game.getPlayer().getShip().getShipCargo().get(2);\n \n int oldCredits = game.getPlayer().getCredits();\n good.getGood().sell(good.getGood(), 1);\n \n CargoItem water = game.getPlayer().getShip().getShipCargo().get(0);\n CargoItem food = game.getPlayer().getShip().getShipCargo().get(1);\n water.setQuantity(2);\n food.setQuantity(1);\n good.setQuantity(0);\n //int P = good.getGood().getPrice(1);\n int curr = game.getPlayer().getCredits();\n //boolean qn = water.getQuantity() == 2 && food.getQuantity() == 1 && good.getQuantity() == 0;\n boolean check = water.getQuantity() == 2;\n System.out.print(curr);\n assertEquals(curr, oldCredits);\n }", "public void resign(View v) {\n if (currentGame.finished) {\n return;\n }\n if (currentGame.currentBoard.turn.equals(Color.White)) {\n Toast.makeText(getApplicationContext(), \"White resigned. Black wins!\", Toast.LENGTH_LONG).show();\n }\n if (currentGame.currentBoard.turn.equals(Color.Black)) {\n Toast.makeText(getApplicationContext(), \"Black resigned. White wins!\", Toast.LENGTH_LONG).show();\n }\n currentGame.resign();\n saveGameTitleOrNah();\n\n }", "public void dealerOut() {\n\t\tview.writeLog(\"Dealer: \"+PointCounter.countPoint(dealer.clientCards)+\", DEALER OUT!\");\n\t\tint dealerLosingStack = 0;\n\t\tfor(ClientThread player:players) {\n\t\t\tif(player != dealer) {\n\t\t\t\tplayer.send(new Package(\"MESSAGE\",\"The dealer's points is over 21. You win a stack!\"));\n\t\t\t\tplayer.send(new Package(\"END\",1));\n\t\t\t\tdealerLosingStack++;\n\t\t\t}\n\t\t}\n\t\tint dealerStackChange = losers - dealerLosingStack;\n\t\tdealer.send(new Package(\"MESSAGE\",\"Over 21! You lose \"+dealerLosingStack+\" stacks. \"));\t\n\t\tdealer.send(new Package(\"END\",dealerStackChange+1));\t\n\t\tendGame();\n\t}", "public void decrementPrayerPoints(double amount) {\r\n if (entity.getAttribute(\"INFINITE_PRAYER\") != null) {\r\n return;\r\n }\r\n prayerPoints -= amount;\r\n if (prayerPoints < 0) {\r\n prayerPoints = 0;\r\n }\r\n //\t\tif (prayerPoints > staticLevels[PRAYER]) {\r\n //\t\t\tprayerPoints = staticLevels[PRAYER];\r\n //\t\t}\r\n if (entity instanceof Player) {\r\n PacketRepository.send(SkillLevel.class, new SkillContext((Player) entity, PRAYER));\r\n }\r\n }", "public void requestMovePoseDown()\r\n {\r\n \tAnimatedSpriteEditor singleton = AnimatedSpriteEditor.getEditor();\r\n \tAnimatedSpriteEditorGUI gui = singleton.getGUI(); \r\n \t \r\n boolean continueToMove = true;\r\n if (!saved)\r\n {\r\n // THE USER CAN OPT OUT HERE\r\n continueToMove = promptToSave();\r\n }\r\n if(continueToMove)\r\n {\r\n \tposeIO.movePose(poseID, 1);\r\n \tsingleton.getFileManager().reloadSpriteType();\r\n \tgui.updatePoseList();\r\n \tJOptionPane.showMessageDialog(\r\n gui,\r\n POSE_MOVED_TEXT,\r\n POSE_MOVED_TITLE_TEXT,\r\n JOptionPane.INFORMATION_MESSAGE);\r\n } \r\n else\r\n {\r\n \tJOptionPane.showMessageDialog(\r\n gui,\r\n POSE_MOVE_ERROR_TEXT,\r\n POSE_MOVE_ERROR_TITLE_TEXT,\r\n JOptionPane.ERROR_MESSAGE);\r\n }\r\n }", "public void resign(){\n\t\tif(Main.getInstance().getScreen() instanceof GEngine){\r\n\t\t\tPlayer user = getUserPlayer();\r\n\t\t\tPlayer winner = state.players[user.playerId == 0 ? 1 : 0];\r\n\t\t\t\r\n\t\t\tnew Popup(\"Game over\", true,\r\n\t\t\t\tnew Label(String.format(\"Player %s has won the game!\", winner.getDisplayName()), Assets.SKIN), \r\n\t\t\t\tComponentFactory.createButton(\"OK\", new ClickListener() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void clicked(InputEvent event, float x, float y) {\r\n\t\t\t\t\t\tMain.getInstance().setScreen(MainMenu.getInstance());\r\n\t\t\t\t\t\tPopup.getCurrentPopup().close();\r\n\t\t\t\t\t}\r\n\t\t\t\t})).show();\r\n\t\t}\r\n\t\t\r\n\t\tMain.getInstance().games.endGame(this);\r\n\t}", "private void remindGoal()\n {\n System.out.println(\"you have to Pick up all three items and get back outside!\");\n }", "@Override\r\n\tpublic void processLeave(SimulationData simData, RunDataClient client) {\r\n\t}", "public void vanish(Player p){\n if(boostType.equals(\"force\")){\n p.setStrength(p.getStrength() - 1);\n }else if(boostType.equals(\"life\")){\n p.modifyLife(-1);\n }else if(boostType.equals(\"force+\")){\n p.setStrength(p.getStrength() - 2);\n }else if(boostType.equals(\"life+\")) {\n p.modifyLife(-2);\n }else if(boostType.equals(\"force++\")){\n p.setStrength(p.getStrength() - 3);\n }else if(boostType.equals(\"life++\")) {\n p.modifyLife(-3);\n }\n }", "public void declineInvite(String player) {\r\n connection.declineInvite(player);\r\n }", "private void endTurn(){\r\n String currentPlayer = cantStop.getGameBoard().getCurrentPlayer().getName();\r\n\t\tgameOver = cantStop.getGameBoard().endTurn(didBust);\r\n\t\t\r\n\t\tif(gameOver){\r\n\t\t\tstatusLabel.setText(currentPlayer + \r\n\t\t\t\t\t\" wins! Go again?\");\r\n\t\t\tupdate();\r\n\t\t} else {\r\n\t\t\tcantStop.getGameBoard().startNewTurn();\r\n\t\t\tallowNewRoll();\r\n\t\t}\r\n\t}", "void giveReward(BPlayer bPlayer, int tier, int status);", "public static void action(Player player, String move, Level level){\n \t\t\n if((move.equals(\"n\")) && (level.getRoom(player.getPosition()).isRoomConnected(0))){\n \t\n \tEvents.unlockRoom(player, level.getRoom(player.getPosition()).getConnectedRoom(0));\n \tif(level.getRoom(player.getPosition()).getConnectedRoom(0).isRoomLocked()){\n \t\tGuiObserver.roomIsLocked();\n \t\tGuiObserver.writeOutRoom(level.getRoom(player.getPosition())); \n \t}\n \telse{\n \t\tplayer.setNewPosition(level.getRoom(player.getPosition()).getConnectedRoom(0).getRoomIndex());\n \t\tGuiObserver.writeOutRoom(level.getRoom(player.getPosition()));\n \t\t \n \t}\n }\n\n else if((move.equals(\"e\")) && (level.getRoom(player.getPosition()).isRoomConnected(1))){\n \t\n \tEvents.unlockRoom(player, level.getRoom(player.getPosition()).getConnectedRoom(1));\n \tif(level.getRoom(player.getPosition()).getConnectedRoom(1).isRoomLocked()){\n \t\tGuiObserver.roomIsLocked();\n \t\tGuiObserver.writeOutRoom(level.getRoom(player.getPosition())); \n\n \t}\n \telse{\n \t\tplayer.setNewPosition(level.getRoom(player.getPosition()).getConnectedRoom(1).getRoomIndex());\n \t\tGuiObserver.writeOutRoom(level.getRoom(player.getPosition()));\n \t\t\n \t}\n }\n\n\n else if((move.equals(\"s\")) && (level.getRoom(player.getPosition()).isRoomConnected(2))){\n \t\n \tEvents.unlockRoom(player, level.getRoom(player.getPosition()).getConnectedRoom(2));\n \tif(level.getRoom(player.getPosition()).getConnectedRoom(2).isRoomLocked()){\n \t\tGuiObserver.roomIsLocked();\n \t\tGuiObserver.writeOutRoom(level.getRoom(player.getPosition()));\n \t}\n \telse{\n \t\tplayer.setNewPosition(level.getRoom(player.getPosition()).getConnectedRoom(2).getRoomIndex());\n \t\tGuiObserver.writeOutRoom(level.getRoom(player.getPosition())); \n \t}\n }\n\n\n else if((move.equals(\"w\")) && (level.getRoom(player.getPosition()).isRoomConnected(3))){\n \t\n \tEvents.unlockRoom(player, level.getRoom(player.getPosition()).getConnectedRoom(3));\n \tif(level.getRoom(player.getPosition()).getConnectedRoom(3).isRoomLocked()){\t\n \t\tGuiObserver.roomIsLocked();\n \t\tGuiObserver.writeOutRoom(level.getRoom(player.getPosition()));\n \t}\n \telse{\n \t\tplayer.setNewPosition(level.getRoom(player.getPosition()).getConnectedRoom(3).getRoomIndex());\n \t\tGuiObserver.writeOutRoom(level.getRoom(player.getPosition()));\n \n \t}\n }\n \n else if((move.equals(\"p\")) && (level.getRoom(player.getPosition()).getItem() != null)){\n \t\t\n \tGuiObserver.pickedUpItem(level.getRoom(player.getPosition()));\n \t\tif(player.pickUpItem(level.getRoom(player.getPosition()).getItem())){ \t\t \t\t\t\n \t\t\tlevel.getRoom(player.getPosition()).setItem(null); \t\n \t\t\tGuiObserver.writeOutRoom(level.getRoom(player.getPosition()));\n \t\t}\n \t\telse{\n \t\t\tGuiObserver.fullInventory();\n \t\t\tGuiObserver.writeOutRoom(level.getRoom(player.getPosition()));\n \t\t}\n }\n \n else if((move.equals(\"d\")) && (player.getPotion() != null)){\n \t\tif(player.drinkPotion(player.getPotion())){\n \t\t\tGuiObserver.drankPotion(player);\n \t\t\tGuiObserver.writeOutRoom(level.getRoom(player.getPosition()));\n \t\t}\n \t\telse{\n \t\t\tGuiObserver.noPotion();\n \t\t\tGuiObserver.writeOutRoom(level.getRoom(player.getPosition()));\n \t\t}\n }\n\n else{\n \tGuiObserver.writeOutError(level.getRoom(player.getPosition()));\n }\n\n }", "public void requestDeletePose()\r\n {\r\n // ASK THE USER TO MAKE SURE THEY WANT TO GO AHEAD WITH IT\r\n AnimatedSpriteEditor singleton = AnimatedSpriteEditor.getEditor();\r\n AnimatedSpriteEditorGUI gui = singleton.getGUI();\r\n int selection = JOptionPane.showOptionDialog( gui, \r\n DELETE_POSE_TEXT,\r\n DELETE_POSE_TITLE_TEXT, \r\n JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE,\r\n null, null, null);\r\n \r\n // IF THE USER CLICKED OK, THEN EXPORT THE POSE\r\n if (selection == JOptionPane.YES_OPTION)\r\n {\r\n if (gui.getPosesCount() <= 1)\r\n {\r\n \t selection = JOptionPane.showOptionDialog( \r\n \t\t\t gui, \r\n DELETE_ONLY_POSE_TEXT,\r\n DELETE_ONLY_POSE_TITLE_TEXT, \r\n JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE,\r\n null, null, null);\r\n \t if (selection == JOptionPane.YES_OPTION)\r\n \t {\r\n \t\t singleton.getFileManager().requestDeleteState();\r\n \t }\r\n }\r\n else{\r\n \tposeIO.deletePose(currentPoseName);\r\n \tsingleton.getFileManager().reloadSpriteType();\r\n }\r\n }\r\n }", "@Override\npublic Action actionChoosed(Player joueur) {\n WarPlayer player = this.castPlayer(joueur);\n int index = ((WarStrategy)(player.getStrategy())).skipOrDeploy();\n Action action = new SkipAction(player);\n if (index == 0) {\n Army army = this.inputArmy(player);\n Tile tile = ((WarStrategy)player.getStrategy()).inputTileStrategy();\n if(army != null && tile != null) {\n if (army.getArmySize() > 3 && tile.equals(new MountainTile(0, 0, 1, 0))) {\n System.out.println(\" Army of size \" + army.getArmySize() + \" can't be deployed on a mountain tile ! \");\n player.addWarrior(army.getArmySize());\n } else {\n action = new WarActionDeploy(player, this.board, tile.getPosX(), tile.getPosY(), army);\n }\n } else if (army != null && tile == null) {\n player.addWarrior(army.getArmySize());\n }\n }\n return action;\n}", "public final void easeOut() {\n float originX = phasesUI.getX();\n MoveToAction out = new MoveToAction();\n out.setPosition(phasesUI.getWidth() * -1, phasesUI.getY());\n out.setDuration(PhaseConstants.PANEL_EASE_DURATION);\n\n VisibleAction hide = new VisibleAction();\n hide.setVisible(false);\n\n MoveToAction in = new MoveToAction();\n in.setPosition(originX, phasesUI.getY());\n in.setDuration(PhaseConstants.PANEL_INSTANCE_DURATION);\n\n SequenceAction seq = new SequenceAction(out, hide, in);\n phasesUI.addAction(seq);\n //phasesUI.setVisible(false);\n toggle = false;\n }", "private void suspend()\n {\n Player target = p.getServer().getPlayer(targetID);\n if (target == null)\n {\n kill();\n return;\n }\n\n addAdditionalEffects();\n\n // suspend them in the air\n originalLocation = target.getLocation();\n Location newLoc = target.getEyeLocation();\n Location suspendLoc = new Location(newLoc.getWorld(), newLoc.getX(), newLoc.getY(), newLoc.getZ(), originalLocation.getYaw(), 45);\n target.teleport(suspendLoc);\n\n suspended = true;\n }", "public PolicyBinderPage endorsementFromActionDropDown() {\r\n sleep(3000);\r\n ExtentReporter.logger.log(LogStatus.INFO,\r\n \"Select Policy Actions-> Endorsement. Verify Endorse policy window displays.\");\r\n if (selectDropdownByValueFromPolicyActionDDL(driver, policyAction,\r\n policybinderpageDTO.valueOfPolicyActionEndorse, \"Policy Action\").equals(\"false\")) {\r\n sleep(2000);\r\n\r\n // This method will select the policy using required criteria\r\n PolicyQuotePage quotepage = new PolicyQuotePage(driver);\r\n quotepage.searchBackUpPolicyUsingSearchCriteria();\r\n sleep(4000);\r\n\r\n if (selectDropdownByValueFromPolicyActionDDL(driver, policyAction,\r\n policybinderpageDTO.valueOfPolicyActionEndorse, \"Policy Action\").equals(\"false\")) {\r\n\r\n // navigate through policy list till policy with expected\r\n // criteria is found\r\n RateApolicyPage rateapolicypage = new RateApolicyPage(driver);\r\n rateapolicypage.searchThroughPolicyList(policybinderpageDTO.valueOfPolicyActionEndorse);\r\n }\r\n }\r\n return new PolicyBinderPage(driver);\r\n }", "public void tilePayout(int i, ResourceDeck rd){\r\n \r\n //calculate the amount of resources that will be payed out\r\n ArrayList<Resource> resourcecount = new ArrayList<>(); \r\n for(Tile t: tiles){\r\n if(t.getToken()==i){\r\n for(Corner c: t.getAdjacentCorners()){\r\n if(c.getSettlement()==Settlement.SMALL) resourcecount.add(t.getResource());\r\n if(c.getSettlement()==Settlement.LARGE){\r\n resourcecount.add(t.getResource());\r\n resourcecount.add(t.getResource());\r\n }\r\n }\r\n }\r\n }\r\n int rockcount = 0;\r\n int sheepcount = 0;\r\n int wheatcount = 0;\r\n int claycount = 0;\r\n int woodcount = 0;\r\n for(Resource r: resourcecount){\r\n if(r==Resource.ROCK) rockcount++;\r\n if(r==Resource.SHEEP) sheepcount++;\r\n if(r==Resource.CLAY) claycount++;\r\n if(r==Resource.WHEAT) wheatcount++;\r\n if(r==Resource.WOOD) woodcount++;\r\n }\r\n \r\n //payout only resources that can be distributed to all tiles\r\n if(rd.hasResource(Resource.ROCK,rockcount)==true) resourcePayout(Resource.ROCK,i,rd);\r\n if(rd.hasResource(Resource.SHEEP,sheepcount)==true) resourcePayout(Resource.SHEEP,i,rd);\r\n if(rd.hasResource(Resource.CLAY,claycount)==true) resourcePayout(Resource.CLAY,i,rd);\r\n if(rd.hasResource(Resource.WHEAT,wheatcount)==true) resourcePayout(Resource.WHEAT,i,rd);\r\n if(rd.hasResource(Resource.WOOD,woodcount)==true) resourcePayout(Resource.WOOD,i,rd); \r\n }", "private void decrementOpponentRechargeTimes()\n\t{\n\t\tfor (Map.Entry<Skills, Integer> pair : rechargingOpponentSkills.entrySet())\n\t\t{\n\t\t\tint val = pair.getValue();\n\t\t\tSkills s = pair.getKey();\n\t\t\t\n\t\t\tif (val > 0)\n\t\t\t{\n\t\t\t\trechargingOpponentSkills.put(s, --val);\n\t\t\t}\n\t\t}\n\t}", "public void sellCampaign(Player player,Game game,Campaign campaign) {\n\t\tSystem.out.println(game.gameName+\" oyunu \"+player.FirstName+\" oyuncusuna \"+campaign.campaignName+\" kampanyasıyla satıldı\");\n\t\t\n\t}", "@Override\n\tpublic boolean desposit(int accNo, double money) {\n\t\treturn false;\n\t}", "@Override\r\n \tpublic void removeChoice(PlayerCharacter pc, CDOMObject owner, Skill choice)\r\n \t{\r\n \t\tpc.addSkill(choice);\r\n \t\tPCClass pcc = pc.getClassKeyed(source.getKeyName());\r\n \t\tif (applyRank != null)\r\n \t\t{\r\n \t\t\tSkillRankControl.modRanks(-applyRank, pcc, false, pc, choice);\r\n \t\t}\r\n \t\tpc.removeLocalCost(pcc, choice, SkillCost.CLASS, owner);\r\n \t}", "private void endMyTurn() {\n // end my turn, then.\n Entity next = clientgui.getClient().getGame()\n .getNextEntity(clientgui.getClient().getGame().getTurnIndex());\n if ((IGame.Phase.PHASE_DEPLOYMENT == clientgui.getClient().getGame()\n .getPhase())\n && (null != next)\n && (null != ce())\n && (next.getOwnerId() != ce().getOwnerId())) {\n clientgui.setDisplayVisible(false);\n }\n cen = Entity.NONE;\n clientgui.getBoardView().select(null);\n clientgui.getBoardView().highlight(null);\n clientgui.getBoardView().cursor(null);\n clientgui.bv.markDeploymentHexesFor(null);\n disableButtons();\n }", "public void denyDraw(){\n System.out.println(\"No cuenta con suficiente money\");\n System.out.println(\"\");\n}", "private void decreaseStock() {\n\t\tint decreaseBy; // declares decreaseBy\n\t\tint sic_idHolder; // declares sic_idHolder\n\t\t\n\t\tSystem.out.println(\"Please enter the SIC-ID of the card you wish to edit:\");\n\t\tsic_idHolder = scan.nextInt();\n\t\tscan.nextLine();\n\n\t\tif(inventoryObject.cardExists(sic_idHolder)) { // checks to see if the card with the inputed ID exists\n\t\tSystem.out.println(\"Please enter the amount you wish to decrease the stock by (Note: This should be a positive number):\");\n\t\tdecreaseBy = scan.nextInt();\n\t\tscan.nextLine();\n\t\t\n\t\tif(decreaseBy <= 0) { //checks to see is decrease by is negative\n\t\t\tSystem.out.println(\"Error! You must decrease the stock by 1 or more\\n\");\n\t\t\tgetUserInfo();\n\t\t}\n\t\tif(inventoryObject.quantitySize(sic_idHolder) - decreaseBy < 0 ) { // checks to see if the current quantity minus decreasedBy is negative\n\t\t\tSystem.out.println(\"Error. Quantity can not be reduced to a negative number\\n\");\n\t\t\tgetUserInfo();\n\t\t}\n\t\tinventoryObject.decreaseStock(sic_idHolder, decreaseBy); // calls decreaseStock in InventoryManagement\n\t\tgetUserInfo();\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"There are no cards with the ID you entered\\n\");\n\t\t\tgetUserInfo();\n\t\t}\n\t}", "private void resign(){\n try {\n // send the command and the color\n toServer.writeInt(RESIGN);\n toServer.writeInt(color);\n } catch (IOException e) {\n e.printStackTrace();\n }\n report(\"Client --> server: RESIGN \" + this.color);\n\n endGame();\n }", "public void sellProduct(){\n if(quantity > 0)\n this.quantity -= 1;\n else\n throw new IllegalArgumentException(\"Cannot sell \"+ this.model +\" with no inventory\");\n\n }", "public void action(){\n turn.sendMsg(turn.getController().getTurnOwner().getName()+\"'s turn!\");\n if(turn.getPlayer().isDown()){\n turn.setPhase(new RecoveryPhase());\n }else {\n turn.setPhase(new StarsPhase());\n }\n }", "public void surrender(Scanner sc) throws InterruptedException {\n\n System.out.println(\"Do you REALLY want to surrender? Y/N\");\n String exitInput = Game.cleanStringInput(sc.nextLine());\n\n // only accepts \"Y\" to prevent accidents\n if (exitInput.matches(\"[Yy]\")) {\n\n this.setScore(-2);\n\n // throw away cards...this will help trigger end of game\n while (this.hand.getCards().size() > 1) {\n this.hand.removeCard();\n }\n\n // Not the best way, but it works\n System.out.println(this.getName() + \" throws away all their cards!\"\n + \"\\nBut plays their last card anyway.\");\n Thread.sleep(1000);\n\n } else {\n System.out.println(\"Then the war rages on!\");\n Thread.sleep(1000);\n }\n }", "private void payByBalance(final View v) {\n if (!SanyiSDK.getCurrentStaffPermissionById(ConstantsUtil.PERMISSION_CASHIER)) {\n\n\n Toast.makeText(activity, getString(R.string.str_common_no_privilege), Toast.LENGTH_LONG).show();\n\n return;\n }\n final CashierPayment paymentMode = new CashierPayment();\n paymentMode.paymentType = ConstantsUtil.PAYMENT_STORE_VALUE;\n paymentMode.paymentName = getString(R.string.rechargeable_card);\n if (SanyiSDK.rest.config.isMemberUsePassword) {\n MemberPwdPopWindow memberPwdPopWindow = new MemberPwdPopWindow(v, activity, new MemberPwdPopWindow.OnSureListener() {\n\n @Override\n public void onSureClick(final String pwd) {\n // TODO Auto-generated method stub\n final NumPadPopWindow numPadPopWindow = new NumPadPopWindow(v, getActivity(), cashierResult, paymentMode, new NumPadPopWindow.OnSureListener() {\n\n @Override\n public void onSureClick(Double value, Double change) {\n // TODO Auto-generated method stub\n checkPresenterImpl.addMemberPayment(value, pwd);\n }\n });\n numPadPopWindow.show();\n\n\n }\n });\n memberPwdPopWindow.show();\n return;\n }\n final NumPadPopWindow numPadPopWindow = new NumPadPopWindow(v, getActivity(), cashierResult, paymentMode, new NumPadPopWindow.OnSureListener() {\n\n @Override\n public void onSureClick(Double value, Double change) {\n // TODO Auto-generated method stub\n checkPresenterImpl.addMemberPayment(value, null);\n }\n });\n numPadPopWindow.show();\n }", "void unsetCapitalPayed();", "@Override\n public void exit() {\n player.steeringBehaviorsManager.removeBehavior(ballPursuit);\n }", "private void subtractPlayerSheild(int damage) {\n this.playerShield -= damage;\n }" ]
[ "0.5824114", "0.54383063", "0.5258303", "0.52580756", "0.5249309", "0.5203707", "0.5112684", "0.51085144", "0.5097773", "0.5070743", "0.50503594", "0.502946", "0.50216544", "0.49788478", "0.48214573", "0.48118502", "0.47894198", "0.47872844", "0.47597593", "0.47289956", "0.47254637", "0.47197217", "0.4719394", "0.47024193", "0.46925795", "0.46807215", "0.46758592", "0.4669896", "0.46558806", "0.46482635", "0.46404493", "0.46309134", "0.46248507", "0.4606537", "0.46044907", "0.4603296", "0.46024993", "0.4602148", "0.45938042", "0.45906153", "0.4589749", "0.45717984", "0.45668668", "0.45456123", "0.45410946", "0.45403004", "0.45348334", "0.4532767", "0.45298633", "0.4523481", "0.45115146", "0.45017165", "0.44979104", "0.44965312", "0.44943056", "0.44912797", "0.4489684", "0.44864205", "0.4483475", "0.44827586", "0.44696212", "0.4467441", "0.44668525", "0.4465614", "0.44630998", "0.44597697", "0.44549662", "0.44539207", "0.4447747", "0.44474128", "0.44466007", "0.44462436", "0.44442198", "0.44425377", "0.44300604", "0.44261742", "0.4420974", "0.44184673", "0.44165546", "0.44061723", "0.4404839", "0.4402796", "0.4400785", "0.43958145", "0.43912646", "0.4386511", "0.43839276", "0.43835145", "0.43822563", "0.43802908", "0.43793175", "0.43791798", "0.437334", "0.43645868", "0.43599024", "0.4355349", "0.43547827", "0.43538022", "0.43530184", "0.4351166" ]
0.6927695
0
Gets the value of the value property.
public boolean isValue() { return value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final public Object getValue()\n {\n return getProperty(VALUE_KEY);\n }", "public Object getValue()\r\n\t{\r\n\t\treturn m_value;\r\n\t}", "public Object getValue() {\n\t\t\treturn value;\n\t\t}", "public Object getValue() {\n return value;\n }", "public Object getValue() {\n return value;\n }", "public Object getValue() {\n return value;\n }", "public Object getValue() {\n return value;\n }", "public Object getValue() {\n return value;\n }", "public Object getValue() {\n\t\treturn value;\n\t}", "public Object getValue() {\n\t\treturn value;\n\t}", "public Object getValue()\r\n {\r\n return this.value;\r\n }", "public Object getValue() {\r\n return value;\r\n }", "@Override\n public V getValue() {\n return m_value;\n }", "public String getValue(){\n\t\treturn _value;\n\t}", "public Object getValue()\n {\n return value;\n }", "public String getValueProperty() {\r\n return getAttributeAsString(\"valueProperty\");\r\n }", "public String getValue()\n {\n return value;\n }", "public String getValue() {\n return this.value;\n }", "public String getValue() {\n return this.value;\n }", "public String getValue() {\n return this.value;\n }", "public String getValue() {\n return this.value;\n }", "public String getValue() {\n return this.value;\n }", "public String getValue() {\n return this.value;\n }", "public String getValue() {\n return this.value;\n }", "public String getValue() {\r\n return value;\r\n }", "public String getValue() {\r\n return value;\r\n }", "public String getValue() {\r\n return value;\r\n }", "public String getValue() {\r\n return value;\r\n }", "public String getValue() {\r\n return value;\r\n }", "public String getValue() {\n\t\treturn this.value;\n\t}", "public String getValue() {\n\t\treturn this.value;\n\t}", "public String getValue() {\n\t\treturn this.value;\n\t}", "public String getValue()\r\n\t{\r\n\t\treturn value;\r\n\t}", "public Object getValue() { return this.value; }", "public V getValue() {\n\t\treturn value;\n\t}", "public V getValue() {\n\t\treturn value;\n\t}", "public String getValue() {\n return value;\n }", "public String getValue() {\n return value;\n }", "public String getValue() {\n return value;\n }", "public String getValue() {\n return value;\n }", "public String getValue() {\n return value;\n }", "public String getValue() {\n return value;\n }", "public String getValue() {\n return value;\n }", "public String getValue() {\n return value;\n }", "public String getValue() {\n return value;\n }", "public String getValue() {\n return value;\n }", "public String getValue() {\n return value;\n }", "public String getValue() {\n return value;\n }", "public String getValue() {\n return value;\n }", "public String getValue() {\n return value;\n }", "public String getValue() {\n return value;\n }", "public String getValue() {\n return value;\n }", "public String getValue() {\n return value;\n }", "public String getValue(){\n\t\treturn this.value;\n\t}", "public String getValue() {\n\t\treturn mValue;\n\t}", "public String getValue()\n {\n return this.value;\n }", "public String getValue() {\n\t\treturn value;\n\t}", "public String getValue() {\n\t\treturn value;\n\t}", "public String getValue() {\n\t\treturn value;\n\t}", "public String getValue() {\n\t\treturn value;\n\t}", "public String getValue() {\n\t\treturn value;\n\t}", "public String getValue() {\r\n\t\treturn value;\r\n\t}", "public String getValue()\n {\n return value;\n }", "public String getValue() {\n\n return this.value;\n\n }", "public V getValue() {\n return value;\n }", "public V getValue() {\n return value;\n }", "public V getValue() {\n return value;\n }", "public V getValue() {\n return value;\n }", "public String getValue()\n {\n return value;\n }", "public String getValue()\n {\n return value;\n }", "public String getValue() {\r\n return value;\r\n }", "public String getValue() {\n return value;\n }", "public String getValue() {\r\n\t\t\treturn mValue;\r\n\t\t}", "public String getValue() {\n return value;\n }", "public V getValue() {\r\n\t\treturn value;\r\n\t}", "public Value getValue(){\n return this.value;\n }", "@Override\n\t\tpublic V getValue(){\n\t\t\treturn value;\n\t\t}", "public V getValue() {\n return value;\n }", "public V getValue() {\n return value;\n }", "public String getValue()\n {\n return mValue;\n }", "public Object getValue() {\r\n return oValue;\r\n }", "public Object getValue() { return _value; }", "V getValue() {\n return value;\n }", "public String getValue() {\n\t\tString value;\n\t\ttry {\n\t\t\tvalue = this.getString(\"value\");\n\t\t} catch (Exception e) {\n\t\t\tvalue = null;\n\t\t}\n\t\treturn value;\n\t}", "@XmlElement(name = \"Value\", namespace = Constants.NS)\r\n public Object getValue()\r\n {\r\n return m_value;\r\n }", "public String getValue () { return value; }", "public String getValue() {\n\t\treturn (String) get_Value(\"Value\");\n\t}", "public final Object getValue()\n {\n return m_Value;\n }", "public String getValue() { return value; }", "public String getValue(){\n return this.value;\n }", "public Object getValue()\n {\n\treturn value;\n }", "public java.lang.String getValue() {\n return value;\n }", "public Object getValue(){\n \treturn this.value;\n }", "public org.apache.calcite.avatica.proto.Common.TypedValue getValue() {\n return value_ == null ? org.apache.calcite.avatica.proto.Common.TypedValue.getDefaultInstance() : value_;\n }", "public JValue getValue() {\n\t\treturn value;\n\t}", "public V getValue()\r\n\t\t{\r\n\t\t\treturn val;\r\n\t\t}", "@Override\n\tpublic String getValue() {\n\t\treturn value;\n\t}", "@Override\r\n public Object getValue() {\r\n return value;\r\n }", "protected V getValue() {\n return this.value;\n }", "public T getValue() {\n\t\treturn value;\n\t}", "public T getValue() {\n\t\treturn value;\n\t}" ]
[ "0.8500105", "0.8305661", "0.8197616", "0.8191974", "0.8191974", "0.8191974", "0.8191974", "0.8191974", "0.8191429", "0.8191429", "0.81832105", "0.817907", "0.81453365", "0.81289715", "0.8115546", "0.81137264", "0.8095892", "0.8094922", "0.8094922", "0.8094922", "0.8094922", "0.8094922", "0.8094922", "0.8094922", "0.80819136", "0.80819136", "0.80819136", "0.80819136", "0.80819136", "0.807221", "0.807221", "0.807221", "0.8071402", "0.8069781", "0.8069332", "0.8069332", "0.80689925", "0.80689925", "0.80689925", "0.80689925", "0.80689925", "0.80689925", "0.80689925", "0.80689925", "0.80689925", "0.80689925", "0.80689925", "0.80689925", "0.80689925", "0.80689925", "0.80689925", "0.80689925", "0.80689925", "0.8057476", "0.805653", "0.8056105", "0.8052931", "0.8052931", "0.8052931", "0.8052931", "0.8052931", "0.80505013", "0.8047522", "0.8046044", "0.80419105", "0.80419105", "0.80419105", "0.80419105", "0.8041589", "0.8041589", "0.80379033", "0.8037382", "0.8025137", "0.8024759", "0.80224127", "0.8012842", "0.7999306", "0.7991972", "0.7991972", "0.7990233", "0.7982554", "0.7973218", "0.79547036", "0.79501384", "0.79390174", "0.79307294", "0.79280883", "0.7920525", "0.7880529", "0.7879432", "0.7874559", "0.7863761", "0.7858104", "0.78573906", "0.7823519", "0.78221744", "0.78128815", "0.77750236", "0.77604777", "0.7758949", "0.7758949" ]
0.0
-1
Sets the value of the value property.
public void setValue(boolean value) { this.value = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setValue(Value value) {\n this.value = value;\n }", "final public void setValue(Object value)\n {\n setProperty(VALUE_KEY, (value));\n }", "public void setValue(Object value)\r\n {\r\n m_value = value;\r\n }", "public void setValue(Object value) {\n this.value = value;\n }", "public void setValue(Object value)\r\n\t{\r\n\t\tm_value = value;\r\n\t}", "public void setValue(final Object value) { _value = value; }", "public void setValue(final V value) {\n this.value = value;\n }", "public void setValue(Object value) { this.value = value; }", "public void setValue(T value) {\n\t\tthis.value = value;\n\t}", "public void setValue(T value) {\n\t\tthis.value = value;\n\t}", "public void set(final V value) {\n\t\tthis.value = value;\n\t}", "public void setValue(T value) {\n this.value = value;\n }", "public void setValue(T value) \n\t{\n\t\tthis.value = value;\n\t}", "public void set(V value) {\n Rules.checkAttributeValue(value);\n checkType(value);\n this.value = value;\n isSleeping = false;\n notifyObservers();\n }", "public void setValue(Object value) {\n\t\tthis.value = value;\n\t\tsetValueAction(value);\n\t}", "void setValue(T value)\n\t\t{\n\t\t\tthis.value = value;\n\t\t}", "public void setValue(String value) {\n\t\tmValue = value;\n\t}", "protected void setValue(T value) {\r\n this.value = value;\r\n }", "public void setValue(String value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void set(T pValue) {\n mValue = pValue;\n }", "@Override\n public void setValue(Object val)\n {\n value = val;\n }", "public void setValue(String value) {\n\t\tthis.value = value;\n\t}", "public void setValue(String value) {\n\t\tthis.value = value;\n\t}", "public void setValue(String value) {\n\t\tthis.value = value;\n\t}", "public void setValue(String value) {\n\t\tthis.value = value;\n\t}", "public void setValue(Entity value) {\r\n\t\t\tthis.value = value;\r\n\t\t}", "public void setValue(String value) {\n this.value = value;\n }", "public void setValue(String value) {\n this.value = value;\n }", "public void setValue(String value) {\n this.value = value;\n }", "public void setValue(String value) {\n this.value = value;\n }", "public void setValue(String value) {\n this.value = value;\n }", "public void setValue( String value )\n {\n this.value = value;\n }", "public void setValue(Object value) {\n setValue(value.toString());\n }", "public void set_value(int value) {\n\t\tthis.value = value;\n\t}", "public void setValue(AXValue value) {\n this.value = value;\n }", "public void setValue(String value) {\n\t\tthis.value = value;\n\t}", "public void setValue(int value) {\n m_value = value;\n }", "public void setValue(String value)\n {\n this.value = value;\n }", "public boolean setValue (\n\t\t\tfinal V value)\n\t\t{\n\t\t\t_value = value;\n\t\t\treturn true;\n\t\t}", "public void setValue(Object value);", "@Override\n\tpublic void setValue(Object value) {\n\t\t\n\t}", "public void setValue(int value) {\n\t\tm_value = value;\n\t}", "public void setValue(Number value) {\n this.value = value;\n }", "public void setValue(int value) {\r\n this.value = value;\r\n }", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(int value)\n {\n this.value = value;\n }", "public V setValue(V value);", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue (V v) {\n value = v;\n }", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(int value) {\n this.value = value;\n }", "@Override\n\t\t\tpublic void setPropertyValue(Object value) {\n\t\t\t\t\n\t\t\t}", "public void setValue(String value) {\n\t this.valueS = value;\n\t }", "public void setValue(T value) {\n this.mValue = value;\n if (mDependency == null)\n mDependency = new ReactorDependency();\n\n mDependency.changed();\n }", "public void setValue(int value) {\n\t\tthis.value = value;\n\t}", "public void setValue(int value) {\n\t\tthis.value = value;\n\t}", "@SuppressWarnings(\"unchecked\")\n public void setValue(Object value) {\n if (element != null) {\n element.setValue((V)value);\n }\n }", "private void setValue(double value) {\n this.value = value;\n }", "public void setValue(int value) {\n\t\tthis._value = value;\n\t}", "public void setValueProperty(String valueProperty) throws IllegalStateException {\r\n setAttribute(\"valueProperty\", valueProperty, false);\r\n }", "public void setValue(double value) {\n this.value = value; \n }", "public void setValue(final String value) {\n this.value = value;\n }", "public void setValue(V newValue) {\n this.value = newValue;\n }", "public void setValue(String value) {\n set (value);\n }", "public void setValue(JValue val) {\n\t\tthis.value = val;\n\t}", "public void setValue(Integer value) {\n _value = value ;\n }", "void setValue(Object value);", "public void setValue(final String value)\n {\n this.value = value;\n }", "public void set(String value) {\n // Si es un nuevo valor se establece y se notifica.\n if (!TextUtils.equals(this.mValue, value)) {\n mValue = value;\n notifyChange();\n }\n }", "protected abstract void setValue(V value);", "void setValue(V value);", "public void setValue(Object value) {\n Class type = value.getClass();\n if (type == Boolean.class)\n setIntValue((((Boolean) value).booleanValue()) ? 1 : 0);\n else if (type == Character.class)\n setIntValue((int) ((Character) value).charValue());\n else if (type == Byte.class || type == Integer.class \n || type == Short.class)\n setIntValue(((Number) value).intValue());\n else if (type == Float.class)\n setFloatValue(((Number) value).floatValue());\n else if (type == Double.class)\n setDoubleValue(((Number) value).doubleValue());\n else if (type == Long.class)\n setLongValue(((Number) value).longValue());\n else\n setStringValue(value.toString());\n }", "public void set (String Value)\n\t\t{\n\t\tthis.Value = Value;\t\t\n\t\t}", "public void setValue(double value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(Number value) {\n setAttributeInternal(VALUE, value);\n }", "public void setValue(double value) {\n this.value = value;\n }", "public void setValue(double value) {\n this.value = value;\n }", "public void setValue(double value) {\n this.value = value;\n }", "public void setValue(IveObject val){\r\n\tvalue = val;\r\n\tnotifyFromAttr();\r\n }", "public void setValue (double value) {\n\t\tthis.value = value;\n\t}", "@JacksonXmlProperty(isAttribute = true, localName = \"value\")\n public Builder value(String value) {\n this.value = value;\n return this;\n }", "public void setValue(int val)\r\n {\r\n value = val;\r\n }", "public void setValue(int value)\n {\n // we have assumed value 1 for X and 10 for O\n this.value = value;\n }", "public void setValue(double value) {\n\t\tthis.value = value;\n\t}", "public void setValue(Integer value) {\n\t\tthis.value = value;\n\t}", "public void setValue(/* @Nullable */ final T value) {\n this.value = value;\n }", "public void setValue(V newValue) {\r\n\t\tvalue = newValue;\r\n\t}", "private void setValue(int value) {\n final boolean changed = mValue != value;\n if (changed || !mValueSet) {\n mValue = value;\n mValueSet = true;\n persistInt(value);\n if (changed) {\n notifyChanged();\n }\n }\n }", "public void setValue(Object val);" ]
[ "0.858186", "0.83486116", "0.8284121", "0.8237388", "0.82108575", "0.8111187", "0.80922234", "0.7982137", "0.79254067", "0.79254067", "0.7906303", "0.78104156", "0.7806489", "0.7791204", "0.77591354", "0.7693482", "0.7688979", "0.76523703", "0.7603448", "0.7600727", "0.7600727", "0.7600727", "0.7600727", "0.7600727", "0.7569102", "0.7530864", "0.75148124", "0.75148124", "0.75148124", "0.75148124", "0.7506329", "0.75000924", "0.75000924", "0.75000924", "0.75000924", "0.75000924", "0.74688643", "0.7458532", "0.7456349", "0.7448401", "0.743861", "0.74019134", "0.7396825", "0.7367009", "0.7361234", "0.7353438", "0.734013", "0.73387176", "0.73281187", "0.73224574", "0.73224574", "0.73212725", "0.731018", "0.7306841", "0.7306841", "0.7306841", "0.7306841", "0.7306841", "0.7306142", "0.73054385", "0.73054385", "0.73054385", "0.72778106", "0.7271215", "0.7261439", "0.7221613", "0.7221613", "0.7219298", "0.7186152", "0.7173611", "0.71682537", "0.7168076", "0.7162623", "0.7159124", "0.71501", "0.7140788", "0.7140756", "0.7135435", "0.7134736", "0.71214354", "0.7121372", "0.71183443", "0.7116465", "0.71142167", "0.7099971", "0.7085806", "0.7084856", "0.7084856", "0.7084856", "0.7076237", "0.7074579", "0.7071301", "0.7070513", "0.70482695", "0.70417213", "0.7039651", "0.70253396", "0.6995991", "0.69888014", "0.698522" ]
0.70270467
96
Gets the value of the value property.
public boolean isValue() { return value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final public Object getValue()\n {\n return getProperty(VALUE_KEY);\n }", "public Object getValue()\r\n\t{\r\n\t\treturn m_value;\r\n\t}", "public Object getValue() {\n\t\t\treturn value;\n\t\t}", "public Object getValue() {\n return value;\n }", "public Object getValue() {\n return value;\n }", "public Object getValue() {\n return value;\n }", "public Object getValue() {\n return value;\n }", "public Object getValue() {\n return value;\n }", "public Object getValue() {\n\t\treturn value;\n\t}", "public Object getValue() {\n\t\treturn value;\n\t}", "public Object getValue()\r\n {\r\n return this.value;\r\n }", "public Object getValue() {\r\n return value;\r\n }", "@Override\n public V getValue() {\n return m_value;\n }", "public String getValue(){\n\t\treturn _value;\n\t}", "public Object getValue()\n {\n return value;\n }", "public String getValueProperty() {\r\n return getAttributeAsString(\"valueProperty\");\r\n }", "public String getValue()\n {\n return value;\n }", "public String getValue() {\n return this.value;\n }", "public String getValue() {\n return this.value;\n }", "public String getValue() {\n return this.value;\n }", "public String getValue() {\n return this.value;\n }", "public String getValue() {\n return this.value;\n }", "public String getValue() {\n return this.value;\n }", "public String getValue() {\n return this.value;\n }", "public String getValue() {\r\n return value;\r\n }", "public String getValue() {\r\n return value;\r\n }", "public String getValue() {\r\n return value;\r\n }", "public String getValue() {\r\n return value;\r\n }", "public String getValue() {\r\n return value;\r\n }", "public String getValue() {\n\t\treturn this.value;\n\t}", "public String getValue() {\n\t\treturn this.value;\n\t}", "public String getValue() {\n\t\treturn this.value;\n\t}", "public String getValue()\r\n\t{\r\n\t\treturn value;\r\n\t}", "public Object getValue() { return this.value; }", "public V getValue() {\n\t\treturn value;\n\t}", "public V getValue() {\n\t\treturn value;\n\t}", "public String getValue() {\n return value;\n }", "public String getValue() {\n return value;\n }", "public String getValue() {\n return value;\n }", "public String getValue() {\n return value;\n }", "public String getValue() {\n return value;\n }", "public String getValue() {\n return value;\n }", "public String getValue() {\n return value;\n }", "public String getValue() {\n return value;\n }", "public String getValue() {\n return value;\n }", "public String getValue() {\n return value;\n }", "public String getValue() {\n return value;\n }", "public String getValue() {\n return value;\n }", "public String getValue() {\n return value;\n }", "public String getValue() {\n return value;\n }", "public String getValue() {\n return value;\n }", "public String getValue() {\n return value;\n }", "public String getValue() {\n return value;\n }", "public String getValue(){\n\t\treturn this.value;\n\t}", "public String getValue() {\n\t\treturn mValue;\n\t}", "public String getValue()\n {\n return this.value;\n }", "public String getValue() {\n\t\treturn value;\n\t}", "public String getValue() {\n\t\treturn value;\n\t}", "public String getValue() {\n\t\treturn value;\n\t}", "public String getValue() {\n\t\treturn value;\n\t}", "public String getValue() {\n\t\treturn value;\n\t}", "public String getValue() {\r\n\t\treturn value;\r\n\t}", "public String getValue()\n {\n return value;\n }", "public String getValue() {\n\n return this.value;\n\n }", "public V getValue() {\n return value;\n }", "public V getValue() {\n return value;\n }", "public V getValue() {\n return value;\n }", "public V getValue() {\n return value;\n }", "public String getValue()\n {\n return value;\n }", "public String getValue()\n {\n return value;\n }", "public String getValue() {\r\n return value;\r\n }", "public String getValue() {\n return value;\n }", "public String getValue() {\r\n\t\t\treturn mValue;\r\n\t\t}", "public String getValue() {\n return value;\n }", "public V getValue() {\r\n\t\treturn value;\r\n\t}", "public Value getValue(){\n return this.value;\n }", "@Override\n\t\tpublic V getValue(){\n\t\t\treturn value;\n\t\t}", "public V getValue() {\n return value;\n }", "public V getValue() {\n return value;\n }", "public String getValue()\n {\n return mValue;\n }", "public Object getValue() {\r\n return oValue;\r\n }", "public Object getValue() { return _value; }", "V getValue() {\n return value;\n }", "public String getValue() {\n\t\tString value;\n\t\ttry {\n\t\t\tvalue = this.getString(\"value\");\n\t\t} catch (Exception e) {\n\t\t\tvalue = null;\n\t\t}\n\t\treturn value;\n\t}", "@XmlElement(name = \"Value\", namespace = Constants.NS)\r\n public Object getValue()\r\n {\r\n return m_value;\r\n }", "public String getValue () { return value; }", "public String getValue() {\n\t\treturn (String) get_Value(\"Value\");\n\t}", "public final Object getValue()\n {\n return m_Value;\n }", "public String getValue() { return value; }", "public String getValue(){\n return this.value;\n }", "public Object getValue()\n {\n\treturn value;\n }", "public java.lang.String getValue() {\n return value;\n }", "public Object getValue(){\n \treturn this.value;\n }", "public org.apache.calcite.avatica.proto.Common.TypedValue getValue() {\n return value_ == null ? org.apache.calcite.avatica.proto.Common.TypedValue.getDefaultInstance() : value_;\n }", "public JValue getValue() {\n\t\treturn value;\n\t}", "public V getValue()\r\n\t\t{\r\n\t\t\treturn val;\r\n\t\t}", "@Override\n\tpublic String getValue() {\n\t\treturn value;\n\t}", "@Override\r\n public Object getValue() {\r\n return value;\r\n }", "protected V getValue() {\n return this.value;\n }", "public T getValue() {\n\t\treturn value;\n\t}", "public T getValue() {\n\t\treturn value;\n\t}" ]
[ "0.8500105", "0.8305661", "0.8197616", "0.8191974", "0.8191974", "0.8191974", "0.8191974", "0.8191974", "0.8191429", "0.8191429", "0.81832105", "0.817907", "0.81453365", "0.81289715", "0.8115546", "0.81137264", "0.8095892", "0.8094922", "0.8094922", "0.8094922", "0.8094922", "0.8094922", "0.8094922", "0.8094922", "0.80819136", "0.80819136", "0.80819136", "0.80819136", "0.80819136", "0.807221", "0.807221", "0.807221", "0.8071402", "0.8069781", "0.8069332", "0.8069332", "0.80689925", "0.80689925", "0.80689925", "0.80689925", "0.80689925", "0.80689925", "0.80689925", "0.80689925", "0.80689925", "0.80689925", "0.80689925", "0.80689925", "0.80689925", "0.80689925", "0.80689925", "0.80689925", "0.80689925", "0.8057476", "0.805653", "0.8056105", "0.8052931", "0.8052931", "0.8052931", "0.8052931", "0.8052931", "0.80505013", "0.8047522", "0.8046044", "0.80419105", "0.80419105", "0.80419105", "0.80419105", "0.8041589", "0.8041589", "0.80379033", "0.8037382", "0.8025137", "0.8024759", "0.80224127", "0.8012842", "0.7999306", "0.7991972", "0.7991972", "0.7990233", "0.7982554", "0.7973218", "0.79547036", "0.79501384", "0.79390174", "0.79307294", "0.79280883", "0.7920525", "0.7880529", "0.7879432", "0.7874559", "0.7863761", "0.7858104", "0.78573906", "0.7823519", "0.78221744", "0.78128815", "0.77750236", "0.77604777", "0.7758949", "0.7758949" ]
0.0
-1
Sets the value of the value property.
public void setValue(boolean value) { this.value = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setValue(Value value) {\n this.value = value;\n }", "final public void setValue(Object value)\n {\n setProperty(VALUE_KEY, (value));\n }", "public void setValue(Object value)\r\n {\r\n m_value = value;\r\n }", "public void setValue(Object value) {\n this.value = value;\n }", "public void setValue(Object value)\r\n\t{\r\n\t\tm_value = value;\r\n\t}", "public void setValue(final Object value) { _value = value; }", "public void setValue(final V value) {\n this.value = value;\n }", "public void setValue(Object value) { this.value = value; }", "public void setValue(T value) {\n\t\tthis.value = value;\n\t}", "public void setValue(T value) {\n\t\tthis.value = value;\n\t}", "public void set(final V value) {\n\t\tthis.value = value;\n\t}", "public void setValue(T value) {\n this.value = value;\n }", "public void setValue(T value) \n\t{\n\t\tthis.value = value;\n\t}", "public void set(V value) {\n Rules.checkAttributeValue(value);\n checkType(value);\n this.value = value;\n isSleeping = false;\n notifyObservers();\n }", "public void setValue(Object value) {\n\t\tthis.value = value;\n\t\tsetValueAction(value);\n\t}", "void setValue(T value)\n\t\t{\n\t\t\tthis.value = value;\n\t\t}", "public void setValue(String value) {\n\t\tmValue = value;\n\t}", "protected void setValue(T value) {\r\n this.value = value;\r\n }", "public void setValue(String value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void setValue(String value) {\r\n this.value = value;\r\n }", "public void set(T pValue) {\n mValue = pValue;\n }", "@Override\n public void setValue(Object val)\n {\n value = val;\n }", "public void setValue(String value) {\n\t\tthis.value = value;\n\t}", "public void setValue(String value) {\n\t\tthis.value = value;\n\t}", "public void setValue(String value) {\n\t\tthis.value = value;\n\t}", "public void setValue(String value) {\n\t\tthis.value = value;\n\t}", "public void setValue(Entity value) {\r\n\t\t\tthis.value = value;\r\n\t\t}", "public void setValue(String value) {\n this.value = value;\n }", "public void setValue(String value) {\n this.value = value;\n }", "public void setValue(String value) {\n this.value = value;\n }", "public void setValue(String value) {\n this.value = value;\n }", "public void setValue(String value) {\n this.value = value;\n }", "public void setValue( String value )\n {\n this.value = value;\n }", "public void setValue(Object value) {\n setValue(value.toString());\n }", "public void set_value(int value) {\n\t\tthis.value = value;\n\t}", "public void setValue(AXValue value) {\n this.value = value;\n }", "public void setValue(String value) {\n\t\tthis.value = value;\n\t}", "public void setValue(int value) {\n m_value = value;\n }", "public void setValue(String value)\n {\n this.value = value;\n }", "public boolean setValue (\n\t\t\tfinal V value)\n\t\t{\n\t\t\t_value = value;\n\t\t\treturn true;\n\t\t}", "public void setValue(Object value);", "@Override\n\tpublic void setValue(Object value) {\n\t\t\n\t}", "public void setValue(int value) {\n\t\tm_value = value;\n\t}", "public void setValue(Number value) {\n this.value = value;\n }", "public void setValue(int value) {\r\n this.value = value;\r\n }", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(int value)\n {\n this.value = value;\n }", "public V setValue(V value);", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue (V v) {\n value = v;\n }", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(int value) {\n this.value = value;\n }", "public void setValue(int value) {\n this.value = value;\n }", "@Override\n\t\t\tpublic void setPropertyValue(Object value) {\n\t\t\t\t\n\t\t\t}", "public void setValue(String value) {\n\t this.valueS = value;\n\t }", "public void setValue(T value) {\n this.mValue = value;\n if (mDependency == null)\n mDependency = new ReactorDependency();\n\n mDependency.changed();\n }", "public void setValue(int value) {\n\t\tthis.value = value;\n\t}", "public void setValue(int value) {\n\t\tthis.value = value;\n\t}", "@SuppressWarnings(\"unchecked\")\n public void setValue(Object value) {\n if (element != null) {\n element.setValue((V)value);\n }\n }", "private void setValue(double value) {\n this.value = value;\n }", "public void setValue(int value) {\n\t\tthis._value = value;\n\t}", "public void setValueProperty(String valueProperty) throws IllegalStateException {\r\n setAttribute(\"valueProperty\", valueProperty, false);\r\n }", "public void setValue(double value) {\n this.value = value; \n }", "public void setValue(final String value) {\n this.value = value;\n }", "public void setValue(V newValue) {\n this.value = newValue;\n }", "public void setValue(String value) {\n set (value);\n }", "public void setValue(JValue val) {\n\t\tthis.value = val;\n\t}", "public void setValue(Integer value) {\n _value = value ;\n }", "void setValue(Object value);", "public void setValue(final String value)\n {\n this.value = value;\n }", "public void set(String value) {\n // Si es un nuevo valor se establece y se notifica.\n if (!TextUtils.equals(this.mValue, value)) {\n mValue = value;\n notifyChange();\n }\n }", "protected abstract void setValue(V value);", "void setValue(V value);", "public void setValue(Object value) {\n Class type = value.getClass();\n if (type == Boolean.class)\n setIntValue((((Boolean) value).booleanValue()) ? 1 : 0);\n else if (type == Character.class)\n setIntValue((int) ((Character) value).charValue());\n else if (type == Byte.class || type == Integer.class \n || type == Short.class)\n setIntValue(((Number) value).intValue());\n else if (type == Float.class)\n setFloatValue(((Number) value).floatValue());\n else if (type == Double.class)\n setDoubleValue(((Number) value).doubleValue());\n else if (type == Long.class)\n setLongValue(((Number) value).longValue());\n else\n setStringValue(value.toString());\n }", "public void set (String Value)\n\t\t{\n\t\tthis.Value = Value;\t\t\n\t\t}", "public void setValue(double value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setValue(Number value) {\n setAttributeInternal(VALUE, value);\n }", "public void setValue(double value) {\n this.value = value;\n }", "public void setValue(double value) {\n this.value = value;\n }", "public void setValue(double value) {\n this.value = value;\n }", "public void setValue(IveObject val){\r\n\tvalue = val;\r\n\tnotifyFromAttr();\r\n }", "public void setValue (double value) {\n\t\tthis.value = value;\n\t}", "@JacksonXmlProperty(isAttribute = true, localName = \"value\")\n public Builder value(String value) {\n this.value = value;\n return this;\n }", "public void setValue(int val)\r\n {\r\n value = val;\r\n }", "public void setValue(int value)\n {\n // we have assumed value 1 for X and 10 for O\n this.value = value;\n }", "public void setValue(double value) {\n\t\tthis.value = value;\n\t}", "public void setValue(Integer value) {\n\t\tthis.value = value;\n\t}", "public void setValue(boolean value) {\n this.value = value;\n }", "public void setValue(/* @Nullable */ final T value) {\n this.value = value;\n }", "public void setValue(V newValue) {\r\n\t\tvalue = newValue;\r\n\t}", "private void setValue(int value) {\n final boolean changed = mValue != value;\n if (changed || !mValueSet) {\n mValue = value;\n mValueSet = true;\n persistInt(value);\n if (changed) {\n notifyChanged();\n }\n }\n }", "public void setValue(Object val);" ]
[ "0.858186", "0.83486116", "0.8284121", "0.8237388", "0.82108575", "0.8111187", "0.80922234", "0.7982137", "0.79254067", "0.79254067", "0.7906303", "0.78104156", "0.7806489", "0.7791204", "0.77591354", "0.7693482", "0.7688979", "0.76523703", "0.7603448", "0.7600727", "0.7600727", "0.7600727", "0.7600727", "0.7600727", "0.7569102", "0.7530864", "0.75148124", "0.75148124", "0.75148124", "0.75148124", "0.7506329", "0.75000924", "0.75000924", "0.75000924", "0.75000924", "0.75000924", "0.74688643", "0.7458532", "0.7456349", "0.7448401", "0.743861", "0.74019134", "0.7396825", "0.7367009", "0.7361234", "0.7353438", "0.734013", "0.73387176", "0.73281187", "0.73224574", "0.73224574", "0.73212725", "0.731018", "0.7306841", "0.7306841", "0.7306841", "0.7306841", "0.7306841", "0.7306142", "0.73054385", "0.73054385", "0.73054385", "0.72778106", "0.7271215", "0.7261439", "0.7221613", "0.7221613", "0.7219298", "0.7186152", "0.7173611", "0.71682537", "0.7168076", "0.7162623", "0.7159124", "0.71501", "0.7140788", "0.7140756", "0.7135435", "0.7134736", "0.71214354", "0.7121372", "0.71183443", "0.7116465", "0.71142167", "0.7099971", "0.7085806", "0.7084856", "0.7084856", "0.7084856", "0.7076237", "0.7074579", "0.7071301", "0.7070513", "0.70482695", "0.70417213", "0.7039651", "0.70270467", "0.70253396", "0.6995991", "0.69888014", "0.698522" ]
0.0
-1
Method to process the messages received from the SQS topic
public void processMessage(String message);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onSqsRequestSuccess(String internalQueueName, int messagesCount);", "@Override\n public void onMessage(Message message) {\n try {\n // Generate data\n QueueProcessor processor = getBean(QueueProcessor.class);\n ServiceData serviceData = processor.parseResponseMessage(response, message);\n\n // If return is a DataList or Data, parse it with the query\n if (serviceData.getClientActionList() == null || serviceData.getClientActionList().isEmpty()) {\n serviceData = queryService.onSubscribeData(query, address, serviceData, parameterMap);\n } else {\n // Add address to client action list\n for (ClientAction action : serviceData.getClientActionList()) {\n action.setAddress(getAddress());\n }\n }\n\n // Broadcast data\n broadcastService.broadcastMessageToUID(address.getSession(), serviceData.getClientActionList());\n\n // Log sent message\n getLogger().log(QueueListener.class, Level.DEBUG,\n \"New message received from subscription to address {0}. Content: {1}\",\n getAddress().toString(), message.toString());\n } catch (AWException exc) {\n broadcastService.sendErrorToUID(address.getSession(), exc.getTitle(), exc.getMessage());\n\n // Log error\n getLogger().log(QueueListener.class, Level.ERROR, \"Error in message from subscription to address {0}. Content: {1}\", exc,\n getAddress().toString(), message.toString());\n } catch (Exception exc) {\n broadcastService.sendErrorToUID(address.getSession(), null, exc.getMessage());\n\n // Log error\n getLogger().log(QueueListener.class, Level.ERROR, \"Error in message from subscription to address {0}. Content: {1}\", exc,\n getAddress().toString(), message.toString());\n }\n }", "private static List<String> getMessages(AmazonSQS sqs) {\n ReceiveMessageRequest receiveMessageRequest = new ReceiveMessageRequest(sqsURL);\n List<Message> messages = sqs.receiveMessage(receiveMessageRequest.withMessageAttributeNames(\"All\")).getMessages();\n\n List<String> filesToProcess = new ArrayList<String>();\n\n for (Message message : messages) {\n // System.out.println(\" Message\");\n System.out.println(\" MessageId: \" + message.getMessageId());\n System.out.println(\" ReceiptHandle: \" + message.getReceiptHandle());\n System.out.println(\" MD5OfBody: \" + message.getMD5OfBody());\n System.out.println(\" Body: \" + message.getBody());\n for (Entry<String, MessageAttributeValue> entry : message.getMessageAttributes().entrySet()) {\n// System.out.println(\" Attribute\");\n// System.out.println(\" Name: \" + entry.getKey());\n// System.out.println(\" Value: \" + entry.getValue().getStringValue());\n filesToProcess.add(entry.getValue().getStringValue());\n }\n// System.out.println(\"Deleting a message.\\n\");\n String messageReceiptHandle = message.getReceiptHandle();\n sqs.deleteMessage(new DeleteMessageRequest(sqsURL, messageReceiptHandle));\n }\n return filesToProcess;\n }", "void onMessageProcessingSuccess(String internalQueueName);", "@Override\n\t\t\tpublic void messageArrived(String topic, MqttMessage message) throws Exception {\n\t\t\t\tSystem.out.println(\"接收消息主题 : \" + topic);\n\t\t\t\tSystem.out.println(\"接收消息Qos : \" + message.getQos());\n\t\t\t\tSystem.out.println(\"接收消息内容 : \" + message.toString());\n\t\t\t\tjas.decry(message.toString());\n\t\t\t}", "private void processAndPublishMessage(byte[] body) {\n Map<String, Object> props = Maps.newHashMap();\n props.put(CORRELATION_ID, correlationId);\n MessageContext mc = new MessageContext(body, props);\n try {\n msgOutQueue.put(mc);\n String message = new String(body, \"UTF-8\");\n log.debug(\" [x] Sent '{}'\", message);\n } catch (InterruptedException | UnsupportedEncodingException e) {\n log.error(ExceptionUtils.getFullStackTrace(e));\n }\n manageSender.publish();\n }", "void onMessageProcessingAttempt(String internalQueueName);", "@Override\n\t\tpublic void messageArrived(String topic, MqttMessage mqttMessage)\n\t\t\t\tthrows Exception {\n\t\t\tsuper.messageArrived(topic, mqttMessage);\n\n\t\t\tMatcher matcher = pattern.matcher(topic);\n\t\t\tif (matcher.matches()) {\n\t\t\t\tString deviceid = matcher.group(1);\n\t\t\t\tString payload = new String(mqttMessage.getPayload());\n\t\t\t\t\n\t\t\t\t//Parse the payload in Json Format\n\t\t\t\tJSONObject jsonObject = new JSONObject(payload);\n\t\t\t\tJSONObject contObj = jsonObject.getJSONObject(\"d\");\n\t\t\t\tint count = contObj.getInt(\"count\");\n\t\t\t\tSystem.out.println(\"Receive count \" + count + \" from device \"\n\t\t\t\t\t\t+ deviceid);\n\n\t\t\t\t//If count >=4, start a new thread to reset the count\n\t\t\t\tif (count >= 4) {\n\t\t\t\t\tnew ResetCountThread(deviceid, 0).start();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "private void consume()\r\n\t{\r\n\t\twhile (true)\r\n\t\t{\r\n\t\t\tSubscriberMessage sifMsg = queue.blockingPull();\t\t\t\t\r\n\t\t\tif (sifMsg != null)\r\n\t\t\t{\r\n\t\t\t\tlogger.debug(consumerID+\" has receive a message from its SubscriberQueue.\");\r\n\t\t\t\tif (sifMsg.isEvent())\r\n\t\t\t\t{\r\n\t\t\t\t\tSIFEvent sifEvent = new SIFEvent(sifMsg.getSIFObject(), sifMsg.getEventAction());\r\n\t\t\t\t\ttry\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsubscriber.processEvent(sifEvent, sifMsg.getZone(), sifMsg.getMappingInfo(), consumerID);\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (Exception ex)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlogger.error(\"Failed processing SIF Event for subscriber \"+subscriber.getId()+\": \"+ex.getMessage()+\"\\nEvent Data:\\n\"+sifEvent, ex);\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tSIFDataObject sifObj = sifMsg.getSIFObject();\r\n\t\t\t\t\ttry\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsubscriber.processResponse(sifObj, sifMsg.getZone(), sifMsg.getMappingInfo(), consumerID);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (Exception ex)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlogger.error(\"Failed processing SIF Object for subscriber \"+subscriber.getId()+\": \"+ex.getMessage()+\"\\nSIF Object Data:\\n\"+((sifObj == null) ? \"null\" : sifObj.toXML()), ex);\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\telse\r\n\t\t\t{\r\n\t\t\t\tlogger.error(consumerID+\" has encountered a problem receiving a message from its SubscriberQueue.\");\r\n\t\t\t}\r\n\t\t}\t\r\n\t}", "public abstract void processMsg(ConsumerRecord<byte[], byte[]> record);", "void consumeMessage(String message);", "@Override\n public void messageArrived(final String pTopic, final MqttMessage pMqttMessage) {\n if (DEBUG) {\n Log.d(LOG_TAG, \" Topic:\\t\" + pTopic + \" Message:\\t\" + new String(pMqttMessage.getPayload()) + \" QoS:\\t\"\n + pMqttMessage.getQos());\n }\n\n for (final RaspberryPiMessageListener listener : mListeners) {\n parentHandler.post(new Runnable() {\n\t@Override\n\tpublic void run() {\n\t String payloadLiteral = new String(pMqttMessage.getPayload());\n\t listener.MqttMessageReceived(pTopic, payloadLiteral);\n\t}\n });\n }\n\n }", "protected void handleMessage(Message msg) {}", "@Override\n\tpublic void messageArrived(String topic, MqttMessage message)\n\t throws Exception {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void messageArrived(MqttTopic topicName,\n\t\t\t\t\t\tMqttMessage message) throws Exception {\n\t\t\t\t\tSystem.out.println(\"messageArrived----------\");\n\t\t\t\t\tMessage msg = new Message();\n\t\t\t\t\tmsg.what = 1;\n\t\t\t\t\tmsg.obj = message.toString();\n\t\t\t\t\thandler.sendMessage(msg);\n\t\t\t\t}", "public void processMessage()\n {\n \tif(messageContents.getMessage().containsCommand())\n {\n \tCommand command = new Command(messageContents);\n CommandProcessor commandProcessor = new CommandProcessor(joeBot, command);\n commandProcessor.processCommand();\n }\n else\n {\n Speech speech = new Speech(messageContents);\n SpeechProcessor speechProcessor = new SpeechProcessor(joeBot, speech);\n speechProcessor.processSpeech();\n }\n }", "@Override\r\n\tpublic void messageArrived(String topic, MqttMessage message) throws Exception {\n\t\tSystem.out.println(\"-------------------------------------------------\");\r\n\t\tSystem.out.println(\"| Topic:\" + topic);\r\n\t\tSystem.out.println(\"| Message: \" + new String(message.getPayload()));\r\n\t\tSystem.out.println(\"-------------------------------------------------\");\r\n\t}", "@Override\n public void messageArrived(String s, MqttMessage mqttMessage) throws Exception {\n deleveryMessage(s, mqttMessage.getPayload(), null);\n }", "public void messageArrived(String topic, MqttMessage message) throws Exception {\n\t\tSystem.out.println(\"&&&&&&&&&&&&&&&\");\n\t\tSystem.out.println(message.getClass());\n\t\t/*\n\t\t obj.put(\"start\",startDate);\n obj.put(\"end\",endDate);\n obj.put(\"topicName\",topicName_New);\n obj.put(\"bf\",bf);\n\t\t */\n\t\tSystem.out.println(\"topic on which data has been received is :\"+topic);\n\t\tSystem.out.println(\"the data packet from the broker has been received in JSON\");\n\t\t\n\t\t\n\t\tByteArrayInputStream baos = new ByteArrayInputStream(message.getPayload());\n\t\tSystem.out.println(\"after message payload\");\n\t\tObjectInputStream outputStream = new ObjectInputStream(baos);\n\t\t\n\t\tJSONObject datapacket=null;\n\t\ttry{\n\t\t\t datapacket=(JSONObject)outputStream.readObject();\n\t\t}catch(Exception ex){\n\t\t\tSystem.out.println(\"koi to gadbad hai\");\n\t\t\tex.printStackTrace();\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"parsing the data from the json packets.....started\");\n\t\tBloomFilter bfilter=new BloomFilter(0.01,1000);\n\t\t\n\t\ttry{\n\t\t\t\n\t\t\tbyte[] buffer=(byte[]) datapacket.get(\"bf\");\n\t\t\tByteBuffer bb=ByteBuffer.wrap(buffer);\n\t\t\t\n\t\t\tbfilter.deSerialize(bb);\n\t\t\t\n\t\t}catch(Exception ex){\n\t\t\tSystem.out.println(\"error in getting the bloom filter\");\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"bloom filter obtained\");\n\t\tString TOPIC_TOSUBSCRIBE=(String) datapacket.get(\"topicName\");\n\t\t\n\t\tString SD=(String) datapacket.get(\"start\");\n\t\tString ED=(String) datapacket.get(\"end\");\n\t\t\n\t\tSystem.out.println(\"printing the bloom filter object parametersss....\");\n\t\tSystem.out.println(bfilter.getBitVectorSize());\n\t\tSystem.out.println(bfilter.getNumberOfEntries());\n\t\t\n\t\t\n\t\tSystem.out.println(\"deserialization object checking=== \"+bfilter.contains(\"random string10000\"));\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tFile file = new File(\"/Users/gaurav/Desktop/BrokerMessages.txt\");\n\t\tif (!file.exists()) {\n\t\t\tfile.createNewFile();\n\t\t}\n\tSystem.out.println(\"control in callback subscriber\");\n//\t\t\n//\t\tSystem.out.println(\"file absolute path :\" + file.getAbsoluteFile());\n\n\t\tFileWriter fw = new FileWriter(file.getAbsoluteFile(), true);\n\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\tString h = message.toString();\n\t\tbw.write(h);\n\t\tbw.write(\"\\n\");\n\t\tbw.close();\n\n\t\tSystem.out.println(\"Done\");\n\n\t\tif (\"testing/LWT\".equals(topic)) {\n\t\t\tSystem.err.println(\"Sensor gone!\");\n\t\t}\n\t}", "void onSqsRequestAttempt(String internalQueueName);", "private void processMessage(SQSMessage message) {\n String body = message.getBody();\n// logger.log(\"Body: \" + body);\n String[] lines = body.replaceAll(\"\\t\", \"\").trim().split(\"\\n:\");\n MT103 mt103 = new MT103();\n for (String line : lines) {\n String beginLine = line.startsWith(\":\") ? line.substring(1, 3) : line.substring(0, 2);\n int begin = Integer.parseInt(beginLine);\n switch (begin) {\n case 20:\n getField20(line, mt103);\n case 21:\n getField21(line, mt103);\n case 25:\n getField25(line, mt103);\n case 28:\n getField28(line, mt103);\n case 60:\n getField60(line, mt103);\n case 61:\n getField61(line, mt103);\n case 62:\n getField62(line, mt103);\n case 64:\n getField64(line, mt103);\n case 86:\n getField86(line, mt103);\n }\n }\n logger.log(\"Comenzando a insertar \" + mt103.getField20());\n EntityTransaction tx = entityManager.getTransaction();\n if (!tx.isActive()) {\n tx.begin();\n }\n entityManager.persist(mt103);\n tx.commit();\n logger.log(\"Termino de insertar \" + mt103.getField20());\n }", "private void startConsumeMsg() {\n try {\n ConsumerRecords<byte[], byte[]> records;\n while (true) {\n records = kafkaConsumer.poll(Long.MAX_VALUE);\n for (ConsumerRecord<byte[], byte[]> record : records) {\n processMsg(record);\n kafkaConsumer.commitSync();\n LOG.info(\"Single consumer consume the message {}th\", counter.incrementAndGet());\n }\n\n }\n } catch (Exception ex) {\n LOG.error(\"Consumer get message error {}\", ex);\n } finally {\n LOG.info(\"Shutting down consumer ...\");\n shutdown();\n }\n }", "@Override\n\tpublic void processMessage(Message message) {\n\t\t\n\t}", "private void processMessage(Message message, JsonObject payload) {\n switch(message.getEvent()) {\n case \"registerCustomer\":\n registerCustomer(message, payload);\n break;\n case \"removeCustomer\":\n removeCustomer(message, payload);\n break;\n case \"requestTokensResponse\":\n requestTokensResponse(message, payload);\n break;\n case \"getCustomerByID\":\n getCustomerById(message, payload);\n break;\n case \"receiveReport\":\n receiveReport(message, payload);\n break;\n case \"requestRefundResponse\":\n requestRefundResponse(message, payload);\n break;\n default:\n System.out.println(\"Event not handled: \" + message.getEvent());\n }\n\n }", "@Override\n public void messageArrived(String topic, MqttMessage message)\n throws Exception {\n\n String time = new Timestamp(System.currentTimeMillis()).toString();\n\n Log.d(TAG,\"MQTT messageArrived\");\n Log.d(TAG,\"MQTT Time:\\t\" +time +\n \" Topic:\\t\" + topic +\n \" Message:\\t\" + new String(message.getPayload()) +\n \" QoS:\\t\" + message.getQos());\n }", "@Override\n\tpublic void processMessage(byte[] message) {\n\t}", "@Override\n void onMessage(Message msg, Session session) throws JMSException;", "@Override\r\n public void handleMessage(Message msg) {\n }", "public void handleMessage(Message message);", "public void receiveMessage() throws InterruptedException, ExecutionException {\n ReceiveMessageRequest request = createReceiveMessageRequest();\n ReceiveMessageResult messageResult = amazonSQS.receiveMessage(request);\n\n logger.info(\"Total of messages retrieved: {}\", messageResult.getMessages().size());\n LinkedList<Future<Result>> results = messageResult.getMessages().stream()\n .map(this::processMessageFunction)\n .collect(CustomCollectors.collectAsLinkedList());\n\n resultChecker.checkAll(results);\n }", "abstract public Object handleMessage(Object message) throws Exception;", "public void handleMessageEvent(StunMessageEvent e) {\n delegate.processRequest(e);\n }", "@Override\n public void processMessage(int type, String receivedMsg) {\n }", "void handleMessage(byte messageType, Object message);", "private void receiveMessage() {\n ParseQuery<ParseObject> refreshQuery = ParseQuery.getQuery(\"Group\");\n\n refreshQuery.getInBackground(mGroupId, new GetCallback<ParseObject>() {\n @Override\n public void done(ParseObject parseObject, ParseException e) {\n if (e == null) {\n chatMessageArray = parseObject.getList(\"groupMessageArray\");\n\n messageArrayList.clear();\n messageArrayList.addAll(chatMessageArray);\n chatListAdapter.notifyDataSetChanged();\n chatLV.invalidate();\n } else {\n System.out.println(e.getMessage());\n }\n }\n });\n }", "public void handleJMSMessage(Message jmsMessage) {\n \t\tif (jmsMessage == null)\n \t\t\treturn;\n \t\tRequest request = null;\n \t\t// First get Request instance from jms message (see sendCallRequest for send code)\n \t\ttry {\n \t\t\tif (jmsMessage instanceof ObjectMessage) {\n \t\t\t\tSerializable object = ((ObjectMessage) jmsMessage).getObject();\n \t\t\t\tif (object instanceof Request)\n \t\t\t\t\trequest = (Request) object;\n \t\t\t}\n \t\t\tif (request == null)\n \t\t\t\tthrow new JMSException(\"Invalid message=\" + jmsMessage); //$NON-NLS-1$\n \t\t} catch (JMSException e) {\n \t\t\tlog(\"handleJMSMessage message=\" + jmsMessage, e); //$NON-NLS-1$\n \t\t\treturn;\n \t\t}\n \t\t// Process call request locally\n \t\thandleJMSRequest(jmsMessage, request);\n \t}", "@Override\n public void handleMessage(Message message) {}", "private void processMessages(Message[] messages) throws MessagingException {\r\n\t\t// Checks parameter\r\n\t\tAssert.isTrue(!ArrayUtils.isEmpty(messages), \"Emails\");\r\n\t\t// Processes e-mails\r\n\t\tlogger.info(\"Processing \" + messages.length + \" emails...\");\r\n\t\tfor (Message message : messages) {\r\n\t\t\t// only process email that has not been read\r\n\t\t\tif ((message != null) && !message.isSet(Flag.SEEN)) {\r\n\t\t\t\t// applies this message as read (like processed)\r\n\t\t\t\tmessage.setFlag(Flag.SEEN, Boolean.TRUE);\r\n\t\t\t\t// TODO For non POP3 protocol, such as IMAP\r\n\t\t\t\tif (!this.getAccount().isPop3()) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tmessage.saveChanges();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (IllegalStateException e) {\r\n\t\t\t\t\t\tlogger.error(e.getMessage(), e);\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (IllegalWriteException e) {\r\n\t\t\t\t\t\tlogger.error(e.getMessage(), e);\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (MessagingException e) {\r\n\t\t\t\t\t\tlogger.error(e.getMessage(), e);\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// creates incoming call-able by the specified email\r\n\t\t\t\tAbstractIncomingEmailCallable<T> callable = this.createCallable(message);\r\n\t\t\t\tif (callable != null) {\r\n\t\t\t\t\t// creates thread for executing the just created call-able\r\n\t\t\t\t\tFutureTask<T> task = new FutureTask<T>(callable);\r\n\t\t\t\t\tthis.executor.submit(task);\r\n\r\n\t\t\t\t\t// executes call-able\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\ttask.get();\r\n\t\t\t\t\t\tnumOfDoneThread++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (Exception e) {\r\n\t\t\t\t\t\tlogger.error(e.getMessage(), e);\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\tnumOfDoneThread++;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// debug\r\n\t\t\t\t\tlogger.info(\"Number of done tasks: \" + numOfDoneThread);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void messageArrived(final Message msg) {\n final EndpointAddress srcAddr \n = extractEndpointAddress(msg, \n EndpointServiceImpl.MESSAGE_SOURCE_NS, \n EndpointServiceImpl.MESSAGE_SOURCE_NAME,\n \"source\");\n\n final EndpointAddress dstAddr \n = extractEndpointAddress(msg,\n EndpointServiceImpl.MESSAGE_DESTINATION_NS, \n EndpointServiceImpl.MESSAGE_DESTINATION_NAME,\n \"destination\");\n\n if(srcAddr == null || isLoopback(srcAddr) || dstAddr == null) {\n return;\n }\n\n ExecutorService executorService = endpointService.getGroup().getTaskManager().getExecutorService();\n executorService.execute(new Runnable() {\n public void run() {\n endpointService.processIncomingMessage(msg, srcAddr, dstAddr);\n }\n });\n }", "private void pubrecHandler(int messageId) {\n\n LOG.info(\"PUBREC [{}] from MQTT client {}\", messageId, this.mqttEndpoint.clientIdentifier());\n\n AmqpPubrelMessage amqpPubrelMessage = new AmqpPubrelMessage(messageId);\n\n this.pubEndpoint.publish(amqpPubrelMessage, done -> {\n\n if (done.succeeded()) {\n\n this.rcvEndpoint.settle(messageId);\n }\n });\n }", "private void receive(EncryptedMessage msg) {\n for (MessageReceiver msgReceiver : subscribedMessageReceivers) {\n msgReceiver.receive(msg);\n }\n }", "public void onMessage(ClientSubscription subscription,\n HazelcastMQMessage msg);", "private void processMessageQueue(){\n\t\tKIDSGUIAlert m = null;\n\t\tStringBuilder newText = new StringBuilder(logLines.getText());\n\t\twhile ((m = this.logMessages.poll()) != null){\n\t\t\tnewText.append(String.format(\"%s\\n\", m.toString()));\n\t\t}\n\t\tlogLines.setText(newText.toString());\n\t}", "private synchronized void processMessage(Message m) throws JMSException {\n\n\t\t// get message counter. this value is set by the FailoverQSender.\n\t\tint ct = m.getIntProperty(FailoverQSender.MESSAGE_COUNTER);\n\t\t// log the message\n\t\t//log(\"received message: \" + ct +\", current connected broker: \" + this.getCurrentConnectedBrokerAddress());\n\t\t\n\t\t// saved the data in data holder.\n\t\tdata.addElement(new Integer(ct));\n\t}", "@Override\n\tpublic void process(MessageStream<ServerMessage> message)\n\t{\n\t\t\n\t}", "private void dequeueMessages()\n\t{\n\t\twhile (_msg_queue.size() > 0)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t_ml.messageReceived( (Serializable) _msg_queue.removeFirst());\n\t\t\t}\n\t\t\tcatch (RuntimeException rte)\n\t\t\t{\n\t\t\t\trte.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "void addToQueue(WebhookMessage msg);", "@Override\n\t\t\tpublic void onMessage(Message message) {\n\t\t\t\tTextMessage msg = null;\n\t\t\t\t\n\t\t\t\tif(message instanceof TextMessage){\n\t\t\t\t\tmsg = (TextMessage)message;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tSystem.out.println(\"Consumer:->Receiving message: \"+ msg.getText());\n\t\t\t\t\t} catch (JMSException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"Message of wrong type: \"+message.getClass().getName());\n\t\t\t\t}\n\t\t\t}", "private void AsyncPush(String topic){\n\t\t\t\t \t\n\t \t/**\n\t \t * output a map, delete existed items\n\t \t */\n\t \t//Map<Key, Integer> deduplicatedBuff = mergeDuplicatedItemsAndDelte(buff);\n\t \t\n\t \t//not in, create, delay\n\t \tif(!producerMap.containsKey(topic)){\n\t \t\ttry {\n\t\t\t\t\t\t\tCreateProducer(topic,LogicController.batchMessagesMaxMessagesPerBatch);\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t} catch (ExecutionException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\t \t\t \n\t \t}\n\t \tlog.info(\"#publish\"+topic+\", \"+buffMap.size());\n\t \tProducer<byte[]> producer = producerMap.get(topic);\n\t \t/**\n\t \t * init set, copy to hash set\n\t \t */\n\t \t//Set<Key> Keys = Sets.newConcurrentHashSet(buffMap.keySet());\n\t \t\n\t \t \n\t \tfor (Key key : buffMap.keySet()){\n\t \t\t \n\t \t\t //if(buffMap.containsKey(key)){\n\t \t\t \n\t \t\t \n\t \t\t if(buffMap.containsKey(key)){\n\t \t\t\t Integer val = buffMap.get(key);\n\t \t\t\t //clear,skip\n\t \t\t\t if(val<=0){buffMap.remove(key);continue;}\n\t \t\t\t //concenate\n\t \t\t\t byte[] out = createKVByte(key,val);\n\t \t\t\t \n\t \t\t\t//get producer\n\t\t\t \t\t\t \n\t\t\t \t\t\t //byte[] tempTable = new byte[](buffMap);\n\t\t producer.sendAsync(out).thenRun(() -> {\n\t\t\t messagesSent.increment();\n\t\t\t bytesSent.add(out.length);\n\t\t\t //update\n\t\t\t TopicMap.replace(topic, TopicMap.get(topic)+out.length);\t\n\t\t\t \n\t\t\t //delete\n\t\t\t rescaleBufferMap(buffMap,key,val);\n\t\t\t \n\t\t\t //CheckNumberPacketsEnoughEndMessageAndSend(topic);\n\t\t\t //buffMap.remove(key);\n\t\t\t //remove from the set\n\t\t\t //ier.remove();\n\t\t\t \t\t \t\t \n\t\t\t }).exceptionally(ex -> {\n\t\t\t log.warn(\"Write error on message\", ex);\n\t\t\t //System.exit(-1);\n\t\t\t return null;\n\t\t\t });\n\t \t\t }\n\t \t\t }\n\t \t\t \n\t \t }", "public void handleMessage(Message msg) {\n switch (msg.what) {\n case 1:\n Pair pair = (Pair) msg.obj;\n deliverResultCallback((ResultCallback) pair.first, (Result) pair.second);\n return;\n case 2:\n ((AbstractPendingResult) msg.obj).forceFailureUnlessReady(Status.zzXS);\n return;\n default:\n Log.wtf(\"AbstractPendingResult\", \"Don't know how to handle this message.\");\n return;\n }\n }", "@Override\r\n\t\t\t\t\tpublic void messageArrived(String topic, MqttMessage message) throws Exception {\n\t\t\t\t\t\t try { \r\n//\t\t\t\t\t\t\t SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\"); \r\n//\t\t\t\t\t\t\t String date = sdf.format(new Date());\r\n\t\t\t\t\t System.out.println(\" From:\"+message.toString()); \r\n\t\t\t\t\t \r\n\t\t\t\t\t Connection conn = null;\r\n\t\t\t\t\t Class.forName(\"com.mysql.jdbc.Driver\"); \r\n\t\t\t\t\t conn = DriverManager.getConnection(\r\n\t\t\t\t\t \t\t\"jdbc:mysql://localhost:3306/mqtt?useUnicode=true&characterEncoding=UTF-8\",\r\n\t\t\t\t\t \t\t\"root\",\r\n\t\t\t\t\t \t\t\"tmu2012\");\r\n\t\t\t\t\t System.out.println(\"connected to the database\");\r\n\r\n\t\t\t\t\t Statement stmt = conn.createStatement();\r\n\t\t\t\t\t System.out.println(\"Inserting records\");\r\n\t\t\t\t\t \r\n\t\t\t\t\t String qry1 = \"INSERT INTO mymqtts (mqtt) VALUES('\"+message.toString()+\"')\";\r\n\t\t\t\t\t stmt.executeUpdate(qry1);\r\n\t\t\t\t\t System.out.println(\"ok\");\r\n\t\t\t\t\t\t }catch (Exception e) { \r\n\t\t\t\t\t e.printStackTrace(); \r\n\t\t\t\t\t System.out.println(\"error\"); \r\n\t\t\t\t\t } \r\n\t\t\t\t\t}", "public abstract void msgHandler(Message msg);", "@Override\n\t\tpublic void run() {\n\t\t\t\tSystem.out.println(\"topic 消息类型开始产生消息 \" + \"生产者: \" + Thread.currentThread().getName());\n\t\t\t\ttry {\n\t\t\t\t\t\t/**第一步 创建连接工厂*/\n\t\t\t\t\t\tfactory = new ActiveMQConnectionFactory(MqConfigConstants.USERNAME, MqConfigConstants.PASSWORD, MqConfigConstants.BROKEURL_ALI);\n\t\t\t\t\t\t/**第二步 创建JMS 连接*/\n\t\t\t\t\t\tConnection connection = factory.createConnection();\n\t\t\t\t\t\tconnection.start();\n\t\t\t\t\t\t/** 第三步 创建Session,开启事务 */\n\t\t\t\t\t\tSession session = connection.createSession(true, Session.AUTO_ACKNOWLEDGE);\n\t\t\t\t\t\t/** 第四步: 创建topic,Topic是 Destination接口的子接口*/\n\t\t\t\t\t\tTopic topic = session.createTopic(MqConfigConstants.TopicName);\n\t\t\t\t\t\t/** 第五步 创建生产者producer */\n\t\t\t\t\t\tMessageProducer producer = session.createProducer(topic);\n\n\t\t\t\t\t\t/** 设置消息不需要持久化 */\n\t\t\t\t\t\tproducer.setDeliveryMode(DeliveryMode.NON_PERSISTENT);\n\t\t\t\t\t\t//发送文本消息\n\t\t\t\t\t\twhile (true) {\n\t\t\t\t\t\t\t\t/** 第六步 发送消息 */\n\t\t\t\t\t\t\t\tMessage message = createMessage(session,\"vincent\",27,\"江西省赣州市\");\n\t\t\t\t\t\t\t\tproducer.send(message);\n\t\t\t\t\t\t\t\tsession.commit();//开启事务必须需要提交,消费者才能获取到\n\t\t\t\t\t\t\t\tSystem.out.println(\"发送消息: \" +message.toString() );\n\t\t\t\t\t\t\t\tThread.sleep(200);\n\t\t\t\t\t\t}\n\t\t\t\t} catch (JMSException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t}", "abstract void onMessage(byte[] message);", "public void onMessage(Message msg) {\n\t\tMapMessage message = null;\n\t\tQueueConnection conn = null;\n\t\tQueueSession session = null;\n\t\tQueueSender sender = null;\n\t\tQueryProcessorUtil qpUtil = QueryProcessorUtil.getInstance();\n\t\tQueue replyToQueue = null;\n\t\tUserTransaction transaction = sessionContext.getUserTransaction();\n\t\t//default timeout three minutes\n\t\tint transactionTimeout = 180;\n\t\ttry {\n\t\t\t\n\t\t\tif (callingMDBName.equalsIgnoreCase(QueryManagerBeanUtil.MEDIUM_QUEUE_NAME)) {\n\t\t\t\t//four hours\n\t\t\t\ttransactionTimeout = 14400;\n\t\t\t} else if (callingMDBName.equalsIgnoreCase(QueryManagerBeanUtil.LARGE_QUEUE_NAME)) {\n\t\t\t\t//twelve hours\n\t\t\t\ttransactionTimeout = 43200;\n\t\t\t} \n\t\t\t\n\t\t\ttransaction.setTransactionTimeout(transactionTimeout);\n\t\t\t\n\t\t\t\n\t\t\ttransaction.begin();\n\t\t\tmessage = (MapMessage) msg;\n\t\t\tString sessionId = msg.getJMSCorrelationID();\n\t\t\treplyToQueue = (Queue) msg.getJMSReplyTo();\n\t\t\tlog.debug(\"Extracting the message [\" + msg.getJMSMessageID());\n\t\t\tString patientSetId = \"\";\n\t\t\ttransaction.commit();\n\t\t\tif (message != null) {\n\t\t\t\tString sqlString = message.getString(QueryManagerBeanUtil.QUERY_MASTER_GENERATED_SQL_PARAM);\n\t\t\t\tString queryInstanceId = message.getString(QueryManagerBeanUtil.QUERY_INSTANCE_ID_PARAM);\n\t\t\t\tpatientSetId = message.getString(QueryManagerBeanUtil.QUERY_PATIENT_SET_ID_PARAM);\n\t\t\t\tString xmlRequest = message.getString(QueryManagerBeanUtil.XML_REQUEST_PARAM);\n\t\t\t\t\n\t\t\t\tString dsLookupDomainId = message.getString(QueryManagerBeanUtil.DS_LOOKUP_DOMAIN_ID);\n\t\t\t\tString dsLookupProjectId = message.getString(QueryManagerBeanUtil.DS_LOOKUP_PROJECT_ID);\n\t\t\t\tString dsLookupOwnerId = message.getString(QueryManagerBeanUtil.DS_LOOKUP_OWNER_ID);\n\t\t\t\t\n\t\t\t\tDAOFactoryHelper daoFactoryHelper = new DAOFactoryHelper(dsLookupDomainId, dsLookupProjectId, dsLookupOwnerId);\n\t\t\t\n\t\t\t\tDataSourceLookupHelper dataSourceHelper = new DataSourceLookupHelper();\n\t\t\t\tDataSourceLookup dsLookup = dataSourceHelper.matchDataSource(dsLookupDomainId, dsLookupProjectId, dsLookupOwnerId);\n\t\t\t\t\n\t\t\t\tIDAOFactory daoFactory = daoFactoryHelper.getDAOFactory();\n\t\t\t\t\n\t\t\t\tSetFinderDAOFactory sfDAOFactory = daoFactory.getSetFinderDAOFactory();\n\t\t\t\ttry { \n\t\t\t\t\t \n\t\t\t\t\tpatientSetId = processQueryRequest(transaction,transactionTimeout,dsLookup,sfDAOFactory ,xmlRequest,sqlString, sessionId,queryInstanceId,patientSetId);\n\t\t\t\t\tlog.debug(\"QueryExecutorMDB completed processing query instance [\" + queryInstanceId + \"]\");\n\t\t\t\t} catch (CRCTimeOutException daoEx) {\n\t\t\t\t\t//catch this error and ignore. send general reply message. \n\t\t\t\t\tlog.error(daoEx.getMessage(),daoEx);\n\t\t\t\t\tif (callingMDBName.equalsIgnoreCase(LARGE_QUEUE)) { \n\t\t\t\t\t\t\n\t\t\t\t\t\t// set status to error\n\t\t\t\t\t\tsetQueryInstanceStatus(sfDAOFactory,queryInstanceId, 4) ;\n\t\t\t\t\t\t\n\t\t\t\t\t} else { \n\t\t\t\t\t\t//send message to next queue and if the there is no next queue then update query instance to error\n\t\t\t\t\t\ttryNextQueue(sfDAOFactory,sessionId, message,queryInstanceId);\n\t\t\t\t\t}\n\t\t\t\t} catch (I2B2DAOException daoEx) {\n\t\t\t\t\t//catch this error and ignore. send general reply message. \n\t\t\t\t\tlog.error(daoEx.getMessage(),daoEx);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tsendReply(sessionId,patientSetId, replyToQueue);\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t\ttry {\n\t\t\t\ttransaction.rollback();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} \n\t\t\tlog.error(\"Error extracting message\", ex);\n\t\t} finally {\n\t\t\tQueryManagerBeanUtil qmBeanUtil = new QueryManagerBeanUtil();\n\t\t\tqmBeanUtil.closeAll(sender, null, conn, session);\n\t\t}\n\t}", "private void parseMessages() {\n\n // Find the first delimiter in the buffer\n int inx = rx_buffer.indexOf(DELIMITER);\n\n // If there is none, exit\n if (inx == -1)\n return;\n\n // Get the complete message\n String s = rx_buffer.substring(0, inx);\n\n // Remove the message from the buffer\n rx_buffer = rx_buffer.substring(inx + 1);\n\n // Send to read handler\n sendToReadHandler(s);\n\n // Look for more complete messages\n parseMessages();\n }", "Optional<Message> processMessage(Message message) throws MessageHandlerException;", "boolean deliver(String topic, Object event);", "@Override\n public void update() {\n String msg = (String) topic.getUpdate(this);\n if(msg == null){\n System.out.println(this.imeRonioca + \" no new messages\");\n }else{\n System.out.println(this.imeRonioca + \" consuming message: \" + msg);\n }\n }", "@Override\n public void handleMessage(Message msg) {\n AsyncResult ar;\n\n switch (msg.what) {\n case EVENT_NEW_SMS:\n // A new SMS has been received by the device\n if (Config.LOGD) {\n Log.d(TAG, \"New SMS Message Received\");\n }\n\n SmsMessage sms;\n\n ar = (AsyncResult) msg.obj;\n\n // FIXME unit test leaves cm == null. this should change\n if (mCm != null) {\n // FIXME only acknowledge on store\n mCm.acknowledgeLastIncomingSMS(true, null);\n }\n\n if (ar.exception != null) {\n Log.e(TAG, \"Exception processing incoming SMS. Exception:\" + ar.exception);\n return;\n }\n\n sms = (SmsMessage) ar.result;\n dispatchMessage(sms);\n\n break;\n\n case EVENT_SEND_SMS_COMPLETE:\n // An outbound SMS has been sucessfully transferred, or failed.\n handleSendComplete((AsyncResult) msg.obj);\n break;\n\n case EVENT_SEND_RETRY:\n sendSms((SmsTracker) msg.obj);\n break;\n\n case EVENT_NEW_SMS_STATUS_REPORT:\n handleStatusReport((AsyncResult)msg.obj);\n break;\n\n case EVENT_SIM_FULL:\n handleSimFull();\n break;\n\n case EVENT_POST_ALERT:\n handleReachSentLimit((SmsTracker)(msg.obj));\n break;\n\n case EVENT_ALERT_TIMEOUT:\n ((AlertDialog)(msg.obj)).dismiss();\n msg.obj = null;\n mSTracker = null;\n break;\n\n case EVENT_SEND_CONFIRMED_SMS:\n if (mSTracker!=null) {\n Log.d(TAG, \"Ready to send SMS again.\");\n sendSms(mSTracker);\n mSTracker = null;\n }\n break;\n }\n }", "public interface MessageListener {\n\t\n\t/**\n\t * Method used to consume message\n\t * @param message\tMessage that You want to consume\n\t */\n\tvoid consumeMessage(String message);\n\t\n\t/**\n\t * Method used when You want to get all consumed messages\n\t * @return\tList of messages consumed from a jms queue/topic\n\t */\n\tList<String> getFeeds();\n\n}", "@Override\n public void messageArrived(String string, MqttMessage mm) throws Exception {\n System.out.println(\"Topic==\" + string);\n System.out.println(\"message==\" + mm.toString());\n }", "public synchronized void receivePost(int messageId, String message) {\n\t\tif (isClosed()) {\n\t\t\tassert false;\n\t\t\treturn; // i am closed\n\t\t}\n\t\t// receivePost is always invoked in an extra thread\n\t\tif (message == null || message.length() == 0) {\n\t\t\t// handle receiving of no data messages\n\t\t\tswitch(messageId) {\n\t\t\tcase MESSAGE_ID_OFFERING_DATA:\t\t\t\t\t\n\t\t\t\t// other got nothing to offer, so we will not receive anything\n\t\t\t\tmOwnRequestDataReceived = true;\n\t\t\t\tmPartnerOfferReceived = true;\n\t\t\t\tbreak;\n\t\t\tcase MESSAGE_ID_REQUESTING_DATA:\n\t\t\t\t// other does not want anything\n\t\t\t\tmPartnerRequestSatisfied = true;\n\t\t\t\tbreak;\n\t\t\tcase MESSAGE_ID_SENDING_DATA:\n\t\t\t\t// well... theoretically my requested data could not be received, but since other will not sent more than this, we will say ok\n\t\t\t\tmOwnRequestDataReceived = true;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t// I don't even understand what you tell me\n\t\t\t\tclose();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} else {\n\t\t\t// there is data available\n\t\t\tswitch (messageId) {\n\t\t\tcase MESSAGE_ID_OFFERING_DATA:\n\t\t\t\tif (!mOwnRequestDataReceived && !mPartnerOfferReceived) {\n\t\t\t\t\tonReceiveOffer(message);\n\t\t\t\t} else {\n\t\t\t\t\tclose(); // I already got your offer or I got everything I wanted, leave me alone\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase MESSAGE_ID_REQUESTING_DATA:\n\t\t\t\tif (!mPartnerRequestSatisfied) {\n\t\t\t\t\tonReceiveRequest(message);\n\t\t\t\t} else {\n\t\t\t\t\tclose(); // already satisfied, what else do you want from me?\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase MESSAGE_ID_SENDING_DATA:\n\t\t\t\tif (!mOwnRequestDataReceived) {\n\t\t\t\t\tonReceiveGames(message);\n\t\t\t\t} else {\n\t\t\t\t\tclose(); // I got everything I wanted, thanks, thats enough\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t// I don't even understand what you tell me\n\t\t\t\tclose();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (isExchangeCompleteCondition()) {\n\t\t\tclose();\n\t\t}\n\t}", "@Override\n\t\t\tpublic IAMQPPublishAction messages(Collection<byte[]> messages) {\n\t\t\t\treturn null;\n\t\t\t}", "@Override\n\t\t\tpublic IAMQPPublishAction messages(Collection<byte[]> messages) {\n\t\t\t\treturn null;\n\t\t\t}", "@Override\n public void handle(Message<JsonObject> message) {\n logger.info(\"Handling event conjoiner.simplevertical\");\n\n // Start by deserializing the message back into a Object\n try {\n TransponderMessage msg = new TransponderMessage().messageToObject(message);\n logger.info(\"Decoded message: \" + msg.toJsonString());\n\n } catch (DataFormatException e) {\n e.printStackTrace();\n logger.warning(\"Unable to deserialize this\");\n }\n\n }", "boolean deliver(String busType, String topic, Object event);", "@GET\n @Path(\"read/{queue}/{msgid}\")\n @Produces(\"application/xml\")\n public SEHRDataObject readMessage(\n @PathParam(\"queue\") String queue,\n @PathParam(\"msgid\") String msgid) {\n ActiveMQConnection amqcon = (ActiveMQConnection) sctx.getAttribute(\"ActiveMQConnection\");\n //SEHRDataObjectTxHandler sdoTxHandler = SEHRDataObjectTxHandler.getInstance();\n SEHRDataObject sdo = new SEHRDataObject();\n try {\n QueueSession sess = amqcon.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);\n //ActiveMQQueue q = new ActiveMQQueue(queue);\n //QueueBrowser queueBrowser = sess.createBrowser((Queue) q);\n Destination q = sess.createQueue(queue);\n MessageConsumer consumer = sess.createConsumer(q, \"JMSMessageID='\" + msgid + \"'\");\n //get specified message\n amqcon.start();\n Message message = consumer.receiveNoWait();\n if (message == null) {\n Logger.getLogger(SDOTxResource.class.getName()).warning(\"No message wit ID \" + msgid);\n consumer.close();\n sess.close();\n return null;\n }\n if (message instanceof MapMessage) {\n MapMessage mm = (MapMessage) message;\n Map<String, Object> msgProperties = txMsgHeader2SDOHeader(message);\n //'param' is part of data / body...\n //TODO check specification\n Object oParam = mm.getObject(\"param\");\n if (oParam != null) {\n msgProperties.put(\"param\", oParam);\n }\n sdo.setSDOProperties(msgProperties);\n //TODO process data / body / content\n Object oData = mm.getObject(\"data\");\n// if (oData instanceof Map){\n// try {\n// //WebService does not accept a Map\n// byte[] b = DeSerializer.serialize(oData);\n// sdo.setDataobject(b);\n// } catch (ObjectHandlerException ex) {\n// Logger.getLogger(SDOTxResource.class.getName()).log(Level.SEVERE, null, ex);\n// }\n// }else{\n// sdo.setDataobject(oData);\n// }\n //always serialize...\n try {\n //WebService does not accept some types (like Map)\n byte[] b = DeSerializer.serialize(oData);\n sdo.setDataobject(b);\n } catch (ObjectHandlerException ex) {\n Logger.getLogger(SDOTxResource.class.getName()).log(Level.SEVERE, null, ex.getMessage());\n }\n //System.out.println(\"Received and marshalled: \" + message.toString());\n Logger.getLogger(SDOTxResource.class.getName()).info(\"Received and marshalled: \" + message.toString());\n } else if (message instanceof ObjectMessage) {\n Logger.getLogger(SDOTxResource.class.getName()).info(\"ObjectMessage received. byte[] transforming of message: \" + message.toString());\n try {\n //WebService does not accept some types (like Map)\n byte[] b = DeSerializer.serialize(((ObjectMessage) message).getObject());\n sdo.setDataobject(b);\n } catch (ObjectHandlerException ex) {\n Logger.getLogger(SDOTxResource.class.getName()).log(Level.SEVERE, null, ex.getMessage());\n }\n //System.out.println(\"Received but not marshalled, not a MapMessage: \" + message.toString());\n } else if (message instanceof TextMessage) {\n Logger.getLogger(SDOTxResource.class.getName()).info(\"ObjectMessage received. byte[] transforming of message: \" + message.toString());\n sdo.setDataobject(((TextMessage) message).getText());\n } else {\n Logger.getLogger(SDOTxResource.class.getName()).warning(\"No processor for message: \" + message.toString());\n }\n consumer.close();\n sess.close();\n } catch (JMSException ex) {\n Logger.getLogger(SDOTxResource.class.getName()).log(Level.SEVERE, null, ex.getMessage());\n return null;\n }\n return sdo;\n }", "SourceMessage onNewMessageReceived(PubsubMessage pubsubMessage, AckReplyConsumer ackReplyConsumer);", "public void messageArrived(String s, MqttMessage mqttMessage) {\n LoCommand command = new Gson().fromJson(new String(mqttMessage.getPayload()), LoCommand.class);\n System.out.println(\"Device command received: \" + new Gson().toJson(command));\n\n LoCommand.LoCommandResponse response = new LoCommand.LoCommandResponse(new HashMap<>(), command.cid);\n response.res.put(\"my-ack\", \"this is my command acknowledge to \" + command.req);\n\n new Thread(() -> {\n try {\n\n String responseJson = new Gson().toJson(response);\n System.out.println(\"Publishing command acknowledge message: \" + responseJson);\n\n MqttMessage message = new MqttMessage(responseJson.getBytes());\n message.setQos(QOS);\n\n mqttClient.publish(MqttTopics.MQTT_TOPIC_RESPONSE_COMMAND, message);\n System.out.println(\"Command ack published\");\n\n } catch (MqttException me) {\n System.out.println(\"reason \" + me.getReasonCode());\n System.out.println(\"msg \" + me.getMessage());\n System.out.println(\"loc \" + me.getLocalizedMessage());\n System.out.println(\"cause \" + me.getCause());\n System.out.println(\"excep \" + me);\n me.printStackTrace();\n }\n }).start();\n }", "void processMessage(JSONObject msg, InetAddress addr, int port);", "public void onMessage(Message message, Session session) throws JMSException {\n }", "@Override\n\t\tpublic void onMessage(Message message) {\n\t\t\tTextMessage msg = null;\n\t\t\t\n\t\t\tif(message instanceof TextMessage){\n\t\t\t\tmsg = (TextMessage)message;\n\t\t\t\ttry {\n\t\t\t\t\tSystem.out.println(\"Consumer:->Receiving message: \"+ msg.getText());\n\t\t\t\t} catch (JMSException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"Message of wrong type: \"+message.getClass().getName());\n\t\t\t}\n\t\t}", "@Override\n public void messageArrived(String topic, MqttMessage message) {\n if(topic.equals(UserData.topicIn)) {\n String msg = message.toString();\n GuiUpdater.updateConsoleWithResponse(msg);\n }\n }", "private void handleMessage(Message input, SessionID sessionID) throws UnsupportedMessageType {\n LOG.debug(\"type of message: \" + input.getClass().getSimpleName());\n String classSimpleName = input.getClass().getSimpleName();\n if (classSimpleName.equalsIgnoreCase(\"NewOrderSingle\")) {\n handleNewOrderSingle(input, sessionID);\n } else {\n throw new UnsupportedMessageType();\n }\n }", "public interface MessageHandler {\n void onMessage(final byte messageType, final int messageId, final byte[] buffer, final int startIndex, final int length);\n}", "public void handleMessage(Message msg) {\n super.handleMessage(msg);\n switch (msg.what) {\n case 1:\n if (!isStop) {\n updateTimeSpent();\n mHandler.sendEmptyMessageDelayed(1, 1000);\n }\n break;\n case 0:\n break;\n }\n }", "public void handleMessage(Message msg) {\n switch (msg.what) {\n case handlerState:\n String readMessage = (String) msg.obj; // msg.arg1 = bytes from connect thread\n ReceivedData.setData(readMessage);\n break;\n\n case handlerState1:\n tempSound = Boolean.parseBoolean((String) msg.obj);\n ReceivedData.setSound(tempSound);\n break;\n\n case handlerState5:\n if(\"ACK\".equals ((String) msg.obj ))\n ReceivedData.clearPPGwaveBuffer();\n break;\n\n }\n ReceivedData.Process();\n }", "@Override\n public void handleMessage(Message msg) {\n System.out.println(\"recibe mensajes ...\");\n System.out.println(msg.obj);\n }", "public void processMessages(String msg, String rec){\n\t\tthis.email.sendEmail(msg, rec);\n\t}", "void publish(String topicName, Message message) throws IOException;", "public void process(String arg0, MessageTypes arg1, InboundMessage msgTemp) {\n\t\tSystem.out.println(\"IInboundMessageNotification handler called from Gateway(收到短信后): \"\r\n\t\t\t\t+ arg0);\r\n\t\tif(msgTemp!=null){\r\n\t\t\tSimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd hh-mm-ss\");\r\n\t\t\tSystem.out.println(\"时间:\" + df.format(msgTemp.getDate()));\r\n\t\t\tSystem.out.println(\"手机号:\" + msgTemp.getOriginator());\r\n\t\t\tSystem.out.println(\"短信内容:\" + msgTemp.getText());\r\n\t\t\tSystem.out.println(\"短信ID:\" + msgTemp.getMessageId());\r\n\t\t\tSystem.out.println(\"gatewayId:\" + msgTemp.getGatewayId());\r\n\t\t}\r\n\t\t\r\n\t}", "private void receive() {\n\t\tMQGetMessageOptions gmo = new MQGetMessageOptions();\n\t\tif (keepMessages) {\n\t\t\tgmo.options = gmo.options | MQConstants.MQGMO_CONVERT | MQConstants.MQGMO_PROPERTIES_FORCE_MQRFH2\n\t\t\t\t\t| MQConstants.MQGMO_BROWSE_FIRST;\n\t\t} else {\n\t\t\tgmo.options = gmo.options | MQConstants.MQGMO_CONVERT | MQConstants.MQGMO_PROPERTIES_FORCE_MQRFH2;\n\t\t\tif (syncPoint) {\n\t\t\t\tgmo.options = gmo.options | MQConstants.MQGMO_SYNCPOINT;\n\t\t\t}\n\t\t}\n\t\tgmo.matchOptions = MQConstants.MQMO_NONE;\n\t\tgmo.waitInterval = this.waitInterval;\n\n\t\ttry {\n\t\t\tint lastSeqNo = 0;\n\t\t\tlong lastTs = 0;\n\t\t\tint messagecounter = 0;\n\t\t\twhile (true) {\n\t\t\t\tif (!(qmgr.isConnected())) {\n\t\t\t\t\treconnectMq();\n\t\t\t\t}\n\t\t\t\tif (!(queue.isOpen())) {\n\t\t\t\t\treconnectMq();\n\t\t\t\t}\n\t\t\t\thaltFileExists();\n\t\t\t\tif (haltStatus) {\n\t\t\t\t\treadQueue = false;\n\t\t\t\t} else {\n\t\t\t\t\treadQueue = true;\n\t\t\t\t}\n\t\t\t\tint queueNotInhibited = queue.getInhibitGet();\n\t\t\t\tif (queueNotInhibited == MQConstants.MQQA_GET_INHIBITED) {\n\t\t\t\t\treadQueue = false;\n\t\t\t\t}\n\t\t\t\tproduceCounts();\n\t\t\t\tif (readQueue) {\n\t\t\t\t\tqueueDepth = queue.getCurrentDepth();\n\t\t\t\t\tif (queueDepth != 0) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\trcvMessage = new MQMessage();\n\t\t\t\t\t\t\tif (mqccsid != 0) {\n\t\t\t\t\t\t\t\trcvMessage.characterSet = mqccsid;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tqueue.get(rcvMessage, gmo);\n\t\t\t\t\t\t\trecordCountsRcvd++;\n\t\t\t\t\t\t\tstrLen = rcvMessage.getMessageLength();\n\t\t\t\t\t\t\tstrData = new byte[strLen];\n\t\t\t\t\t\t\trcvMessage.readFully(strData);\n\t\t\t\t\t\t\tmessagePutMs = rcvMessage.putDateTime.getTimeInMillis();\n\t\t\t\t\t\t\tseqNo = rcvMessage.messageSequenceNumber;\n\t\t\t\t\t\t\tif (lastTs == messagePutMs && seqNo == 1) {\n\t\t\t\t\t\t\t\tseqNo = lastSeqNo + seqNo;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmsgText = new String(strData);\n\t\t\t\t\t\t\tjsonOut = new JSONArray();\n\t\t\t\t\t\t\tjsonKey = new JSONObject();\n\t\t\t\t\t\t\tjsonValue = new JSONObject();\n\t\t\t\t\t\t\tjsonKey.put(\"key\", Long.toString(messagePutMs) + \"_\" + seqNo);\n\t\t\t\t\t\t\tjsonValue.put(\"value\", msgText);\n\t\t\t\t\t\t\tLOG.debug(\"MQ MsgKey: \" + Long.toString(messagePutMs) + \"_\" + seqNo);\n\t\t\t\t\t\t\tLOG.debug(\"MQ MsgValue: \" + msgText);\n\t\t\t\t\t\t\tjsonOut.put(jsonKey);\n\t\t\t\t\t\t\tjsonOut.put(jsonValue);\n\t\t\t\t\t\t\tmsgList.add(jsonOut.toString());\n\t\t\t\t\t\t\tlastTs = messagePutMs;\n\t\t\t\t\t\t\tlastSeqNo = seqNo;\n\t\t\t\t\t\t\tmessagecounter++;\n\t\t\t\t\t\t\t// move cursor to next message\n\t\t\t\t\t\t\tif (msgList.size() > maxUMsg / 2) {\n\t\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (msgList.size() > queueDepth) {\n\t\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (keepMessages) {\n\t\t\t\t\t\t\t\tgmo.options = MQConstants.MQGMO_CONVERT | MQConstants.MQGMO_PROPERTIES_FORCE_MQRFH2\n\t\t\t\t\t\t\t\t\t\t| MQConstants.MQGMO_WAIT | MQConstants.MQGMO_BROWSE_NEXT;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tgmo.options = MQConstants.MQGMO_CONVERT | MQConstants.MQGMO_PROPERTIES_FORCE_MQRFH2\n\t\t\t\t\t\t\t\t\t\t| MQConstants.MQGMO_WAIT;\n\t\t\t\t\t\t\t\tif (syncPoint) {\n\t\t\t\t\t\t\t\t\tgmo.options = gmo.options | MQConstants.MQGMO_SYNCPOINT;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (MQException e) {\n\t\t\t\t\t\t\tif (e.reasonCode == MQConstants.MQRC_NO_MSG_AVAILABLE) {\n\t\t\t\t\t\t\t\tif (msgList.size() > 0) {\n\t\t\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tnoMessagesCounter++;\n\t\t\t\t\t\t\t\tthreadWait();\n\t\t\t\t\t\t\t} else if (e.reasonCode == MQConstants.MQRC_SYNCPOINT_LIMIT_REACHED) {\n\t\t\t\t\t\t\t\tif (msgList.size() > 0) {\n\t\t\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tnoMessagesCounter++;\n\t\t\t\t\t\t\t\tthreadWait();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\tCalendar.getInstance().getTime() + \" - MQ Reason Code: \" + e.reasonCode);\n\t\t\t\t\t\t\t\treconnectMq();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\t\t\tSystem.out.println(Calendar.getInstance().getTime() + \" - Error: \" + ioe.getMessage());\n\t\t\t\t\t\t\treconnectMq();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (msgList.size() > 0) {\n\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthreadWait();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (msgList.size() > 0) {\n\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t}\n\t\t\t\t\tthreadWait();\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (Throwable t) {\n\t\t\t// restart if there is any other error\n\t\t\trestart(Calendar.getInstance().getTime() + \" - Error receiving data from Queue or QMGR\", t);\n\t\t}\n\n\t}", "@Override\n\tprotected void doReceiveMessage(Message msg) {\n\t\tdeliverMessage(msg);\n\t}", "private void onMessage(JsonRpcMessage msg) {\n List<JsonRpcMessage> extraMessages = super.handleMessage(msg, true);\n notifyMessage(msg);\n for(JsonRpcMessage extraMsg: extraMessages) {\n notifyMessage(extraMsg);\n }\n }", "public void run() {\n\n\t\t// produce messages\n\t\twhile (isConnected) {\n\n\t\t\ttry {\n\t\t\t\t// receive message\n\t\t\t\tMessage m = qreceiver.receive();\n\t\t\t\t// process message -- add message to the data holder\n\t\t\t\tprocessMessage(m);\n\t\t\t\t// check if the commit flag is set in the message property\n\t\t\t\tif (shouldCommit(m)) {\n\t\t\t\t\t// commit the transaction\n\t\t\t\t\tcommit(m);\n\t\t\t\t}\n\t\t\t\tThread.sleep(1000);\n\t\t\t\t\n\t\t\t} catch (TransactionRolledBackException trbe) {\n\t\t\t\tlog(\"transaction rolled back by MQ ...\");\n\t\t\t\t// rollback application data\n\t\t\t\trollBackApplication();\n\t\t\t} catch (JMSException jmse) {\n\t\t\t\t// The exception can happen when receiving messages\n\t\t\t\t// and the connected broker is killed.\n\t\t\t\tif (isConnected == true) {\n\t\t\t\t\t// rollback MQ and application data\n\t\t\t\t\trollBackAll();\n\t\t\t\t}\n\n\t\t\t} catch (Exception e) {\n\t\t\t\tlog(e);\n\n\t\t\t\t// application may decide NOT to close the connection\n\t\t\t\t// when an unexpected Exception occurred.\n\t\t\t\tclose();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t\t\t\tpublic void onPublish(UTF8Buffer topicmsg, Buffer msg, Runnable ack) {\n\t\t\t\t\tString topic = topicmsg.utf8().toString();\n\t\t\t\t\tString payload = msg.utf8().toString();\n\t\t\t\t\tSystem.out.println(topic);\n\t\t\t\t\tSystem.out.println(payload);\n\t\t\t\t\t// 表示监听成功\n\t\t\t\t\tack.run();\n\t\t\t\t}", "void handleMessage(EndpointPort from, EndpointPort to, Object message);", "public void messageReceived() {\n\tTrackedMessage.accumulateMap(TrackedMessage.unmapType(\n\t\tTrackedMessage.messagesRecieved, this.getClass()), this\n\t\t.getMessageType(), 1);\n\tTrackedMessage.accumulateMap(TrackedMessage.unmapType(\n\t\tTrackedMessage.bytesRecieved, this.getClass()), this\n\t\t.getMessageType(), TrackedMessage.objectSize(this));\n }", "public void readMessages() {\n if (!this.isConnectedToClientServer){return;}\n String inputMessage = inputQueue.poll();\n if (inputMessage != null){\n try{\n ClientMessageType messageType = ClientMessageParser.parse(inputMessage);\n if (messageType == ClientMessageType.INCOMING_BALL){\n //parses the message to get a ball, which is then added to the board\n Ball ball = ClientMessageParser.parseIncomingBall(inputMessage);\n board.addBall(ball);\n }\n else if (messageType == ClientMessageType.WALL_INVISIBILITY){\n //parses the messages to find out which boundary to make invisible, and does so\n BoundarySide whichBoundary = ClientMessageParser.parseWallInvisibility(inputMessage, board.neighbors);\n board.makeInvisible(whichBoundary);\n }\n else if (messageType == ClientMessageType.WALL_VISIBILITY){\n //parses the messages to find out which boundary to make visible, and does so\n BoundarySide whichBoundary = ClientMessageParser.parseWallVisibility(inputMessage, board.neighbors);\n board.makeVisible(whichBoundary);\n }\n else if (messageType == ClientMessageType.DISCONNECT_CLIENT){\n disconnectFromClientAndServer();\n }\n } catch (IncorrectFormatException e){\n //don't do anything --> message is not parsed, but play on this board still continues\n }\n }\n }", "static void ProcessMsg(KeyValueList kvList) throws Exception\n\t{\n\t\tint MsgID = Integer.parseInt(kvList.getValue(\"MsgID\"));\n\t\t\n\t\tswitch(MsgID)\n\t\t{\n\t\t/****************************************************\n\t\tBelow are the main part of the component program. All received msgs are encoded as a KeyValueList kvList.\n\t\tkvList is a vector of <String key, String value> pairs. The 5 main methods of KeyValueList are \n\t\t\tint size() to get the size of KeyValueList\n\t\t\tString getValue(String key) to get value given key\n\t\t\tvoid addPair(String key, String value) to add <Key, Value> pair to KeyValueList\n\t\t\tvoid setValue(String key, String value) to set value to specific key\n\t\t\tString toString() System.out.print(KeyValueList) could work\n\t\tThe following code can be used to new and send a KeyValueList msg to SISServer\n\t\t\tKeyValueList msg = new KeyValueList();\n\t\t\tmsg.addPair(\"MsgID\",\"23\");\n\t\t\tmsg.addPair(\"Description\",\"Connect to SISServer\");\n\t\t\tmsg.addPair(\"Attribute\",\"Value\");\n\t\t\t... ...\n\t\t\tmEncoder.sendMsg(msg, universal.getOutputStream()); //This line sends the msg\n\t\tNOTE: Always check whether all the attributes of a msg are in the KVList before sending it.\n\t\tDon't forget to send a msg after processing an incoming msg if necessary.\n\t\tAll msgs must have the following 2 attributes: MsgID and Description.\n\t\tBelow are the sending messages' attributes list:\n\t\t\tMsgName: Acknowledgement\tMsgID: 8888\tAttrs:\n\t\t\tMsgName: SendOut\tMsgID: 6666\tAttrs:\n\t\t\tMsgName: UploaderToGUI\tMsgID: 1008\tAttrs:\n\t\tFor more information about KeyValueList, read comments in Util.java.\n\t\t****************************************************/\n\t\tcase 1009:\n\t\t\tSystem.out.println(\"Message MsgName:GUIToUploader MsgID:1009 received, start processing.\");\n\t\t\t/*************************************************\n\t\t\tAdd code below to process Message MsgName:GUIToUploader MsgID:1009\n\t\t\tThis message has following attributes: , use KeyValueList.getValue(String key) to get the values.\n\t\t\tIf needed, don't forget to send a msg after processing. See previous comments on how to send a message.\n\t\t\t*************************************************/\n\t\t\tString lname = kvList.getValue(\"LastName\");\n\t\t\tString fname = kvList.getValue(\"FirstName\");\n\t\t\tString spo2 = kvList.getValue(\"SPO2\");\n\t\t\tString time = kvList.getValue(\"Date\");\n\t\t\tString systolic = kvList.getValue(\"Systolic\");\n\t\t\tString diastolic = kvList.getValue(\"Diastolic\");\n\t\t\tString pulse = kvList.getValue(\"Pulse\");\n\t\t\tString emails = kvList.getValue(\"Email\");\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"================= Start of message =================\");\n\t\t\tSystem.out.println(\"Time: \" + time);\n\t\t\tSystem.out.println(\"Last name: \" + lname);\n\t\t\tSystem.out.println(\"First name: \" + fname);\n\t\t\tSystem.out.println(\"SPO2: \" + spo2);\n\t\t\tSystem.out.println(\"Systolic: \"+systolic);\n\t\t\tSystem.out.println(\"Diastolic: \"+diastolic);\n\t\t\tSystem.out.println(\"Pulse: \"+pulse);\n\t\t\tSystem.out.println(\"Emails: \" + emails);\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"================== End of message ==================\\n\");\n\n\t\t\t/*\n\t\t\t * Uploading functions will be written here\n\t\t\t */\n\t\t\tStringTokenizer st = new StringTokenizer(emails, \",\");\n\t\t\tArrayList<String> addrs = new ArrayList<String>();\n\t\t\tint receiverCnt = 0;\n\t\t\twhile (st.hasMoreTokens()){\n\t\t\t\treceiverCnt++;\n\t\t\t\taddrs.add(st.nextToken());\n\t\t\t}\n\t\t\tString[] re = new String[receiverCnt];\n\t\t\tfor(int i=0;i<receiverCnt;i++){\n\t\t\t\tre[i] = addrs.get(i);\n\t\t\t\tSystem.out.println(re[i]);\n\t\t\t}\n\n\t\t\tKeyValueList msgToGUI = new KeyValueList();\n\t\t\tmsgToGUI.addPair(\"MsgID\",\"1008\");\n\t\t\tmsgToGUI.addPair(\"Responces\",emails);\n\t\t\tmEncoder.sendMsg(msgToGUI, universal.getOutputStream());\n\n\n\t\t\t//sendSSLMessage(sendTo, emailSubjectTxt, emailMsgTxt,\n\t\t\t//\t\temailFromAddress, lname, fname, spo2);\n\t\t\tsendSSLMessage(re, emailSubjectTxt, emailMsgTxt,\n\t\t\t\t\temailFromAddress, lname, fname, spo2, systolic, diastolic, pulse, time);\n\t\t\t/*\n\t\t\t * ======================= end ==========================\n\t\t\t */\n\n\n\n\n\n\n\t\t\tbreak;\n\t\t\tcase 1017:\n\t\t\tSystem.out.println(\"Message MsgName:KinectToUploader MsgID:1017 received, start processing.\");\n\t\t\t/*************************************************\n\t\t\tAdd code below to process Message MsgName:KinectToUploader MsgID:1017\n\t\t\tThis message has following attributes: , use KeyValueList.getValue(String key) to get the values.\n\t\t\tIf needed, don't forget to send a msg after processing. See previous comments on how to send a message.\n\t\t\t*************************************************/\n\n\n\n\t\t\tbreak;\n\t\t/*************************************************\n\t\tBelow are system messages. No modification required.\n\t\t*************************************************/\n\t\tcase 26:\n\t\t\tSystem.out.println(\"Connect to SISServer successful.\");\n\t\t\tbreak;\n\t\tcase 22:\n\t\t\tSystem.exit(0);\n\t\t\tbreak;\n\t\tcase 24:\n\t\t\tSystem.out.println(\"Algorithm Activated\");\n\t\t\tbreak;\n\t\tcase 25:\n\t\t\tSystem.out.println(\"Algorithm Deactivated\");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "public void onMessage( javax.jms.Message aMessage)\n {\n try\n {\n // Cast the message as a text message.\n // Otherwise report that invalid message arrived.\n if (aMessage instanceof javax.jms.TextMessage)\n {\n \tjavax.jms.TextMessage textMessage = (javax.jms.TextMessage) aMessage;\n\n \t// This handler reads a single String from the\n \t// message and prints it to the standard output.\n \ttry\n \t{\n \tString string = textMessage.getText();\n \tSystem.out.println( string );\n \t\t}\n \tcatch (javax.jms.JMSException jmse)\n \t{\n \t jmse.printStackTrace();\n \t}\n \t}\n\t\t\telse\n\t\t\t{\n\t\t\t System.out.println (\"Warning: A message was discarded because it could not be processed \" +\n\t\t\t \"as a javax.jms.TextMessage.\");\n\t\t\t }\n\n }\n catch (java.lang.RuntimeException rte)\n {\n rte.printStackTrace();\n }\n }", "@Override\n public void onMessageReceived(JsonElement jsonElement) {\n try{\n mHandler.post(new Runnable() {\n @Override\n public void run() {\n\n Toast.makeText(context,jsonElement.toString(),Toast.LENGTH_LONG).show();\n }\n });}catch (Exception ex){\n ex.printStackTrace();\n }\n System.out.println(\"test we have new sms received : \"+jsonElement.toString());\n }", "public void processMessage(byte[] message) {\n try {\n Object receivedMessage = Serializer.deserialize(message);\n processMessage(receivedMessage);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n }", "protected void handleInboundMessage(Object msg) {\n/* 748 */ inboundMessages().add(msg);\n/* */ }", "@Override\r\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tswitch (msg.what) {\r\n\t\t\t// upload ok\r\n\t\t\tcase 0:\r\n\t\t\t\tToast.makeText(SendBroadcastMessage.this, \"上传语音成功\",\r\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\tbreak;\r\n\t\t\t// upload error\r\n\t\t\tcase 1:\t\t\t\r\n\t\t\t\tToast.makeText(SendBroadcastMessage.this, \"上传语音失败\",\r\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\tbreak;\r\n\t\t\t// update ok\r\n\t\t\tcase 2:\r\n\t\t\t\tif (dialog!=null) {\r\n\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t}\r\n\t\t\t\tToast.makeText(SendBroadcastMessage.this, \"发布成功\",\r\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\tTextSave();\r\n\t\t\t\tSendResultSave(true);\r\n\t\t\t\tif (bm != null) {\r\n\t\t\t\t\tbm.recycle();\r\n\t\t\t\t}\r\n\t\t\t\tSendBroadcastMessage.this.finish();\r\n\t\t\t\tbreak;\r\n\t\t\t// update error\r\n\t\t\tcase 3:\r\n\t\t\t\tif (dialog!=null) {\r\n\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t}\r\n\t\t\t\tTextSave();\r\n\t\t\t\tSendResultSave(false);\r\n\t\t\t\tToast.makeText(SendBroadcastMessage.this, \"发布失败\",\r\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\tif (bm != null) {\r\n\t\t\t\t\tbm.recycle();\r\n\t\t\t\t}\r\n\t\t\t\tSendBroadcastMessage.this.finish();\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t}", "protected void handleOutboundMessage(Object msg) {\n/* 741 */ outboundMessages().add(msg);\n/* */ }", "protected void processMessagesOnConnection() {\n try {\n logger.info(\"Connected to \" + getConnectionName());\n state.set(StreamState.CONNECTED);\n notifyConnection();\n inputBuffer.flip();\n\n while (!Thread.currentThread().isInterrupted() && isConnected()) {\n try {\n // Find the start of message\n byte byStart = 0;\n while(byStart != START_OF_MSG && !Thread.currentThread().isInterrupted() && isConnected()) {\n byStart = nextByte(inputBuffer);\n }\n\n // and then make sure there are enough bytes and read the protocol\n readCompleteMessage(inputBuffer);\n if(inputBuffer.get() != protocol.getKeyIdentifier()) throw new TcProtocolException(\"Bad protocol\");\n\n logByteBuffer(\"Line read from stream\", inputBuffer);\n\n // now we take a shallow buffer copy and process the message\n MenuCommand mc = protocol.fromChannel(inputBuffer);\n logger.info(\"Command received: \" + mc);\n notifyListeners(mc);\n }\n catch(TcProtocolException ex) {\n // a protocol problem shouldn't drop the connection\n logger.warn(\"Probable Bad message reason='{}' Remote={} \", ex.getMessage(), getConnectionName());\n }\n }\n logger.info(\"Disconnected from \" + getConnectionName());\n } catch (Exception e) {\n logger.error(\"Problem with connectivity on \" + getConnectionName(), e);\n }\n finally {\n close();\n }\n }", "public void run() {\n\t\tString line = null;\n\t\tMessage message;\n\t\tBufferQueueElement<Message> messageList = new BufferQueueElement<Message>();\n\t\tlong t1 = System.nanoTime();\n\t long t2 = 0;\n\t\ttry {\n\t\t\twhile ((line = messageIO.readMessage()) != null) {\n\t\t\t\tt2 = System.nanoTime();\n\t\t\t\t/* Ok, we can close the stream. But process the last message list. */\n\t\t\t\tif (CLOSE_STREAM.equals(line)) {\n\t\t\t\t\tmessageList.setStreamClosed(true);\n\t\t\t\t\tqueue.put(messageList);\n\t\t\t\t\tbreak;\n\t\t\t\t} else if((t2 - t1) < ONE_SECOND) {\n\t\t\t\t\tmessage = new Message(line);\n\t\t\t\t\tmessageList.setMessageElement(message);\n\t\t\t\t} else {\n\t\t\t\t\tqueue.put(messageList);\n\t\t\t\t\tmessageList = new BufferQueueElement<Message>();\n\t\t\t\t\tt1 = System.nanoTime();\n\t\t\t\t\tmessage = new Message(line);\n\t\t\t\t\tmessageList.setMessageElement(message);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t} catch (InterruptedException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "private void messageHandler(String read){\n\n try {\n buffer.append(read);\n }catch (MalformedMessageException e){\n System.out.println(\"[CLIENT] The message received is not in XML format.\");\n }\n\n while(!buffer.isEmpty()) {\n if (buffer.getPong()) pong = true;\n else if (buffer.getPing()) send(\"<pong/>\");\n else {\n try {\n clientController.onReceivedMessage(buffer.get());\n } catch (EmptyBufferException e) {\n System.out.println(\"[CLIENT] The buffer is empty!\");\n }\n }\n }\n\n }" ]
[ "0.67425257", "0.6396895", "0.63854176", "0.6350337", "0.6309698", "0.62333965", "0.6209661", "0.616247", "0.6152131", "0.6066789", "0.6029803", "0.6007276", "0.5971567", "0.5968852", "0.5963807", "0.59469956", "0.59366626", "0.58915365", "0.5876116", "0.58702517", "0.58589125", "0.58339065", "0.5820015", "0.580577", "0.5778501", "0.5771559", "0.5769519", "0.5767304", "0.5762363", "0.5758909", "0.5758454", "0.57397985", "0.57274073", "0.5715742", "0.5685077", "0.5681738", "0.56626797", "0.56621754", "0.56583065", "0.5657932", "0.56575173", "0.564335", "0.56327933", "0.5626306", "0.56262743", "0.5598557", "0.55845547", "0.5584229", "0.55822885", "0.55706114", "0.55701405", "0.5567883", "0.5566783", "0.5566133", "0.5550726", "0.55484897", "0.5536584", "0.55313593", "0.55270016", "0.5519977", "0.55176586", "0.5513037", "0.5509482", "0.5495865", "0.5495865", "0.54927063", "0.5490354", "0.54819703", "0.54782754", "0.54744035", "0.5474393", "0.54731417", "0.5450924", "0.5444503", "0.5441259", "0.5440534", "0.54351735", "0.54343534", "0.543321", "0.5432495", "0.5430085", "0.54186493", "0.5394495", "0.539135", "0.53909975", "0.5384902", "0.53825414", "0.53808147", "0.5379378", "0.53764683", "0.53757083", "0.53753465", "0.5373076", "0.53681", "0.535974", "0.5349615", "0.5349478", "0.5347618", "0.534386", "0.5340159" ]
0.59238744
17
Method to send message to the SQS topic
public void sendMessage(String message);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void send(String providedTopic,V msg);", "public static void SendSMSMessage(String intentName, String message) {\n\n String topic = myProps.getPropertyValue(\"SNSMessageTopic\");\n\n try {\n\n log.warn(\"Creating SNS Message\");\n AmazonSNS snsClient = AmazonSNSClientBuilder.standard()\n .withRegion(Regions.US_EAST_1)\n .build();\n\n //publish to an SNS topic\n String msg = \"Music Man user request failure from : \" + intentName + \", value: \" + message;\n PublishRequest publishRequest = new PublishRequest(topic, msg);\n PublishResult publishResult = snsClient.publish(publishRequest);\n//print MessageId of message published to SNS topic\n log.info(\"MessageId - \" + publishResult.getMessageId());\n\n } catch (Exception e) {\n\n log.error(\"SNS Message exception error: \" + e.getMessage());\n\n }\n\n return;\n\n }", "public void send(String providedTopic,V msg,K providedKey);", "void publish(String topicName, Message message) throws IOException;", "public int publishToTopic(String topicId, Message message);", "@Override\n\t\t\t\t\tpublic void sendMessage(String message) {\n\t\t\t\t\t\tString toSend = \"<append><topic>\" + xmlData.get(\"topic\") +\"</topic><user>\" + username + \"</user><msg>\" + message + \"</msg></append>\";\n\t\t\t\t\t\tsendData(toSend);\n\t\t\t\t\t}", "private void sentSMS(String taskName){\n\n AmazonSNSClient snsClient = new AmazonSNSClient();\n String message = taskName + \" has completed.\";\n String phoneNumber = \"+15809196943\";\n Map<String, MessageAttributeValue> smsAttributes =\n new HashMap<String, MessageAttributeValue>();\n //<set SMS attributes>\n PublishResult result = snsClient.publish(new PublishRequest()\n .withMessage(message)\n .withPhoneNumber(phoneNumber)\n .withMessageAttributes(smsAttributes));\n System.out.println(result); // Prints the message ID.\n\n }", "public void produceMessage(String message) {\n KeyedMessage<String, String> keyedMessage = new KeyedMessage<String, String>(topic, null, message);\n producer.send(keyedMessage);\n }", "@RequestMapping(\"/send/{topic}\")\r\n\tpublic String sender(@PathVariable String topic, @RequestParam String message){\r\n\t\tproducer.sendMessageTo(topic, message);\r\n\t\treturn \"Message successfully sent.\";\r\n\t}", "public static void sendMessage(String message) throws IOException {\n controllerChannel.basicPublish(\n \"\",\n CONTROLLER_QUEUE_NAME,\n null,\n message.getBytes());\n }", "public static void sendSMSMessage(AmazonSNSClient snsClient,\n String message, String phoneNumber) {\n PublishResult result = snsClient.publish(new PublishRequest()\n .withMessage(message)\n .withPhoneNumber(phoneNumber));\n System.out.println(result); // Prints the message ID.\n }", "public static void sendMessage(@NonNull final String message) {\n Connection connection = MessagingUtils.createConnection();\n if (connection != null) {\n Channel channel = MessagingUtils.createChannel(connection);\n if (channel != null) {\n try {\n channel.queueDeclare(MessagingUtils.QUEUE, false, false, false, null);\n channel.basicPublish(\"\", MessagingUtils.QUEUE, false, null, message.getBytes());\n log.info(MESSAGE_SUCCESSFULLY_SENT);\n } catch (IOException e) {\n log.error(MESSAGE_NOT_SENT);\n log.error(e.getMessage());\n } finally {\n MessagingUtils.closeConnection(connection);\n }\n }\n }\n }", "@Override\r\n\tpublic void publish(String message) {\n\t\tredisTemplate.convertAndSend(channelTopic.getTopic(), message);\r\n\t}", "public synchronized void sendMessage(KafkaMessage msg, String[] topic) {\r\n if (producer != null) {\r\n // Encode message\r\n JsonEncoder json = new JsonEncoder();\r\n\r\n\r\n //producer.beginTransaction(); //begin transactions\r\n try {\r\n for (int index = 0; index < topic.length; index++) {\r\n String encodedMsg = json.encode(msg);\r\n ProducerRecord<Long, String> record = new ProducerRecord<>(topic[index],\r\n encodedMsg);\r\n\r\n producer.send(record).get(); // (A??)-Synchronouse send.\r\n this.requests.mark();\r\n }\r\n //producer.commitTransaction();\r\n } catch (KafkaException e) {\r\n e.printStackTrace();\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n } catch (ExecutionException e) {\r\n e.printStackTrace();\r\n }\r\n } else {\r\n System.out.println(\"ProducerContainer is not initialized for producer \" + this.ID);\r\n }\r\n }", "@MessageMapping(\"/send/msg\")\n @SendTo(\"/sometopic\")\n public String sendToTopic(String content) {\n return content;\n }", "public ActiveMqUtils sendMessage(String[] topic, ActiveMqUtilsSendMessage activeMqUtilsSendMessage) throws JMSException {\n Connection connection = getConnection();\n connection.start();\n LogUtils.LOGGER.info(MessageFormat.format(\"Connection start : {0}\", connection));\n Session session = connection.createSession(Boolean.TRUE, Session.AUTO_ACKNOWLEDGE);\n LogUtils.LOGGER.info(MessageFormat.format(\"Session create : {0}\", connection));\n for (int i = 0; i < topic.length; i++) {\n Destination destination = session.createTopic(topic[i]);\n MessageProducer producer = session.createProducer(destination);\n producer.setDeliveryMode(DeliveryMode.NON_PERSISTENT);\n activeMqUtilsSendMessage.sendMessage(session, producer, destination);\n }\n\n session.commit();\n LogUtils.LOGGER.info(MessageFormat.format(\"Session commit : {0}\", connection));\n session.close();\n LogUtils.LOGGER.info(MessageFormat.format(\"Session close : {0}\", connection));\n connection.close();\n LogUtils.LOGGER.info(MessageFormat.format(\"Connection close : {0}\", connection));\n return this;\n }", "public void sendMessage(Message msg) {\n network.sendAsync(msg);\n }", "public void sendMessage(String message) {}", "@Scheduled(fixedRate = 1000)\n private void send(){\n jmsTemplate.send(\"test.messages\", session -> {\n TextMessage message = session.createTextMessage(Instant.now().toString());\n return message;\n });\n }", "public void messageSent(int messageId) {\n\r\n\t}", "public void postMessage(String msg){\n System.out.println(\"Message Posted to Topic:\"+msg);\n this.message=msg;\n this.changed=true;\n notifyObservers();\n }", "public void sendMessageToRabbitMQ(String message) {\n CachingConnectionFactory connectionFactory = new CachingConnectionFactory(rabbitProperties.getHost(), rabbitProperties.getPort());\n connectionFactory.setUsername(rabbitProperties.getUsername());\n connectionFactory.setPassword(rabbitProperties.getPassword());\n connectionFactory.setVirtualHost(rabbitProperties.getVirtualHost());\n AmqpAdmin admin = new RabbitAdmin(connectionFactory);\n admin.declareQueue(new Queue(\"/topic/tracker-data\"));\n AmqpTemplate template = new RabbitTemplate(connectionFactory);\n template.convertAndSend(\"/topic/tracker-data\", message);\n connectionFactory.destroy();\n simpMessagingTemplate.convertAndSend(\"/topic/tracker-data\", message);\n }", "public void send(Message msg);", "public void send(String topic,Object content,String actionType) {\n //maxkey.server.message.queue , if not none\n if(applicationConfig.isProvisionSupport()) {\n ProvisionMessage message = \n \t\tnew ProvisionMessage(\n \t\t\t\tUUID.randomUUID().toString(),\t//message id as uuid\n \t\t\t\ttopic,\t//TOPIC\n \t\t\t\tactionType,\t//action of content\n \t\t\t\tDateUtils.getCurrentDateTimeAsString(),\t//send time\n \t\t\t\tnull, \t//content Object to json message content\n \t\t\t\tcontent\n \t\t\t\t);\n //sand msg to provision topic\n Thread thread = null;\n if(applicationConfig.isProvisionSupport()) {\n \t_logger.trace(\"message...\");\n \tthread = new ProvisioningThread(jdbcTemplate,message);\n \tthread.start();\n }else{\n \t_logger.trace(\"no send message...\");\n }\n }\n }", "public void queueMessage(Message message);", "public void publishMessage(String message) throws IOException {\n try {\n producer.send(new ProducerRecord<String, String>(topic, 0, \"HELIDON\", message));\n logger.warning(\"Sent new oKafka message: \"+message);\n //producer.commitTransaction();\n //producer.flush();\n } catch (Exception ex) {\n ex.printStackTrace();\n throw new IOException(ex.toString());\n }\n }", "private void send(byte[] message)\n\t\t\tthrows IOException\n\t{\n\t\tchannel.basicPublish(BUNGEECORD_QUEUE, \"\", null, message);\n\t}", "void messageSent(IMSession session, String messageId);", "public void SendMessage(String strMessage) {\n\t\tSystem.out.println( \"EmailService sending message... : \" + strMessage );\n\t}", "public void sendSmsMessage(String message)\n throws Exception {\n }", "@Test\n public void sendMessageTest() throws ApiException {\n String collectionId = null;\n String deviceId = null;\n SendMessageRequest body = null;\n Object response = api.sendMessage(collectionId, deviceId, body);\n\n // TODO: test validations\n }", "public void publish(@NonNull final Topic topic, @NonNull final Message message){\n topic.addMessage(message);\n System.out.println(message.getMsg()+\" published to \"+topic.getTopicName());\n topic_Handler_Map.get(topic.getTopicId()).publish();\n }", "void sendMessage(long queueId, byte[] content, int prio) throws IOException, MlmqException;", "@Override\n\t\tpublic void run() {\n\t\t\t\tSystem.out.println(\"topic 消息类型开始产生消息 \" + \"生产者: \" + Thread.currentThread().getName());\n\t\t\t\ttry {\n\t\t\t\t\t\t/**第一步 创建连接工厂*/\n\t\t\t\t\t\tfactory = new ActiveMQConnectionFactory(MqConfigConstants.USERNAME, MqConfigConstants.PASSWORD, MqConfigConstants.BROKEURL_ALI);\n\t\t\t\t\t\t/**第二步 创建JMS 连接*/\n\t\t\t\t\t\tConnection connection = factory.createConnection();\n\t\t\t\t\t\tconnection.start();\n\t\t\t\t\t\t/** 第三步 创建Session,开启事务 */\n\t\t\t\t\t\tSession session = connection.createSession(true, Session.AUTO_ACKNOWLEDGE);\n\t\t\t\t\t\t/** 第四步: 创建topic,Topic是 Destination接口的子接口*/\n\t\t\t\t\t\tTopic topic = session.createTopic(MqConfigConstants.TopicName);\n\t\t\t\t\t\t/** 第五步 创建生产者producer */\n\t\t\t\t\t\tMessageProducer producer = session.createProducer(topic);\n\n\t\t\t\t\t\t/** 设置消息不需要持久化 */\n\t\t\t\t\t\tproducer.setDeliveryMode(DeliveryMode.NON_PERSISTENT);\n\t\t\t\t\t\t//发送文本消息\n\t\t\t\t\t\twhile (true) {\n\t\t\t\t\t\t\t\t/** 第六步 发送消息 */\n\t\t\t\t\t\t\t\tMessage message = createMessage(session,\"vincent\",27,\"江西省赣州市\");\n\t\t\t\t\t\t\t\tproducer.send(message);\n\t\t\t\t\t\t\t\tsession.commit();//开启事务必须需要提交,消费者才能获取到\n\t\t\t\t\t\t\t\tSystem.out.println(\"发送消息: \" +message.toString() );\n\t\t\t\t\t\t\t\tThread.sleep(200);\n\t\t\t\t\t\t}\n\t\t\t\t} catch (JMSException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t}", "MessageSender createSender(String topic) throws MessagingException;", "public void sendMessage(common.messages.KVMessage msg) throws IOException {\r\n\t\tbyte[] msgBytes = msg.getMsgBytes();\r\n\t\toutput.write(msgBytes, 0, msgBytes.length);\r\n\t\toutput.flush();\r\n\t\tlogger.debug(\"SEND \\t<\" \r\n\t\t\t\t+ clientSocket.getInetAddress().getHostAddress() + \":\" \r\n\t\t\t\t+ clientSocket.getPort() + \">: '\" \r\n\t\t\t\t+ msg.getMsg() +\"'\");\r\n }", "void sendMessage(String msg);", "@MessageMapping(\"/hello\")\n @SendTo(\"/topic/greetings\")\n public AnotherSimpleMessage publishMessage(SimpleMessage simpleMessage) throws InterruptedException {\n Thread.sleep(1000);\n return new AnotherSimpleMessage(\"Hello \" + simpleMessage.getName());\n }", "public void sendMessage(CommandSender sender, String messageId) {\n this.sendMessage(sender, messageId, StringPlaceholders.empty());\n }", "public void send(ProfileMessageModel message) {\n\t\tLOG.info(\"sending message='{}' to topic='{}'\", message, topic);\n\t\tkafkaProfileTemplate.send(topic, message);\n\t}", "public void addTopicMessage(MQTTMessageContext messageContext) throws MQTTException {\n\n try {\n //Will add the topic message to the cluster for distribution\n if (log.isDebugEnabled()) {\n log.debug(\"Incoming message received with id : \" + messageContext.getMqttLocalMessageID() + \", QOS level : \"\n + messageContext.getQosLevel() + \", for topic :\" + messageContext.getTopic() + \", with retain :\" +\n messageContext.isRetain());\n }\n connector.addMessage(messageContext);\n } catch (MQTTException e) {\n //Will need to rollback the state\n final String error = \"Error occurred while publishing the message\";\n log.error(error, e);\n throw e;\n }\n\n }", "private void sendMessage(String message){\n PostTask pt = new PostTask();\n pt.execute();\n }", "private void sendMessage(String message) {\n if (mApiClient != null && mQuizCastChannel != null) {\n try {\n Cast.CastApi.sendMessage(mApiClient,\n mQuizCastChannel.getNamespace(), message)\n .setResultCallback(new ResultCallback<Status>() {\n @Override\n public void onResult(Status result) {\n if (!result.isSuccess()) {\n Log.e(context.getString(R.string.LOGTAG), \"Sending message failed\");\n }\n }\n });\n } catch (Exception e) {\n Log.e(context.getString(R.string.LOGTAG), \"Exception while sending message\", e);\n }\n } else {\n Log.d(context.getString(R.string.LOGTAG), \"Sent message successfully\");\n Log.d(context.getString(R.string.LOGTAG), message);\n }\n }", "public void publishMessage(String routingKey, String message) throws Exception {\n\t\ttry (Connection connection = rabbitMqConnectionFactory.getConnectionFactory().newConnection()) {\n\t\t\ttry (Channel channel = connection.createChannel()) {\n\n\t\t\t\tchannel.exchangeDeclare(EXCHANGE_NAME, \"topic\");\n\t\t\t\t\n\t\t\t\tchannel.basicPublish(EXCHANGE_NAME, routingKey, null, message.getBytes(\"UTF-8\"));\n\t\t\t\t\n\t\t\t\tLOGGER.info(\"Message \" + message + \" is sent via routing key \" + routingKey);\n\t\t\t}\n\t\t}\n\t}", "public ActiveMqUtils sendMessage(String queueName, final String message) throws JMSException {\n return sendMessage(queueName, new ActiveMqUtilsSendMessage() {\n @Override\n public void sendMessage(Session session, MessageProducer producer, Destination destination) throws JMSException {\n TextMessage textMessage = session.createTextMessage(message);\n producer.send(destination, textMessage);\n }\n });\n }", "@Override\r\n\tpublic void sendMessage(String message) {\n\t\t\r\n\t}", "public synchronized void send(Message msg) throws JmsException {\n if (logger.isDebugEnabled()) {\n logger.debug(\"Sending JMS message: \" + msg);\n }\n try {\n getProducer().send(msg);\n } catch (JMSException e) {\n throw convertJmsAccessException(e);\n }\n }", "void sendMessage(ZMQ.Socket socket);", "public static void publishMessage(final String key,final String message) throws IOException{\n\t\tString msg=null;\n\t\ttry {\n\t\t\t\n\t\t\t//If we need to make any Transformation on the message.\n\t\t\tif(Boolean.parseBoolean(ConfigLoader.getProp(Constants.ENABLETRANSFORMATION))){\n\t\t\t\tmsg = CBMessageTransformerFactory.INSTANCE.createCBMessageConverter().convert(key, message);\n\t\t\t}else{\n\t\t\t\tmsg=message;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t//If any exception, perform no conversion\n\t\t}\n\t\t\n\t\tif(msg!=null && msg.trim().length()>0){\n\t\t\t//Wrap KEY/VALUE in JSON -format {\\\"KEY\\\":\\\"<CBKEY>\\\",\\\"VALUE\\\":<CBVALUE>}\n\t\t\tString cbmessage=Constants.KAFKA_MESSAGE.replace(\"[CBKEY]\", key);\n\t\t\tcbmessage=cbmessage.replace(\"[CBVALUE]\", msg);\n\t\t\t\n\t\t\tKeyedMessage<String, String> data = new KeyedMessage<String, String>(ConfigLoader.getKafkaConfigProps().getProperty(Constants.TOPIC_NAME), key, cbmessage);\n\t\t\t\n\t\t\t//property producer.type indicates async/sync message\n\t\t\tif(data!=null) producer.send(data);\n\t\t}\n\t}", "public void sendMailToQueue(MailMessage mailMessage) throws MailerException;", "void send(WebhookMessage msg);", "private void sendRequest(String reqmsg) throws MqttException {\n MqttMessage message = new MqttMessage();\n message.setPayload(reqmsg.getBytes());\n middleware.publish(TOPIC, message);\n }", "public void sendEvent(String topic, Event event) {\n try{\n this.subscriber.get(topic).forEach(s -> s.onEvent(event));\n } catch (NullPointerException e){\n \n }\n }", "@RequestMapping(value = \"/publish\", method = RequestMethod.GET)\n\tpublic void publish(Locale locale, Model model, @RequestParam(\"message\") String message) {\n\n\t\tAmazonSNSClient snsClient = new AmazonSNSClient(new ClasspathPropertiesFileCredentialsProvider());\t\t \n\t\tsnsClient.setRegion(Region.getRegion(Regions.AP_NORTHEAST_1));\n\t\t\n\t\t// Publish a message\n\t\tPublishRequest publishRequest = new PublishRequest(topicArn, message);\n\t\tsnsClient.publish(publishRequest);\n\t\t\n\t\tlogger.info(\"Published a message.Message=\" + message);\n\t}", "public void sendMessage()throws Exception{\r\n\r\n\t\ttry{\r\n\r\n\t\t\tintiSettings();\r\n\r\n\t\t\tproducer = new KafkaProducer(prop);\r\n\r\n\t\t\tSystem.out.println(\"Message to be sent from Producer:\");\r\n\t\t\tfor(int i=0;i<messageList.size();i++){\r\n\t\t\t\tSystem.out.println(messageList.get(i));\r\n\t\t\t\tproducer.send(new ProducerRecord(topicName, messageList.get(i)));\r\n\t\t\t}\r\n\t\t}catch(ProducerFencedException e){\r\n\t\t\te.printStackTrace();\r\n\t\t}catch(OutOfOrderSequenceException e){\r\n\t\t\te.printStackTrace();\r\n\t\t}catch(AuthorizationException e){\r\n\t\t\te.printStackTrace();\r\n\t\t}catch(KafkaException e){\r\n\t\t\te.printStackTrace();\r\n\t\t\tproducer.abortTransaction();\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}finally{\r\n\t\t\tproducer.close();\r\n\t\t}\r\n\t}", "private <T extends QMessage> void sendTestMsg(T msg) {\n\n\t\ttry {\n\t\t\tString token = KeycloakUtils.getAccessToken(\"http://keycloak.genny.life\", \"genny\", \"genny\",\n\t\t\t\t\t\"056b73c1-7078-411d-80ec-87d41c55c3b4\", \"user1\", \"password1\");\n\t\t\tmsg.setToken(token);\n\n\t\t\t/* get the bridge url to publish the message to webcmd channel */\n\t\t\tString bridgetUrl = ENV_GENNY_BRIDGE_URL + \"/api/service?channel=webdata\";\n\n\t\t\tQwandaUtils.apiPostEntity(bridgetUrl, JsonUtils.toJson(msg), token);\n\n\t\t} catch (IOException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t}", "@Override\n\t\t\t\tpublic void messageArrived(MqttTopic topicName,\n\t\t\t\t\t\tMqttMessage message) throws Exception {\n\t\t\t\t\tSystem.out.println(\"messageArrived----------\");\n\t\t\t\t\tMessage msg = new Message();\n\t\t\t\t\tmsg.what = 1;\n\t\t\t\t\tmsg.obj = message.toString();\n\t\t\t\t\thandler.sendMessage(msg);\n\t\t\t\t}", "public void send(String topic, Object consumerRecord) {\r\n log.info(\"topic name is : \" + topic + \" producerecord is: \" + consumerRecord);\r\n kafkaTemplate.send(topic, consumerRecord);\r\n }", "private void sendMessage() {\n if (mRecipientAddress == null) {\n if (mDevices.getSelectedItem() == null) {\n mStatusText.append(\"Please select a device to message.\\n\");\n return;\n }\n if (mMessage.getText() == null || mMessage.getText().toString().equals(\"\")) {\n mStatusText.append(\"Please enter a message to send.\\n\");\n return;\n }\n }\n WifiDirectClientAsyncTask t = new WifiDirectClientAsyncTask(this, mMessage.getText().toString());\n if (Build.VERSION.SDK_INT>=Build.VERSION_CODES.HONEYCOMB)\n t.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n else\n t.execute();\n }", "public void send(final String queue, final String data) {\n try {\n start();\n channel.basicPublish(\"\", queue, MessageProperties.PERSISTENT_TEXT_PLAIN, data.getBytes(StandardCharsets.UTF_8));\n } catch (Exception e) {\n Assertions.fail(e.getMessage());\n } finally {\n stop();\n }\n }", "@Override\n public void sendMessage(Message<JsonPayload> message) throws IOException {\n System.out.println(\"Trying to send a message...\");\n outputMessageStream.write(message.getContent().getJson());\n outputMessageStream.newLine();\n outputMessageStream.flush();\n socket.shutdownOutput();\n }", "public void send(Order brokerMsg) {\n// System.out.println(\"Sending a transaction from. price\" + brokerMsg.getPrice() + \" buy : \" + brokerMsg.isBuy());\n\n\n MessageCreator messageCreator = new MessageCreator() {\n @Override\n public Message createMessage(Session session) throws JMSException {\n\n\n Message msg = session.createTextMessage(brokerMsg.toString());\n msg.setJMSCorrelationID(brokerMsg.getStratId().toString());\n// System.out.println(msg);\n return msg;\n }\n };\n orderService.writeOrder(brokerMsg);\n jmsTemplate.send(\"OrderBroker\", messageCreator);\n }", "public void sendMessage ( UUID sender , String message ) {\n\t\texecute ( handle -> handle.sendMessage ( sender , message ) );\n\t}", "void publish(Message message, PubSubService pubSubService);", "public void sendMessageToLog(String message) {\n LogMessage msg = new LogMessage();\n msg.setMessage(message);\n msg.setUser(loginBean.getLoggedInUser());\n msg.setDate(new Date());\n context.createProducer().send(myQueue, msg);\n }", "public void sendSmsMessage(String phoneNumber, String message)\n throws Exception {\n }", "@Scheduled(every = \"1s\")\n void schedule() {\n if (message != null) {\n final String endpointUri = \"azure-eventhubs:?connectionString=RAW(\" + connectionString.get() + \")\";\n producerTemplate.sendBody(endpointUri, message + (counter++));\n }\n }", "void onSqsRequestSuccess(String internalQueueName, int messagesCount);", "@Override\n\t\t\tpublic void messageArrived(String topic, MqttMessage message) throws Exception {\n\t\t\t\tSystem.out.println(\"接收消息主题 : \" + topic);\n\t\t\t\tSystem.out.println(\"接收消息Qos : \" + message.getQos());\n\t\t\t\tSystem.out.println(\"接收消息内容 : \" + message.toString());\n\t\t\t\tjas.decry(message.toString());\n\t\t\t}", "public void sendMessage(String message) {\r\n sendMessageAsByte(message.getBytes());\r\n }", "public void testSendSmsTest() {\n String from = \"14121234567\";\n String to = \"14121234567\";\n assertThat(messagingClient).isNotNull();\n\n SendMessageResponse messageResponse = messagingClient.sendSms(jwt, to, from, \"This is a test message\");\n assertThat(messageResponse).isNotNull();\n assertThat(messageResponse.getMessageUuid()).isNotBlank();\n }", "public void publish(MessageI m, String topic) throws Exception {\n\t\tlogMessage(\"Publishing message \" + m.getURI()+ \" to the topic : \"+ topic);\n\t\tthis.publicationOutboundPort.publish(m, topic);\n\t}", "public void enviarMensaje(String msg) throws JMSException {\n\tMapMessage message = producer.createMapMessage();\n\n\tmessage.setString(\"from\", user.getLogin());\n\tmessage.setString(\"message\", msg);\n\tmessage.setLong(\"date\", new Date().getTime());\n\tmessage.setLong(\"idViaje\", viaje.getId());\n\n\tproducer.send(message);\n }", "String sendSimpleMessageV2(String from, String fromMail, String to, String subject, String body);", "private void sendMessage(String sender, String receiver, String msg) {\n //Map key value pairs\n Map<String, Object> message = new HashMap<>();\n message.put(\"sender\", sender);\n message.put(\"receiver\", receiver);\n message.put(\"message\", msg);\n message.put(\"isSeen\", false);\n message.put(\"createdAt\", FieldValue.serverTimestamp());\n\n //Upload to firestore\n db.collection(\"messages\").document()\n .set(message)\n .addOnSuccessListener(aVoid -> Utility.showToast(this, \"Message sent\"))\n .addOnFailureListener(e -> {\n Utility.showToast(this, \"Error: Submission failed\");\n Log.w(TAG, \"Error writing document\", e);\n });\n }", "private void publish(PubMsg pubMsg, ChannelHandlerContext ctx) {\n //获取topic订阅者id列表\n String topic = pubMsg.getTopic();\n List<ClientSub> clientList = subscriptionService.searchSubscribeClientList(topic);\n\n //遍历发送\n clientList.forEach(clientSub -> {\n final String clientId = clientSub.getClientId();\n\n //计算Qos\n int pubQos = pubMsg.getQoS();\n int subQos = clientSub.getQos();\n MqttQoS qos = subQos >= pubQos ? MqttQoS.valueOf(pubQos) : MqttQoS.valueOf(subQos);\n\n //组装PubMsg\n MqttPublishMessage mpm = MqttMessageBuilders.publish()\n .messageId(nextMessageId(ctx))\n .qos(qos)\n .topicName(topic)\n .retained(pubMsg.isRetain())\n .payload(Unpooled.wrappedBuffer(pubMsg.getPayload()))\n .build();\n if (qos == MqttQoS.EXACTLY_ONCE || qos == MqttQoS.AT_LEAST_ONCE) {\n publishMessageService.save(clientId, pubMsg);\n }\n\n //发送\n Optional.of(clientId)\n .map(ConnectHandler.clientMap::get)\n .map(BrokerHandler.channels::find)\n .ifPresent(channel -> channel.writeAndFlush(mpm));\n });\n }", "@SuppressWarnings(\"unused\")\n public static void sendMessage(String channelId, String message) {\n if (channelId == null) {\n throw new IllegalArgumentException(\"Channel id cannot be null\");\n }\n if (message == null) {\n throw new IllegalArgumentException(\"Message cannot be null\");\n }\n if (Loader.queueMessages) {\n Queue<String> channel = MessageQueue.customChat.get(channelId);\n if (channel == null) {\n channel = new ConcurrentLinkedQueue<>();\n channel.add(message);\n MessageQueue.customChat.put(channelId, channel);\n } else {\n channel.add(message);\n }\n } else {\n sendMessageInternal(channelId, message);\n }\n }", "public void sendMessage(ChatMessage msg) {\n\t\ttry {\n\t\t\tsOutput.writeObject(msg);\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tdisplay(\"Exception writing to server: \" + e);\n\t\t}\n\t}", "private void sendMessage() {\n\n // Get the right Prefix\n String prefix = null;\n\n if ( !messageGroup.getPrefix().equalsIgnoreCase(\"\") ) {\n prefix = messageGroup.getPrefix();\n } else {\n prefix = Announcer.getInstance().getConfig().getString(\"Settings.Prefix\");\n }\n\n Announcer.getInstance().getCaller().sendAnnouncment( messageGroup, prefix, counter);\n\n counter();\n\n }", "@Override\n\tpublic void enqueue(String msgid, EmailAddress recipient) throws MessageEngineException {\n\t\t\n\t}", "public void sendMessage(String msg) {\n\t\tplayer.sendMessage(msg);\n\t}", "public static void sendMessage(String message) {\n getBwapi().sendText(message);\n }", "public void sendMessage(Channel queueChannel, int number) throws IOException, TimeoutException {\r\n // Queue Creation\r\n queueChannel.queueDeclare(QUEUE_NAME,false,false,false,null );\r\n String message = Integer.toString(number);\r\n // Publish\r\n queueChannel.basicPublish(\"\", QUEUE_NAME, null, message.getBytes());\r\n }", "public int publishToWsSession(String wsSessionId, Message message);", "public void publishMessage(final String psMessage) throws IOException {\n fanout.getChannel().basicPublish(fanout.exchangeName, \"\", null, psMessage.getBytes());\n }", "public void sendPublicMessage(SensorMessage message) {\n \tpublicSender.send(message);\n }", "public interface ActiveMqUtilsSendMessage {\n /**\n * Send message.\n *\n * @param session the session\n * @param producer the producer\n * @param destination the destination\n * @throws JMSException the jms exception\n */\n void sendMessage(Session session, MessageProducer producer, Destination destination) throws JMSException;\n }", "public void message(String from,String msg,String to);", "@Test\n\tpublic void test01_sendStringMessageToKafkaTopic() throws Exception {\n\t\tsender.send(UUID.randomUUID().toString(), \"Hello World!\"); // without callback\n\t\tsender.sendWithCallback(UUID.randomUUID().toString(), \"Hello World, plz callback!\"); // with callback\n\t}", "private void sendMessage(ChatMessage msg) {\n try {\n sOutput.writeObject(msg);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public ActiveMqUtils sendMessage(String queueName, ActiveMqUtilsSendMessage activeMqUtilsSendMessage) throws JMSException {\n Connection connection = getConnection();\n connection.start();\n LogUtils.LOGGER.info(MessageFormat.format(\"Connection start : {0}\", connection));\n Session session = connection.createSession(Boolean.TRUE, Session.AUTO_ACKNOWLEDGE);\n LogUtils.LOGGER.info(MessageFormat.format(\"Session create : {0}\", connection));\n Destination destination = session.createQueue(queueName);\n MessageProducer producer = session.createProducer(destination);\n producer.setDeliveryMode(DeliveryMode.NON_PERSISTENT);\n activeMqUtilsSendMessage.sendMessage(session, producer, destination);\n session.commit();\n LogUtils.LOGGER.info(MessageFormat.format(\"Session commit : {0}\", connection));\n session.close();\n LogUtils.LOGGER.info(MessageFormat.format(\"Session close : {0}\", connection));\n connection.close();\n LogUtils.LOGGER.info(MessageFormat.format(\"Connection close : {0}\", connection));\n return this;\n }", "private void sendMyMessage(JSONObject jsonMsg) {\n String link = \"http://\"+ip+\":8065/api/v1/channels/\"+channel_id+\"/create\";\n String response;\n try{\n ConnectAPIs messageAPI = new ConnectAPIs(link,token);\n messageAPI.sendComment(jsonMsg,this,this);\n }catch(Exception e){\n System.out.println(\"Sending error: \" + e.toString());\n }\n }", "public void sendMessage(String text) throws JMSException {\n\t\tTextMessage message = mSession.createTextMessage();\n\t\tmessage.setText(text);\n\t\tmMessageProducer.send(message);\n\t}", "public void sendMessage(CommandSender sender, String messageId, StringPlaceholders placeholders) {\n\n if (messageConfig.getString(messageId) == null) {\n sender.spigot().sendMessage(TextComponent.fromLegacyText(HexUtils.colorify(\"{#ff4072}\" + messageId + \" is null in messages.yml\")));\n return;\n }\n\n if (!messageConfig.getString(messageId).isEmpty()) {\n sender.spigot().sendMessage(TextComponent.fromLegacyText(HexUtils.colorify(this.parsePlaceholders(sender, this.messageConfig.getString(\"prefix\") + placeholders.apply(this.messageConfig.getString(messageId))))));\n }\n }", "public void send(Message message) {\r\n channel.writeAndFlush(message);\r\n }", "public SuccessResponse sendMessage (Message message) throws ApiException {\n return sendMessage(message, null);\n \n }", "@Override\r\n\tpublic void sendMessage(String message) {\n\t\tmediator.send(message, this);\r\n\t}", "@POST(\"chat.postMessage\")\n Call<SendMessageResponse> sendMessage(@Query(\"token\") String token, @Query(\"channel\") String channel, @Query(\"as_user\") String asUser, @Query(\"text\") String messageText);", "public void sendMessageById(int senderId, int recipientId, String messageId){\n \t\t\n String url = \"http://nkucloud.dyndns.org:8080/mediacloud/sendMessageById.jsp\";\n \t\t\n \t\tList<NameValuePair> data = new ArrayList<NameValuePair>();\n \t\t\n \t\tdata.add(new BasicNameValuePair(\"userId\", senderId + \"\"));\n \t\tdata.add(new BasicNameValuePair(\"recipient\", recipientId + \"\"));\n \t\tdata.add(new BasicNameValuePair(\"uniqueId\", messageId));\n \t\t\n \n \t\ttry {\n \n \t\t\t// Make POST request\n \t\t\tRequestHelper.makeHttpPostRequest(url, data);\n \t\t} catch (Exception e) {\n \t\t\t// TODO Auto-generated catch block\n \t\t\te.printStackTrace();\n \t\t}\n \t}", "public void sendMessage(String msg){\n \n try{\n out.writeObject(msg.toString()); \n \n }catch(Exception e){\n e.printStackTrace();\n }\n }" ]
[ "0.73757344", "0.7364023", "0.70885426", "0.6986044", "0.6859861", "0.6637555", "0.66116476", "0.66095734", "0.66019964", "0.64684314", "0.64643925", "0.64289373", "0.63720024", "0.63581353", "0.6350991", "0.6295653", "0.62696534", "0.62638235", "0.6260057", "0.6196351", "0.6179973", "0.61719346", "0.6171127", "0.6140864", "0.61321324", "0.61296576", "0.6102986", "0.61016417", "0.6096613", "0.6068239", "0.6061801", "0.60256714", "0.6023802", "0.60023", "0.60015553", "0.5969815", "0.5966596", "0.5961578", "0.59479004", "0.59464747", "0.59441274", "0.5943285", "0.59398746", "0.59300303", "0.5925308", "0.591563", "0.59124315", "0.58844554", "0.58791417", "0.58771664", "0.58657384", "0.5854253", "0.5845009", "0.58041596", "0.57982886", "0.5797429", "0.5796223", "0.5792213", "0.5784647", "0.5784109", "0.5778696", "0.57773125", "0.577485", "0.576326", "0.57619995", "0.57618606", "0.57607186", "0.57548034", "0.5754718", "0.57540315", "0.5729422", "0.5727657", "0.57245034", "0.5714759", "0.57099587", "0.5708542", "0.5707286", "0.5706252", "0.5701732", "0.57011145", "0.5700205", "0.5698038", "0.56941736", "0.569338", "0.5691882", "0.56900436", "0.5685214", "0.5684095", "0.56804514", "0.56735253", "0.5670373", "0.5668245", "0.5658456", "0.5657494", "0.56518185", "0.5643382", "0.5637449", "0.5635168", "0.56333095", "0.5632862" ]
0.6319388
15